]> code.delx.au - gnu-emacs/blob - configure
Regenerate.
[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 No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
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 GTK_CFLAGS
690 GTK_LIBS
691 XFT_CFLAGS
692 XFT_LIBS
693 ALLOCA
694 liblockfile
695 LIBOBJS
696 NEED_SETGID
697 KMEM_GROUP
698 GETLOADAVG_LIBS
699 GETOPT_H
700 GETOPTOBJS
701 version
702 configuration
703 canonical
704 srcdir
705 lispdir
706 locallisppath
707 lisppath
708 x_default_search_path
709 etcdir
710 archlibdir
711 bitmapdir
712 gamedir
713 gameuser
714 c_switch_system
715 c_switch_machine
716 LD_SWITCH_X_SITE
717 LD_SWITCH_X_SITE_AUX
718 C_SWITCH_X_SITE
719 X_TOOLKIT_TYPE
720 machfile
721 opsysfile
722 carbon_appdir
723 LTLIBOBJS'
724 ac_subst_files=''
725 ac_precious_vars='build_alias
726 host_alias
727 target_alias
728 CC
729 CFLAGS
730 LDFLAGS
731 LIBS
732 CPPFLAGS
733 CPP
734 XMKMF'
735
736
737 # Initialize some variables set by options.
738 ac_init_help=
739 ac_init_version=false
740 # The variables have the same names as the options, with
741 # dashes changed to underlines.
742 cache_file=/dev/null
743 exec_prefix=NONE
744 no_create=
745 no_recursion=
746 prefix=NONE
747 program_prefix=NONE
748 program_suffix=NONE
749 program_transform_name=s,x,x,
750 silent=
751 site=
752 srcdir=
753 verbose=
754 x_includes=NONE
755 x_libraries=NONE
756
757 # Installation directory options.
758 # These are left unexpanded so users can "make install exec_prefix=/foo"
759 # and all the variables that are supposed to be based on exec_prefix
760 # by default will actually change.
761 # Use braces instead of parens because sh, perl, etc. also accept them.
762 # (The list follows the same order as the GNU Coding Standards.)
763 bindir='${exec_prefix}/bin'
764 sbindir='${exec_prefix}/sbin'
765 libexecdir='${exec_prefix}/libexec'
766 datarootdir='${prefix}/share'
767 datadir='${datarootdir}'
768 sysconfdir='${prefix}/etc'
769 sharedstatedir='${prefix}/com'
770 localstatedir='${prefix}/var'
771 includedir='${prefix}/include'
772 oldincludedir='/usr/include'
773 docdir='${datarootdir}/doc/${PACKAGE}'
774 infodir='${datarootdir}/info'
775 htmldir='${docdir}'
776 dvidir='${docdir}'
777 pdfdir='${docdir}'
778 psdir='${docdir}'
779 libdir='${exec_prefix}/lib'
780 localedir='${datarootdir}/locale'
781 mandir='${datarootdir}/man'
782
783 ac_prev=
784 ac_dashdash=
785 for ac_option
786 do
787 # If the previous option needs an argument, assign it.
788 if test -n "$ac_prev"; then
789 eval $ac_prev=\$ac_option
790 ac_prev=
791 continue
792 fi
793
794 case $ac_option in
795 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
796 *) ac_optarg=yes ;;
797 esac
798
799 # Accept the important Cygnus configure options, so we can diagnose typos.
800
801 case $ac_dashdash$ac_option in
802 --)
803 ac_dashdash=yes ;;
804
805 -bindir | --bindir | --bindi | --bind | --bin | --bi)
806 ac_prev=bindir ;;
807 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
808 bindir=$ac_optarg ;;
809
810 -build | --build | --buil | --bui | --bu)
811 ac_prev=build_alias ;;
812 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
813 build_alias=$ac_optarg ;;
814
815 -cache-file | --cache-file | --cache-fil | --cache-fi \
816 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
817 ac_prev=cache_file ;;
818 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
819 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
820 cache_file=$ac_optarg ;;
821
822 --config-cache | -C)
823 cache_file=config.cache ;;
824
825 -datadir | --datadir | --datadi | --datad)
826 ac_prev=datadir ;;
827 -datadir=* | --datadir=* | --datadi=* | --datad=*)
828 datadir=$ac_optarg ;;
829
830 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
831 | --dataroo | --dataro | --datar)
832 ac_prev=datarootdir ;;
833 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
834 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
835 datarootdir=$ac_optarg ;;
836
837 -disable-* | --disable-*)
838 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
839 # Reject names that are not valid shell variable names.
840 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
841 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
842 { (exit 1); exit 1; }; }
843 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
844 eval enable_$ac_feature=no ;;
845
846 -docdir | --docdir | --docdi | --doc | --do)
847 ac_prev=docdir ;;
848 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
849 docdir=$ac_optarg ;;
850
851 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
852 ac_prev=dvidir ;;
853 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
854 dvidir=$ac_optarg ;;
855
856 -enable-* | --enable-*)
857 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
860 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
861 { (exit 1); exit 1; }; }
862 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
863 eval enable_$ac_feature=\$ac_optarg ;;
864
865 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
866 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
867 | --exec | --exe | --ex)
868 ac_prev=exec_prefix ;;
869 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
870 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
871 | --exec=* | --exe=* | --ex=*)
872 exec_prefix=$ac_optarg ;;
873
874 -gas | --gas | --ga | --g)
875 # Obsolete; use --with-gas.
876 with_gas=yes ;;
877
878 -help | --help | --hel | --he | -h)
879 ac_init_help=long ;;
880 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
881 ac_init_help=recursive ;;
882 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
883 ac_init_help=short ;;
884
885 -host | --host | --hos | --ho)
886 ac_prev=host_alias ;;
887 -host=* | --host=* | --hos=* | --ho=*)
888 host_alias=$ac_optarg ;;
889
890 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
891 ac_prev=htmldir ;;
892 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
893 | --ht=*)
894 htmldir=$ac_optarg ;;
895
896 -includedir | --includedir | --includedi | --included | --include \
897 | --includ | --inclu | --incl | --inc)
898 ac_prev=includedir ;;
899 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
900 | --includ=* | --inclu=* | --incl=* | --inc=*)
901 includedir=$ac_optarg ;;
902
903 -infodir | --infodir | --infodi | --infod | --info | --inf)
904 ac_prev=infodir ;;
905 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
906 infodir=$ac_optarg ;;
907
908 -libdir | --libdir | --libdi | --libd)
909 ac_prev=libdir ;;
910 -libdir=* | --libdir=* | --libdi=* | --libd=*)
911 libdir=$ac_optarg ;;
912
913 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
914 | --libexe | --libex | --libe)
915 ac_prev=libexecdir ;;
916 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
917 | --libexe=* | --libex=* | --libe=*)
918 libexecdir=$ac_optarg ;;
919
920 -localedir | --localedir | --localedi | --localed | --locale)
921 ac_prev=localedir ;;
922 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
923 localedir=$ac_optarg ;;
924
925 -localstatedir | --localstatedir | --localstatedi | --localstated \
926 | --localstate | --localstat | --localsta | --localst | --locals)
927 ac_prev=localstatedir ;;
928 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
929 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
930 localstatedir=$ac_optarg ;;
931
932 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
933 ac_prev=mandir ;;
934 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
935 mandir=$ac_optarg ;;
936
937 -nfp | --nfp | --nf)
938 # Obsolete; use --without-fp.
939 with_fp=no ;;
940
941 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
942 | --no-cr | --no-c | -n)
943 no_create=yes ;;
944
945 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
946 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
947 no_recursion=yes ;;
948
949 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
950 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
951 | --oldin | --oldi | --old | --ol | --o)
952 ac_prev=oldincludedir ;;
953 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
954 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
955 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
956 oldincludedir=$ac_optarg ;;
957
958 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
959 ac_prev=prefix ;;
960 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
961 prefix=$ac_optarg ;;
962
963 -program-prefix | --program-prefix | --program-prefi | --program-pref \
964 | --program-pre | --program-pr | --program-p)
965 ac_prev=program_prefix ;;
966 -program-prefix=* | --program-prefix=* | --program-prefi=* \
967 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
968 program_prefix=$ac_optarg ;;
969
970 -program-suffix | --program-suffix | --program-suffi | --program-suff \
971 | --program-suf | --program-su | --program-s)
972 ac_prev=program_suffix ;;
973 -program-suffix=* | --program-suffix=* | --program-suffi=* \
974 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
975 program_suffix=$ac_optarg ;;
976
977 -program-transform-name | --program-transform-name \
978 | --program-transform-nam | --program-transform-na \
979 | --program-transform-n | --program-transform- \
980 | --program-transform | --program-transfor \
981 | --program-transfo | --program-transf \
982 | --program-trans | --program-tran \
983 | --progr-tra | --program-tr | --program-t)
984 ac_prev=program_transform_name ;;
985 -program-transform-name=* | --program-transform-name=* \
986 | --program-transform-nam=* | --program-transform-na=* \
987 | --program-transform-n=* | --program-transform-=* \
988 | --program-transform=* | --program-transfor=* \
989 | --program-transfo=* | --program-transf=* \
990 | --program-trans=* | --program-tran=* \
991 | --progr-tra=* | --program-tr=* | --program-t=*)
992 program_transform_name=$ac_optarg ;;
993
994 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
995 ac_prev=pdfdir ;;
996 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
997 pdfdir=$ac_optarg ;;
998
999 -psdir | --psdir | --psdi | --psd | --ps)
1000 ac_prev=psdir ;;
1001 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1002 psdir=$ac_optarg ;;
1003
1004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1005 | -silent | --silent | --silen | --sile | --sil)
1006 silent=yes ;;
1007
1008 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1009 ac_prev=sbindir ;;
1010 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1011 | --sbi=* | --sb=*)
1012 sbindir=$ac_optarg ;;
1013
1014 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1015 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1016 | --sharedst | --shareds | --shared | --share | --shar \
1017 | --sha | --sh)
1018 ac_prev=sharedstatedir ;;
1019 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1020 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1021 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1022 | --sha=* | --sh=*)
1023 sharedstatedir=$ac_optarg ;;
1024
1025 -site | --site | --sit)
1026 ac_prev=site ;;
1027 -site=* | --site=* | --sit=*)
1028 site=$ac_optarg ;;
1029
1030 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1031 ac_prev=srcdir ;;
1032 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1033 srcdir=$ac_optarg ;;
1034
1035 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1036 | --syscon | --sysco | --sysc | --sys | --sy)
1037 ac_prev=sysconfdir ;;
1038 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1039 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1040 sysconfdir=$ac_optarg ;;
1041
1042 -target | --target | --targe | --targ | --tar | --ta | --t)
1043 ac_prev=target_alias ;;
1044 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1045 target_alias=$ac_optarg ;;
1046
1047 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1048 verbose=yes ;;
1049
1050 -version | --version | --versio | --versi | --vers | -V)
1051 ac_init_version=: ;;
1052
1053 -with-* | --with-*)
1054 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1057 { echo "$as_me: error: invalid package name: $ac_package" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1060 eval with_$ac_package=\$ac_optarg ;;
1061
1062 -without-* | --without-*)
1063 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066 { echo "$as_me: error: invalid package name: $ac_package" >&2
1067 { (exit 1); exit 1; }; }
1068 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1069 eval with_$ac_package=no ;;
1070
1071 --x)
1072 # Obsolete; use --with-x.
1073 with_x=yes ;;
1074
1075 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1076 | --x-incl | --x-inc | --x-in | --x-i)
1077 ac_prev=x_includes ;;
1078 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1079 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1080 x_includes=$ac_optarg ;;
1081
1082 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1083 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1084 ac_prev=x_libraries ;;
1085 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1086 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1087 x_libraries=$ac_optarg ;;
1088
1089 -*) { echo "$as_me: error: unrecognized option: $ac_option
1090 Try \`$0 --help' for more information." >&2
1091 { (exit 1); exit 1; }; }
1092 ;;
1093
1094 *=*)
1095 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1098 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1099 { (exit 1); exit 1; }; }
1100 eval $ac_envvar=\$ac_optarg
1101 export $ac_envvar ;;
1102
1103 *)
1104 # FIXME: should be removed in autoconf 3.0.
1105 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1106 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1107 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1108 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1109 ;;
1110
1111 esac
1112 done
1113
1114 if test -n "$ac_prev"; then
1115 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1116 { echo "$as_me: error: missing argument to $ac_option" >&2
1117 { (exit 1); exit 1; }; }
1118 fi
1119
1120 # Be sure to have absolute directory names.
1121 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1122 datadir sysconfdir sharedstatedir localstatedir includedir \
1123 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1124 libdir localedir mandir
1125 do
1126 eval ac_val=\$$ac_var
1127 case $ac_val in
1128 [\\/$]* | ?:[\\/]* ) continue;;
1129 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1130 esac
1131 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1132 { (exit 1); exit 1; }; }
1133 done
1134
1135 # There might be people who depend on the old broken behavior: `$host'
1136 # used to hold the argument of --host etc.
1137 # FIXME: To remove some day.
1138 build=$build_alias
1139 host=$host_alias
1140 target=$target_alias
1141
1142 # FIXME: To remove some day.
1143 if test "x$host_alias" != x; then
1144 if test "x$build_alias" = x; then
1145 cross_compiling=maybe
1146 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1147 If a cross compiler is detected then cross compile mode will be used." >&2
1148 elif test "x$build_alias" != "x$host_alias"; then
1149 cross_compiling=yes
1150 fi
1151 fi
1152
1153 ac_tool_prefix=
1154 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1155
1156 test "$silent" = yes && exec 6>/dev/null
1157
1158
1159 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1160 ac_ls_di=`ls -di .` &&
1161 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1162 { echo "$as_me: error: Working directory cannot be determined" >&2
1163 { (exit 1); exit 1; }; }
1164 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1165 { echo "$as_me: error: pwd does not report name of working directory" >&2
1166 { (exit 1); exit 1; }; }
1167
1168
1169 # Find the source files, if location was not specified.
1170 if test -z "$srcdir"; then
1171 ac_srcdir_defaulted=yes
1172 # Try the directory containing this script, then the parent directory.
1173 ac_confdir=`$as_dirname -- "$0" ||
1174 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1175 X"$0" : 'X\(//\)[^/]' \| \
1176 X"$0" : 'X\(//\)$' \| \
1177 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1178 echo X"$0" |
1179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1180 s//\1/
1181 q
1182 }
1183 /^X\(\/\/\)[^/].*/{
1184 s//\1/
1185 q
1186 }
1187 /^X\(\/\/\)$/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\).*/{
1192 s//\1/
1193 q
1194 }
1195 s/.*/./; q'`
1196 srcdir=$ac_confdir
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1198 srcdir=..
1199 fi
1200 else
1201 ac_srcdir_defaulted=no
1202 fi
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1204 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1205 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1206 { (exit 1); exit 1; }; }
1207 fi
1208 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1209 ac_abs_confdir=`(
1210 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1211 { (exit 1); exit 1; }; }
1212 pwd)`
1213 # When building in place, set srcdir=.
1214 if test "$ac_abs_confdir" = "$ac_pwd"; then
1215 srcdir=.
1216 fi
1217 # Remove unnecessary trailing slashes from srcdir.
1218 # Double slashes in file names in object file debugging info
1219 # mess up M-x gdb in Emacs.
1220 case $srcdir in
1221 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1222 esac
1223 for ac_var in $ac_precious_vars; do
1224 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1225 eval ac_env_${ac_var}_value=\$${ac_var}
1226 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1227 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1228 done
1229
1230 #
1231 # Report the --help message.
1232 #
1233 if test "$ac_init_help" = "long"; then
1234 # Omit some internal or obsolete options to make the list less imposing.
1235 # This message is too long to be a string in the A/UX 3.1 sh.
1236 cat <<_ACEOF
1237 \`configure' configures this package to adapt to many kinds of systems.
1238
1239 Usage: $0 [OPTION]... [VAR=VALUE]...
1240
1241 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1242 VAR=VALUE. See below for descriptions of some of the useful variables.
1243
1244 Defaults for the options are specified in brackets.
1245
1246 Configuration:
1247 -h, --help display this help and exit
1248 --help=short display options specific to this package
1249 --help=recursive display the short help of all the included packages
1250 -V, --version display version information and exit
1251 -q, --quiet, --silent do not print \`checking...' messages
1252 --cache-file=FILE cache test results in FILE [disabled]
1253 -C, --config-cache alias for \`--cache-file=config.cache'
1254 -n, --no-create do not create output files
1255 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1256
1257 Installation directories:
1258 --prefix=PREFIX install architecture-independent files in PREFIX
1259 [$ac_default_prefix]
1260 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1261 [PREFIX]
1262
1263 By default, \`make install' will install all the files in
1264 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1265 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1266 for instance \`--prefix=\$HOME'.
1267
1268 For better control, use the options below.
1269
1270 Fine tuning of the installation directories:
1271 --bindir=DIR user executables [EPREFIX/bin]
1272 --sbindir=DIR system admin executables [EPREFIX/sbin]
1273 --libexecdir=DIR program executables [EPREFIX/libexec]
1274 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1275 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1276 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1277 --libdir=DIR object code libraries [EPREFIX/lib]
1278 --includedir=DIR C header files [PREFIX/include]
1279 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1280 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1281 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1282 --infodir=DIR info documentation [DATAROOTDIR/info]
1283 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1284 --mandir=DIR man documentation [DATAROOTDIR/man]
1285 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1286 --htmldir=DIR html documentation [DOCDIR]
1287 --dvidir=DIR dvi documentation [DOCDIR]
1288 --pdfdir=DIR pdf documentation [DOCDIR]
1289 --psdir=DIR ps documentation [DOCDIR]
1290 _ACEOF
1291
1292 cat <<\_ACEOF
1293
1294 Program names:
1295 --program-prefix=PREFIX prepend PREFIX to installed program names
1296 --program-suffix=SUFFIX append SUFFIX to installed program names
1297 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1298
1299 X features:
1300 --x-includes=DIR X include files are in DIR
1301 --x-libraries=DIR X library files are in DIR
1302
1303 System types:
1304 --build=BUILD configure for building on BUILD [guessed]
1305 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1306 _ACEOF
1307 fi
1308
1309 if test -n "$ac_init_help"; then
1310
1311 cat <<\_ACEOF
1312
1313 Optional Features:
1314 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1315 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1316 --enable-carbon-app[=DIR] [DIR=/Application]
1317 specify install directory for Emacs.app on Mac OS X
1318 --enable-asserts compile code with asserts enabled
1319 --enable-maintainer-mode enable make rules and dependencies not useful
1320 (and sometimes confusing) to the casual installer
1321 --enable-locallisppath=PATH
1322 directories Emacs should search for lisp files
1323 specific to this site
1324 --disable-largefile omit support for large files
1325
1326 Optional Packages:
1327 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1328 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1329 --without-gcc don't use GCC to compile Emacs if GCC is found
1330 --without-pop don't support POP mail retrieval with movemail
1331 --with-kerberos support Kerberos-authenticated POP
1332 --with-kerberos5 support Kerberos version 5 authenticated POP
1333 --with-hesiod support Hesiod to get the POP server host
1334 --without-sound don't compile with sound support
1335 --with-x-toolkit=KIT use an X toolkit
1336 (KIT = yes/lucid/athena/motif/gtk/no)
1337 --with-xpm use -lXpm for displaying XPM images
1338 --with-jpeg use -ljpeg for displaying JPEG images
1339 --with-tiff use -ltiff for displaying TIFF images
1340 --with-gif use -lungif (or -lgif) for displaying GIF images
1341 --with-png use -lpng for displaying PNG images
1342 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1343 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1344 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1345 --without-toolkit-scroll-bars
1346 don't use Motif or Xaw3d scroll bars
1347 --without-xim don't use X11 XIM
1348 --without-carbon don't use Carbon GUI on Mac OS X
1349 --with-x use the X Window System
1350
1351 Some influential environment variables:
1352 CC C compiler command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1355 nonstandard directory <lib dir>
1356 LIBS libraries to pass to the linker, e.g. -l<library>
1357 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1358 you have headers in a nonstandard directory <include dir>
1359 CPP C preprocessor
1360 XMKMF Path to xmkmf, Makefile generator for X Window System
1361
1362 Use these variables to override the choices made by `configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1364
1365 _ACEOF
1366 ac_status=$?
1367 fi
1368
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1373 ac_builddir=.
1374
1375 case "$ac_dir" in
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 *)
1378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384 esac ;;
1385 esac
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1390
1391 case $srcdir in
1392 .) # We are building in place.
1393 ac_srcdir=.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1400 *) # Relative name.
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 esac
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1406
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1410 echo &&
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1413 echo &&
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1415 else
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 fi || ac_status=$?
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1419 done
1420 fi
1421
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1424 cat <<\_ACEOF
1425 configure
1426 generated by GNU Autoconf 2.61
1427
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1432 _ACEOF
1433 exit
1434 fi
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1438
1439 It was created by $as_me, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1441
1442 $ $0 $@
1443
1444 _ACEOF
1445 exec 5>>config.log
1446 {
1447 cat <<_ASUNAME
1448 ## --------- ##
1449 ## Platform. ##
1450 ## --------- ##
1451
1452 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1453 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1454 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1455 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1456 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1457
1458 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1459 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1460
1461 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1462 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1463 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1464 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1465 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1466 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1467 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1468
1469 _ASUNAME
1470
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 for as_dir in $PATH
1473 do
1474 IFS=$as_save_IFS
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1477 done
1478 IFS=$as_save_IFS
1479
1480 } >&5
1481
1482 cat >&5 <<_ACEOF
1483
1484
1485 ## ----------- ##
1486 ## Core tests. ##
1487 ## ----------- ##
1488
1489 _ACEOF
1490
1491
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1497 ac_configure_args=
1498 ac_configure_args0=
1499 ac_configure_args1=
1500 ac_must_keep_next=false
1501 for ac_pass in 1 2
1502 do
1503 for ac_arg
1504 do
1505 case $ac_arg in
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1509 continue ;;
1510 *\'*)
1511 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1512 esac
1513 case $ac_pass in
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1515 2)
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1519 else
1520 case $ac_arg in
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1527 esac
1528 ;;
1529 -* ) ac_must_keep_next=true ;;
1530 esac
1531 fi
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1533 ;;
1534 esac
1535 done
1536 done
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1539
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1547 {
1548 echo
1549
1550 cat <<\_ASBOX
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1554 _ASBOX
1555 echo
1556 # The following way of writing the cache mishandles newlines in values,
1557 (
1558 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1559 eval ac_val=\$$ac_var
1560 case $ac_val in #(
1561 *${as_nl}*)
1562 case $ac_var in #(
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1565 esac
1566 case $ac_var in #(
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1569 esac ;;
1570 esac
1571 done
1572 (set) 2>&1 |
1573 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1575 sed -n \
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1578 ;; #(
1579 *)
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1581 ;;
1582 esac |
1583 sort
1584 )
1585 echo
1586
1587 cat <<\_ASBOX
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1591 _ASBOX
1592 echo
1593 for ac_var in $ac_subst_vars
1594 do
1595 eval ac_val=\$$ac_var
1596 case $ac_val in
1597 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1598 esac
1599 echo "$ac_var='\''$ac_val'\''"
1600 done | sort
1601 echo
1602
1603 if test -n "$ac_subst_files"; then
1604 cat <<\_ASBOX
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1608 _ASBOX
1609 echo
1610 for ac_var in $ac_subst_files
1611 do
1612 eval ac_val=\$$ac_var
1613 case $ac_val in
1614 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 esac
1616 echo "$ac_var='\''$ac_val'\''"
1617 done | sort
1618 echo
1619 fi
1620
1621 if test -s confdefs.h; then
1622 cat <<\_ASBOX
1623 ## ----------- ##
1624 ## confdefs.h. ##
1625 ## ----------- ##
1626 _ASBOX
1627 echo
1628 cat confdefs.h
1629 echo
1630 fi
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1634 } >&5
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1637 exit $exit_status
1638 ' 0
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1641 done
1642 ac_signal=0
1643
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1646
1647 # Predefined preprocessor variables.
1648
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1651 _ACEOF
1652
1653
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1656 _ACEOF
1657
1658
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1661 _ACEOF
1662
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1666 _ACEOF
1667
1668
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1671 _ACEOF
1672
1673
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1680 else
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1683 fi
1684 shift
1685 for ac_site_file
1686 do
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1691 . "$ac_site_file"
1692 fi
1693 done
1694
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1701 case $cache_file in
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1704 esac
1705 fi
1706 else
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1709 >$cache_file
1710 fi
1711
1712 ac_header_list="$ac_header_list sys/time.h"
1713 ac_header_list="$ac_header_list unistd.h"
1714 ac_func_list="$ac_func_list alarm"
1715 # Check that the precious variables saved in the cache have kept the same
1716 # value.
1717 ac_cache_corrupted=false
1718 for ac_var in $ac_precious_vars; do
1719 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1720 eval ac_new_set=\$ac_env_${ac_var}_set
1721 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1722 eval ac_new_val=\$ac_env_${ac_var}_value
1723 case $ac_old_set,$ac_new_set in
1724 set,)
1725 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1726 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1728 ,set)
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1730 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1732 ,);;
1733 *)
1734 if test "x$ac_old_val" != "x$ac_new_val"; then
1735 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1736 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1737 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1738 echo "$as_me: former value: $ac_old_val" >&2;}
1739 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1740 echo "$as_me: current value: $ac_new_val" >&2;}
1741 ac_cache_corrupted=:
1742 fi;;
1743 esac
1744 # Pass precious variables to config.status.
1745 if test "$ac_new_set" = set; then
1746 case $ac_new_val in
1747 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1748 *) ac_arg=$ac_var=$ac_new_val ;;
1749 esac
1750 case " $ac_configure_args " in
1751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1752 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1753 esac
1754 fi
1755 done
1756 if $ac_cache_corrupted; then
1757 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1758 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1759 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1760 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1761 { (exit 1); exit 1; }; }
1762 fi
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780 ac_ext=c
1781 ac_cpp='$CPP $CPPFLAGS'
1782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1785
1786
1787 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1788
1789
1790 test "$program_prefix" != NONE &&
1791 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1792 # Use a double $ so make ignores it.
1793 test "$program_suffix" != NONE &&
1794 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1795 # Double any \ or $. echo might interpret backslashes.
1796 # By default was `s,x,x', remove it if useless.
1797 cat <<\_ACEOF >conftest.sed
1798 s/[\\$]/&&/g;s/;s,x,x,$//
1799 _ACEOF
1800 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1801 rm -f conftest.sed
1802
1803
1804 lispdir='${datadir}/emacs/${version}/lisp'
1805 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1806 '${datadir}/emacs/site-lisp'
1807 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1808 etcdir='${datadir}/emacs/${version}/etc'
1809 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1810 docdir='${datadir}/emacs/${version}/etc'
1811 gamedir='${localstatedir}/games/emacs'
1812
1813 gameuser=games
1814
1815
1816 # Check whether --with-gcc was given.
1817 if test "${with_gcc+set}" = set; then
1818 withval=$with_gcc;
1819 fi
1820
1821
1822 # Check whether --with-pop was given.
1823 if test "${with_pop+set}" = set; then
1824 withval=$with_pop; if test "$withval" = yes; then
1825 cat >>confdefs.h <<\_ACEOF
1826 #define MAIL_USE_POP 1
1827 _ACEOF
1828
1829 else :
1830 fi
1831 else
1832 cat >>confdefs.h <<\_ACEOF
1833 #define MAIL_USE_POP 1
1834 _ACEOF
1835
1836 fi
1837
1838
1839
1840 # Check whether --with-kerberos was given.
1841 if test "${with_kerberos+set}" = set; then
1842 withval=$with_kerberos; if test "$withval" = yes; then
1843 cat >>confdefs.h <<\_ACEOF
1844 #define KERBEROS 1
1845 _ACEOF
1846
1847 fi
1848 fi
1849
1850
1851
1852 # Check whether --with-kerberos5 was given.
1853 if test "${with_kerberos5+set}" = set; then
1854 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1855 if test "${with_kerberos+set}" != set; then
1856 with_kerberos=yes
1857 cat >>confdefs.h <<\_ACEOF
1858 #define KERBEROS 1
1859 _ACEOF
1860
1861 fi
1862
1863 cat >>confdefs.h <<\_ACEOF
1864 #define KERBEROS5 1
1865 _ACEOF
1866
1867 fi
1868 fi
1869
1870
1871 # Check whether --with-hesiod was given.
1872 if test "${with_hesiod+set}" = set; then
1873 withval=$with_hesiod; if test "$withval" = yes; then
1874
1875 cat >>confdefs.h <<\_ACEOF
1876 #define HESIOD 1
1877 _ACEOF
1878
1879 fi
1880 fi
1881
1882
1883
1884 # Check whether --with-sound was given.
1885 if test "${with_sound+set}" = set; then
1886 withval=$with_sound;
1887 fi
1888
1889
1890
1891 # Check whether --with-x-toolkit was given.
1892 if test "${with_x_toolkit+set}" = set; then
1893 withval=$with_x_toolkit; case "${withval}" in
1894 y | ye | yes ) val=gtk ;;
1895 n | no ) val=no ;;
1896 l | lu | luc | luci | lucid ) val=lucid ;;
1897 a | at | ath | athe | athen | athena ) val=athena ;;
1898 m | mo | mot | moti | motif ) val=motif ;;
1899 g | gt | gtk ) val=gtk ;;
1900 * )
1901 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1902 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1903 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1904 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1905 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1906 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1907 { (exit 1); exit 1; }; }
1908 ;;
1909 esac
1910 with_x_toolkit=$val
1911
1912 fi
1913
1914
1915 # Check whether --with-xpm was given.
1916 if test "${with_xpm+set}" = set; then
1917 withval=$with_xpm;
1918 fi
1919
1920
1921 # Check whether --with-jpeg was given.
1922 if test "${with_jpeg+set}" = set; then
1923 withval=$with_jpeg;
1924 fi
1925
1926
1927 # Check whether --with-tiff was given.
1928 if test "${with_tiff+set}" = set; then
1929 withval=$with_tiff;
1930 fi
1931
1932
1933 # Check whether --with-gif was given.
1934 if test "${with_gif+set}" = set; then
1935 withval=$with_gif;
1936 fi
1937
1938
1939 # Check whether --with-png was given.
1940 if test "${with_png+set}" = set; then
1941 withval=$with_png;
1942 fi
1943
1944
1945 # Check whether --with-gpm was given.
1946 if test "${with_gpm+set}" = set; then
1947 withval=$with_gpm;
1948 fi
1949
1950
1951 # Check whether --with-gtk was given.
1952 if test "${with_gtk+set}" = set; then
1953 withval=$with_gtk;
1954 fi
1955
1956
1957 # Check whether --with-pkg-config-prog was given.
1958 if test "${with_pkg_config_prog+set}" = set; then
1959 withval=$with_pkg_config_prog;
1960 fi
1961
1962
1963 # Check whether --with-toolkit-scroll-bars was given.
1964 if test "${with_toolkit_scroll_bars+set}" = set; then
1965 withval=$with_toolkit_scroll_bars;
1966 fi
1967
1968
1969 # Check whether --with-xim was given.
1970 if test "${with_xim+set}" = set; then
1971 withval=$with_xim;
1972 fi
1973
1974
1975 # Check whether --with-carbon was given.
1976 if test "${with_carbon+set}" = set; then
1977 withval=$with_carbon;
1978 fi
1979
1980 # Check whether --enable-carbon-app was given.
1981 if test "${enable_carbon_app+set}" = set; then
1982 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1983 fi
1984
1985
1986 # Check whether --enable-asserts was given.
1987 if test "${enable_asserts+set}" = set; then
1988 enableval=$enable_asserts; USE_XASSERTS=$enableval
1989 else
1990 USE_XASSERTS=no
1991 fi
1992
1993
1994 # Check whether --enable-maintainer-mode was given.
1995 if test "${enable_maintainer_mode+set}" = set; then
1996 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1997 else
1998 USE_MAINTAINER_MODE=no
1999 fi
2000
2001 if test $USE_MAINTAINER_MODE = yes; then
2002 MAINT=
2003 else
2004 MAINT=#
2005 fi
2006
2007
2008 # Check whether --enable-locallisppath was given.
2009 if test "${enable_locallisppath+set}" = set; then
2010 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2011 locallisppath=
2012 elif test "${enableval}" != "yes"; then
2013 locallisppath=${enableval}
2014 fi
2015 fi
2016
2017
2018 #### Make srcdir absolute, if it isn't already. It's important to
2019 #### avoid running the path through pwd unnecessarily, since pwd can
2020 #### give you automounter prefixes, which can go away. We do all this
2021 #### so Emacs can find its files when run uninstalled.
2022 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2023 unset CDPATH
2024 case "${srcdir}" in
2025 /* ) ;;
2026 . )
2027 ## We may be able to use the $PWD environment variable to make this
2028 ## absolute. But sometimes PWD is inaccurate.
2029 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2030 ## but that tested only for a well-formed and valid PWD,
2031 ## it did not object when PWD was well-formed and valid but just wrong.
2032 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2033 then
2034 srcdir="$PWD"
2035 else
2036 srcdir="`(cd ${srcdir}; pwd)`"
2037 fi
2038 ;;
2039 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2040 esac
2041
2042 #### Check if the source directory already has a configured system in it.
2043 if test `pwd` != `(cd ${srcdir} && pwd)` \
2044 && test -f "${srcdir}/src/config.h" ; then
2045 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2046 as a build directory right now; it has been configured in its own
2047 right. To configure in another directory as well, you MUST
2048 use GNU make. If you do not have GNU make, then you must
2049 now do \`make distclean' in ${srcdir},
2050 and then run $0 again." >&5
2051 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2052 as a build directory right now; it has been configured in its own
2053 right. To configure in another directory as well, you MUST
2054 use GNU make. If you do not have GNU make, then you must
2055 now do \`make distclean' in ${srcdir},
2056 and then run $0 again." >&2;}
2057 fi
2058
2059 #### Given the configuration name, set machfile and opsysfile to the
2060 #### names of the m/*.h and s/*.h files we should use.
2061
2062 ### Canonicalize the configuration name.
2063
2064 ac_aux_dir=
2065 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2066 if test -f "$ac_dir/install-sh"; then
2067 ac_aux_dir=$ac_dir
2068 ac_install_sh="$ac_aux_dir/install-sh -c"
2069 break
2070 elif test -f "$ac_dir/install.sh"; then
2071 ac_aux_dir=$ac_dir
2072 ac_install_sh="$ac_aux_dir/install.sh -c"
2073 break
2074 elif test -f "$ac_dir/shtool"; then
2075 ac_aux_dir=$ac_dir
2076 ac_install_sh="$ac_aux_dir/shtool install -c"
2077 break
2078 fi
2079 done
2080 if test -z "$ac_aux_dir"; then
2081 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2082 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2083 { (exit 1); exit 1; }; }
2084 fi
2085
2086 # These three variables are undocumented and unsupported,
2087 # and are intended to be withdrawn in a future Autoconf release.
2088 # They can cause serious problems if a builder's source tree is in a directory
2089 # whose full name contains unusual characters.
2090 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2091 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2092 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2093
2094
2095 # Make sure we can run config.sub.
2096 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2097 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2098 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2099 { (exit 1); exit 1; }; }
2100
2101 { echo "$as_me:$LINENO: checking build system type" >&5
2102 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2103 if test "${ac_cv_build+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106 ac_build_alias=$build_alias
2107 test "x$ac_build_alias" = x &&
2108 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2109 test "x$ac_build_alias" = x &&
2110 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2111 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2112 { (exit 1); exit 1; }; }
2113 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2114 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2115 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2116 { (exit 1); exit 1; }; }
2117
2118 fi
2119 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2120 echo "${ECHO_T}$ac_cv_build" >&6; }
2121 case $ac_cv_build in
2122 *-*-*) ;;
2123 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2124 echo "$as_me: error: invalid value of canonical build" >&2;}
2125 { (exit 1); exit 1; }; };;
2126 esac
2127 build=$ac_cv_build
2128 ac_save_IFS=$IFS; IFS='-'
2129 set x $ac_cv_build
2130 shift
2131 build_cpu=$1
2132 build_vendor=$2
2133 shift; shift
2134 # Remember, the first character of IFS is used to create $*,
2135 # except with old shells:
2136 build_os=$*
2137 IFS=$ac_save_IFS
2138 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2139
2140
2141 { echo "$as_me:$LINENO: checking host system type" >&5
2142 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2143 if test "${ac_cv_host+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 else
2146 if test "x$host_alias" = x; then
2147 ac_cv_host=$ac_cv_build
2148 else
2149 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2150 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2151 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2152 { (exit 1); exit 1; }; }
2153 fi
2154
2155 fi
2156 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2157 echo "${ECHO_T}$ac_cv_host" >&6; }
2158 case $ac_cv_host in
2159 *-*-*) ;;
2160 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2161 echo "$as_me: error: invalid value of canonical host" >&2;}
2162 { (exit 1); exit 1; }; };;
2163 esac
2164 host=$ac_cv_host
2165 ac_save_IFS=$IFS; IFS='-'
2166 set x $ac_cv_host
2167 shift
2168 host_cpu=$1
2169 host_vendor=$2
2170 shift; shift
2171 # Remember, the first character of IFS is used to create $*,
2172 # except with old shells:
2173 host_os=$*
2174 IFS=$ac_save_IFS
2175 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2176
2177
2178 canonical=$host
2179 configuration=${host_alias-${build_alias-$host}}
2180
2181
2182
2183 ### If you add support for a new configuration, add code to this
2184 ### switch statement to recognize your configuration name and select
2185 ### the appropriate operating system and machine description files.
2186
2187 ### You would hope that you could choose an m/*.h file pretty much
2188 ### based on the machine portion of the configuration name, and an s-
2189 ### file based on the operating system portion. However, it turns out
2190 ### that each m/*.h file is pretty manufacturer-specific - for
2191 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2192 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2193 ### machines. So we basically have to have a special case for each
2194 ### configuration name.
2195 ###
2196 ### As far as handling version numbers on operating systems is
2197 ### concerned, make sure things will fail in a fixable way. If
2198 ### /etc/MACHINES doesn't say anything about version numbers, be
2199 ### prepared to handle anything reasonably. If version numbers
2200 ### matter, be sure /etc/MACHINES says something about it.
2201 ###
2202 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2203 ### "System V Release 4"; he writes, "The old convention encouraged
2204 ### confusion between `system' and `release' levels'."
2205
2206 machine='' opsys='' unported=no
2207 case "${canonical}" in
2208
2209 ## FreeBSD ports
2210 *-*-freebsd* )
2211 opsys=freebsd
2212 case "${canonical}" in
2213 alpha*-*-freebsd*) machine=alpha ;;
2214 ia64-*-freebsd*) machine=ia64 ;;
2215 sparc64-*-freebsd*) machine=sparc ;;
2216 powerpc-*-freebsd*) machine=macppc ;;
2217 i[3456]86-*-freebsd*) machine=intel386 ;;
2218 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2219 esac
2220 ;;
2221
2222 ## NetBSD ports
2223 *-*-netbsd* )
2224 opsys=netbsd
2225 if test -f /usr/lib/crti.o; then
2226
2227 cat >>confdefs.h <<\_ACEOF
2228 #define HAVE_CRTIN
2229 _ACEOF
2230
2231 fi
2232
2233 case "${canonical}" in
2234 alpha*-*-netbsd*) machine=alpha ;;
2235 i[3456]86-*-netbsd*) machine=intel386 ;;
2236 m68k-*-netbsd*)
2237 # This is somewhat bogus.
2238 machine=hp9000s300 ;;
2239 mips-*-netbsd*) machine=pmax ;;
2240 mipsel-*-netbsd*) machine=pmax ;;
2241 mipseb-*-netbsd*) machine=pmax ;;
2242 ns32k-*-netbsd*) machine=ns32000 ;;
2243 powerpc-*-netbsd*) machine=macppc ;;
2244 sparc*-*-netbsd*) machine=sparc ;;
2245 vax-*-netbsd*) machine=vax ;;
2246 arm-*-netbsd*) machine=arm ;;
2247 x86_64-*-netbsd*) machine=amdx86-64 ;;
2248 hppa-*-netbsd*) machine=hp800 ;;
2249 shle-*-netbsd*) machine=sh3el ;;
2250 esac
2251 ;;
2252
2253 ## OpenBSD ports
2254 *-*-openbsd* )
2255 opsys=openbsd
2256 case "${canonical}" in
2257 alpha*-*-openbsd*) machine=alpha ;;
2258 arm-*-openbsd*) machine=arm ;;
2259 hppa-*-openbsd*) machine=hp9000s300 ;;
2260 i386-*-openbsd*) machine=intel386 ;;
2261 m68k-*-openbsd*) machine=hp9000s300 ;;
2262 m88k-*-openbsd*) machine=aviion ;;
2263 mips64-*-openbsd*) machine=mips64 ;;
2264 powerpc-*-openbsd*) machine=macppc ;;
2265 sh-*-openbsd*) machine=sh3el ;;
2266 sparc*-*-openbsd*) machine=sparc ;;
2267 vax-*-openbsd*) machine=vax ;;
2268 x86_64-*-openbsd*) machine=amdx86-64 ;;
2269 esac
2270 ;;
2271
2272 ## LynxOS ports
2273 *-*-lynxos* )
2274 opsys=lynxos
2275 case "${canonical}" in
2276 i[3456]86-*-lynxos*) machine=intel386 ;;
2277 powerpc-*-lynxos*) machine=powerpc ;;
2278 esac
2279 ;;
2280
2281 ## Acorn RISCiX:
2282 arm-acorn-riscix1.1* )
2283 machine=acorn opsys=riscix1-1
2284 ;;
2285 arm-acorn-riscix1.2* | arm-acorn-riscix )
2286 ## This name is riscix12 instead of riscix1.2
2287 ## to avoid a file name conflict on MSDOS.
2288 machine=acorn opsys=riscix12
2289 ;;
2290
2291 ## BSDI ports
2292 *-*-bsdi* )
2293 opsys=bsdi
2294 case "${canonical}" in
2295 i[345]86-*-bsdi*) machine=intel386 ;;
2296 sparc-*-bsdi*) machine=sparc ;;
2297 powerpc-*-bsdi*) machine=macppc ;;
2298 esac
2299 case "${canonical}" in
2300 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2301 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2302 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2303 *-*-bsdi3* ) opsys=bsdos3 ;;
2304 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2305 esac
2306 ;;
2307
2308 ## Alliant machines
2309 ## Strictly speaking, we need the version of the alliant operating
2310 ## system to choose the right machine file, but currently the
2311 ## configuration name doesn't tell us enough to choose the right
2312 ## one; we need to give alliants their own operating system name to
2313 ## do this right. When someone cares, they can help us.
2314 fx80-alliant-* )
2315 machine=alliant4 opsys=bsd4-2
2316 ;;
2317 i860-alliant-* )
2318 machine=alliant-2800 opsys=bsd4-3
2319 ;;
2320
2321 ## Alpha (DEC) machines.
2322 alpha*-dec-osf* )
2323 machine=alpha opsys=osf1
2324 # This is needed to find X11R6.1 libraries for certain tests.
2325 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2326 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2327 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2328 # due to non-traditional preprocessing with the current compiler
2329 # defaults. OSF 4 can also have that compiler version, and there
2330 # seems always to have been a usable /usr/bin/cpp.
2331 NON_GNU_CPP=/usr/bin/cpp
2332 case "${canonical}" in
2333 alpha*-dec-osf[5-9]*)
2334 opsys=osf5-0 ;;
2335 esac
2336 ;;
2337
2338 alpha*-*-linux-gnu* )
2339 machine=alpha opsys=gnu-linux
2340 ;;
2341
2342 arm*-*-linux-gnu* )
2343 machine=arm opsys=gnu-linux
2344 ;;
2345
2346 ## Altos 3068
2347 m68*-altos-sysv* )
2348 machine=altos opsys=usg5-2
2349 ;;
2350
2351 ## Amdahl UTS
2352 580-amdahl-sysv* )
2353 machine=amdahl opsys=usg5-2-2
2354 ;;
2355
2356 ## Apollo, Domain/OS
2357 m68*-apollo-* )
2358 machine=apollo opsys=bsd4-3
2359 ;;
2360
2361 ## Apple Darwin / Mac OS X
2362 *-apple-darwin* )
2363 case "${canonical}" in
2364 i[3456]86-* ) machine=intel386 ;;
2365 powerpc-* ) machine=powermac ;;
2366 * ) unported=yes ;;
2367 esac
2368 opsys=darwin
2369 # Define CPP as follows to make autoconf work correctly.
2370 CPP="${CC-cc} -E -no-cpp-precomp"
2371 # Use fink packages if available.
2372 if test -d /sw/include && test -d /sw/lib; then
2373 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2374 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2375 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2376 fi
2377 ;;
2378
2379 ## AT&T 3b2, 3b5, 3b15, 3b20
2380 we32k-att-sysv* )
2381 machine=att3b opsys=usg5-2-2
2382 ;;
2383
2384 ## AT&T 3b1 - The Mighty Unix PC!
2385 m68*-att-sysv* )
2386 machine=7300 opsys=usg5-2-2
2387 ;;
2388
2389 ## Bull dpx20
2390 rs6000-bull-bosx* )
2391 machine=ibmrs6000 opsys=aix3-2
2392 ;;
2393
2394 ## Bull dpx2
2395 m68*-bull-sysv3* )
2396 machine=dpx2 opsys=usg5-3
2397 ;;
2398
2399 ## Bull sps7
2400 m68*-bull-sysv2* )
2401 machine=sps7 opsys=usg5-2
2402 ;;
2403
2404 ## CCI 5/32, 6/32 -- see "Tahoe".
2405
2406 ## Celerity
2407 ## I don't know what configuration name to use for this; config.sub
2408 ## doesn't seem to know anything about it. Hey, Celerity users, get
2409 ## in touch with us!
2410 celerity-celerity-bsd* )
2411 machine=celerity opsys=bsd4-2
2412 ;;
2413
2414 ## Clipper
2415 ## What operating systems does this chip run that Emacs has been
2416 ## tested on?
2417 clipper-* )
2418 machine=clipper
2419 ## We'll use the catch-all code at the bottom to guess the
2420 ## operating system.
2421 ;;
2422
2423 ## Compaq Nonstop
2424 mips-compaq-nonstopux* )
2425 machine=nonstopux opsys=nonstopux
2426 ;;
2427
2428 ## Convex
2429 *-convex-bsd* | *-convex-convexos* )
2430 machine=convex opsys=bsd4-3
2431 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2432 NON_GNU_CPP="cc -E -P"
2433 ;;
2434
2435 ## Cubix QBx/386
2436 i[3456]86-cubix-sysv* )
2437 machine=intel386 opsys=usg5-3
2438 ;;
2439
2440 ## Cydra 5
2441 cydra*-cydrome-sysv* )
2442 machine=cydra5 opsys=usg5-3
2443 ;;
2444
2445 ## Data General AViiON Machines
2446 ## DG changed naming conventions with the release of 5.4.4.10, they
2447 ## dropped the initial 5.4 but left the intervening R. Because of the
2448 ## R this shouldn't conflict with older versions of the OS (which I
2449 ## think were named like dgux4.*). In addition, DG new AViiONs series
2450 ## uses either Motorola M88k or Intel Pentium CPUs.
2451 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2452 machine=aviion opsys=dgux4
2453 ;;
2454 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2455 ## This name is dgux5-4-3 instead of dgux5-4r3
2456 ## to avoid a file name conflict on MSDOS.
2457 machine=aviion opsys=dgux5-4-3
2458 ;;
2459 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2460 machine=aviion opsys=dgux5-4r2
2461 ;;
2462 m88k-dg-dgux* )
2463 machine=aviion opsys=dgux
2464 ;;
2465
2466 ## Data General AViiON Intel (x86) Machines
2467 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2468 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2469 i[345]86-dg-dguxR4* )
2470 machine=aviion-intel opsys=dgux4
2471 ;;
2472
2473 ## DECstations
2474 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2475 machine=pmax opsys=bsd4-2
2476 ;;
2477 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2478 machine=pmax opsys=bsd4-3
2479 ;;
2480 mips-dec-ultrix* )
2481 machine=pmax opsys=ultrix4-3
2482 ;;
2483 mips-dec-osf* )
2484 machine=pmax opsys=osf1
2485 ;;
2486 mips-dec-mach_bsd4.3* )
2487 machine=pmax opsys=mach-bsd4-3
2488 ;;
2489
2490 ## Motorola Delta machines
2491 m68k-motorola-sysv* | m68000-motorola-sysv* )
2492 machine=delta opsys=usg5-3
2493 if test -z "`type gnucc | grep 'not found'`"
2494 then
2495 if test -s /etc/167config
2496 then CC="gnucc -m68040"
2497 else CC="gnucc -m68881"
2498 fi
2499 else
2500 if test -z "`type gcc | grep 'not found'`"
2501 then CC=gcc
2502 else CC=cc
2503 fi
2504 fi
2505 ;;
2506 m88k-motorola-sysv4* )
2507 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2508 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2509 # I hope there are not other 4.0 versions for this machine
2510 # which really need usg5-4 instead.
2511 machine=delta88k opsys=usg5-4-2
2512 ;;
2513 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2514 machine=delta88k opsys=usg5-3
2515 ;;
2516
2517 ## Dual machines
2518 m68*-dual-sysv* )
2519 machine=dual opsys=usg5-2
2520 ;;
2521 m68*-dual-uniplus* )
2522 machine=dual opsys=unipl5-2
2523 ;;
2524
2525 ## Elxsi 6400
2526 elxsi-elxsi-sysv* )
2527 machine=elxsi opsys=usg5-2
2528 ;;
2529
2530 ## Encore machines
2531 ns16k-encore-bsd* )
2532 machine=ns16000 opsys=umax
2533 ;;
2534
2535 ## The GEC 63 - apparently, this port isn't really finished yet.
2536 # I'm sure we finished off the last of the machines, though. -- fx
2537
2538 ## Gould Power Node and NP1
2539 pn-gould-bsd4.2* )
2540 machine=gould opsys=bsd4-2
2541 ;;
2542 pn-gould-bsd4.3* )
2543 machine=gould opsys=bsd4-3
2544 ;;
2545 np1-gould-bsd* )
2546 machine=gould-np1 opsys=bsd4-3
2547 ;;
2548
2549 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2550 ## as far as Emacs is concerned).
2551 m88k-harris-cxux* )
2552 # Build needs to be different on 7.0 and later releases
2553 case "`uname -r`" in
2554 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2555 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2556 esac
2557 NON_GNU_CPP="/lib/cpp"
2558 ;;
2559 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2560 m68k-harris-cxux* )
2561 machine=nh3000 opsys=cxux
2562 ;;
2563 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2564 powerpc-harris-powerunix )
2565 machine=nh6000 opsys=powerunix
2566 NON_GNU_CPP="cc -Xo -E -P"
2567 ;;
2568 ## SR2001/SR2201 running HI-UX/MPP
2569 hppa1.1-hitachi-hiuxmpp* )
2570 machine=sr2k opsys=hiuxmpp
2571 ;;
2572 hppa1.1-hitachi-hiuxwe2* )
2573 machine=sr2k opsys=hiuxwe2
2574 ;;
2575 ## Honeywell XPS100
2576 xps*-honeywell-sysv* )
2577 machine=xps100 opsys=usg5-2
2578 ;;
2579
2580 ## HP 9000 series 200 or 300
2581 m68*-hp-bsd* )
2582 machine=hp9000s300 opsys=bsd4-3
2583 ;;
2584 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2585 m68*-hp-hpux* )
2586 case "`uname -r`" in
2587 ## Someone's system reports A.B8.05 for this.
2588 ## I wonder what other possibilities there are.
2589 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2590 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2591 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2592 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2593 *) machine=hp9000s300 opsys=hpux ;;
2594 esac
2595 ;;
2596
2597 ## HP 9000 series 700 and 800, running HP/UX
2598 hppa*-hp-hpux7* )
2599 machine=hp800 opsys=hpux
2600 ;;
2601 hppa*-hp-hpux8* )
2602 machine=hp800 opsys=hpux8
2603 ;;
2604 hppa*-hp-hpux9shr* )
2605 machine=hp800 opsys=hpux9shr
2606 ;;
2607 hppa*-hp-hpux9* )
2608 machine=hp800 opsys=hpux9
2609 ;;
2610 hppa*-hp-hpux10.2* )
2611 machine=hp800 opsys=hpux10-20
2612 ;;
2613 hppa*-hp-hpux10* )
2614 machine=hp800 opsys=hpux10
2615 ;;
2616 hppa*-hp-hpux1[1-9]* )
2617 machine=hp800 opsys=hpux11
2618 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2619 ;;
2620
2621 hppa*-*-linux-gnu* )
2622 machine=hp800 opsys=gnu-linux
2623 ;;
2624
2625 ## HP 9000 series 700 and 800, running HP/UX
2626 hppa*-hp-hpux* )
2627 ## Cross-compilation? Nah!
2628 case "`uname -r`" in
2629 ## Someone's system reports A.B8.05 for this.
2630 ## I wonder what other possibilities there are.
2631 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2632 *.08.* ) machine=hp800 opsys=hpux8 ;;
2633 *.09.* ) machine=hp800 opsys=hpux9 ;;
2634 *) machine=hp800 opsys=hpux10 ;;
2635 esac
2636 ;;
2637 hppa*-*-nextstep* )
2638 machine=hp800 opsys=nextstep
2639 ;;
2640
2641 ## Orion machines
2642 orion-orion-bsd* )
2643 machine=orion opsys=bsd4-2
2644 ;;
2645 clipper-orion-bsd* )
2646 machine=orion105 opsys=bsd4-2
2647 ;;
2648
2649 ## IBM machines
2650 i[3456]86-ibm-aix1.1* )
2651 machine=ibmps2-aix opsys=usg5-2-2
2652 ;;
2653 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2654 machine=ibmps2-aix opsys=usg5-3
2655 ;;
2656 i370-ibm-aix*)
2657 machine=ibm370aix opsys=usg5-3
2658 ;;
2659 s390-*-linux-gnu* )
2660 machine=ibms390 opsys=gnu-linux
2661 ;;
2662 s390x-*-linux-gnu* )
2663 machine=ibms390x opsys=gnu-linux
2664 ;;
2665 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2666 machine=ibmrs6000 opsys=aix3-1
2667 ;;
2668 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2669 machine=ibmrs6000 opsys=aix3-2-5
2670 ;;
2671 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2672 machine=ibmrs6000 opsys=aix4-1
2673 ;;
2674 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2675 machine=ibmrs6000 opsys=aix4-2
2676 ;;
2677 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2678 machine=ibmrs6000 opsys=aix4-2
2679 ;;
2680 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2681 machine=ibmrs6000 opsys=aix4-2
2682 ;;
2683 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2684 machine=ibmrs6000 opsys=aix4
2685 ;;
2686 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2687 machine=ibmrs6000 opsys=aix4-1
2688 ;;
2689 rs6000-ibm-aix* | powerpc-ibm-aix* )
2690 machine=ibmrs6000 opsys=aix3-2
2691 ;;
2692 romp-ibm-bsd4.3* )
2693 machine=ibmrt opsys=bsd4-3
2694 ;;
2695 romp-ibm-bsd4.2* )
2696 machine=ibmrt opsys=bsd4-2
2697 ;;
2698 romp-ibm-aos4.3* )
2699 machine=ibmrt opsys=bsd4-3
2700 ;;
2701 romp-ibm-aos4.2* )
2702 machine=ibmrt opsys=bsd4-2
2703 ;;
2704 romp-ibm-aos* )
2705 machine=ibmrt opsys=bsd4-3
2706 ;;
2707 romp-ibm-bsd* )
2708 machine=ibmrt opsys=bsd4-3
2709 ;;
2710 romp-ibm-aix* )
2711 machine=ibmrt-aix opsys=usg5-2-2
2712 ;;
2713
2714 ## Integrated Solutions `Optimum V'
2715 m68*-isi-bsd4.2* )
2716 machine=isi-ov opsys=bsd4-2
2717 ;;
2718 m68*-isi-bsd4.3* )
2719 machine=isi-ov opsys=bsd4-3
2720 ;;
2721
2722 ## Intel 386 machines where we do care about the manufacturer
2723 i[3456]86-intsys-sysv* )
2724 machine=is386 opsys=usg5-2-2
2725 ;;
2726
2727 ## Prime EXL
2728 i[3456]86-prime-sysv* )
2729 machine=i386 opsys=usg5-3
2730 ;;
2731
2732 ## Sequent Symmetry running Dynix
2733 i[3456]86-sequent-bsd* )
2734 machine=symmetry opsys=bsd4-3
2735 ;;
2736
2737 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2738 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2739 machine=sequent-ptx opsys=ptx4
2740 NON_GNU_CPP=/lib/cpp
2741 ;;
2742
2743 ## Sequent Symmetry running DYNIX/ptx
2744 ## Use the old cpp rather than the newer ANSI one.
2745 i[3456]86-sequent-ptx* )
2746 machine=sequent-ptx opsys=ptx
2747 NON_GNU_CPP="/lib/cpp"
2748 ;;
2749
2750 ## ncr machine running svr4.3.
2751 i[3456]86-ncr-sysv4.3 )
2752 machine=ncr386 opsys=usg5-4-3
2753 ;;
2754
2755 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2756 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2757 i[3456]86-ncr-sysv* )
2758 machine=ncr386 opsys=usg5-4-2
2759 ;;
2760
2761 ## Intel Paragon OSF/1
2762 i860-intel-osf1* )
2763 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2764 ;;
2765
2766 ## Intel 860
2767 i860-*-sysv4* )
2768 machine=i860 opsys=usg5-4
2769 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2770 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2771 ;;
2772
2773 ## Macintosh PowerPC
2774 powerpc*-*-linux-gnu* )
2775 machine=macppc opsys=gnu-linux
2776 ;;
2777
2778 ## Masscomp machines
2779 m68*-masscomp-rtu* )
2780 machine=masscomp opsys=rtu
2781 ;;
2782
2783 ## Megatest machines
2784 m68*-megatest-bsd* )
2785 machine=mega68 opsys=bsd4-2
2786 ;;
2787
2788 ## Workstations sold by MIPS
2789 ## This is not necessarily all workstations using the MIPS processor -
2790 ## Irises are produced by SGI, and DECstations by DEC.
2791
2792 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2793 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2794 ## it gives for choosing between the alternatives seems to be "Use
2795 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2796 ## the BSD world." I'll assume that these are instructions for
2797 ## handling two odd situations, and that every other situation
2798 ## should use mips.h and usg5-2-2, they being listed first.
2799 mips-mips-usg* )
2800 machine=mips4
2801 ## Fall through to the general code at the bottom to decide on the OS.
2802 ;;
2803 mips-mips-riscos4* )
2804 machine=mips4 opsys=bsd4-3
2805 NON_GNU_CC="cc -systype bsd43"
2806 NON_GNU_CPP="cc -systype bsd43 -E"
2807 ;;
2808 mips-mips-riscos5* )
2809 machine=mips4 opsys=riscos5
2810 NON_GNU_CC="cc -systype bsd43"
2811 NON_GNU_CPP="cc -systype bsd43 -E"
2812 ;;
2813 mips-mips-bsd* )
2814 machine=mips opsys=bsd4-3
2815 ;;
2816 mips-mips-* )
2817 machine=mips opsys=usg5-2-2
2818 ;;
2819
2820 ## NeXT
2821 m68*-next-* | m68k-*-nextstep* )
2822 machine=m68k opsys=nextstep
2823 ;;
2824
2825 ## The complete machine from National Semiconductor
2826 ns32k-ns-genix* )
2827 machine=ns32000 opsys=usg5-2
2828 ;;
2829
2830 ## NCR machines
2831 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2832 machine=tower32 opsys=usg5-2-2
2833 ;;
2834 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2835 machine=tower32v3 opsys=usg5-3
2836 ;;
2837
2838 ## NEC EWS4800
2839 mips-nec-sysv4*)
2840 machine=ews4800 opsys=ux4800
2841 ;;
2842
2843 ## Nixdorf Targon 31
2844 m68*-nixdorf-sysv* )
2845 machine=targon31 opsys=usg5-2-2
2846 ;;
2847
2848 ## Nu (TI or LMI)
2849 m68*-nu-sysv* )
2850 machine=nu opsys=usg5-2
2851 ;;
2852
2853 ## Plexus
2854 m68*-plexus-sysv* )
2855 machine=plexus opsys=usg5-2
2856 ;;
2857
2858 ## Pyramid machines
2859 ## I don't really have any idea what sort of processor the Pyramid has,
2860 ## so I'm assuming it is its own architecture.
2861 pyramid-pyramid-bsd* )
2862 machine=pyramid opsys=bsd4-2
2863 ;;
2864
2865 ## Sequent Balance
2866 ns32k-sequent-bsd4.2* )
2867 machine=sequent opsys=bsd4-2
2868 ;;
2869 ns32k-sequent-bsd4.3* )
2870 machine=sequent opsys=bsd4-3
2871 ;;
2872
2873 ## Siemens Nixdorf
2874 mips-siemens-sysv* | mips-sni-sysv*)
2875 machine=mips-siemens opsys=usg5-4
2876 NON_GNU_CC=/usr/ccs/bin/cc
2877 NON_GNU_CPP=/usr/ccs/lib/cpp
2878 ;;
2879
2880 ## Silicon Graphics machines
2881 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2882 m68*-sgi-iris3.5* )
2883 machine=irist opsys=iris3-5
2884 ;;
2885 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2886 machine=irist opsys=iris3-6
2887 ;;
2888 ## Iris 4D
2889 mips-sgi-irix3* )
2890 machine=iris4d opsys=irix3-3
2891 ;;
2892 mips-sgi-irix4* )
2893 machine=iris4d opsys=irix4-0
2894 ;;
2895 mips-sgi-irix6.5 )
2896 machine=iris4d opsys=irix6-5
2897 # Without defining _LANGUAGE_C, things get masked out in the headers
2898 # so that, for instance, grepping for `free' in stdlib.h fails and
2899 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2900 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2901 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2902 ;;
2903 mips-sgi-irix6* )
2904 machine=iris4d opsys=irix6-0
2905 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2906 # but presumably it does no harm.
2907 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2908 # -32 probably isn't necessary in later v.6s -- anyone know which?
2909 NON_GCC_TEST_OPTIONS=-32
2910 ;;
2911 mips-sgi-irix5.[01]* )
2912 machine=iris4d opsys=irix5-0
2913 ;;
2914 mips-sgi-irix5* | mips-sgi-irix* )
2915 machine=iris4d opsys=irix5-2
2916 ;;
2917
2918 ## SONY machines
2919 m68*-sony-bsd4.2* )
2920 machine=news opsys=bsd4-2
2921 ;;
2922 m68*-sony-bsd4.3* )
2923 machine=news opsys=bsd4-3
2924 ;;
2925 m68*-sony-newsos3* | m68*-sony-news3*)
2926 machine=news opsys=bsd4-3
2927 ;;
2928 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2929 machine=news-risc opsys=bsd4-3
2930 ;;
2931 mips-sony-newsos6* )
2932 machine=news-r6 opsys=newsos6
2933 ;;
2934 mips-sony-news* )
2935 machine=news-risc opsys=newsos5
2936 ;;
2937
2938 ## Stride
2939 m68*-stride-sysv* )
2940 machine=stride opsys=usg5-2
2941 ;;
2942
2943 ## Suns
2944 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2945 machine=sparc opsys=gnu-linux
2946 ;;
2947
2948 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2949 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2950 | rs6000-*-solaris2*)
2951 case "${canonical}" in
2952 m68*-sunos1* ) machine=sun1 ;;
2953 m68*-sunos2* ) machine=sun2 ;;
2954 m68* ) machine=sun3 ;;
2955 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2956 i[3456]86-*-* ) machine=intel386 ;;
2957 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2958 powerpcle* ) machine=powerpcle ;;
2959 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2960 sparc* ) machine=sparc ;;
2961 * ) unported=yes ;;
2962 esac
2963 case "${canonical}" in
2964 ## The Sun386 didn't get past 4.0.
2965 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2966 *-sunos4.0* ) opsys=sunos4-0 ;;
2967 *-sunos4.1.[3-9]*noshare )
2968 ## This name is sunos413 instead of sunos4-1-3
2969 ## to avoid a file name conflict on MSDOS.
2970 opsys=sunos413
2971 NON_GNU_CPP=/usr/lib/cpp
2972 NON_GCC_TEST_OPTIONS=-Bstatic
2973 GCC_TEST_OPTIONS=-static
2974 ;;
2975 *-sunos4.1.[3-9]* | *-sunos4shr*)
2976 opsys=sunos4shr
2977 NON_GNU_CPP=/usr/lib/cpp
2978 ;;
2979 *-sunos4* | *-sunos )
2980 opsys=sunos4-1
2981 NON_GCC_TEST_OPTIONS=-Bstatic
2982 GCC_TEST_OPTIONS=-static
2983 ;;
2984 *-sunos5.3* | *-solaris2.3* )
2985 opsys=sol2-3
2986 NON_GNU_CPP=/usr/ccs/lib/cpp
2987 ;;
2988 *-sunos5.4* | *-solaris2.4* )
2989 opsys=sol2-4
2990 NON_GNU_CPP=/usr/ccs/lib/cpp
2991 RANLIB="ar -ts"
2992 ;;
2993 *-sunos5.5* | *-solaris2.5* )
2994 opsys=sol2-5
2995 NON_GNU_CPP=/usr/ccs/lib/cpp
2996 RANLIB="ar -ts"
2997 ;;
2998 *-sunos5.6* | *-solaris2.6* )
2999 opsys=sol2-6
3000 NON_GNU_CPP=/usr/ccs/lib/cpp
3001 RANLIB="ar -ts"
3002 ;;
3003 *-sunos5* | *-solaris* )
3004 opsys=sol2-6
3005 emacs_check_sunpro_c=yes
3006 NON_GNU_CPP=/usr/ccs/lib/cpp
3007 ;;
3008 * ) opsys=bsd4-2 ;;
3009 esac
3010 ## Watch out for a compiler that we know will not work.
3011 case "${canonical}" in
3012 *-solaris* | *-sunos5* )
3013 if [ "x$CC" = x/usr/ucb/cc ]; then
3014 ## /usr/ucb/cc doesn't work;
3015 ## we should find some other compiler that does work.
3016 unset CC
3017 fi
3018 ;;
3019 *) ;;
3020 esac
3021 ;;
3022 sparc-*-nextstep* )
3023 machine=sparc opsys=nextstep
3024 ;;
3025
3026 ## Tadpole 68k
3027 m68*-tadpole-sysv* )
3028 machine=tad68k opsys=usg5-3
3029 ;;
3030
3031 ## Tahoe machines
3032 tahoe-tahoe-bsd4.2* )
3033 machine=tahoe opsys=bsd4-2
3034 ;;
3035 tahoe-tahoe-bsd4.3* )
3036 machine=tahoe opsys=bsd4-3
3037 ;;
3038
3039 ## Tandem Integrity S2
3040 mips-tandem-sysv* )
3041 machine=tandem-s2 opsys=usg5-3
3042 ;;
3043
3044 ## Tektronix XD88
3045 m88k-tektronix-sysv3* )
3046 machine=tekxd88 opsys=usg5-3
3047 ;;
3048
3049 ## Tektronix 16000 box (6130?)
3050 ns16k-tektronix-bsd* )
3051 machine=ns16000 opsys=bsd4-2
3052 ;;
3053 ## Tektronix 4300
3054 ## src/m/tek4300.h hints that this is a m68k machine.
3055 m68*-tektronix-bsd* )
3056 machine=tek4300 opsys=bsd4-3
3057 ;;
3058
3059 ## Titan P2 or P3
3060 ## We seem to have lost the machine-description file titan.h!
3061 titan-titan-sysv* )
3062 machine=titan opsys=usg5-3
3063 ;;
3064
3065 ## Ustation E30 (SS5E)
3066 m68*-unisys-uniplus* )
3067 machine=ustation opsystem=unipl5-2
3068 ;;
3069
3070 ## Vaxen.
3071 vax-dec-* )
3072 machine=vax
3073 case "${canonical}" in
3074 *-bsd4.1* ) opsys=bsd4-1 ;;
3075 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3076 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3077 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3078 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3079 *-vms* ) opsys=vms ;;
3080 * ) unported=yes
3081 esac
3082 ;;
3083
3084 ## Whitechapel MG1
3085 ns16k-whitechapel-* )
3086 machine=mg1
3087 ## We don't know what sort of OS runs on these; we'll let the
3088 ## operating system guessing code below try.
3089 ;;
3090
3091 ## Wicat
3092 m68*-wicat-sysv* )
3093 machine=wicat opsys=usg5-2
3094 ;;
3095
3096 ## IA-64
3097 ia64*-*-linux* )
3098 machine=ia64 opsys=gnu-linux
3099 ;;
3100
3101 ## Intel 386 machines where we don't care about the manufacturer
3102 i[3456]86-*-* )
3103 machine=intel386
3104 case "${canonical}" in
3105 *-cygwin ) opsys=cygwin ;;
3106 *-darwin* ) opsys=darwin
3107 CPP="${CC-cc} -E -no-cpp-precomp"
3108 ;;
3109 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3110 *-isc2.2* ) opsys=isc2-2 ;;
3111 *-isc4.0* ) opsys=isc4-0 ;;
3112 *-isc4.* ) opsys=isc4-1
3113 GCC_TEST_OPTIONS=-posix
3114 NON_GCC_TEST_OPTIONS=-Xp
3115 ;;
3116 *-isc* ) opsys=isc3-0 ;;
3117 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3118 *-esix* ) opsys=esix ;;
3119 *-xenix* ) opsys=xenix ;;
3120 *-linux-gnu* ) opsys=gnu-linux ;;
3121 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3122 *-sco3.2v5* ) opsys=sco5
3123 NON_GNU_CPP=/lib/cpp
3124 # Prevent -belf from being passed to $CPP.
3125 # /lib/cpp does not accept it.
3126 OVERRIDE_CPPFLAGS=" "
3127 ;;
3128 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3129 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3130 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3131 *-386bsd* ) opsys=386bsd ;;
3132 *-nextstep* ) opsys=nextstep ;;
3133 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3134 esac
3135 ;;
3136
3137 ## m68k Linux-based GNU system
3138 m68k-*-linux-gnu* )
3139 machine=m68k opsys=gnu-linux
3140 ;;
3141
3142 ## Mips Linux-based GNU system
3143 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3144 machine=mips opsys=gnu-linux
3145 ;;
3146
3147 ## UXP/DS
3148 sparc-fujitsu-sysv4* )
3149 machine=sparc opsys=uxpds
3150 NON_GNU_CPP=/usr/ccs/lib/cpp
3151 RANLIB="ar -ts"
3152 ;;
3153
3154 ## UXP/V
3155 f301-fujitsu-uxpv4.1)
3156 machine=f301 opsys=uxpv
3157 ;;
3158
3159 ## AMD x86-64 Linux-based GNU system
3160 x86_64-*-linux-gnu* )
3161 machine=amdx86-64 opsys=gnu-linux
3162 ;;
3163
3164 ## Tensilica Xtensa Linux-based GNU system
3165 xtensa-*-linux-gnu* )
3166 machine=xtensa opsys=gnu-linux
3167 ;;
3168
3169 * )
3170 unported=yes
3171 ;;
3172 esac
3173
3174 ### If the code above didn't choose an operating system, just choose
3175 ### an operating system based on the configuration name. You really
3176 ### only want to use this when you have no idea what the right
3177 ### operating system is; if you know what operating systems a machine
3178 ### runs, it's cleaner to make it explicit in the case statement
3179 ### above.
3180 if test x"${opsys}" = x; then
3181 case "${canonical}" in
3182 *-gnu* ) opsys=gnu ;;
3183 *-bsd4.[01] ) opsys=bsd4-1 ;;
3184 *-bsd4.2 ) opsys=bsd4-2 ;;
3185 *-bsd4.3 ) opsys=bsd4-3 ;;
3186 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3187 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3188 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3189 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3190 *-sysv4.2uw* ) opsys=unixware ;;
3191 *-sysv5uw* ) opsys=unixware ;;
3192 *-sysv5OpenUNIX* ) opsys=unixware ;;
3193 *-sysv4.1* | *-sysvr4.1* )
3194 NON_GNU_CPP=/usr/lib/cpp
3195 opsys=usg5-4 ;;
3196 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3197 if [ x$NON_GNU_CPP = x ]; then
3198 if [ -f /usr/ccs/lib/cpp ]; then
3199 NON_GNU_CPP=/usr/ccs/lib/cpp
3200 else
3201 NON_GNU_CPP=/lib/cpp
3202 fi
3203 fi
3204 opsys=usg5-4-2 ;;
3205 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3206 * )
3207 unported=yes
3208 ;;
3209 esac
3210 fi
3211
3212
3213
3214 if test $unported = yes; then
3215 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3216 Check \`etc/MACHINES' for recognized configuration names." >&5
3217 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3218 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3219 { (exit 1); exit 1; }; }
3220 fi
3221
3222 machfile="m/${machine}.h"
3223 opsysfile="s/${opsys}.h"
3224
3225
3226 #### Choose a compiler.
3227 test -n "$CC" && cc_specified=yes
3228
3229 # Save the value of CFLAGS that the user specified.
3230 SPECIFIED_CFLAGS="$CFLAGS"
3231
3232 case ${with_gcc} in
3233 "yes" ) CC="gcc" GCC=yes ;;
3234 "no" ) : ${CC=cc} ;;
3235 * )
3236 esac
3237 ac_ext=c
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242 if test -n "$ac_tool_prefix"; then
3243 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3244 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC="$CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 break 2
3263 fi
3264 done
3265 done
3266 IFS=$as_save_IFS
3267
3268 fi
3269 fi
3270 CC=$ac_cv_prog_CC
3271 if test -n "$CC"; then
3272 { echo "$as_me:$LINENO: result: $CC" >&5
3273 echo "${ECHO_T}$CC" >&6; }
3274 else
3275 { echo "$as_me:$LINENO: result: no" >&5
3276 echo "${ECHO_T}no" >&6; }
3277 fi
3278
3279
3280 fi
3281 if test -z "$ac_cv_prog_CC"; then
3282 ac_ct_CC=$CC
3283 # Extract the first word of "gcc", so it can be a program name with args.
3284 set dummy gcc; ac_word=$2
3285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3287 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290 if test -n "$ac_ct_CC"; then
3291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3292 else
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH
3295 do
3296 IFS=$as_save_IFS
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 ac_cv_prog_ac_ct_CC="gcc"
3301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 break 2
3303 fi
3304 done
3305 done
3306 IFS=$as_save_IFS
3307
3308 fi
3309 fi
3310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3311 if test -n "$ac_ct_CC"; then
3312 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3313 echo "${ECHO_T}$ac_ct_CC" >&6; }
3314 else
3315 { echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6; }
3317 fi
3318
3319 if test "x$ac_ct_CC" = x; then
3320 CC=""
3321 else
3322 case $cross_compiling:$ac_tool_warned in
3323 yes:)
3324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3325 whose name does not start with the host triplet. If you think this
3326 configuration is useful to you, please write to autoconf@gnu.org." >&5
3327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3328 whose name does not start with the host triplet. If you think this
3329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3330 ac_tool_warned=yes ;;
3331 esac
3332 CC=$ac_ct_CC
3333 fi
3334 else
3335 CC="$ac_cv_prog_CC"
3336 fi
3337
3338 if test -z "$CC"; then
3339 if test -n "$ac_tool_prefix"; then
3340 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3341 set dummy ${ac_tool_prefix}cc; ac_word=$2
3342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3344 if test "${ac_cv_prog_CC+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 else
3347 if test -n "$CC"; then
3348 ac_cv_prog_CC="$CC" # Let the user override the test.
3349 else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353 IFS=$as_save_IFS
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357 ac_cv_prog_CC="${ac_tool_prefix}cc"
3358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 break 2
3360 fi
3361 done
3362 done
3363 IFS=$as_save_IFS
3364
3365 fi
3366 fi
3367 CC=$ac_cv_prog_CC
3368 if test -n "$CC"; then
3369 { echo "$as_me:$LINENO: result: $CC" >&5
3370 echo "${ECHO_T}$CC" >&6; }
3371 else
3372 { echo "$as_me:$LINENO: result: no" >&5
3373 echo "${ECHO_T}no" >&6; }
3374 fi
3375
3376
3377 fi
3378 fi
3379 if test -z "$CC"; then
3380 # Extract the first word of "cc", so it can be a program name with args.
3381 set dummy cc; ac_word=$2
3382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3384 if test "${ac_cv_prog_CC+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387 if test -n "$CC"; then
3388 ac_cv_prog_CC="$CC" # Let the user override the test.
3389 else
3390 ac_prog_rejected=no
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH
3393 do
3394 IFS=$as_save_IFS
3395 test -z "$as_dir" && as_dir=.
3396 for ac_exec_ext in '' $ac_executable_extensions; do
3397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3398 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3399 ac_prog_rejected=yes
3400 continue
3401 fi
3402 ac_cv_prog_CC="cc"
3403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 break 2
3405 fi
3406 done
3407 done
3408 IFS=$as_save_IFS
3409
3410 if test $ac_prog_rejected = yes; then
3411 # We found a bogon in the path, so make sure we never use it.
3412 set dummy $ac_cv_prog_CC
3413 shift
3414 if test $# != 0; then
3415 # We chose a different compiler from the bogus one.
3416 # However, it has the same basename, so the bogon will be chosen
3417 # first if we set CC to just the basename; use the full file name.
3418 shift
3419 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3420 fi
3421 fi
3422 fi
3423 fi
3424 CC=$ac_cv_prog_CC
3425 if test -n "$CC"; then
3426 { echo "$as_me:$LINENO: result: $CC" >&5
3427 echo "${ECHO_T}$CC" >&6; }
3428 else
3429 { echo "$as_me:$LINENO: result: no" >&5
3430 echo "${ECHO_T}no" >&6; }
3431 fi
3432
3433
3434 fi
3435 if test -z "$CC"; then
3436 if test -n "$ac_tool_prefix"; then
3437 for ac_prog in cl.exe
3438 do
3439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3440 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3443 if test "${ac_cv_prog_CC+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446 if test -n "$CC"; then
3447 ac_cv_prog_CC="$CC" # Let the user override the test.
3448 else
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH
3451 do
3452 IFS=$as_save_IFS
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 break 2
3459 fi
3460 done
3461 done
3462 IFS=$as_save_IFS
3463
3464 fi
3465 fi
3466 CC=$ac_cv_prog_CC
3467 if test -n "$CC"; then
3468 { echo "$as_me:$LINENO: result: $CC" >&5
3469 echo "${ECHO_T}$CC" >&6; }
3470 else
3471 { echo "$as_me:$LINENO: result: no" >&5
3472 echo "${ECHO_T}no" >&6; }
3473 fi
3474
3475
3476 test -n "$CC" && break
3477 done
3478 fi
3479 if test -z "$CC"; then
3480 ac_ct_CC=$CC
3481 for ac_prog in cl.exe
3482 do
3483 # Extract the first word of "$ac_prog", so it can be a program name with args.
3484 set dummy $ac_prog; ac_word=$2
3485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490 if test -n "$ac_ct_CC"; then
3491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3492 else
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 for as_dir in $PATH
3495 do
3496 IFS=$as_save_IFS
3497 test -z "$as_dir" && as_dir=.
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500 ac_cv_prog_ac_ct_CC="$ac_prog"
3501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3502 break 2
3503 fi
3504 done
3505 done
3506 IFS=$as_save_IFS
3507
3508 fi
3509 fi
3510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3511 if test -n "$ac_ct_CC"; then
3512 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3513 echo "${ECHO_T}$ac_ct_CC" >&6; }
3514 else
3515 { echo "$as_me:$LINENO: result: no" >&5
3516 echo "${ECHO_T}no" >&6; }
3517 fi
3518
3519
3520 test -n "$ac_ct_CC" && break
3521 done
3522
3523 if test "x$ac_ct_CC" = x; then
3524 CC=""
3525 else
3526 case $cross_compiling:$ac_tool_warned in
3527 yes:)
3528 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3529 whose name does not start with the host triplet. If you think this
3530 configuration is useful to you, please write to autoconf@gnu.org." >&5
3531 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3532 whose name does not start with the host triplet. If you think this
3533 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3534 ac_tool_warned=yes ;;
3535 esac
3536 CC=$ac_ct_CC
3537 fi
3538 fi
3539
3540 fi
3541
3542
3543 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3544 See \`config.log' for more details." >&5
3545 echo "$as_me: error: no acceptable C compiler found in \$PATH
3546 See \`config.log' for more details." >&2;}
3547 { (exit 1); exit 1; }; }
3548
3549 # Provide some information about the compiler.
3550 echo "$as_me:$LINENO: checking for C compiler version" >&5
3551 ac_compiler=`set X $ac_compile; echo $2`
3552 { (ac_try="$ac_compiler --version >&5"
3553 case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556 esac
3557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_compiler --version >&5") 2>&5
3559 ac_status=$?
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }
3562 { (ac_try="$ac_compiler -v >&5"
3563 case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_compiler -v >&5") 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }
3572 { (ac_try="$ac_compiler -V >&5"
3573 case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576 esac
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_compiler -V >&5") 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }
3582
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589
3590 int
3591 main ()
3592 {
3593
3594 ;
3595 return 0;
3596 }
3597 _ACEOF
3598 ac_clean_files_save=$ac_clean_files
3599 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3600 # Try to create an executable without -o first, disregard a.out.
3601 # It will help us diagnose broken compilers, and finding out an intuition
3602 # of exeext.
3603 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3604 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3605 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3606 #
3607 # List of possible output files, starting from the most likely.
3608 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3609 # only as a last resort. b.out is created by i960 compilers.
3610 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3611 #
3612 # The IRIX 6 linker writes into existing files which may not be
3613 # executable, retaining their permissions. Remove them first so a
3614 # subsequent execution test works.
3615 ac_rmfiles=
3616 for ac_file in $ac_files
3617 do
3618 case $ac_file in
3619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3620 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3621 esac
3622 done
3623 rm -f $ac_rmfiles
3624
3625 if { (ac_try="$ac_link_default"
3626 case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629 esac
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_link_default") 2>&5
3632 ac_status=$?
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; then
3635 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3636 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3637 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3638 # so that the user can short-circuit this test for compilers unknown to
3639 # Autoconf.
3640 for ac_file in $ac_files ''
3641 do
3642 test -f "$ac_file" || continue
3643 case $ac_file in
3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3645 ;;
3646 [ab].out )
3647 # We found the default executable, but exeext='' is most
3648 # certainly right.
3649 break;;
3650 *.* )
3651 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3652 then :; else
3653 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3654 fi
3655 # We set ac_cv_exeext here because the later test for it is not
3656 # safe: cross compilers may not add the suffix if given an `-o'
3657 # argument, so we may need to know it at that point already.
3658 # Even if this section looks crufty: it has the advantage of
3659 # actually working.
3660 break;;
3661 * )
3662 break;;
3663 esac
3664 done
3665 test "$ac_cv_exeext" = no && ac_cv_exeext=
3666
3667 else
3668 ac_file=''
3669 fi
3670
3671 { echo "$as_me:$LINENO: result: $ac_file" >&5
3672 echo "${ECHO_T}$ac_file" >&6; }
3673 if test -z "$ac_file"; then
3674 echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3676
3677 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3678 See \`config.log' for more details." >&5
3679 echo "$as_me: error: C compiler cannot create executables
3680 See \`config.log' for more details." >&2;}
3681 { (exit 77); exit 77; }; }
3682 fi
3683
3684 ac_exeext=$ac_cv_exeext
3685
3686 # Check that the compiler produces executables we can run. If not, either
3687 # the compiler is broken, or we cross compile.
3688 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3689 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3690 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3691 # If not cross compiling, check that we can run a simple program.
3692 if test "$cross_compiling" != yes; then
3693 if { ac_try='./$ac_file'
3694 { (case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697 esac
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699 (eval "$ac_try") 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3703 cross_compiling=no
3704 else
3705 if test "$cross_compiling" = maybe; then
3706 cross_compiling=yes
3707 else
3708 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3709 If you meant to cross compile, use \`--host'.
3710 See \`config.log' for more details." >&5
3711 echo "$as_me: error: cannot run C compiled programs.
3712 If you meant to cross compile, use \`--host'.
3713 See \`config.log' for more details." >&2;}
3714 { (exit 1); exit 1; }; }
3715 fi
3716 fi
3717 fi
3718 { echo "$as_me:$LINENO: result: yes" >&5
3719 echo "${ECHO_T}yes" >&6; }
3720
3721 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3722 ac_clean_files=$ac_clean_files_save
3723 # Check that the compiler produces executables we can run. If not, either
3724 # the compiler is broken, or we cross compile.
3725 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3726 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3727 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3728 echo "${ECHO_T}$cross_compiling" >&6; }
3729
3730 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3731 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3732 if { (ac_try="$ac_link"
3733 case "(($ac_try" in
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3736 esac
3737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738 (eval "$ac_link") 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; then
3742 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3743 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3744 # work properly (i.e., refer to `conftest.exe'), while it won't with
3745 # `rm'.
3746 for ac_file in conftest.exe conftest conftest.*; do
3747 test -f "$ac_file" || continue
3748 case $ac_file in
3749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3750 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3751 break;;
3752 * ) break;;
3753 esac
3754 done
3755 else
3756 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3757 See \`config.log' for more details." >&5
3758 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3759 See \`config.log' for more details." >&2;}
3760 { (exit 1); exit 1; }; }
3761 fi
3762
3763 rm -f conftest$ac_cv_exeext
3764 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3765 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3766
3767 rm -f conftest.$ac_ext
3768 EXEEXT=$ac_cv_exeext
3769 ac_exeext=$EXEEXT
3770 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3771 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3772 if test "${ac_cv_objext+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775 cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h. */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781
3782 int
3783 main ()
3784 {
3785
3786 ;
3787 return 0;
3788 }
3789 _ACEOF
3790 rm -f conftest.o conftest.obj
3791 if { (ac_try="$ac_compile"
3792 case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795 esac
3796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3797 (eval "$ac_compile") 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; then
3801 for ac_file in conftest.o conftest.obj conftest.*; do
3802 test -f "$ac_file" || continue;
3803 case $ac_file in
3804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3805 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3806 break;;
3807 esac
3808 done
3809 else
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3812
3813 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3814 See \`config.log' for more details." >&5
3815 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3816 See \`config.log' for more details." >&2;}
3817 { (exit 1); exit 1; }; }
3818 fi
3819
3820 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3821 fi
3822 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3823 echo "${ECHO_T}$ac_cv_objext" >&6; }
3824 OBJEXT=$ac_cv_objext
3825 ac_objext=$OBJEXT
3826 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3827 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3828 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831 cat >conftest.$ac_ext <<_ACEOF
3832 /* confdefs.h. */
3833 _ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3837
3838 int
3839 main ()
3840 {
3841 #ifndef __GNUC__
3842 choke me
3843 #endif
3844
3845 ;
3846 return 0;
3847 }
3848 _ACEOF
3849 rm -f conftest.$ac_objext
3850 if { (ac_try="$ac_compile"
3851 case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854 esac
3855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856 (eval "$ac_compile") 2>conftest.er1
3857 ac_status=$?
3858 grep -v '^ *+' conftest.er1 >conftest.err
3859 rm -f conftest.er1
3860 cat conftest.err >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } && {
3863 test -z "$ac_c_werror_flag" ||
3864 test ! -s conftest.err
3865 } && test -s conftest.$ac_objext; then
3866 ac_compiler_gnu=yes
3867 else
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3870
3871 ac_compiler_gnu=no
3872 fi
3873
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3876
3877 fi
3878 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3879 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3880 GCC=`test $ac_compiler_gnu = yes && echo yes`
3881 ac_test_CFLAGS=${CFLAGS+set}
3882 ac_save_CFLAGS=$CFLAGS
3883 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3884 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3885 if test "${ac_cv_prog_cc_g+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888 ac_save_c_werror_flag=$ac_c_werror_flag
3889 ac_c_werror_flag=yes
3890 ac_cv_prog_cc_g=no
3891 CFLAGS="-g"
3892 cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h. */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3898
3899 int
3900 main ()
3901 {
3902
3903 ;
3904 return 0;
3905 }
3906 _ACEOF
3907 rm -f conftest.$ac_objext
3908 if { (ac_try="$ac_compile"
3909 case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912 esac
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_compile") 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } && {
3921 test -z "$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3923 } && test -s conftest.$ac_objext; then
3924 ac_cv_prog_cc_g=yes
3925 else
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929 CFLAGS=""
3930 cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h. */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3936
3937 int
3938 main ()
3939 {
3940
3941 ;
3942 return 0;
3943 }
3944 _ACEOF
3945 rm -f conftest.$ac_objext
3946 if { (ac_try="$ac_compile"
3947 case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950 esac
3951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3952 (eval "$ac_compile") 2>conftest.er1
3953 ac_status=$?
3954 grep -v '^ *+' conftest.er1 >conftest.err
3955 rm -f conftest.er1
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } && {
3959 test -z "$ac_c_werror_flag" ||
3960 test ! -s conftest.err
3961 } && test -s conftest.$ac_objext; then
3962 :
3963 else
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3966
3967 ac_c_werror_flag=$ac_save_c_werror_flag
3968 CFLAGS="-g"
3969 cat >conftest.$ac_ext <<_ACEOF
3970 /* confdefs.h. */
3971 _ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3975
3976 int
3977 main ()
3978 {
3979
3980 ;
3981 return 0;
3982 }
3983 _ACEOF
3984 rm -f conftest.$ac_objext
3985 if { (ac_try="$ac_compile"
3986 case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989 esac
3990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_compile") 2>conftest.er1
3992 ac_status=$?
3993 grep -v '^ *+' conftest.er1 >conftest.err
3994 rm -f conftest.er1
3995 cat conftest.err >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } && {
3998 test -z "$ac_c_werror_flag" ||
3999 test ! -s conftest.err
4000 } && test -s conftest.$ac_objext; then
4001 ac_cv_prog_cc_g=yes
4002 else
4003 echo "$as_me: failed program was:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4005
4006
4007 fi
4008
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010 fi
4011
4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 fi
4014
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 ac_c_werror_flag=$ac_save_c_werror_flag
4017 fi
4018 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4019 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4020 if test "$ac_test_CFLAGS" = set; then
4021 CFLAGS=$ac_save_CFLAGS
4022 elif test $ac_cv_prog_cc_g = yes; then
4023 if test "$GCC" = yes; then
4024 CFLAGS="-g -O2"
4025 else
4026 CFLAGS="-g"
4027 fi
4028 else
4029 if test "$GCC" = yes; then
4030 CFLAGS="-O2"
4031 else
4032 CFLAGS=
4033 fi
4034 fi
4035 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4036 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4037 if test "${ac_cv_prog_cc_c89+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 else
4040 ac_cv_prog_cc_c89=no
4041 ac_save_CC=$CC
4042 cat >conftest.$ac_ext <<_ACEOF
4043 /* confdefs.h. */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4048 #include <stdarg.h>
4049 #include <stdio.h>
4050 #include <sys/types.h>
4051 #include <sys/stat.h>
4052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4053 struct buf { int x; };
4054 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4055 static char *e (p, i)
4056 char **p;
4057 int i;
4058 {
4059 return p[i];
4060 }
4061 static char *f (char * (*g) (char **, int), char **p, ...)
4062 {
4063 char *s;
4064 va_list v;
4065 va_start (v,p);
4066 s = g (p, va_arg (v,int));
4067 va_end (v);
4068 return s;
4069 }
4070
4071 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4072 function prototypes and stuff, but not '\xHH' hex character constants.
4073 These don't provoke an error unfortunately, instead are silently treated
4074 as 'x'. The following induces an error, until -std is added to get
4075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4076 array size at least. It's necessary to write '\x00'==0 to get something
4077 that's true only with -std. */
4078 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4079
4080 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4081 inside strings and character constants. */
4082 #define FOO(x) 'x'
4083 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4084
4085 int test (int i, double x);
4086 struct s1 {int (*f) (int a);};
4087 struct s2 {int (*f) (double a);};
4088 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4089 int argc;
4090 char **argv;
4091 int
4092 main ()
4093 {
4094 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4095 ;
4096 return 0;
4097 }
4098 _ACEOF
4099 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4100 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4101 do
4102 CC="$ac_save_CC $ac_arg"
4103 rm -f conftest.$ac_objext
4104 if { (ac_try="$ac_compile"
4105 case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4108 esac
4109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4110 (eval "$ac_compile") 2>conftest.er1
4111 ac_status=$?
4112 grep -v '^ *+' conftest.er1 >conftest.err
4113 rm -f conftest.er1
4114 cat conftest.err >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } && {
4117 test -z "$ac_c_werror_flag" ||
4118 test ! -s conftest.err
4119 } && test -s conftest.$ac_objext; then
4120 ac_cv_prog_cc_c89=$ac_arg
4121 else
4122 echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4124
4125
4126 fi
4127
4128 rm -f core conftest.err conftest.$ac_objext
4129 test "x$ac_cv_prog_cc_c89" != "xno" && break
4130 done
4131 rm -f conftest.$ac_ext
4132 CC=$ac_save_CC
4133
4134 fi
4135 # AC_CACHE_VAL
4136 case "x$ac_cv_prog_cc_c89" in
4137 x)
4138 { echo "$as_me:$LINENO: result: none needed" >&5
4139 echo "${ECHO_T}none needed" >&6; } ;;
4140 xno)
4141 { echo "$as_me:$LINENO: result: unsupported" >&5
4142 echo "${ECHO_T}unsupported" >&6; } ;;
4143 *)
4144 CC="$CC $ac_cv_prog_cc_c89"
4145 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4146 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4147 esac
4148
4149
4150 ac_ext=c
4151 ac_cpp='$CPP $CPPFLAGS'
4152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4155
4156
4157 # On Suns, sometimes $CPP names a directory.
4158 if test -n "$CPP" && test -d "$CPP"; then
4159 CPP=
4160 fi
4161
4162 ## If not using gcc, and on Solaris, and no CPP specified, see if
4163 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4164 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4165 test x"$CPP" = x; then
4166 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4167 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
4168
4169 if test "${emacs_cv_sunpro_c+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172 cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h. */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4178
4179 int
4180 main ()
4181 {
4182 #ifndef __SUNPRO_C
4183 fail;
4184 #endif
4185
4186 ;
4187 return 0;
4188 }
4189 _ACEOF
4190 rm -f conftest.$ac_objext conftest$ac_exeext
4191 if { (ac_try="$ac_link"
4192 case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195 esac
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_link") 2>conftest.er1
4198 ac_status=$?
4199 grep -v '^ *+' conftest.er1 >conftest.err
4200 rm -f conftest.er1
4201 cat conftest.err >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } && {
4204 test -z "$ac_c_werror_flag" ||
4205 test ! -s conftest.err
4206 } && test -s conftest$ac_exeext &&
4207 $as_test_x conftest$ac_exeext; then
4208 emacs_cv_sunpro_c=yes
4209 else
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213 emacs_cv_sunpro_c=no
4214 fi
4215
4216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4217 conftest$ac_exeext conftest.$ac_ext
4218 fi
4219
4220 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4221 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4222
4223 if test x"$emacs_cv_sunpro_c" = xyes; then
4224 NON_GNU_CPP="$CC -E -Xs"
4225 fi
4226 fi
4227
4228 #### Some systems specify a CPP to use unless we are using GCC.
4229 #### Now that we know whether we are using GCC, we can decide whether
4230 #### to use that one.
4231 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4232 then
4233 CPP="$NON_GNU_CPP"
4234 fi
4235
4236 #### Some systems specify a CC to use unless we are using GCC.
4237 #### Now that we know whether we are using GCC, we can decide whether
4238 #### to use that one.
4239 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4240 test x$cc_specified != xyes
4241 then
4242 CC="$NON_GNU_CC"
4243 fi
4244
4245 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4246 then
4247 CC="$CC $GCC_TEST_OPTIONS"
4248 fi
4249
4250 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4251 then
4252 CC="$CC $NON_GCC_TEST_OPTIONS"
4253 fi
4254
4255 ac_ext=c
4256 ac_cpp='$CPP $CPPFLAGS'
4257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4260 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4261 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4262 # On Suns, sometimes $CPP names a directory.
4263 if test -n "$CPP" && test -d "$CPP"; then
4264 CPP=
4265 fi
4266 if test -z "$CPP"; then
4267 if test "${ac_cv_prog_CPP+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270 # Double quotes because CPP needs to be expanded
4271 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4272 do
4273 ac_preproc_ok=false
4274 for ac_c_preproc_warn_flag in '' yes
4275 do
4276 # Use a header file that comes with gcc, so configuring glibc
4277 # with a fresh cross-compiler works.
4278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4279 # <limits.h> exists even on freestanding compilers.
4280 # On the NeXT, cc -E runs the code through the compiler's parser,
4281 # not just through cpp. "Syntax error" is here to catch this case.
4282 cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h. */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4288 #ifdef __STDC__
4289 # include <limits.h>
4290 #else
4291 # include <assert.h>
4292 #endif
4293 Syntax error
4294 _ACEOF
4295 if { (ac_try="$ac_cpp conftest.$ac_ext"
4296 case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299 esac
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4302 ac_status=$?
4303 grep -v '^ *+' conftest.er1 >conftest.err
4304 rm -f conftest.er1
4305 cat conftest.err >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } >/dev/null && {
4308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4309 test ! -s conftest.err
4310 }; then
4311 :
4312 else
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4315
4316 # Broken: fails on valid input.
4317 continue
4318 fi
4319
4320 rm -f conftest.err conftest.$ac_ext
4321
4322 # OK, works on sane cases. Now check whether nonexistent headers
4323 # can be detected and how.
4324 cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h. */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 #include <ac_nonexistent.h>
4331 _ACEOF
4332 if { (ac_try="$ac_cpp conftest.$ac_ext"
4333 case "(($ac_try" in
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4336 esac
4337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4339 ac_status=$?
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } >/dev/null && {
4345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4346 test ! -s conftest.err
4347 }; then
4348 # Broken: success on invalid input.
4349 continue
4350 else
4351 echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.$ac_ext >&5
4353
4354 # Passes both tests.
4355 ac_preproc_ok=:
4356 break
4357 fi
4358
4359 rm -f conftest.err conftest.$ac_ext
4360
4361 done
4362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4363 rm -f conftest.err conftest.$ac_ext
4364 if $ac_preproc_ok; then
4365 break
4366 fi
4367
4368 done
4369 ac_cv_prog_CPP=$CPP
4370
4371 fi
4372 CPP=$ac_cv_prog_CPP
4373 else
4374 ac_cv_prog_CPP=$CPP
4375 fi
4376 { echo "$as_me:$LINENO: result: $CPP" >&5
4377 echo "${ECHO_T}$CPP" >&6; }
4378 ac_preproc_ok=false
4379 for ac_c_preproc_warn_flag in '' yes
4380 do
4381 # Use a header file that comes with gcc, so configuring glibc
4382 # with a fresh cross-compiler works.
4383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4384 # <limits.h> exists even on freestanding compilers.
4385 # On the NeXT, cc -E runs the code through the compiler's parser,
4386 # not just through cpp. "Syntax error" is here to catch this case.
4387 cat >conftest.$ac_ext <<_ACEOF
4388 /* confdefs.h. */
4389 _ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4393 #ifdef __STDC__
4394 # include <limits.h>
4395 #else
4396 # include <assert.h>
4397 #endif
4398 Syntax error
4399 _ACEOF
4400 if { (ac_try="$ac_cpp conftest.$ac_ext"
4401 case "(($ac_try" in
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4404 esac
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4407 ac_status=$?
4408 grep -v '^ *+' conftest.er1 >conftest.err
4409 rm -f conftest.er1
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } >/dev/null && {
4413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4414 test ! -s conftest.err
4415 }; then
4416 :
4417 else
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4420
4421 # Broken: fails on valid input.
4422 continue
4423 fi
4424
4425 rm -f conftest.err conftest.$ac_ext
4426
4427 # OK, works on sane cases. Now check whether nonexistent headers
4428 # can be detected and how.
4429 cat >conftest.$ac_ext <<_ACEOF
4430 /* confdefs.h. */
4431 _ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h. */
4435 #include <ac_nonexistent.h>
4436 _ACEOF
4437 if { (ac_try="$ac_cpp conftest.$ac_ext"
4438 case "(($ac_try" in
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4441 esac
4442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4444 ac_status=$?
4445 grep -v '^ *+' conftest.er1 >conftest.err
4446 rm -f conftest.er1
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } >/dev/null && {
4450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4451 test ! -s conftest.err
4452 }; then
4453 # Broken: success on invalid input.
4454 continue
4455 else
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4458
4459 # Passes both tests.
4460 ac_preproc_ok=:
4461 break
4462 fi
4463
4464 rm -f conftest.err conftest.$ac_ext
4465
4466 done
4467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4468 rm -f conftest.err conftest.$ac_ext
4469 if $ac_preproc_ok; then
4470 :
4471 else
4472 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4473 See \`config.log' for more details." >&5
4474 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4475 See \`config.log' for more details." >&2;}
4476 { (exit 1); exit 1; }; }
4477 fi
4478
4479 ac_ext=c
4480 ac_cpp='$CPP $CPPFLAGS'
4481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4484
4485
4486 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4487 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4488 if test "${ac_cv_path_GREP+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491 # Extract the first word of "grep ggrep" to use in msg output
4492 if test -z "$GREP"; then
4493 set dummy grep ggrep; ac_prog_name=$2
4494 if test "${ac_cv_path_GREP+set}" = set; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 else
4497 ac_path_GREP_found=false
4498 # Loop through the user's path and test for each of PROGNAME-LIST
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4501 do
4502 IFS=$as_save_IFS
4503 test -z "$as_dir" && as_dir=.
4504 for ac_prog in grep ggrep; do
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4507 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4508 # Check for GNU ac_path_GREP and select it if it is found.
4509 # Check for GNU $ac_path_GREP
4510 case `"$ac_path_GREP" --version 2>&1` in
4511 *GNU*)
4512 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4513 *)
4514 ac_count=0
4515 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4516 while :
4517 do
4518 cat "conftest.in" "conftest.in" >"conftest.tmp"
4519 mv "conftest.tmp" "conftest.in"
4520 cp "conftest.in" "conftest.nl"
4521 echo 'GREP' >> "conftest.nl"
4522 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4524 ac_count=`expr $ac_count + 1`
4525 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4526 # Best one so far, save it but keep looking for a better one
4527 ac_cv_path_GREP="$ac_path_GREP"
4528 ac_path_GREP_max=$ac_count
4529 fi
4530 # 10*(2^10) chars as input seems more than enough
4531 test $ac_count -gt 10 && break
4532 done
4533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4534 esac
4535
4536
4537 $ac_path_GREP_found && break 3
4538 done
4539 done
4540
4541 done
4542 IFS=$as_save_IFS
4543
4544
4545 fi
4546
4547 GREP="$ac_cv_path_GREP"
4548 if test -z "$GREP"; then
4549 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4550 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4551 { (exit 1); exit 1; }; }
4552 fi
4553
4554 else
4555 ac_cv_path_GREP=$GREP
4556 fi
4557
4558
4559 fi
4560 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4561 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4562 GREP="$ac_cv_path_GREP"
4563
4564
4565 { echo "$as_me:$LINENO: checking for egrep" >&5
4566 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4567 if test "${ac_cv_path_EGREP+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 else
4570 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4571 then ac_cv_path_EGREP="$GREP -E"
4572 else
4573 # Extract the first word of "egrep" to use in msg output
4574 if test -z "$EGREP"; then
4575 set dummy egrep; ac_prog_name=$2
4576 if test "${ac_cv_path_EGREP+set}" = set; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 else
4579 ac_path_EGREP_found=false
4580 # Loop through the user's path and test for each of PROGNAME-LIST
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4583 do
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 for ac_prog in egrep; do
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4589 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4590 # Check for GNU ac_path_EGREP and select it if it is found.
4591 # Check for GNU $ac_path_EGREP
4592 case `"$ac_path_EGREP" --version 2>&1` in
4593 *GNU*)
4594 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4595 *)
4596 ac_count=0
4597 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4598 while :
4599 do
4600 cat "conftest.in" "conftest.in" >"conftest.tmp"
4601 mv "conftest.tmp" "conftest.in"
4602 cp "conftest.in" "conftest.nl"
4603 echo 'EGREP' >> "conftest.nl"
4604 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4606 ac_count=`expr $ac_count + 1`
4607 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4608 # Best one so far, save it but keep looking for a better one
4609 ac_cv_path_EGREP="$ac_path_EGREP"
4610 ac_path_EGREP_max=$ac_count
4611 fi
4612 # 10*(2^10) chars as input seems more than enough
4613 test $ac_count -gt 10 && break
4614 done
4615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4616 esac
4617
4618
4619 $ac_path_EGREP_found && break 3
4620 done
4621 done
4622
4623 done
4624 IFS=$as_save_IFS
4625
4626
4627 fi
4628
4629 EGREP="$ac_cv_path_EGREP"
4630 if test -z "$EGREP"; then
4631 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4632 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4633 { (exit 1); exit 1; }; }
4634 fi
4635
4636 else
4637 ac_cv_path_EGREP=$EGREP
4638 fi
4639
4640
4641 fi
4642 fi
4643 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4644 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4645 EGREP="$ac_cv_path_EGREP"
4646
4647
4648
4649 { echo "$as_me:$LINENO: checking for AIX" >&5
4650 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4651 cat >conftest.$ac_ext <<_ACEOF
4652 /* confdefs.h. */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4657 #ifdef _AIX
4658 yes
4659 #endif
4660
4661 _ACEOF
4662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4663 $EGREP "yes" >/dev/null 2>&1; then
4664 { echo "$as_me:$LINENO: result: yes" >&5
4665 echo "${ECHO_T}yes" >&6; }
4666 cat >>confdefs.h <<\_ACEOF
4667 #define _ALL_SOURCE 1
4668 _ACEOF
4669
4670 else
4671 { echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6; }
4673 fi
4674 rm -f conftest*
4675
4676
4677
4678 cat >>confdefs.h <<\_ACEOF
4679 #define _GNU_SOURCE 1
4680 _ACEOF
4681
4682
4683
4684 ### Use -Wno-pointer-sign if the compiler supports it
4685 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4686 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4687 SAVE_CFLAGS="$CFLAGS"
4688 CFLAGS="$CFLAGS -Wno-pointer-sign"
4689 cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h. */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695
4696 int
4697 main ()
4698 {
4699
4700 ;
4701 return 0;
4702 }
4703 _ACEOF
4704 rm -f conftest.$ac_objext
4705 if { (ac_try="$ac_compile"
4706 case "(($ac_try" in
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4709 esac
4710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4711 (eval "$ac_compile") 2>conftest.er1
4712 ac_status=$?
4713 grep -v '^ *+' conftest.er1 >conftest.err
4714 rm -f conftest.er1
4715 cat conftest.err >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } && {
4718 test -z "$ac_c_werror_flag" ||
4719 test ! -s conftest.err
4720 } && test -s conftest.$ac_objext; then
4721 has_option=yes
4722 else
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4725
4726 has_option=no
4727 fi
4728
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 if test $has_option = yes; then
4731 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4732 fi
4733 { echo "$as_me:$LINENO: result: $has_option" >&5
4734 echo "${ECHO_T}$has_option" >&6; }
4735 CFLAGS="$SAVE_CFLAGS"
4736 unset has_option
4737 unset SAVE_CFLAGS
4738
4739 #### Some other nice autoconf tests.
4740
4741 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4742 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4743 LN_S=$as_ln_s
4744 if test "$LN_S" = "ln -s"; then
4745 { echo "$as_me:$LINENO: result: yes" >&5
4746 echo "${ECHO_T}yes" >&6; }
4747 else
4748 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4749 echo "${ECHO_T}no, using $LN_S" >&6; }
4750 fi
4751
4752 ac_ext=c
4753 ac_cpp='$CPP $CPPFLAGS'
4754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4758 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4759 # On Suns, sometimes $CPP names a directory.
4760 if test -n "$CPP" && test -d "$CPP"; then
4761 CPP=
4762 fi
4763 if test -z "$CPP"; then
4764 if test "${ac_cv_prog_CPP+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767 # Double quotes because CPP needs to be expanded
4768 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4769 do
4770 ac_preproc_ok=false
4771 for ac_c_preproc_warn_flag in '' yes
4772 do
4773 # Use a header file that comes with gcc, so configuring glibc
4774 # with a fresh cross-compiler works.
4775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4776 # <limits.h> exists even on freestanding compilers.
4777 # On the NeXT, cc -E runs the code through the compiler's parser,
4778 # not just through cpp. "Syntax error" is here to catch this case.
4779 cat >conftest.$ac_ext <<_ACEOF
4780 /* confdefs.h. */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4785 #ifdef __STDC__
4786 # include <limits.h>
4787 #else
4788 # include <assert.h>
4789 #endif
4790 Syntax error
4791 _ACEOF
4792 if { (ac_try="$ac_cpp conftest.$ac_ext"
4793 case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4796 esac
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } >/dev/null && {
4805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4806 test ! -s conftest.err
4807 }; then
4808 :
4809 else
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4812
4813 # Broken: fails on valid input.
4814 continue
4815 fi
4816
4817 rm -f conftest.err conftest.$ac_ext
4818
4819 # OK, works on sane cases. Now check whether nonexistent headers
4820 # can be detected and how.
4821 cat >conftest.$ac_ext <<_ACEOF
4822 /* confdefs.h. */
4823 _ACEOF
4824 cat confdefs.h >>conftest.$ac_ext
4825 cat >>conftest.$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4827 #include <ac_nonexistent.h>
4828 _ACEOF
4829 if { (ac_try="$ac_cpp conftest.$ac_ext"
4830 case "(($ac_try" in
4831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4833 esac
4834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4836 ac_status=$?
4837 grep -v '^ *+' conftest.er1 >conftest.err
4838 rm -f conftest.er1
4839 cat conftest.err >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } >/dev/null && {
4842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4843 test ! -s conftest.err
4844 }; then
4845 # Broken: success on invalid input.
4846 continue
4847 else
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4850
4851 # Passes both tests.
4852 ac_preproc_ok=:
4853 break
4854 fi
4855
4856 rm -f conftest.err conftest.$ac_ext
4857
4858 done
4859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4860 rm -f conftest.err conftest.$ac_ext
4861 if $ac_preproc_ok; then
4862 break
4863 fi
4864
4865 done
4866 ac_cv_prog_CPP=$CPP
4867
4868 fi
4869 CPP=$ac_cv_prog_CPP
4870 else
4871 ac_cv_prog_CPP=$CPP
4872 fi
4873 { echo "$as_me:$LINENO: result: $CPP" >&5
4874 echo "${ECHO_T}$CPP" >&6; }
4875 ac_preproc_ok=false
4876 for ac_c_preproc_warn_flag in '' yes
4877 do
4878 # Use a header file that comes with gcc, so configuring glibc
4879 # with a fresh cross-compiler works.
4880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4881 # <limits.h> exists even on freestanding compilers.
4882 # On the NeXT, cc -E runs the code through the compiler's parser,
4883 # not just through cpp. "Syntax error" is here to catch this case.
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 #ifdef __STDC__
4891 # include <limits.h>
4892 #else
4893 # include <assert.h>
4894 #endif
4895 Syntax error
4896 _ACEOF
4897 if { (ac_try="$ac_cpp conftest.$ac_ext"
4898 case "(($ac_try" in
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4901 esac
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } >/dev/null && {
4910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4911 test ! -s conftest.err
4912 }; then
4913 :
4914 else
4915 echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4917
4918 # Broken: fails on valid input.
4919 continue
4920 fi
4921
4922 rm -f conftest.err conftest.$ac_ext
4923
4924 # OK, works on sane cases. Now check whether nonexistent headers
4925 # can be detected and how.
4926 cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h. */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 #include <ac_nonexistent.h>
4933 _ACEOF
4934 if { (ac_try="$ac_cpp conftest.$ac_ext"
4935 case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938 esac
4939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4941 ac_status=$?
4942 grep -v '^ *+' conftest.er1 >conftest.err
4943 rm -f conftest.er1
4944 cat conftest.err >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } >/dev/null && {
4947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4948 test ! -s conftest.err
4949 }; then
4950 # Broken: success on invalid input.
4951 continue
4952 else
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4955
4956 # Passes both tests.
4957 ac_preproc_ok=:
4958 break
4959 fi
4960
4961 rm -f conftest.err conftest.$ac_ext
4962
4963 done
4964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4965 rm -f conftest.err conftest.$ac_ext
4966 if $ac_preproc_ok; then
4967 :
4968 else
4969 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4970 See \`config.log' for more details." >&5
4971 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4972 See \`config.log' for more details." >&2;}
4973 { (exit 1); exit 1; }; }
4974 fi
4975
4976 ac_ext=c
4977 ac_cpp='$CPP $CPPFLAGS'
4978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981
4982 # Find a good install program. We prefer a C program (faster),
4983 # so one script is as good as another. But avoid the broken or
4984 # incompatible versions:
4985 # SysV /etc/install, /usr/sbin/install
4986 # SunOS /usr/etc/install
4987 # IRIX /sbin/install
4988 # AIX /bin/install
4989 # AmigaOS /C/install, which installs bootblocks on floppy discs
4990 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4991 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4992 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4993 # OS/2's system install, which has a completely different semantic
4994 # ./install, which can be erroneously created by make from ./install.sh.
4995 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4996 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4997 if test -z "$INSTALL"; then
4998 if test "${ac_cv_path_install+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 # Account for people who put trailing slashes in PATH elements.
5007 case $as_dir/ in
5008 ./ | .// | /cC/* | \
5009 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5010 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5011 /usr/ucb/* ) ;;
5012 *)
5013 # OSF1 and SCO ODT 3.0 have their own names for install.
5014 # Don't use installbsd from OSF since it installs stuff as root
5015 # by default.
5016 for ac_prog in ginstall scoinst install; do
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5019 if test $ac_prog = install &&
5020 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5021 # AIX install. It has an incompatible calling convention.
5022 :
5023 elif test $ac_prog = install &&
5024 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5025 # program-specific install script used by HP pwplus--don't use.
5026 :
5027 else
5028 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5029 break 3
5030 fi
5031 fi
5032 done
5033 done
5034 ;;
5035 esac
5036 done
5037 IFS=$as_save_IFS
5038
5039
5040 fi
5041 if test "${ac_cv_path_install+set}" = set; then
5042 INSTALL=$ac_cv_path_install
5043 else
5044 # As a last resort, use the slow shell script. Don't cache a
5045 # value for INSTALL within a source directory, because that will
5046 # break other packages using the cache if that directory is
5047 # removed, or if the value is a relative name.
5048 INSTALL=$ac_install_sh
5049 fi
5050 fi
5051 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5052 echo "${ECHO_T}$INSTALL" >&6; }
5053
5054 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5055 # It thinks the first close brace ends the variable substitution.
5056 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5057
5058 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5059
5060 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5061
5062 if test "x$RANLIB" = x; then
5063 if test -n "$ac_tool_prefix"; then
5064 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5065 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5068 if test "${ac_cv_prog_RANLIB+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071 if test -n "$RANLIB"; then
5072 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5073 else
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5084 fi
5085 done
5086 done
5087 IFS=$as_save_IFS
5088
5089 fi
5090 fi
5091 RANLIB=$ac_cv_prog_RANLIB
5092 if test -n "$RANLIB"; then
5093 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5094 echo "${ECHO_T}$RANLIB" >&6; }
5095 else
5096 { echo "$as_me:$LINENO: result: no" >&5
5097 echo "${ECHO_T}no" >&6; }
5098 fi
5099
5100
5101 fi
5102 if test -z "$ac_cv_prog_RANLIB"; then
5103 ac_ct_RANLIB=$RANLIB
5104 # Extract the first word of "ranlib", so it can be a program name with args.
5105 set dummy ranlib; ac_word=$2
5106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5108 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 else
5111 if test -n "$ac_ct_RANLIB"; then
5112 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5116 do
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_prog_ac_ct_RANLIB="ranlib"
5122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5124 fi
5125 done
5126 done
5127 IFS=$as_save_IFS
5128
5129 fi
5130 fi
5131 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5132 if test -n "$ac_ct_RANLIB"; then
5133 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5134 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5135 else
5136 { echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6; }
5138 fi
5139
5140 if test "x$ac_ct_RANLIB" = x; then
5141 RANLIB=":"
5142 else
5143 case $cross_compiling:$ac_tool_warned in
5144 yes:)
5145 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5146 whose name does not start with the host triplet. If you think this
5147 configuration is useful to you, please write to autoconf@gnu.org." >&5
5148 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5149 whose name does not start with the host triplet. If you think this
5150 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5151 ac_tool_warned=yes ;;
5152 esac
5153 RANLIB=$ac_ct_RANLIB
5154 fi
5155 else
5156 RANLIB="$ac_cv_prog_RANLIB"
5157 fi
5158
5159 fi
5160 # Extract the first word of "install-info", so it can be a program name with args.
5161 set dummy install-info; ac_word=$2
5162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5164 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 else
5167 case $INSTALL_INFO in
5168 [\\/]* | ?:[\\/]*)
5169 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5170 ;;
5171 *)
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5174 do
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5182 fi
5183 done
5184 done
5185 IFS=$as_save_IFS
5186
5187 ;;
5188 esac
5189 fi
5190 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5191 if test -n "$INSTALL_INFO"; then
5192 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5193 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5194 else
5195 { echo "$as_me:$LINENO: result: no" >&5
5196 echo "${ECHO_T}no" >&6; }
5197 fi
5198
5199
5200 # Extract the first word of "install-info", so it can be a program name with args.
5201 set dummy install-info; ac_word=$2
5202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5204 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207 case $INSTALL_INFO in
5208 [\\/]* | ?:[\\/]*)
5209 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5210 ;;
5211 *)
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in /usr/sbin
5214 do
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5219 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 break 2
5222 fi
5223 done
5224 done
5225 IFS=$as_save_IFS
5226
5227 ;;
5228 esac
5229 fi
5230 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5231 if test -n "$INSTALL_INFO"; then
5232 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5233 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5234 else
5235 { echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6; }
5237 fi
5238
5239
5240 # Extract the first word of "install-info", so it can be a program name with args.
5241 set dummy install-info; ac_word=$2
5242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5244 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247 case $INSTALL_INFO in
5248 [\\/]* | ?:[\\/]*)
5249 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5250 ;;
5251 *)
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in /sbin
5254 do
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5262 fi
5263 done
5264 done
5265 IFS=$as_save_IFS
5266
5267 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5268 ;;
5269 esac
5270 fi
5271 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5272 if test -n "$INSTALL_INFO"; then
5273 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5274 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5275 else
5276 { echo "$as_me:$LINENO: result: no" >&5
5277 echo "${ECHO_T}no" >&6; }
5278 fi
5279
5280
5281 # Extract the first word of "gzip", so it can be a program name with args.
5282 set dummy gzip; ac_word=$2
5283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5285 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288 case $GZIP_PROG in
5289 [\\/]* | ?:[\\/]*)
5290 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5291 ;;
5292 *)
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5295 do
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5303 fi
5304 done
5305 done
5306 IFS=$as_save_IFS
5307
5308 ;;
5309 esac
5310 fi
5311 GZIP_PROG=$ac_cv_path_GZIP_PROG
5312 if test -n "$GZIP_PROG"; then
5313 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5314 echo "${ECHO_T}$GZIP_PROG" >&6; }
5315 else
5316 { echo "$as_me:$LINENO: result: no" >&5
5317 echo "${ECHO_T}no" >&6; }
5318 fi
5319
5320
5321
5322
5323 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5324 then
5325 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5326 fi
5327
5328 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5329 then
5330 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5331 fi
5332
5333
5334 late_LDFLAGS=$LDFLAGS
5335 if test "$GCC" = yes; then
5336 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5337 else
5338 LDFLAGS="$LDFLAGS -znocombreloc"
5339 fi
5340
5341 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5342 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5343 cat >conftest.$ac_ext <<_ACEOF
5344 main(){return 0;}
5345 _ACEOF
5346 rm -f conftest.$ac_objext conftest$ac_exeext
5347 if { (ac_try="$ac_link"
5348 case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5351 esac
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_link") 2>conftest.er1
5354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } && {
5360 test -z "$ac_c_werror_flag" ||
5361 test ! -s conftest.err
5362 } && test -s conftest$ac_exeext &&
5363 $as_test_x conftest$ac_exeext; then
5364 { echo "$as_me:$LINENO: result: yes" >&5
5365 echo "${ECHO_T}yes" >&6; }
5366 else
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5369
5370 LDFLAGS=$late_LDFLAGS
5371 { echo "$as_me:$LINENO: result: no" >&5
5372 echo "${ECHO_T}no" >&6; }
5373 fi
5374
5375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5376 conftest$ac_exeext conftest.$ac_ext
5377
5378 #### Extract some information from the operating system and machine files.
5379
5380 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5381 - which libraries the lib-src programs will want, and
5382 - whether the GNU malloc routines are usable..." >&5
5383 echo "$as_me: checking the machine- and system-dependent files to find out
5384 - which libraries the lib-src programs will want, and
5385 - whether the GNU malloc routines are usable..." >&6;}
5386
5387 ### First figure out CFLAGS (which we use for running the compiler here)
5388 ### and REAL_CFLAGS (which we use for real compilation).
5389 ### The two are the same except on a few systems, where they are made
5390 ### different to work around various lossages. For example,
5391 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5392 ### as implying static linking.
5393
5394 ### If the CFLAGS env var is specified, we use that value
5395 ### instead of the default.
5396
5397 ### It's not important that this name contain the PID; you can't run
5398 ### two configures in the same directory and have anything work
5399 ### anyway.
5400 tempcname="conftest.c"
5401
5402 echo '
5403 #include "'${srcdir}'/src/'${opsysfile}'"
5404 #include "'${srcdir}'/src/'${machfile}'"
5405 #ifndef LIBS_MACHINE
5406 #define LIBS_MACHINE
5407 #endif
5408 #ifndef LIBS_SYSTEM
5409 #define LIBS_SYSTEM
5410 #endif
5411 #ifndef C_SWITCH_SYSTEM
5412 #define C_SWITCH_SYSTEM
5413 #endif
5414 #ifndef C_SWITCH_MACHINE
5415 #define C_SWITCH_MACHINE
5416 #endif
5417 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5418 configure___ c_switch_system=C_SWITCH_SYSTEM
5419 configure___ c_switch_machine=C_SWITCH_MACHINE
5420
5421 #ifndef LIB_X11_LIB
5422 #define LIB_X11_LIB -lX11
5423 #endif
5424
5425 #ifndef LIBX11_MACHINE
5426 #define LIBX11_MACHINE
5427 #endif
5428
5429 #ifndef LIBX11_SYSTEM
5430 #define LIBX11_SYSTEM
5431 #endif
5432 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5433
5434 #ifdef UNEXEC
5435 configure___ unexec=UNEXEC
5436 #else
5437 configure___ unexec=unexec.o
5438 #endif
5439
5440 #ifdef SYSTEM_MALLOC
5441 configure___ system_malloc=yes
5442 #else
5443 configure___ system_malloc=no
5444 #endif
5445
5446 #ifdef USE_MMAP_FOR_BUFFERS
5447 configure___ use_mmap_for_buffers=yes
5448 #else
5449 configure___ use_mmap_for_buffers=no
5450 #endif
5451
5452 #ifndef C_DEBUG_SWITCH
5453 #define C_DEBUG_SWITCH -g
5454 #endif
5455
5456 #ifndef C_OPTIMIZE_SWITCH
5457 #ifdef __GNUC__
5458 #define C_OPTIMIZE_SWITCH -O2
5459 #else
5460 #define C_OPTIMIZE_SWITCH -O
5461 #endif
5462 #endif
5463
5464 #ifndef C_WARNINGS_SWITCH
5465 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5466 #endif
5467
5468 #ifndef LD_SWITCH_MACHINE
5469 #define LD_SWITCH_MACHINE
5470 #endif
5471
5472 #ifndef LD_SWITCH_SYSTEM
5473 #define LD_SWITCH_SYSTEM
5474 #endif
5475
5476 #ifndef LD_SWITCH_X_SITE_AUX
5477 #define LD_SWITCH_X_SITE_AUX
5478 #endif
5479
5480 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5481 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5482
5483 #ifdef THIS_IS_CONFIGURE
5484
5485 /* Get the CFLAGS for tests in configure. */
5486 #ifdef __GNUC__
5487 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5488 #else
5489 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5490 #endif
5491
5492 #else /* not THIS_IS_CONFIGURE */
5493
5494 /* Get the CFLAGS for real compilation. */
5495 #ifdef __GNUC__
5496 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5497 #else
5498 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5499 #endif
5500
5501 #endif /* not THIS_IS_CONFIGURE */
5502 ' > ${tempcname}
5503
5504 # The value of CPP is a quoted variable reference, so we need to do this
5505 # to get its actual value...
5506 CPP=`eval "echo $CPP"`
5507 eval `${CPP} -Isrc ${tempcname} \
5508 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5509 if test "x$SPECIFIED_CFLAGS" = x; then
5510 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5511 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5512 else
5513 REAL_CFLAGS="$CFLAGS"
5514 fi
5515 rm ${tempcname}
5516
5517 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5518
5519 ### Make sure subsequent tests use flags consistent with the build flags.
5520
5521 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5522 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5523 else
5524 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5525 fi
5526
5527
5528
5529 # Check whether --enable-largefile was given.
5530 if test "${enable_largefile+set}" = set; then
5531 enableval=$enable_largefile;
5532 fi
5533
5534 if test "$enable_largefile" != no; then
5535
5536 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5537 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5538 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541 ac_cv_sys_largefile_CC=no
5542 if test "$GCC" != yes; then
5543 ac_save_CC=$CC
5544 while :; do
5545 # IRIX 6.2 and later do not support large files by default,
5546 # so use the C compiler's -n32 option if that helps.
5547 cat >conftest.$ac_ext <<_ACEOF
5548 /* confdefs.h. */
5549 _ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5553 #include <sys/types.h>
5554 /* Check that off_t can represent 2**63 - 1 correctly.
5555 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5556 since some C++ compilers masquerading as C compilers
5557 incorrectly reject 9223372036854775807. */
5558 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5559 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5560 && LARGE_OFF_T % 2147483647 == 1)
5561 ? 1 : -1];
5562 int
5563 main ()
5564 {
5565
5566 ;
5567 return 0;
5568 }
5569 _ACEOF
5570 rm -f conftest.$ac_objext
5571 if { (ac_try="$ac_compile"
5572 case "(($ac_try" in
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5575 esac
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_compile") 2>conftest.er1
5578 ac_status=$?
5579 grep -v '^ *+' conftest.er1 >conftest.err
5580 rm -f conftest.er1
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && {
5584 test -z "$ac_c_werror_flag" ||
5585 test ! -s conftest.err
5586 } && test -s conftest.$ac_objext; then
5587 break
5588 else
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5591
5592
5593 fi
5594
5595 rm -f core conftest.err conftest.$ac_objext
5596 CC="$CC -n32"
5597 rm -f conftest.$ac_objext
5598 if { (ac_try="$ac_compile"
5599 case "(($ac_try" in
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5602 esac
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604 (eval "$ac_compile") 2>conftest.er1
5605 ac_status=$?
5606 grep -v '^ *+' conftest.er1 >conftest.err
5607 rm -f conftest.er1
5608 cat conftest.err >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } && {
5611 test -z "$ac_c_werror_flag" ||
5612 test ! -s conftest.err
5613 } && test -s conftest.$ac_objext; then
5614 ac_cv_sys_largefile_CC=' -n32'; break
5615 else
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5618
5619
5620 fi
5621
5622 rm -f core conftest.err conftest.$ac_objext
5623 break
5624 done
5625 CC=$ac_save_CC
5626 rm -f conftest.$ac_ext
5627 fi
5628 fi
5629 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5630 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5631 if test "$ac_cv_sys_largefile_CC" != no; then
5632 CC=$CC$ac_cv_sys_largefile_CC
5633 fi
5634
5635 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5636 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5637 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640 while :; do
5641 cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h. */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 #include <sys/types.h>
5648 /* Check that off_t can represent 2**63 - 1 correctly.
5649 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5650 since some C++ compilers masquerading as C compilers
5651 incorrectly reject 9223372036854775807. */
5652 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5653 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5654 && LARGE_OFF_T % 2147483647 == 1)
5655 ? 1 : -1];
5656 int
5657 main ()
5658 {
5659
5660 ;
5661 return 0;
5662 }
5663 _ACEOF
5664 rm -f conftest.$ac_objext
5665 if { (ac_try="$ac_compile"
5666 case "(($ac_try" in
5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5669 esac
5670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671 (eval "$ac_compile") 2>conftest.er1
5672 ac_status=$?
5673 grep -v '^ *+' conftest.er1 >conftest.err
5674 rm -f conftest.er1
5675 cat conftest.err >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } && {
5678 test -z "$ac_c_werror_flag" ||
5679 test ! -s conftest.err
5680 } && test -s conftest.$ac_objext; then
5681 ac_cv_sys_file_offset_bits=no; break
5682 else
5683 echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5685
5686
5687 fi
5688
5689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690 cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h. */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 #define _FILE_OFFSET_BITS 64
5697 #include <sys/types.h>
5698 /* Check that off_t can represent 2**63 - 1 correctly.
5699 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5700 since some C++ compilers masquerading as C compilers
5701 incorrectly reject 9223372036854775807. */
5702 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5703 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5704 && LARGE_OFF_T % 2147483647 == 1)
5705 ? 1 : -1];
5706 int
5707 main ()
5708 {
5709
5710 ;
5711 return 0;
5712 }
5713 _ACEOF
5714 rm -f conftest.$ac_objext
5715 if { (ac_try="$ac_compile"
5716 case "(($ac_try" in
5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5719 esac
5720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5721 (eval "$ac_compile") 2>conftest.er1
5722 ac_status=$?
5723 grep -v '^ *+' conftest.er1 >conftest.err
5724 rm -f conftest.er1
5725 cat conftest.err >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } && {
5728 test -z "$ac_c_werror_flag" ||
5729 test ! -s conftest.err
5730 } && test -s conftest.$ac_objext; then
5731 ac_cv_sys_file_offset_bits=64; break
5732 else
5733 echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5735
5736
5737 fi
5738
5739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740 ac_cv_sys_file_offset_bits=unknown
5741 break
5742 done
5743 fi
5744 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5745 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5746 case $ac_cv_sys_file_offset_bits in #(
5747 no | unknown) ;;
5748 *)
5749 cat >>confdefs.h <<_ACEOF
5750 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5751 _ACEOF
5752 ;;
5753 esac
5754 rm -f conftest*
5755 if test $ac_cv_sys_file_offset_bits = unknown; then
5756 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5757 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5758 if test "${ac_cv_sys_large_files+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761 while :; do
5762 cat >conftest.$ac_ext <<_ACEOF
5763 /* confdefs.h. */
5764 _ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h. */
5768 #include <sys/types.h>
5769 /* Check that off_t can represent 2**63 - 1 correctly.
5770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5771 since some C++ compilers masquerading as C compilers
5772 incorrectly reject 9223372036854775807. */
5773 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5775 && LARGE_OFF_T % 2147483647 == 1)
5776 ? 1 : -1];
5777 int
5778 main ()
5779 {
5780
5781 ;
5782 return 0;
5783 }
5784 _ACEOF
5785 rm -f conftest.$ac_objext
5786 if { (ac_try="$ac_compile"
5787 case "(($ac_try" in
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5790 esac
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_compile") 2>conftest.er1
5793 ac_status=$?
5794 grep -v '^ *+' conftest.er1 >conftest.err
5795 rm -f conftest.er1
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } && {
5799 test -z "$ac_c_werror_flag" ||
5800 test ! -s conftest.err
5801 } && test -s conftest.$ac_objext; then
5802 ac_cv_sys_large_files=no; break
5803 else
5804 echo "$as_me: failed program was:" >&5
5805 sed 's/^/| /' conftest.$ac_ext >&5
5806
5807
5808 fi
5809
5810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5811 cat >conftest.$ac_ext <<_ACEOF
5812 /* confdefs.h. */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 #define _LARGE_FILES 1
5818 #include <sys/types.h>
5819 /* Check that off_t can represent 2**63 - 1 correctly.
5820 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5821 since some C++ compilers masquerading as C compilers
5822 incorrectly reject 9223372036854775807. */
5823 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5824 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5825 && LARGE_OFF_T % 2147483647 == 1)
5826 ? 1 : -1];
5827 int
5828 main ()
5829 {
5830
5831 ;
5832 return 0;
5833 }
5834 _ACEOF
5835 rm -f conftest.$ac_objext
5836 if { (ac_try="$ac_compile"
5837 case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5840 esac
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_compile") 2>conftest.er1
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } && {
5849 test -z "$ac_c_werror_flag" ||
5850 test ! -s conftest.err
5851 } && test -s conftest.$ac_objext; then
5852 ac_cv_sys_large_files=1; break
5853 else
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5856
5857
5858 fi
5859
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 ac_cv_sys_large_files=unknown
5862 break
5863 done
5864 fi
5865 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5866 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5867 case $ac_cv_sys_large_files in #(
5868 no | unknown) ;;
5869 *)
5870 cat >>confdefs.h <<_ACEOF
5871 #define _LARGE_FILES $ac_cv_sys_large_files
5872 _ACEOF
5873 ;;
5874 esac
5875 rm -f conftest*
5876 fi
5877 fi
5878
5879
5880
5881 ### The standard library on x86-64 GNU/Linux distributions can
5882 ### be located in either /usr/lib64 or /usr/lib.
5883 case "${canonical}" in
5884 x86_64-*-linux-gnu* )
5885 if test -d /usr/lib64; then
5886
5887 cat >>confdefs.h <<\_ACEOF
5888 #define HAVE_X86_64_LIB64_DIR 1
5889 _ACEOF
5890
5891 fi
5892 esac
5893
5894
5895
5896
5897 if test "${with_sound}" != "no"; then
5898 # Sound support for GNU/Linux and the free BSDs.
5899 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5900 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5901 if test "${ac_cv_header_stdc+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h. */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910 #include <stdlib.h>
5911 #include <stdarg.h>
5912 #include <string.h>
5913 #include <float.h>
5914
5915 int
5916 main ()
5917 {
5918
5919 ;
5920 return 0;
5921 }
5922 _ACEOF
5923 rm -f conftest.$ac_objext
5924 if { (ac_try="$ac_compile"
5925 case "(($ac_try" in
5926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927 *) ac_try_echo=$ac_try;;
5928 esac
5929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930 (eval "$ac_compile") 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } && {
5937 test -z "$ac_c_werror_flag" ||
5938 test ! -s conftest.err
5939 } && test -s conftest.$ac_objext; then
5940 ac_cv_header_stdc=yes
5941 else
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5944
5945 ac_cv_header_stdc=no
5946 fi
5947
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949
5950 if test $ac_cv_header_stdc = yes; then
5951 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5952 cat >conftest.$ac_ext <<_ACEOF
5953 /* confdefs.h. */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5958 #include <string.h>
5959
5960 _ACEOF
5961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5962 $EGREP "memchr" >/dev/null 2>&1; then
5963 :
5964 else
5965 ac_cv_header_stdc=no
5966 fi
5967 rm -f conftest*
5968
5969 fi
5970
5971 if test $ac_cv_header_stdc = yes; then
5972 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5973 cat >conftest.$ac_ext <<_ACEOF
5974 /* confdefs.h. */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5979 #include <stdlib.h>
5980
5981 _ACEOF
5982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5983 $EGREP "free" >/dev/null 2>&1; then
5984 :
5985 else
5986 ac_cv_header_stdc=no
5987 fi
5988 rm -f conftest*
5989
5990 fi
5991
5992 if test $ac_cv_header_stdc = yes; then
5993 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5994 if test "$cross_compiling" = yes; then
5995 :
5996 else
5997 cat >conftest.$ac_ext <<_ACEOF
5998 /* confdefs.h. */
5999 _ACEOF
6000 cat confdefs.h >>conftest.$ac_ext
6001 cat >>conftest.$ac_ext <<_ACEOF
6002 /* end confdefs.h. */
6003 #include <ctype.h>
6004 #include <stdlib.h>
6005 #if ((' ' & 0x0FF) == 0x020)
6006 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6007 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6008 #else
6009 # define ISLOWER(c) \
6010 (('a' <= (c) && (c) <= 'i') \
6011 || ('j' <= (c) && (c) <= 'r') \
6012 || ('s' <= (c) && (c) <= 'z'))
6013 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6014 #endif
6015
6016 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6017 int
6018 main ()
6019 {
6020 int i;
6021 for (i = 0; i < 256; i++)
6022 if (XOR (islower (i), ISLOWER (i))
6023 || toupper (i) != TOUPPER (i))
6024 return 2;
6025 return 0;
6026 }
6027 _ACEOF
6028 rm -f conftest$ac_exeext
6029 if { (ac_try="$ac_link"
6030 case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6033 esac
6034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_link") 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6039 { (case "(($ac_try" in
6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041 *) ac_try_echo=$ac_try;;
6042 esac
6043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6044 (eval "$ac_try") 2>&5
6045 ac_status=$?
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; }; then
6048 :
6049 else
6050 echo "$as_me: program exited with status $ac_status" >&5
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6053
6054 ( exit $ac_status )
6055 ac_cv_header_stdc=no
6056 fi
6057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6058 fi
6059
6060
6061 fi
6062 fi
6063 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6064 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6065 if test $ac_cv_header_stdc = yes; then
6066
6067 cat >>confdefs.h <<\_ACEOF
6068 #define STDC_HEADERS 1
6069 _ACEOF
6070
6071 fi
6072
6073 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6084 inttypes.h stdint.h unistd.h
6085 do
6086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092 cat >conftest.$ac_ext <<_ACEOF
6093 /* confdefs.h. */
6094 _ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6098 $ac_includes_default
6099
6100 #include <$ac_header>
6101 _ACEOF
6102 rm -f conftest.$ac_objext
6103 if { (ac_try="$ac_compile"
6104 case "(($ac_try" in
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6107 esac
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_compile") 2>conftest.er1
6110 ac_status=$?
6111 grep -v '^ *+' conftest.er1 >conftest.err
6112 rm -f conftest.er1
6113 cat conftest.err >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } && {
6116 test -z "$ac_c_werror_flag" ||
6117 test ! -s conftest.err
6118 } && test -s conftest.$ac_objext; then
6119 eval "$as_ac_Header=yes"
6120 else
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6123
6124 eval "$as_ac_Header=no"
6125 fi
6126
6127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128 fi
6129 ac_res=`eval echo '${'$as_ac_Header'}'`
6130 { echo "$as_me:$LINENO: result: $ac_res" >&5
6131 echo "${ECHO_T}$ac_res" >&6; }
6132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6133 cat >>confdefs.h <<_ACEOF
6134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6135 _ACEOF
6136
6137 fi
6138
6139 done
6140
6141
6142
6143
6144
6145 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6146 do
6147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 fi
6154 ac_res=`eval echo '${'$as_ac_Header'}'`
6155 { echo "$as_me:$LINENO: result: $ac_res" >&5
6156 echo "${ECHO_T}$ac_res" >&6; }
6157 else
6158 # Is the header compilable?
6159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6161 cat >conftest.$ac_ext <<_ACEOF
6162 /* confdefs.h. */
6163 _ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6167 $ac_includes_default
6168 #include <$ac_header>
6169 _ACEOF
6170 rm -f conftest.$ac_objext
6171 if { (ac_try="$ac_compile"
6172 case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175 esac
6176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_compile") 2>conftest.er1
6178 ac_status=$?
6179 grep -v '^ *+' conftest.er1 >conftest.err
6180 rm -f conftest.er1
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } && {
6184 test -z "$ac_c_werror_flag" ||
6185 test ! -s conftest.err
6186 } && test -s conftest.$ac_objext; then
6187 ac_header_compiler=yes
6188 else
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6191
6192 ac_header_compiler=no
6193 fi
6194
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6197 echo "${ECHO_T}$ac_header_compiler" >&6; }
6198
6199 # Is the header present?
6200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6202 cat >conftest.$ac_ext <<_ACEOF
6203 /* confdefs.h. */
6204 _ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 #include <$ac_header>
6209 _ACEOF
6210 if { (ac_try="$ac_cpp conftest.$ac_ext"
6211 case "(($ac_try" in
6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6214 esac
6215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6217 ac_status=$?
6218 grep -v '^ *+' conftest.er1 >conftest.err
6219 rm -f conftest.er1
6220 cat conftest.err >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } >/dev/null && {
6223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6224 test ! -s conftest.err
6225 }; then
6226 ac_header_preproc=yes
6227 else
6228 echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6230
6231 ac_header_preproc=no
6232 fi
6233
6234 rm -f conftest.err conftest.$ac_ext
6235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6236 echo "${ECHO_T}$ac_header_preproc" >&6; }
6237
6238 # So? What about this header?
6239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6240 yes:no: )
6241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6245 ac_header_preproc=yes
6246 ;;
6247 no:yes:* )
6248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6260
6261 ;;
6262 esac
6263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268 eval "$as_ac_Header=\$ac_header_preproc"
6269 fi
6270 ac_res=`eval echo '${'$as_ac_Header'}'`
6271 { echo "$as_me:$LINENO: result: $ac_res" >&5
6272 echo "${ECHO_T}$ac_res" >&6; }
6273
6274 fi
6275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6276 cat >>confdefs.h <<_ACEOF
6277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6278 _ACEOF
6279
6280 fi
6281
6282 done
6283
6284 # Emulation library used on NetBSD.
6285 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6286 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6287 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290 ac_check_lib_save_LIBS=$LIBS
6291 LIBS="-lossaudio $LIBS"
6292 cat >conftest.$ac_ext <<_ACEOF
6293 /* confdefs.h. */
6294 _ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298
6299 /* Override any GCC internal prototype to avoid an error.
6300 Use char because int might match the return type of a GCC
6301 builtin and then its argument prototype would still apply. */
6302 #ifdef __cplusplus
6303 extern "C"
6304 #endif
6305 char _oss_ioctl ();
6306 int
6307 main ()
6308 {
6309 return _oss_ioctl ();
6310 ;
6311 return 0;
6312 }
6313 _ACEOF
6314 rm -f conftest.$ac_objext conftest$ac_exeext
6315 if { (ac_try="$ac_link"
6316 case "(($ac_try" in
6317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318 *) ac_try_echo=$ac_try;;
6319 esac
6320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321 (eval "$ac_link") 2>conftest.er1
6322 ac_status=$?
6323 grep -v '^ *+' conftest.er1 >conftest.err
6324 rm -f conftest.er1
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } && {
6328 test -z "$ac_c_werror_flag" ||
6329 test ! -s conftest.err
6330 } && test -s conftest$ac_exeext &&
6331 $as_test_x conftest$ac_exeext; then
6332 ac_cv_lib_ossaudio__oss_ioctl=yes
6333 else
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6336
6337 ac_cv_lib_ossaudio__oss_ioctl=no
6338 fi
6339
6340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6341 conftest$ac_exeext conftest.$ac_ext
6342 LIBS=$ac_check_lib_save_LIBS
6343 fi
6344 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6345 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6346 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6347 LIBSOUND=-lossaudio
6348 else
6349 LIBSOUND=
6350 fi
6351
6352
6353
6354 ALSA_REQUIRED=1.0.0
6355 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6356 if test "X${with_pkg_config_prog}" != X; then
6357 PKG_CONFIG="${with_pkg_config_prog}"
6358 fi
6359
6360 succeeded=no
6361
6362 if test -z "$PKG_CONFIG"; then
6363 # Extract the first word of "pkg-config", so it can be a program name with args.
6364 set dummy pkg-config; ac_word=$2
6365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6367 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370 case $PKG_CONFIG in
6371 [\\/]* | ?:[\\/]*)
6372 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6373 ;;
6374 *)
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6377 do
6378 IFS=$as_save_IFS
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6382 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 break 2
6385 fi
6386 done
6387 done
6388 IFS=$as_save_IFS
6389
6390 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6391 ;;
6392 esac
6393 fi
6394 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6395 if test -n "$PKG_CONFIG"; then
6396 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6397 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6398 else
6399 { echo "$as_me:$LINENO: result: no" >&5
6400 echo "${ECHO_T}no" >&6; }
6401 fi
6402
6403
6404 fi
6405
6406 if test "$PKG_CONFIG" = "no" ; then
6407 HAVE_ALSA=no
6408 else
6409 PKG_CONFIG_MIN_VERSION=0.9.0
6410 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6411 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6412 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6413
6414 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6415 { echo "$as_me:$LINENO: result: yes" >&5
6416 echo "${ECHO_T}yes" >&6; }
6417 succeeded=yes
6418
6419 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6420 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6421 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6422 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6423 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6424
6425 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6426 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6427 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6428 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6429 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6430 else
6431 { echo "$as_me:$LINENO: result: no" >&5
6432 echo "${ECHO_T}no" >&6; }
6433 ALSA_CFLAGS=""
6434 ALSA_LIBS=""
6435 ## If we have a custom action on failure, don't print errors, but
6436 ## do set a variable so people can do so.
6437 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6438
6439 fi
6440
6441
6442
6443 else
6444 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6445 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6446 fi
6447 fi
6448
6449 if test $succeeded = yes; then
6450 HAVE_ALSA=yes
6451 else
6452 HAVE_ALSA=no
6453 fi
6454
6455 if test $HAVE_ALSA = yes; then
6456 SAVE_CFLAGS="$CFLAGS"
6457 SAVE_LDFLAGS="$LDFLAGS"
6458 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6459 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6460 cat >conftest.$ac_ext <<_ACEOF
6461 /* confdefs.h. */
6462 _ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 #include <asoundlib.h>
6467 int
6468 main ()
6469 {
6470 snd_lib_error_set_handler (0);
6471 ;
6472 return 0;
6473 }
6474 _ACEOF
6475 rm -f conftest.$ac_objext
6476 if { (ac_try="$ac_compile"
6477 case "(($ac_try" in
6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6480 esac
6481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482 (eval "$ac_compile") 2>conftest.er1
6483 ac_status=$?
6484 grep -v '^ *+' conftest.er1 >conftest.err
6485 rm -f conftest.er1
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } && {
6489 test -z "$ac_c_werror_flag" ||
6490 test ! -s conftest.err
6491 } && test -s conftest.$ac_objext; then
6492 emacs_alsa_normal=yes
6493 else
6494 echo "$as_me: failed program was:" >&5
6495 sed 's/^/| /' conftest.$ac_ext >&5
6496
6497 emacs_alsa_normal=no
6498 fi
6499
6500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501 if test "$emacs_alsa_normal" != yes; then
6502 cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h. */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6508 #include <alsa/asoundlib.h>
6509 int
6510 main ()
6511 {
6512 snd_lib_error_set_handler (0);
6513 ;
6514 return 0;
6515 }
6516 _ACEOF
6517 rm -f conftest.$ac_objext
6518 if { (ac_try="$ac_compile"
6519 case "(($ac_try" in
6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6522 esac
6523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524 (eval "$ac_compile") 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } && {
6531 test -z "$ac_c_werror_flag" ||
6532 test ! -s conftest.err
6533 } && test -s conftest.$ac_objext; then
6534 emacs_alsa_subdir=yes
6535 else
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6538
6539 emacs_alsa_subdir=no
6540 fi
6541
6542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543 if test "$emacs_alsa_subdir" != yes; then
6544 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6545 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6546 { (exit 1); exit 1; }; }
6547 fi
6548 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6549 fi
6550
6551 CFLAGS="$SAVE_CFLAGS"
6552 LDFLAGS="$SAVE_LDFLAGS"
6553 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6554 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6555
6556 cat >>confdefs.h <<\_ACEOF
6557 #define HAVE_ALSA 1
6558 _ACEOF
6559
6560 fi
6561
6562 fi
6563
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 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6590 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6591 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6592 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6593 sys/utsname.h pwd.h
6594 do
6595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 fi
6602 ac_res=`eval echo '${'$as_ac_Header'}'`
6603 { echo "$as_me:$LINENO: result: $ac_res" >&5
6604 echo "${ECHO_T}$ac_res" >&6; }
6605 else
6606 # Is the header compilable?
6607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6609 cat >conftest.$ac_ext <<_ACEOF
6610 /* confdefs.h. */
6611 _ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6615 $ac_includes_default
6616 #include <$ac_header>
6617 _ACEOF
6618 rm -f conftest.$ac_objext
6619 if { (ac_try="$ac_compile"
6620 case "(($ac_try" in
6621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6623 esac
6624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6625 (eval "$ac_compile") 2>conftest.er1
6626 ac_status=$?
6627 grep -v '^ *+' conftest.er1 >conftest.err
6628 rm -f conftest.er1
6629 cat conftest.err >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } && {
6632 test -z "$ac_c_werror_flag" ||
6633 test ! -s conftest.err
6634 } && test -s conftest.$ac_objext; then
6635 ac_header_compiler=yes
6636 else
6637 echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.$ac_ext >&5
6639
6640 ac_header_compiler=no
6641 fi
6642
6643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6645 echo "${ECHO_T}$ac_header_compiler" >&6; }
6646
6647 # Is the header present?
6648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6650 cat >conftest.$ac_ext <<_ACEOF
6651 /* confdefs.h. */
6652 _ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 #include <$ac_header>
6657 _ACEOF
6658 if { (ac_try="$ac_cpp conftest.$ac_ext"
6659 case "(($ac_try" in
6660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6661 *) ac_try_echo=$ac_try;;
6662 esac
6663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6665 ac_status=$?
6666 grep -v '^ *+' conftest.er1 >conftest.err
6667 rm -f conftest.er1
6668 cat conftest.err >&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } >/dev/null && {
6671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6672 test ! -s conftest.err
6673 }; then
6674 ac_header_preproc=yes
6675 else
6676 echo "$as_me: failed program was:" >&5
6677 sed 's/^/| /' conftest.$ac_ext >&5
6678
6679 ac_header_preproc=no
6680 fi
6681
6682 rm -f conftest.err conftest.$ac_ext
6683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6684 echo "${ECHO_T}$ac_header_preproc" >&6; }
6685
6686 # So? What about this header?
6687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6688 yes:no: )
6689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6693 ac_header_preproc=yes
6694 ;;
6695 no:yes:* )
6696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6708
6709 ;;
6710 esac
6711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 else
6716 eval "$as_ac_Header=\$ac_header_preproc"
6717 fi
6718 ac_res=`eval echo '${'$as_ac_Header'}'`
6719 { echo "$as_me:$LINENO: result: $ac_res" >&5
6720 echo "${ECHO_T}$ac_res" >&6; }
6721
6722 fi
6723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6724 cat >>confdefs.h <<_ACEOF
6725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6726 _ACEOF
6727
6728 fi
6729
6730 done
6731
6732
6733 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6734 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6735 cat >conftest.$ac_ext <<_ACEOF
6736 /* confdefs.h. */
6737 _ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741 #include <sys/personality.h>
6742 int
6743 main ()
6744 {
6745 personality (PER_LINUX32)
6746 ;
6747 return 0;
6748 }
6749 _ACEOF
6750 rm -f conftest.$ac_objext
6751 if { (ac_try="$ac_compile"
6752 case "(($ac_try" in
6753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6754 *) ac_try_echo=$ac_try;;
6755 esac
6756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6757 (eval "$ac_compile") 2>conftest.er1
6758 ac_status=$?
6759 grep -v '^ *+' conftest.er1 >conftest.err
6760 rm -f conftest.er1
6761 cat conftest.err >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } && {
6764 test -z "$ac_c_werror_flag" ||
6765 test ! -s conftest.err
6766 } && test -s conftest.$ac_objext; then
6767 emacs_cv_personality_linux32=yes
6768 else
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6771
6772 emacs_cv_personality_linux32=no
6773 fi
6774
6775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6776 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6777 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6778
6779 if test $emacs_cv_personality_linux32 = yes; then
6780
6781 cat >>confdefs.h <<\_ACEOF
6782 #define HAVE_PERSONALITY_LINUX32 1
6783 _ACEOF
6784
6785 fi
6786
6787
6788 for ac_header in term.h
6789 do
6790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 else
6796 cat >conftest.$ac_ext <<_ACEOF
6797 /* confdefs.h. */
6798 _ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6802 #include <$ac_header>
6803 _ACEOF
6804 if { (ac_try="$ac_cpp conftest.$ac_ext"
6805 case "(($ac_try" in
6806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6807 *) ac_try_echo=$ac_try;;
6808 esac
6809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6811 ac_status=$?
6812 grep -v '^ *+' conftest.er1 >conftest.err
6813 rm -f conftest.er1
6814 cat conftest.err >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } >/dev/null && {
6817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6818 test ! -s conftest.err
6819 }; then
6820 eval "$as_ac_Header=yes"
6821 else
6822 echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6824
6825 eval "$as_ac_Header=no"
6826 fi
6827
6828 rm -f conftest.err conftest.$ac_ext
6829 fi
6830 ac_res=`eval echo '${'$as_ac_Header'}'`
6831 { echo "$as_me:$LINENO: result: $ac_res" >&5
6832 echo "${ECHO_T}$ac_res" >&6; }
6833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6834 cat >>confdefs.h <<_ACEOF
6835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6836 _ACEOF
6837
6838 fi
6839
6840 done
6841
6842 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6843 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6844 if test "${ac_cv_header_stdc+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 else
6847 cat >conftest.$ac_ext <<_ACEOF
6848 /* confdefs.h. */
6849 _ACEOF
6850 cat confdefs.h >>conftest.$ac_ext
6851 cat >>conftest.$ac_ext <<_ACEOF
6852 /* end confdefs.h. */
6853 #include <stdlib.h>
6854 #include <stdarg.h>
6855 #include <string.h>
6856 #include <float.h>
6857
6858 int
6859 main ()
6860 {
6861
6862 ;
6863 return 0;
6864 }
6865 _ACEOF
6866 rm -f conftest.$ac_objext
6867 if { (ac_try="$ac_compile"
6868 case "(($ac_try" in
6869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6870 *) ac_try_echo=$ac_try;;
6871 esac
6872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6873 (eval "$ac_compile") 2>conftest.er1
6874 ac_status=$?
6875 grep -v '^ *+' conftest.er1 >conftest.err
6876 rm -f conftest.er1
6877 cat conftest.err >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } && {
6880 test -z "$ac_c_werror_flag" ||
6881 test ! -s conftest.err
6882 } && test -s conftest.$ac_objext; then
6883 ac_cv_header_stdc=yes
6884 else
6885 echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6887
6888 ac_cv_header_stdc=no
6889 fi
6890
6891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892
6893 if test $ac_cv_header_stdc = yes; then
6894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6895 cat >conftest.$ac_ext <<_ACEOF
6896 /* confdefs.h. */
6897 _ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6901 #include <string.h>
6902
6903 _ACEOF
6904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6905 $EGREP "memchr" >/dev/null 2>&1; then
6906 :
6907 else
6908 ac_cv_header_stdc=no
6909 fi
6910 rm -f conftest*
6911
6912 fi
6913
6914 if test $ac_cv_header_stdc = yes; then
6915 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6916 cat >conftest.$ac_ext <<_ACEOF
6917 /* confdefs.h. */
6918 _ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6922 #include <stdlib.h>
6923
6924 _ACEOF
6925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6926 $EGREP "free" >/dev/null 2>&1; then
6927 :
6928 else
6929 ac_cv_header_stdc=no
6930 fi
6931 rm -f conftest*
6932
6933 fi
6934
6935 if test $ac_cv_header_stdc = yes; then
6936 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6937 if test "$cross_compiling" = yes; then
6938 :
6939 else
6940 cat >conftest.$ac_ext <<_ACEOF
6941 /* confdefs.h. */
6942 _ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6946 #include <ctype.h>
6947 #include <stdlib.h>
6948 #if ((' ' & 0x0FF) == 0x020)
6949 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6950 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6951 #else
6952 # define ISLOWER(c) \
6953 (('a' <= (c) && (c) <= 'i') \
6954 || ('j' <= (c) && (c) <= 'r') \
6955 || ('s' <= (c) && (c) <= 'z'))
6956 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6957 #endif
6958
6959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6960 int
6961 main ()
6962 {
6963 int i;
6964 for (i = 0; i < 256; i++)
6965 if (XOR (islower (i), ISLOWER (i))
6966 || toupper (i) != TOUPPER (i))
6967 return 2;
6968 return 0;
6969 }
6970 _ACEOF
6971 rm -f conftest$ac_exeext
6972 if { (ac_try="$ac_link"
6973 case "(($ac_try" in
6974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6975 *) ac_try_echo=$ac_try;;
6976 esac
6977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6978 (eval "$ac_link") 2>&5
6979 ac_status=$?
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6982 { (case "(($ac_try" in
6983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6984 *) ac_try_echo=$ac_try;;
6985 esac
6986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6987 (eval "$ac_try") 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6991 :
6992 else
6993 echo "$as_me: program exited with status $ac_status" >&5
6994 echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6996
6997 ( exit $ac_status )
6998 ac_cv_header_stdc=no
6999 fi
7000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7001 fi
7002
7003
7004 fi
7005 fi
7006 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7007 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7008 if test $ac_cv_header_stdc = yes; then
7009
7010 cat >>confdefs.h <<\_ACEOF
7011 #define STDC_HEADERS 1
7012 _ACEOF
7013
7014 fi
7015
7016 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7017 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7018 if test "${ac_cv_header_time+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 else
7021 cat >conftest.$ac_ext <<_ACEOF
7022 /* confdefs.h. */
7023 _ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7027 #include <sys/types.h>
7028 #include <sys/time.h>
7029 #include <time.h>
7030
7031 int
7032 main ()
7033 {
7034 if ((struct tm *) 0)
7035 return 0;
7036 ;
7037 return 0;
7038 }
7039 _ACEOF
7040 rm -f conftest.$ac_objext
7041 if { (ac_try="$ac_compile"
7042 case "(($ac_try" in
7043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044 *) ac_try_echo=$ac_try;;
7045 esac
7046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7047 (eval "$ac_compile") 2>conftest.er1
7048 ac_status=$?
7049 grep -v '^ *+' conftest.er1 >conftest.err
7050 rm -f conftest.er1
7051 cat conftest.err >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } && {
7054 test -z "$ac_c_werror_flag" ||
7055 test ! -s conftest.err
7056 } && test -s conftest.$ac_objext; then
7057 ac_cv_header_time=yes
7058 else
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7061
7062 ac_cv_header_time=no
7063 fi
7064
7065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066 fi
7067 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7068 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7069 if test $ac_cv_header_time = yes; then
7070
7071 cat >>confdefs.h <<\_ACEOF
7072 #define TIME_WITH_SYS_TIME 1
7073 _ACEOF
7074
7075 fi
7076
7077 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7078 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7079 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082 cat >conftest.$ac_ext <<_ACEOF
7083 /* confdefs.h. */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7088 $ac_includes_default
7089 int
7090 main ()
7091 {
7092 #ifndef sys_siglist
7093 (void) sys_siglist;
7094 #endif
7095
7096 ;
7097 return 0;
7098 }
7099 _ACEOF
7100 rm -f conftest.$ac_objext
7101 if { (ac_try="$ac_compile"
7102 case "(($ac_try" in
7103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7104 *) ac_try_echo=$ac_try;;
7105 esac
7106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7107 (eval "$ac_compile") 2>conftest.er1
7108 ac_status=$?
7109 grep -v '^ *+' conftest.er1 >conftest.err
7110 rm -f conftest.er1
7111 cat conftest.err >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } && {
7114 test -z "$ac_c_werror_flag" ||
7115 test ! -s conftest.err
7116 } && test -s conftest.$ac_objext; then
7117 ac_cv_have_decl_sys_siglist=yes
7118 else
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7121
7122 ac_cv_have_decl_sys_siglist=no
7123 fi
7124
7125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7126 fi
7127 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7128 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7129 if test $ac_cv_have_decl_sys_siglist = yes; then
7130
7131 cat >>confdefs.h <<_ACEOF
7132 #define HAVE_DECL_SYS_SIGLIST 1
7133 _ACEOF
7134
7135
7136 else
7137 cat >>confdefs.h <<_ACEOF
7138 #define HAVE_DECL_SYS_SIGLIST 0
7139 _ACEOF
7140
7141
7142 fi
7143
7144
7145 if test $ac_cv_have_decl_sys_siglist != yes; then
7146 # For Tru64, at least:
7147 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7148 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7149 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152 cat >conftest.$ac_ext <<_ACEOF
7153 /* confdefs.h. */
7154 _ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7158 $ac_includes_default
7159 int
7160 main ()
7161 {
7162 #ifndef __sys_siglist
7163 (void) __sys_siglist;
7164 #endif
7165
7166 ;
7167 return 0;
7168 }
7169 _ACEOF
7170 rm -f conftest.$ac_objext
7171 if { (ac_try="$ac_compile"
7172 case "(($ac_try" in
7173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7174 *) ac_try_echo=$ac_try;;
7175 esac
7176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7177 (eval "$ac_compile") 2>conftest.er1
7178 ac_status=$?
7179 grep -v '^ *+' conftest.er1 >conftest.err
7180 rm -f conftest.er1
7181 cat conftest.err >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } && {
7184 test -z "$ac_c_werror_flag" ||
7185 test ! -s conftest.err
7186 } && test -s conftest.$ac_objext; then
7187 ac_cv_have_decl___sys_siglist=yes
7188 else
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7191
7192 ac_cv_have_decl___sys_siglist=no
7193 fi
7194
7195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196 fi
7197 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7198 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7199 if test $ac_cv_have_decl___sys_siglist = yes; then
7200
7201 cat >>confdefs.h <<_ACEOF
7202 #define HAVE_DECL___SYS_SIGLIST 1
7203 _ACEOF
7204
7205
7206 else
7207 cat >>confdefs.h <<_ACEOF
7208 #define HAVE_DECL___SYS_SIGLIST 0
7209 _ACEOF
7210
7211
7212 fi
7213
7214
7215 if test $ac_cv_have_decl___sys_siglist = yes; then
7216
7217 cat >>confdefs.h <<\_ACEOF
7218 #define sys_siglist __sys_siglist
7219 _ACEOF
7220
7221 fi
7222 fi
7223 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7224 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7225 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228 cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h. */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 #include <sys/types.h>
7235 #include <sys/wait.h>
7236 #ifndef WEXITSTATUS
7237 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7238 #endif
7239 #ifndef WIFEXITED
7240 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7241 #endif
7242
7243 int
7244 main ()
7245 {
7246 int s;
7247 wait (&s);
7248 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7249 ;
7250 return 0;
7251 }
7252 _ACEOF
7253 rm -f conftest.$ac_objext
7254 if { (ac_try="$ac_compile"
7255 case "(($ac_try" in
7256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7257 *) ac_try_echo=$ac_try;;
7258 esac
7259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7260 (eval "$ac_compile") 2>conftest.er1
7261 ac_status=$?
7262 grep -v '^ *+' conftest.er1 >conftest.err
7263 rm -f conftest.er1
7264 cat conftest.err >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } && {
7267 test -z "$ac_c_werror_flag" ||
7268 test ! -s conftest.err
7269 } && test -s conftest.$ac_objext; then
7270 ac_cv_header_sys_wait_h=yes
7271 else
7272 echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7274
7275 ac_cv_header_sys_wait_h=no
7276 fi
7277
7278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279 fi
7280 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7281 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7282 if test $ac_cv_header_sys_wait_h = yes; then
7283
7284 cat >>confdefs.h <<\_ACEOF
7285 #define HAVE_SYS_WAIT_H 1
7286 _ACEOF
7287
7288 fi
7289
7290
7291 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7292 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7293 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296 cat >conftest.$ac_ext <<_ACEOF
7297 /* confdefs.h. */
7298 _ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h. */
7302 #ifdef TIME_WITH_SYS_TIME
7303 #include <sys/time.h>
7304 #include <time.h>
7305 #else
7306 #ifdef HAVE_SYS_TIME_H
7307 #include <sys/time.h>
7308 #else
7309 #include <time.h>
7310 #endif
7311 #endif
7312 #ifdef HAVE_UTIME_H
7313 #include <utime.h>
7314 #endif
7315 int
7316 main ()
7317 {
7318 static struct utimbuf x; x.actime = x.modtime;
7319 ;
7320 return 0;
7321 }
7322 _ACEOF
7323 rm -f conftest.$ac_objext
7324 if { (ac_try="$ac_compile"
7325 case "(($ac_try" in
7326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7327 *) ac_try_echo=$ac_try;;
7328 esac
7329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7330 (eval "$ac_compile") 2>conftest.er1
7331 ac_status=$?
7332 grep -v '^ *+' conftest.er1 >conftest.err
7333 rm -f conftest.er1
7334 cat conftest.err >&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } && {
7337 test -z "$ac_c_werror_flag" ||
7338 test ! -s conftest.err
7339 } && test -s conftest.$ac_objext; then
7340 emacs_cv_struct_utimbuf=yes
7341 else
7342 echo "$as_me: failed program was:" >&5
7343 sed 's/^/| /' conftest.$ac_ext >&5
7344
7345 emacs_cv_struct_utimbuf=no
7346 fi
7347
7348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7349 fi
7350 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7351 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7352 if test $emacs_cv_struct_utimbuf = yes; then
7353
7354 cat >>confdefs.h <<\_ACEOF
7355 #define HAVE_STRUCT_UTIMBUF 1
7356 _ACEOF
7357
7358 fi
7359
7360 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7361 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7362 if test "${ac_cv_type_signal+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365 cat >conftest.$ac_ext <<_ACEOF
7366 /* confdefs.h. */
7367 _ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7371 #include <sys/types.h>
7372 #include <signal.h>
7373
7374 int
7375 main ()
7376 {
7377 return *(signal (0, 0)) (0) == 1;
7378 ;
7379 return 0;
7380 }
7381 _ACEOF
7382 rm -f conftest.$ac_objext
7383 if { (ac_try="$ac_compile"
7384 case "(($ac_try" in
7385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7386 *) ac_try_echo=$ac_try;;
7387 esac
7388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7389 (eval "$ac_compile") 2>conftest.er1
7390 ac_status=$?
7391 grep -v '^ *+' conftest.er1 >conftest.err
7392 rm -f conftest.er1
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } && {
7396 test -z "$ac_c_werror_flag" ||
7397 test ! -s conftest.err
7398 } && test -s conftest.$ac_objext; then
7399 ac_cv_type_signal=int
7400 else
7401 echo "$as_me: failed program was:" >&5
7402 sed 's/^/| /' conftest.$ac_ext >&5
7403
7404 ac_cv_type_signal=void
7405 fi
7406
7407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 fi
7409 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7410 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7411
7412 cat >>confdefs.h <<_ACEOF
7413 #define RETSIGTYPE $ac_cv_type_signal
7414 _ACEOF
7415
7416
7417
7418 { echo "$as_me:$LINENO: checking for speed_t" >&5
7419 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7420 if test "${emacs_cv_speed_t+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423 cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h. */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 #include <termios.h>
7430 int
7431 main ()
7432 {
7433 speed_t x = 1;
7434 ;
7435 return 0;
7436 }
7437 _ACEOF
7438 rm -f conftest.$ac_objext
7439 if { (ac_try="$ac_compile"
7440 case "(($ac_try" in
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7443 esac
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_compile") 2>conftest.er1
7446 ac_status=$?
7447 grep -v '^ *+' conftest.er1 >conftest.err
7448 rm -f conftest.er1
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest.$ac_objext; then
7455 emacs_cv_speed_t=yes
7456 else
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7459
7460 emacs_cv_speed_t=no
7461 fi
7462
7463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7464 fi
7465 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7466 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7467 if test $emacs_cv_speed_t = yes; then
7468
7469 cat >>confdefs.h <<\_ACEOF
7470 #define HAVE_SPEED_T 1
7471 _ACEOF
7472
7473 fi
7474
7475 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7476 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7477 if test "${emacs_cv_struct_timeval+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 else
7480 cat >conftest.$ac_ext <<_ACEOF
7481 /* confdefs.h. */
7482 _ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h. */
7486 #ifdef TIME_WITH_SYS_TIME
7487 #include <sys/time.h>
7488 #include <time.h>
7489 #else
7490 #ifdef HAVE_SYS_TIME_H
7491 #include <sys/time.h>
7492 #else
7493 #include <time.h>
7494 #endif
7495 #endif
7496 int
7497 main ()
7498 {
7499 static struct timeval x; x.tv_sec = x.tv_usec;
7500 ;
7501 return 0;
7502 }
7503 _ACEOF
7504 rm -f conftest.$ac_objext
7505 if { (ac_try="$ac_compile"
7506 case "(($ac_try" in
7507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508 *) ac_try_echo=$ac_try;;
7509 esac
7510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7511 (eval "$ac_compile") 2>conftest.er1
7512 ac_status=$?
7513 grep -v '^ *+' conftest.er1 >conftest.err
7514 rm -f conftest.er1
7515 cat conftest.err >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } && {
7518 test -z "$ac_c_werror_flag" ||
7519 test ! -s conftest.err
7520 } && test -s conftest.$ac_objext; then
7521 emacs_cv_struct_timeval=yes
7522 else
7523 echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7525
7526 emacs_cv_struct_timeval=no
7527 fi
7528
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530 fi
7531 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7532 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7533 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7534 if test $emacs_cv_struct_timeval = yes; then
7535
7536 cat >>confdefs.h <<\_ACEOF
7537 #define HAVE_TIMEVAL 1
7538 _ACEOF
7539
7540 fi
7541
7542 { echo "$as_me:$LINENO: checking for struct exception" >&5
7543 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7544 if test "${emacs_cv_struct_exception+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547 cat >conftest.$ac_ext <<_ACEOF
7548 /* confdefs.h. */
7549 _ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h. */
7553 #include <math.h>
7554 int
7555 main ()
7556 {
7557 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7558 ;
7559 return 0;
7560 }
7561 _ACEOF
7562 rm -f conftest.$ac_objext
7563 if { (ac_try="$ac_compile"
7564 case "(($ac_try" in
7565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566 *) ac_try_echo=$ac_try;;
7567 esac
7568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569 (eval "$ac_compile") 2>conftest.er1
7570 ac_status=$?
7571 grep -v '^ *+' conftest.er1 >conftest.err
7572 rm -f conftest.er1
7573 cat conftest.err >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } && {
7576 test -z "$ac_c_werror_flag" ||
7577 test ! -s conftest.err
7578 } && test -s conftest.$ac_objext; then
7579 emacs_cv_struct_exception=yes
7580 else
7581 echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7583
7584 emacs_cv_struct_exception=no
7585 fi
7586
7587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588 fi
7589 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7590 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7591 HAVE_EXCEPTION=$emacs_cv_struct_exception
7592 if test $emacs_cv_struct_exception != yes; then
7593
7594 cat >>confdefs.h <<\_ACEOF
7595 #define NO_MATHERR 1
7596 _ACEOF
7597
7598 fi
7599
7600
7601 for ac_header in sys/socket.h
7602 do
7603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 fi
7610 ac_res=`eval echo '${'$as_ac_Header'}'`
7611 { echo "$as_me:$LINENO: result: $ac_res" >&5
7612 echo "${ECHO_T}$ac_res" >&6; }
7613 else
7614 # Is the header compilable?
7615 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7617 cat >conftest.$ac_ext <<_ACEOF
7618 /* confdefs.h. */
7619 _ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h. */
7623 $ac_includes_default
7624 #include <$ac_header>
7625 _ACEOF
7626 rm -f conftest.$ac_objext
7627 if { (ac_try="$ac_compile"
7628 case "(($ac_try" in
7629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630 *) ac_try_echo=$ac_try;;
7631 esac
7632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7633 (eval "$ac_compile") 2>conftest.er1
7634 ac_status=$?
7635 grep -v '^ *+' conftest.er1 >conftest.err
7636 rm -f conftest.er1
7637 cat conftest.err >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); } && {
7640 test -z "$ac_c_werror_flag" ||
7641 test ! -s conftest.err
7642 } && test -s conftest.$ac_objext; then
7643 ac_header_compiler=yes
7644 else
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7647
7648 ac_header_compiler=no
7649 fi
7650
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7653 echo "${ECHO_T}$ac_header_compiler" >&6; }
7654
7655 # Is the header present?
7656 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7658 cat >conftest.$ac_ext <<_ACEOF
7659 /* confdefs.h. */
7660 _ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7664 #include <$ac_header>
7665 _ACEOF
7666 if { (ac_try="$ac_cpp conftest.$ac_ext"
7667 case "(($ac_try" in
7668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669 *) ac_try_echo=$ac_try;;
7670 esac
7671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7673 ac_status=$?
7674 grep -v '^ *+' conftest.er1 >conftest.err
7675 rm -f conftest.er1
7676 cat conftest.err >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } >/dev/null && {
7679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7680 test ! -s conftest.err
7681 }; then
7682 ac_header_preproc=yes
7683 else
7684 echo "$as_me: failed program was:" >&5
7685 sed 's/^/| /' conftest.$ac_ext >&5
7686
7687 ac_header_preproc=no
7688 fi
7689
7690 rm -f conftest.err conftest.$ac_ext
7691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7692 echo "${ECHO_T}$ac_header_preproc" >&6; }
7693
7694 # So? What about this header?
7695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7696 yes:no: )
7697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7701 ac_header_preproc=yes
7702 ;;
7703 no:yes:* )
7704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7716
7717 ;;
7718 esac
7719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 else
7724 eval "$as_ac_Header=\$ac_header_preproc"
7725 fi
7726 ac_res=`eval echo '${'$as_ac_Header'}'`
7727 { echo "$as_me:$LINENO: result: $ac_res" >&5
7728 echo "${ECHO_T}$ac_res" >&6; }
7729
7730 fi
7731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7732 cat >>confdefs.h <<_ACEOF
7733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7734 _ACEOF
7735
7736 fi
7737
7738 done
7739
7740
7741 for ac_header in net/if.h
7742 do
7743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749 cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h. */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 $ac_includes_default
7756 #if HAVE_SYS_SOCKET_H
7757 #include <sys/socket.h>
7758 #endif
7759
7760 #include <$ac_header>
7761 _ACEOF
7762 rm -f conftest.$ac_objext
7763 if { (ac_try="$ac_compile"
7764 case "(($ac_try" in
7765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7766 *) ac_try_echo=$ac_try;;
7767 esac
7768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7769 (eval "$ac_compile") 2>conftest.er1
7770 ac_status=$?
7771 grep -v '^ *+' conftest.er1 >conftest.err
7772 rm -f conftest.er1
7773 cat conftest.err >&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); } && {
7776 test -z "$ac_c_werror_flag" ||
7777 test ! -s conftest.err
7778 } && test -s conftest.$ac_objext; then
7779 eval "$as_ac_Header=yes"
7780 else
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7783
7784 eval "$as_ac_Header=no"
7785 fi
7786
7787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788 fi
7789 ac_res=`eval echo '${'$as_ac_Header'}'`
7790 { echo "$as_me:$LINENO: result: $ac_res" >&5
7791 echo "${ECHO_T}$ac_res" >&6; }
7792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7793 cat >>confdefs.h <<_ACEOF
7794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7795 _ACEOF
7796
7797 fi
7798
7799 done
7800
7801
7802 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7803 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7804 if test "${ac_cv_struct_tm+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 else
7807 cat >conftest.$ac_ext <<_ACEOF
7808 /* confdefs.h. */
7809 _ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h. */
7813 #include <sys/types.h>
7814 #include <time.h>
7815
7816 int
7817 main ()
7818 {
7819 struct tm tm;
7820 int *p = &tm.tm_sec;
7821 return !p;
7822 ;
7823 return 0;
7824 }
7825 _ACEOF
7826 rm -f conftest.$ac_objext
7827 if { (ac_try="$ac_compile"
7828 case "(($ac_try" in
7829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7831 esac
7832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833 (eval "$ac_compile") 2>conftest.er1
7834 ac_status=$?
7835 grep -v '^ *+' conftest.er1 >conftest.err
7836 rm -f conftest.er1
7837 cat conftest.err >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } && {
7840 test -z "$ac_c_werror_flag" ||
7841 test ! -s conftest.err
7842 } && test -s conftest.$ac_objext; then
7843 ac_cv_struct_tm=time.h
7844 else
7845 echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7847
7848 ac_cv_struct_tm=sys/time.h
7849 fi
7850
7851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7852 fi
7853 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7854 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7855 if test $ac_cv_struct_tm = sys/time.h; then
7856
7857 cat >>confdefs.h <<\_ACEOF
7858 #define TM_IN_SYS_TIME 1
7859 _ACEOF
7860
7861 fi
7862
7863 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7864 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7865 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868 cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h. */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7874 #include <sys/types.h>
7875 #include <$ac_cv_struct_tm>
7876
7877
7878 int
7879 main ()
7880 {
7881 static struct tm ac_aggr;
7882 if (ac_aggr.tm_zone)
7883 return 0;
7884 ;
7885 return 0;
7886 }
7887 _ACEOF
7888 rm -f conftest.$ac_objext
7889 if { (ac_try="$ac_compile"
7890 case "(($ac_try" in
7891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892 *) ac_try_echo=$ac_try;;
7893 esac
7894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7895 (eval "$ac_compile") 2>conftest.er1
7896 ac_status=$?
7897 grep -v '^ *+' conftest.er1 >conftest.err
7898 rm -f conftest.er1
7899 cat conftest.err >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } && {
7902 test -z "$ac_c_werror_flag" ||
7903 test ! -s conftest.err
7904 } && test -s conftest.$ac_objext; then
7905 ac_cv_member_struct_tm_tm_zone=yes
7906 else
7907 echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7909
7910 cat >conftest.$ac_ext <<_ACEOF
7911 /* confdefs.h. */
7912 _ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h. */
7916 #include <sys/types.h>
7917 #include <$ac_cv_struct_tm>
7918
7919
7920 int
7921 main ()
7922 {
7923 static struct tm ac_aggr;
7924 if (sizeof ac_aggr.tm_zone)
7925 return 0;
7926 ;
7927 return 0;
7928 }
7929 _ACEOF
7930 rm -f conftest.$ac_objext
7931 if { (ac_try="$ac_compile"
7932 case "(($ac_try" in
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7935 esac
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_compile") 2>conftest.er1
7938 ac_status=$?
7939 grep -v '^ *+' conftest.er1 >conftest.err
7940 rm -f conftest.er1
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } && {
7944 test -z "$ac_c_werror_flag" ||
7945 test ! -s conftest.err
7946 } && test -s conftest.$ac_objext; then
7947 ac_cv_member_struct_tm_tm_zone=yes
7948 else
7949 echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7951
7952 ac_cv_member_struct_tm_tm_zone=no
7953 fi
7954
7955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956 fi
7957
7958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7959 fi
7960 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7961 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7962 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7963
7964 cat >>confdefs.h <<_ACEOF
7965 #define HAVE_STRUCT_TM_TM_ZONE 1
7966 _ACEOF
7967
7968
7969 fi
7970
7971 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7972
7973 cat >>confdefs.h <<\_ACEOF
7974 #define HAVE_TM_ZONE 1
7975 _ACEOF
7976
7977 else
7978 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7979 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7980 if test "${ac_cv_have_decl_tzname+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983 cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h. */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7989 #include <time.h>
7990
7991 int
7992 main ()
7993 {
7994 #ifndef tzname
7995 (void) tzname;
7996 #endif
7997
7998 ;
7999 return 0;
8000 }
8001 _ACEOF
8002 rm -f conftest.$ac_objext
8003 if { (ac_try="$ac_compile"
8004 case "(($ac_try" in
8005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006 *) ac_try_echo=$ac_try;;
8007 esac
8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009 (eval "$ac_compile") 2>conftest.er1
8010 ac_status=$?
8011 grep -v '^ *+' conftest.er1 >conftest.err
8012 rm -f conftest.er1
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } && {
8016 test -z "$ac_c_werror_flag" ||
8017 test ! -s conftest.err
8018 } && test -s conftest.$ac_objext; then
8019 ac_cv_have_decl_tzname=yes
8020 else
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024 ac_cv_have_decl_tzname=no
8025 fi
8026
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028 fi
8029 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8030 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8031 if test $ac_cv_have_decl_tzname = yes; then
8032
8033 cat >>confdefs.h <<_ACEOF
8034 #define HAVE_DECL_TZNAME 1
8035 _ACEOF
8036
8037
8038 else
8039 cat >>confdefs.h <<_ACEOF
8040 #define HAVE_DECL_TZNAME 0
8041 _ACEOF
8042
8043
8044 fi
8045
8046
8047 { echo "$as_me:$LINENO: checking for tzname" >&5
8048 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8049 if test "${ac_cv_var_tzname+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052 cat >conftest.$ac_ext <<_ACEOF
8053 /* confdefs.h. */
8054 _ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8058 #include <time.h>
8059 #if !HAVE_DECL_TZNAME
8060 extern char *tzname[];
8061 #endif
8062
8063 int
8064 main ()
8065 {
8066 return tzname[0][0];
8067 ;
8068 return 0;
8069 }
8070 _ACEOF
8071 rm -f conftest.$ac_objext conftest$ac_exeext
8072 if { (ac_try="$ac_link"
8073 case "(($ac_try" in
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8076 esac
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_link") 2>conftest.er1
8079 ac_status=$?
8080 grep -v '^ *+' conftest.er1 >conftest.err
8081 rm -f conftest.er1
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } && {
8085 test -z "$ac_c_werror_flag" ||
8086 test ! -s conftest.err
8087 } && test -s conftest$ac_exeext &&
8088 $as_test_x conftest$ac_exeext; then
8089 ac_cv_var_tzname=yes
8090 else
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8093
8094 ac_cv_var_tzname=no
8095 fi
8096
8097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8098 conftest$ac_exeext conftest.$ac_ext
8099 fi
8100 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8101 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8102 if test $ac_cv_var_tzname = yes; then
8103
8104 cat >>confdefs.h <<\_ACEOF
8105 #define HAVE_TZNAME 1
8106 _ACEOF
8107
8108 fi
8109 fi
8110
8111 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8112 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8113 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116 cat >conftest.$ac_ext <<_ACEOF
8117 /* confdefs.h. */
8118 _ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h. */
8122 #include <time.h>
8123
8124 int
8125 main ()
8126 {
8127 static struct tm ac_aggr;
8128 if (ac_aggr.tm_gmtoff)
8129 return 0;
8130 ;
8131 return 0;
8132 }
8133 _ACEOF
8134 rm -f conftest.$ac_objext
8135 if { (ac_try="$ac_compile"
8136 case "(($ac_try" in
8137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138 *) ac_try_echo=$ac_try;;
8139 esac
8140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141 (eval "$ac_compile") 2>conftest.er1
8142 ac_status=$?
8143 grep -v '^ *+' conftest.er1 >conftest.err
8144 rm -f conftest.er1
8145 cat conftest.err >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } && {
8148 test -z "$ac_c_werror_flag" ||
8149 test ! -s conftest.err
8150 } && test -s conftest.$ac_objext; then
8151 ac_cv_member_struct_tm_tm_gmtoff=yes
8152 else
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8155
8156 cat >conftest.$ac_ext <<_ACEOF
8157 /* confdefs.h. */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8162 #include <time.h>
8163
8164 int
8165 main ()
8166 {
8167 static struct tm ac_aggr;
8168 if (sizeof ac_aggr.tm_gmtoff)
8169 return 0;
8170 ;
8171 return 0;
8172 }
8173 _ACEOF
8174 rm -f conftest.$ac_objext
8175 if { (ac_try="$ac_compile"
8176 case "(($ac_try" in
8177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178 *) ac_try_echo=$ac_try;;
8179 esac
8180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181 (eval "$ac_compile") 2>conftest.er1
8182 ac_status=$?
8183 grep -v '^ *+' conftest.er1 >conftest.err
8184 rm -f conftest.er1
8185 cat conftest.err >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } && {
8188 test -z "$ac_c_werror_flag" ||
8189 test ! -s conftest.err
8190 } && test -s conftest.$ac_objext; then
8191 ac_cv_member_struct_tm_tm_gmtoff=yes
8192 else
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8195
8196 ac_cv_member_struct_tm_tm_gmtoff=no
8197 fi
8198
8199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200 fi
8201
8202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203 fi
8204 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8205 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8206 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8207
8208 cat >>confdefs.h <<\_ACEOF
8209 #define HAVE_TM_GMTOFF 1
8210 _ACEOF
8211
8212 fi
8213
8214 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8215 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8216 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 else
8219 cat >conftest.$ac_ext <<_ACEOF
8220 /* confdefs.h. */
8221 _ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225 $ac_includes_default
8226 #if HAVE_SYS_SOCKET_H
8227 #include <sys/socket.h>
8228 #endif
8229 #if HAVE_NET_IF_H
8230 #include <net/if.h>
8231 #endif
8232
8233 int
8234 main ()
8235 {
8236 static struct ifreq ac_aggr;
8237 if (ac_aggr.ifr_flags)
8238 return 0;
8239 ;
8240 return 0;
8241 }
8242 _ACEOF
8243 rm -f conftest.$ac_objext
8244 if { (ac_try="$ac_compile"
8245 case "(($ac_try" in
8246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8247 *) ac_try_echo=$ac_try;;
8248 esac
8249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8250 (eval "$ac_compile") 2>conftest.er1
8251 ac_status=$?
8252 grep -v '^ *+' conftest.er1 >conftest.err
8253 rm -f conftest.er1
8254 cat conftest.err >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } && {
8257 test -z "$ac_c_werror_flag" ||
8258 test ! -s conftest.err
8259 } && test -s conftest.$ac_objext; then
8260 ac_cv_member_struct_ifreq_ifr_flags=yes
8261 else
8262 echo "$as_me: failed program was:" >&5
8263 sed 's/^/| /' conftest.$ac_ext >&5
8264
8265 cat >conftest.$ac_ext <<_ACEOF
8266 /* confdefs.h. */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 $ac_includes_default
8272 #if HAVE_SYS_SOCKET_H
8273 #include <sys/socket.h>
8274 #endif
8275 #if HAVE_NET_IF_H
8276 #include <net/if.h>
8277 #endif
8278
8279 int
8280 main ()
8281 {
8282 static struct ifreq ac_aggr;
8283 if (sizeof ac_aggr.ifr_flags)
8284 return 0;
8285 ;
8286 return 0;
8287 }
8288 _ACEOF
8289 rm -f conftest.$ac_objext
8290 if { (ac_try="$ac_compile"
8291 case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8294 esac
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_compile") 2>conftest.er1
8297 ac_status=$?
8298 grep -v '^ *+' conftest.er1 >conftest.err
8299 rm -f conftest.er1
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } && {
8303 test -z "$ac_c_werror_flag" ||
8304 test ! -s conftest.err
8305 } && test -s conftest.$ac_objext; then
8306 ac_cv_member_struct_ifreq_ifr_flags=yes
8307 else
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8310
8311 ac_cv_member_struct_ifreq_ifr_flags=no
8312 fi
8313
8314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315 fi
8316
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 fi
8319 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8320 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8321 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8322
8323 cat >>confdefs.h <<_ACEOF
8324 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8325 _ACEOF
8326
8327
8328 fi
8329 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8330 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8331 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 else
8334 cat >conftest.$ac_ext <<_ACEOF
8335 /* confdefs.h. */
8336 _ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h. */
8340 $ac_includes_default
8341 #if HAVE_SYS_SOCKET_H
8342 #include <sys/socket.h>
8343 #endif
8344 #if HAVE_NET_IF_H
8345 #include <net/if.h>
8346 #endif
8347
8348 int
8349 main ()
8350 {
8351 static struct ifreq ac_aggr;
8352 if (ac_aggr.ifr_hwaddr)
8353 return 0;
8354 ;
8355 return 0;
8356 }
8357 _ACEOF
8358 rm -f conftest.$ac_objext
8359 if { (ac_try="$ac_compile"
8360 case "(($ac_try" in
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8363 esac
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_compile") 2>conftest.er1
8366 ac_status=$?
8367 grep -v '^ *+' conftest.er1 >conftest.err
8368 rm -f conftest.er1
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } && {
8372 test -z "$ac_c_werror_flag" ||
8373 test ! -s conftest.err
8374 } && test -s conftest.$ac_objext; then
8375 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8376 else
8377 echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8379
8380 cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h. */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8386 $ac_includes_default
8387 #if HAVE_SYS_SOCKET_H
8388 #include <sys/socket.h>
8389 #endif
8390 #if HAVE_NET_IF_H
8391 #include <net/if.h>
8392 #endif
8393
8394 int
8395 main ()
8396 {
8397 static struct ifreq ac_aggr;
8398 if (sizeof ac_aggr.ifr_hwaddr)
8399 return 0;
8400 ;
8401 return 0;
8402 }
8403 _ACEOF
8404 rm -f conftest.$ac_objext
8405 if { (ac_try="$ac_compile"
8406 case "(($ac_try" in
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8409 esac
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_compile") 2>conftest.er1
8412 ac_status=$?
8413 grep -v '^ *+' conftest.er1 >conftest.err
8414 rm -f conftest.er1
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } && {
8418 test -z "$ac_c_werror_flag" ||
8419 test ! -s conftest.err
8420 } && test -s conftest.$ac_objext; then
8421 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8422 else
8423 echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8425
8426 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8427 fi
8428
8429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430 fi
8431
8432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8433 fi
8434 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8435 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8436 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8437
8438 cat >>confdefs.h <<_ACEOF
8439 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8440 _ACEOF
8441
8442
8443 fi
8444 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8445 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8446 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449 cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h. */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8455 $ac_includes_default
8456 #if HAVE_SYS_SOCKET_H
8457 #include <sys/socket.h>
8458 #endif
8459 #if HAVE_NET_IF_H
8460 #include <net/if.h>
8461 #endif
8462
8463 int
8464 main ()
8465 {
8466 static struct ifreq ac_aggr;
8467 if (ac_aggr.ifr_netmask)
8468 return 0;
8469 ;
8470 return 0;
8471 }
8472 _ACEOF
8473 rm -f conftest.$ac_objext
8474 if { (ac_try="$ac_compile"
8475 case "(($ac_try" in
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8478 esac
8479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_compile") 2>conftest.er1
8481 ac_status=$?
8482 grep -v '^ *+' conftest.er1 >conftest.err
8483 rm -f conftest.er1
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } && {
8487 test -z "$ac_c_werror_flag" ||
8488 test ! -s conftest.err
8489 } && test -s conftest.$ac_objext; then
8490 ac_cv_member_struct_ifreq_ifr_netmask=yes
8491 else
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8494
8495 cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h. */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8501 $ac_includes_default
8502 #if HAVE_SYS_SOCKET_H
8503 #include <sys/socket.h>
8504 #endif
8505 #if HAVE_NET_IF_H
8506 #include <net/if.h>
8507 #endif
8508
8509 int
8510 main ()
8511 {
8512 static struct ifreq ac_aggr;
8513 if (sizeof ac_aggr.ifr_netmask)
8514 return 0;
8515 ;
8516 return 0;
8517 }
8518 _ACEOF
8519 rm -f conftest.$ac_objext
8520 if { (ac_try="$ac_compile"
8521 case "(($ac_try" in
8522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523 *) ac_try_echo=$ac_try;;
8524 esac
8525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8526 (eval "$ac_compile") 2>conftest.er1
8527 ac_status=$?
8528 grep -v '^ *+' conftest.er1 >conftest.err
8529 rm -f conftest.er1
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } && {
8533 test -z "$ac_c_werror_flag" ||
8534 test ! -s conftest.err
8535 } && test -s conftest.$ac_objext; then
8536 ac_cv_member_struct_ifreq_ifr_netmask=yes
8537 else
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8540
8541 ac_cv_member_struct_ifreq_ifr_netmask=no
8542 fi
8543
8544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8545 fi
8546
8547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548 fi
8549 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8550 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8551 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8552
8553 cat >>confdefs.h <<_ACEOF
8554 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8555 _ACEOF
8556
8557
8558 fi
8559 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8560 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8561 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 else
8564 cat >conftest.$ac_ext <<_ACEOF
8565 /* confdefs.h. */
8566 _ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8570 $ac_includes_default
8571 #if HAVE_SYS_SOCKET_H
8572 #include <sys/socket.h>
8573 #endif
8574 #if HAVE_NET_IF_H
8575 #include <net/if.h>
8576 #endif
8577
8578 int
8579 main ()
8580 {
8581 static struct ifreq ac_aggr;
8582 if (ac_aggr.ifr_broadaddr)
8583 return 0;
8584 ;
8585 return 0;
8586 }
8587 _ACEOF
8588 rm -f conftest.$ac_objext
8589 if { (ac_try="$ac_compile"
8590 case "(($ac_try" in
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8593 esac
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_compile") 2>conftest.er1
8596 ac_status=$?
8597 grep -v '^ *+' conftest.er1 >conftest.err
8598 rm -f conftest.er1
8599 cat conftest.err >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } && {
8602 test -z "$ac_c_werror_flag" ||
8603 test ! -s conftest.err
8604 } && test -s conftest.$ac_objext; then
8605 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8606 else
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8609
8610 cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h. */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 $ac_includes_default
8617 #if HAVE_SYS_SOCKET_H
8618 #include <sys/socket.h>
8619 #endif
8620 #if HAVE_NET_IF_H
8621 #include <net/if.h>
8622 #endif
8623
8624 int
8625 main ()
8626 {
8627 static struct ifreq ac_aggr;
8628 if (sizeof ac_aggr.ifr_broadaddr)
8629 return 0;
8630 ;
8631 return 0;
8632 }
8633 _ACEOF
8634 rm -f conftest.$ac_objext
8635 if { (ac_try="$ac_compile"
8636 case "(($ac_try" in
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8639 esac
8640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641 (eval "$ac_compile") 2>conftest.er1
8642 ac_status=$?
8643 grep -v '^ *+' conftest.er1 >conftest.err
8644 rm -f conftest.er1
8645 cat conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } && {
8648 test -z "$ac_c_werror_flag" ||
8649 test ! -s conftest.err
8650 } && test -s conftest.$ac_objext; then
8651 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8652 else
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8655
8656 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8657 fi
8658
8659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8660 fi
8661
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663 fi
8664 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8665 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8666 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8667
8668 cat >>confdefs.h <<_ACEOF
8669 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8670 _ACEOF
8671
8672
8673 fi
8674 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8675 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8676 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679 cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h. */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8685 $ac_includes_default
8686 #if HAVE_SYS_SOCKET_H
8687 #include <sys/socket.h>
8688 #endif
8689 #if HAVE_NET_IF_H
8690 #include <net/if.h>
8691 #endif
8692
8693 int
8694 main ()
8695 {
8696 static struct ifreq ac_aggr;
8697 if (ac_aggr.ifr_addr)
8698 return 0;
8699 ;
8700 return 0;
8701 }
8702 _ACEOF
8703 rm -f conftest.$ac_objext
8704 if { (ac_try="$ac_compile"
8705 case "(($ac_try" in
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8708 esac
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_compile") 2>conftest.er1
8711 ac_status=$?
8712 grep -v '^ *+' conftest.er1 >conftest.err
8713 rm -f conftest.er1
8714 cat conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } && {
8717 test -z "$ac_c_werror_flag" ||
8718 test ! -s conftest.err
8719 } && test -s conftest.$ac_objext; then
8720 ac_cv_member_struct_ifreq_ifr_addr=yes
8721 else
8722 echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8724
8725 cat >conftest.$ac_ext <<_ACEOF
8726 /* confdefs.h. */
8727 _ACEOF
8728 cat confdefs.h >>conftest.$ac_ext
8729 cat >>conftest.$ac_ext <<_ACEOF
8730 /* end confdefs.h. */
8731 $ac_includes_default
8732 #if HAVE_SYS_SOCKET_H
8733 #include <sys/socket.h>
8734 #endif
8735 #if HAVE_NET_IF_H
8736 #include <net/if.h>
8737 #endif
8738
8739 int
8740 main ()
8741 {
8742 static struct ifreq ac_aggr;
8743 if (sizeof ac_aggr.ifr_addr)
8744 return 0;
8745 ;
8746 return 0;
8747 }
8748 _ACEOF
8749 rm -f conftest.$ac_objext
8750 if { (ac_try="$ac_compile"
8751 case "(($ac_try" in
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8754 esac
8755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756 (eval "$ac_compile") 2>conftest.er1
8757 ac_status=$?
8758 grep -v '^ *+' conftest.er1 >conftest.err
8759 rm -f conftest.er1
8760 cat conftest.err >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } && {
8763 test -z "$ac_c_werror_flag" ||
8764 test ! -s conftest.err
8765 } && test -s conftest.$ac_objext; then
8766 ac_cv_member_struct_ifreq_ifr_addr=yes
8767 else
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8770
8771 ac_cv_member_struct_ifreq_ifr_addr=no
8772 fi
8773
8774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8775 fi
8776
8777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8778 fi
8779 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8780 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8781 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8782
8783 cat >>confdefs.h <<_ACEOF
8784 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8785 _ACEOF
8786
8787
8788 fi
8789
8790
8791
8792 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8793 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8794 if test "$ac_cv_prog_cc_c89" != no; then
8795 { echo "$as_me:$LINENO: result: yes" >&5
8796 echo "${ECHO_T}yes" >&6; }
8797
8798 cat >>confdefs.h <<\_ACEOF
8799 #define PROTOTYPES 1
8800 _ACEOF
8801
8802
8803 cat >>confdefs.h <<\_ACEOF
8804 #define __PROTOTYPES 1
8805 _ACEOF
8806
8807 else
8808 { echo "$as_me:$LINENO: result: no" >&5
8809 echo "${ECHO_T}no" >&6; }
8810 fi
8811
8812 { echo "$as_me:$LINENO: checking for working volatile" >&5
8813 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8814 if test "${ac_cv_c_volatile+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 else
8817 cat >conftest.$ac_ext <<_ACEOF
8818 /* confdefs.h. */
8819 _ACEOF
8820 cat confdefs.h >>conftest.$ac_ext
8821 cat >>conftest.$ac_ext <<_ACEOF
8822 /* end confdefs.h. */
8823
8824 int
8825 main ()
8826 {
8827
8828 volatile int x;
8829 int * volatile y = (int *) 0;
8830 return !x && !y;
8831 ;
8832 return 0;
8833 }
8834 _ACEOF
8835 rm -f conftest.$ac_objext
8836 if { (ac_try="$ac_compile"
8837 case "(($ac_try" in
8838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839 *) ac_try_echo=$ac_try;;
8840 esac
8841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842 (eval "$ac_compile") 2>conftest.er1
8843 ac_status=$?
8844 grep -v '^ *+' conftest.er1 >conftest.err
8845 rm -f conftest.er1
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } && {
8849 test -z "$ac_c_werror_flag" ||
8850 test ! -s conftest.err
8851 } && test -s conftest.$ac_objext; then
8852 ac_cv_c_volatile=yes
8853 else
8854 echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8856
8857 ac_cv_c_volatile=no
8858 fi
8859
8860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861 fi
8862 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8863 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8864 if test $ac_cv_c_volatile = no; then
8865
8866 cat >>confdefs.h <<\_ACEOF
8867 #define volatile
8868 _ACEOF
8869
8870 fi
8871
8872 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8873 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8874 if test "${ac_cv_c_const+set}" = set; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 else
8877 cat >conftest.$ac_ext <<_ACEOF
8878 /* confdefs.h. */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8883
8884 int
8885 main ()
8886 {
8887 /* FIXME: Include the comments suggested by Paul. */
8888 #ifndef __cplusplus
8889 /* Ultrix mips cc rejects this. */
8890 typedef int charset[2];
8891 const charset cs;
8892 /* SunOS 4.1.1 cc rejects this. */
8893 char const *const *pcpcc;
8894 char **ppc;
8895 /* NEC SVR4.0.2 mips cc rejects this. */
8896 struct point {int x, y;};
8897 static struct point const zero = {0,0};
8898 /* AIX XL C 1.02.0.0 rejects this.
8899 It does not let you subtract one const X* pointer from another in
8900 an arm of an if-expression whose if-part is not a constant
8901 expression */
8902 const char *g = "string";
8903 pcpcc = &g + (g ? g-g : 0);
8904 /* HPUX 7.0 cc rejects these. */
8905 ++pcpcc;
8906 ppc = (char**) pcpcc;
8907 pcpcc = (char const *const *) ppc;
8908 { /* SCO 3.2v4 cc rejects this. */
8909 char *t;
8910 char const *s = 0 ? (char *) 0 : (char const *) 0;
8911
8912 *t++ = 0;
8913 if (s) return 0;
8914 }
8915 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8916 int x[] = {25, 17};
8917 const int *foo = &x[0];
8918 ++foo;
8919 }
8920 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8921 typedef const int *iptr;
8922 iptr p = 0;
8923 ++p;
8924 }
8925 { /* AIX XL C 1.02.0.0 rejects this saying
8926 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8927 struct s { int j; const int *ap[3]; };
8928 struct s *b; b->j = 5;
8929 }
8930 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8931 const int foo = 10;
8932 if (!foo) return 0;
8933 }
8934 return !cs[0] && !zero.x;
8935 #endif
8936
8937 ;
8938 return 0;
8939 }
8940 _ACEOF
8941 rm -f conftest.$ac_objext
8942 if { (ac_try="$ac_compile"
8943 case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8946 esac
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_compile") 2>conftest.er1
8949 ac_status=$?
8950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } && {
8955 test -z "$ac_c_werror_flag" ||
8956 test ! -s conftest.err
8957 } && test -s conftest.$ac_objext; then
8958 ac_cv_c_const=yes
8959 else
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8962
8963 ac_cv_c_const=no
8964 fi
8965
8966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8967 fi
8968 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8969 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8970 if test $ac_cv_c_const = no; then
8971
8972 cat >>confdefs.h <<\_ACEOF
8973 #define const
8974 _ACEOF
8975
8976 fi
8977
8978 { echo "$as_me:$LINENO: checking for void * support" >&5
8979 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8980 if test "${emacs_cv_void_star+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 else
8983 cat >conftest.$ac_ext <<_ACEOF
8984 /* confdefs.h. */
8985 _ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8989
8990 int
8991 main ()
8992 {
8993 void * foo;
8994 ;
8995 return 0;
8996 }
8997 _ACEOF
8998 rm -f conftest.$ac_objext
8999 if { (ac_try="$ac_compile"
9000 case "(($ac_try" in
9001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9003 esac
9004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005 (eval "$ac_compile") 2>conftest.er1
9006 ac_status=$?
9007 grep -v '^ *+' conftest.er1 >conftest.err
9008 rm -f conftest.er1
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } && {
9012 test -z "$ac_c_werror_flag" ||
9013 test ! -s conftest.err
9014 } && test -s conftest.$ac_objext; then
9015 emacs_cv_void_star=yes
9016 else
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9019
9020 emacs_cv_void_star=no
9021 fi
9022
9023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9024 fi
9025 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9026 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9027 if test $emacs_cv_void_star = yes; then
9028 cat >>confdefs.h <<\_ACEOF
9029 #define POINTER_TYPE void
9030 _ACEOF
9031
9032 else
9033 cat >>confdefs.h <<\_ACEOF
9034 #define POINTER_TYPE char
9035 _ACEOF
9036
9037 fi
9038
9039
9040
9041
9042
9043 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9044 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9045 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9046 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 else
9049 cat >conftest.make <<\_ACEOF
9050 SHELL = /bin/sh
9051 all:
9052 @echo '@@@%%%=$(MAKE)=@@@%%%'
9053 _ACEOF
9054 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9055 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9056 *@@@%%%=?*=@@@%%%*)
9057 eval ac_cv_prog_make_${ac_make}_set=yes;;
9058 *)
9059 eval ac_cv_prog_make_${ac_make}_set=no;;
9060 esac
9061 rm -f conftest.make
9062 fi
9063 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9064 { echo "$as_me:$LINENO: result: yes" >&5
9065 echo "${ECHO_T}yes" >&6; }
9066 SET_MAKE=
9067 else
9068 { echo "$as_me:$LINENO: result: no" >&5
9069 echo "${ECHO_T}no" >&6; }
9070 SET_MAKE="MAKE=${MAKE-make}"
9071 fi
9072
9073
9074 { echo "$as_me:$LINENO: checking for long file names" >&5
9075 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9076 if test "${ac_cv_sys_long_file_names+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 else
9079 ac_cv_sys_long_file_names=yes
9080 # Test for long file names in all the places we know might matter:
9081 # . the current directory, where building will happen
9082 # $prefix/lib where we will be installing things
9083 # $exec_prefix/lib likewise
9084 # $TMPDIR if set, where it might want to write temporary files
9085 # /tmp where it might want to write temporary files
9086 # /var/tmp likewise
9087 # /usr/tmp likewise
9088 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9089 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9090 # in the usual case where exec_prefix is '${prefix}'.
9091 case $ac_dir in #(
9092 . | /* | ?:[\\/]*) ;; #(
9093 *) continue;;
9094 esac
9095 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9096 ac_xdir=$ac_dir/cf$$
9097 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9098 ac_tf1=$ac_xdir/conftest9012345
9099 ac_tf2=$ac_xdir/conftest9012346
9100 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9101 ac_cv_sys_long_file_names=no
9102 rm -f -r "$ac_xdir" 2>/dev/null
9103 test $ac_cv_sys_long_file_names = no && break
9104 done
9105 fi
9106 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9107 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9108 if test $ac_cv_sys_long_file_names = yes; then
9109
9110 cat >>confdefs.h <<\_ACEOF
9111 #define HAVE_LONG_FILE_NAMES 1
9112 _ACEOF
9113
9114 fi
9115
9116
9117 #### Choose a window system.
9118
9119 { echo "$as_me:$LINENO: checking for X" >&5
9120 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9121
9122
9123 # Check whether --with-x was given.
9124 if test "${with_x+set}" = set; then
9125 withval=$with_x;
9126 fi
9127
9128 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9129 if test "x$with_x" = xno; then
9130 # The user explicitly disabled X.
9131 have_x=disabled
9132 else
9133 case $x_includes,$x_libraries in #(
9134 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9135 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9136 { (exit 1); exit 1; }; };; #(
9137 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9139 else
9140 # One or both of the vars are not set, and there is no cached value.
9141 ac_x_includes=no ac_x_libraries=no
9142 rm -f -r conftest.dir
9143 if mkdir conftest.dir; then
9144 cd conftest.dir
9145 cat >Imakefile <<'_ACEOF'
9146 incroot:
9147 @echo incroot='${INCROOT}'
9148 usrlibdir:
9149 @echo usrlibdir='${USRLIBDIR}'
9150 libdir:
9151 @echo libdir='${LIBDIR}'
9152 _ACEOF
9153 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9154 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9155 for ac_var in incroot usrlibdir libdir; do
9156 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9157 done
9158 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9159 for ac_extension in a so sl; do
9160 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9161 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9162 ac_im_usrlibdir=$ac_im_libdir; break
9163 fi
9164 done
9165 # Screen out bogus values from the imake configuration. They are
9166 # bogus both because they are the default anyway, and because
9167 # using them would break gcc on systems where it needs fixed includes.
9168 case $ac_im_incroot in
9169 /usr/include) ac_x_includes= ;;
9170 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9171 esac
9172 case $ac_im_usrlibdir in
9173 /usr/lib | /lib) ;;
9174 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9175 esac
9176 fi
9177 cd ..
9178 rm -f -r conftest.dir
9179 fi
9180
9181 # Standard set of common directories for X headers.
9182 # Check X11 before X11Rn because it is often a symlink to the current release.
9183 ac_x_header_dirs='
9184 /usr/X11/include
9185 /usr/X11R6/include
9186 /usr/X11R5/include
9187 /usr/X11R4/include
9188
9189 /usr/include/X11
9190 /usr/include/X11R6
9191 /usr/include/X11R5
9192 /usr/include/X11R4
9193
9194 /usr/local/X11/include
9195 /usr/local/X11R6/include
9196 /usr/local/X11R5/include
9197 /usr/local/X11R4/include
9198
9199 /usr/local/include/X11
9200 /usr/local/include/X11R6
9201 /usr/local/include/X11R5
9202 /usr/local/include/X11R4
9203
9204 /usr/X386/include
9205 /usr/x386/include
9206 /usr/XFree86/include/X11
9207
9208 /usr/include
9209 /usr/local/include
9210 /usr/unsupported/include
9211 /usr/athena/include
9212 /usr/local/x11r5/include
9213 /usr/lpp/Xamples/include
9214
9215 /usr/openwin/include
9216 /usr/openwin/share/include'
9217
9218 if test "$ac_x_includes" = no; then
9219 # Guess where to find include files, by looking for Xlib.h.
9220 # First, try using that file with no special directory specified.
9221 cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h. */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 #include <X11/Xlib.h>
9228 _ACEOF
9229 if { (ac_try="$ac_cpp conftest.$ac_ext"
9230 case "(($ac_try" in
9231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9232 *) ac_try_echo=$ac_try;;
9233 esac
9234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9236 ac_status=$?
9237 grep -v '^ *+' conftest.er1 >conftest.err
9238 rm -f conftest.er1
9239 cat conftest.err >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } >/dev/null && {
9242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9243 test ! -s conftest.err
9244 }; then
9245 # We can compile using X headers with no special include directory.
9246 ac_x_includes=
9247 else
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9250
9251 for ac_dir in $ac_x_header_dirs; do
9252 if test -r "$ac_dir/X11/Xlib.h"; then
9253 ac_x_includes=$ac_dir
9254 break
9255 fi
9256 done
9257 fi
9258
9259 rm -f conftest.err conftest.$ac_ext
9260 fi # $ac_x_includes = no
9261
9262 if test "$ac_x_libraries" = no; then
9263 # Check for the libraries.
9264 # See if we find them without any special options.
9265 # Don't add to $LIBS permanently.
9266 ac_save_LIBS=$LIBS
9267 LIBS="-lX11 $LIBS"
9268 cat >conftest.$ac_ext <<_ACEOF
9269 /* confdefs.h. */
9270 _ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h. */
9274 #include <X11/Xlib.h>
9275 int
9276 main ()
9277 {
9278 XrmInitialize ()
9279 ;
9280 return 0;
9281 }
9282 _ACEOF
9283 rm -f conftest.$ac_objext conftest$ac_exeext
9284 if { (ac_try="$ac_link"
9285 case "(($ac_try" in
9286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287 *) ac_try_echo=$ac_try;;
9288 esac
9289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290 (eval "$ac_link") 2>conftest.er1
9291 ac_status=$?
9292 grep -v '^ *+' conftest.er1 >conftest.err
9293 rm -f conftest.er1
9294 cat conftest.err >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } && {
9297 test -z "$ac_c_werror_flag" ||
9298 test ! -s conftest.err
9299 } && test -s conftest$ac_exeext &&
9300 $as_test_x conftest$ac_exeext; then
9301 LIBS=$ac_save_LIBS
9302 # We can link X programs with no special library path.
9303 ac_x_libraries=
9304 else
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9307
9308 LIBS=$ac_save_LIBS
9309 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9310 do
9311 # Don't even attempt the hair of trying to link an X program!
9312 for ac_extension in a so sl; do
9313 if test -r "$ac_dir/libX11.$ac_extension"; then
9314 ac_x_libraries=$ac_dir
9315 break 2
9316 fi
9317 done
9318 done
9319 fi
9320
9321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9322 conftest$ac_exeext conftest.$ac_ext
9323 fi # $ac_x_libraries = no
9324
9325 case $ac_x_includes,$ac_x_libraries in #(
9326 no,* | *,no | *\'*)
9327 # Didn't find X, or a directory has "'" in its name.
9328 ac_cv_have_x="have_x=no";; #(
9329 *)
9330 # Record where we found X for the cache.
9331 ac_cv_have_x="have_x=yes\
9332 ac_x_includes='$ac_x_includes'\
9333 ac_x_libraries='$ac_x_libraries'"
9334 esac
9335 fi
9336 ;; #(
9337 *) have_x=yes;;
9338 esac
9339 eval "$ac_cv_have_x"
9340 fi # $with_x != no
9341
9342 if test "$have_x" != yes; then
9343 { echo "$as_me:$LINENO: result: $have_x" >&5
9344 echo "${ECHO_T}$have_x" >&6; }
9345 no_x=yes
9346 else
9347 # If each of the values was on the command line, it overrides each guess.
9348 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9349 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9350 # Update the cache value to reflect the command line values.
9351 ac_cv_have_x="have_x=yes\
9352 ac_x_includes='$x_includes'\
9353 ac_x_libraries='$x_libraries'"
9354 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9355 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9356 fi
9357
9358 if test "$no_x" = yes; then
9359 window_system=none
9360 else
9361 window_system=x11
9362 fi
9363
9364 if test "${x_libraries}" != NONE; then
9365 if test -n "${x_libraries}"; then
9366 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9367 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9368 fi
9369 x_default_search_path=""
9370 x_search_path=${x_libraries}
9371 if test -z "${x_search_path}"; then
9372 x_search_path=/usr/lib
9373 fi
9374 for x_library in `echo ${x_search_path}: | \
9375 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9376 x_search_path="\
9377 ${x_library}/X11/%L/%T/%N%C%S:\
9378 ${x_library}/X11/%l/%T/%N%C%S:\
9379 ${x_library}/X11/%T/%N%C%S:\
9380 ${x_library}/X11/%L/%T/%N%S:\
9381 ${x_library}/X11/%l/%T/%N%S:\
9382 ${x_library}/X11/%T/%N%S"
9383 if test x"${x_default_search_path}" = x; then
9384 x_default_search_path=${x_search_path}
9385 else
9386 x_default_search_path="${x_search_path}:${x_default_search_path}"
9387 fi
9388 done
9389 fi
9390 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9391 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9392 fi
9393
9394 if test x"${x_includes}" = x; then
9395 bitmapdir=/usr/include/X11/bitmaps
9396 else
9397 # accumulate include directories that have X11 bitmap subdirectories
9398 bmd_acc="dummyval"
9399 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9400 if test -d "${bmd}/X11/bitmaps"; then
9401 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9402 fi
9403 if test -d "${bmd}/bitmaps"; then
9404 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9405 fi
9406 done
9407 if test ${bmd_acc} != "dummyval"; then
9408 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9409 fi
9410 fi
9411
9412 HAVE_CARBON=no
9413 if test "${with_carbon}" != no; then
9414 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9415 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9416 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9417 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 fi
9420 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9421 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9422 else
9423 # Is the header compilable?
9424 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9425 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9426 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h. */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 $ac_includes_default
9433 #include <Carbon/Carbon.h>
9434 _ACEOF
9435 rm -f conftest.$ac_objext
9436 if { (ac_try="$ac_compile"
9437 case "(($ac_try" in
9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439 *) ac_try_echo=$ac_try;;
9440 esac
9441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9442 (eval "$ac_compile") 2>conftest.er1
9443 ac_status=$?
9444 grep -v '^ *+' conftest.er1 >conftest.err
9445 rm -f conftest.er1
9446 cat conftest.err >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } && {
9449 test -z "$ac_c_werror_flag" ||
9450 test ! -s conftest.err
9451 } && test -s conftest.$ac_objext; then
9452 ac_header_compiler=yes
9453 else
9454 echo "$as_me: failed program was:" >&5
9455 sed 's/^/| /' conftest.$ac_ext >&5
9456
9457 ac_header_compiler=no
9458 fi
9459
9460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9462 echo "${ECHO_T}$ac_header_compiler" >&6; }
9463
9464 # Is the header present?
9465 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9466 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9467 cat >conftest.$ac_ext <<_ACEOF
9468 /* confdefs.h. */
9469 _ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9473 #include <Carbon/Carbon.h>
9474 _ACEOF
9475 if { (ac_try="$ac_cpp conftest.$ac_ext"
9476 case "(($ac_try" in
9477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9478 *) ac_try_echo=$ac_try;;
9479 esac
9480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9482 ac_status=$?
9483 grep -v '^ *+' conftest.er1 >conftest.err
9484 rm -f conftest.er1
9485 cat conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } >/dev/null && {
9488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9489 test ! -s conftest.err
9490 }; then
9491 ac_header_preproc=yes
9492 else
9493 echo "$as_me: failed program was:" >&5
9494 sed 's/^/| /' conftest.$ac_ext >&5
9495
9496 ac_header_preproc=no
9497 fi
9498
9499 rm -f conftest.err conftest.$ac_ext
9500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9501 echo "${ECHO_T}$ac_header_preproc" >&6; }
9502
9503 # So? What about this header?
9504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9505 yes:no: )
9506 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9507 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9508 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9509 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9510 ac_header_preproc=yes
9511 ;;
9512 no:yes:* )
9513 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9514 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9515 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9516 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9517 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9518 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9519 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9520 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9521 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9522 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9523 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9524 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9525
9526 ;;
9527 esac
9528 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9529 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9530 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9534 fi
9535 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9536 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9537
9538 fi
9539 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9540 HAVE_CARBON=yes
9541 fi
9542
9543
9544 fi
9545 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9546 if test "${with_carbon+set}" != set \
9547 && test "${carbon_appdir_x+set}" != set; then
9548 for var in with_x with_x_toolkit with_gtk with_xim \
9549 with_xpm with_jpeg with_tiff with_gif with_png; do
9550 if eval test \"\${$var+set}\" = set; then
9551 HAVE_CARBON=no
9552 break
9553 fi
9554 done
9555 fi
9556 fi
9557 if test "${HAVE_CARBON}" = yes; then
9558 window_system=mac
9559 fi
9560
9561 case "${window_system}" in
9562 x11 )
9563 HAVE_X_WINDOWS=yes
9564 HAVE_X11=yes
9565 case "${with_x_toolkit}" in
9566 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9567 motif ) USE_X_TOOLKIT=MOTIF ;;
9568 gtk ) with_gtk=yes
9569 USE_X_TOOLKIT=none ;;
9570 no ) USE_X_TOOLKIT=none ;;
9571 * )
9572 if test x"$with_gtk" = xyes; then
9573 USE_X_TOOLKIT=none
9574 else
9575 USE_X_TOOLKIT=maybe
9576 fi
9577 ;;
9578 esac
9579 ;;
9580 mac | none )
9581 HAVE_X_WINDOWS=no
9582 HAVE_X11=no
9583 USE_X_TOOLKIT=none
9584 ;;
9585 esac
9586
9587 ### If we're using X11, we should use the X menu package.
9588 HAVE_MENUS=no
9589 case ${HAVE_X11} in
9590 yes ) HAVE_MENUS=yes ;;
9591 esac
9592
9593 if test "${opsys}" = "hpux9"; then
9594 case "${x_libraries}" in
9595 *X11R4* )
9596 opsysfile="s/hpux9-x11r4.h"
9597 ;;
9598 esac
9599 fi
9600
9601 if test "${opsys}" = "hpux9shr"; then
9602 case "${x_libraries}" in
9603 *X11R4* )
9604 opsysfile="s/hpux9shxr4.h"
9605 ;;
9606 esac
9607 fi
9608
9609 ### Compute the unexec source name from the object name.
9610 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9611
9612 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9613 # Assume not, until told otherwise.
9614 GNU_MALLOC=yes
9615 doug_lea_malloc=yes
9616 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9617 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9618 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 else
9621 cat >conftest.$ac_ext <<_ACEOF
9622 /* confdefs.h. */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9629 #define malloc_get_state innocuous_malloc_get_state
9630
9631 /* System header to define __stub macros and hopefully few prototypes,
9632 which can conflict with char malloc_get_state (); below.
9633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9634 <limits.h> exists even on freestanding compilers. */
9635
9636 #ifdef __STDC__
9637 # include <limits.h>
9638 #else
9639 # include <assert.h>
9640 #endif
9641
9642 #undef malloc_get_state
9643
9644 /* Override any GCC internal prototype to avoid an error.
9645 Use char because int might match the return type of a GCC
9646 builtin and then its argument prototype would still apply. */
9647 #ifdef __cplusplus
9648 extern "C"
9649 #endif
9650 char malloc_get_state ();
9651 /* The GNU C library defines this for functions which it implements
9652 to always fail with ENOSYS. Some functions are actually named
9653 something starting with __ and the normal name is an alias. */
9654 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9655 choke me
9656 #endif
9657
9658 int
9659 main ()
9660 {
9661 return malloc_get_state ();
9662 ;
9663 return 0;
9664 }
9665 _ACEOF
9666 rm -f conftest.$ac_objext conftest$ac_exeext
9667 if { (ac_try="$ac_link"
9668 case "(($ac_try" in
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9671 esac
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_link") 2>conftest.er1
9674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } && {
9680 test -z "$ac_c_werror_flag" ||
9681 test ! -s conftest.err
9682 } && test -s conftest$ac_exeext &&
9683 $as_test_x conftest$ac_exeext; then
9684 ac_cv_func_malloc_get_state=yes
9685 else
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9688
9689 ac_cv_func_malloc_get_state=no
9690 fi
9691
9692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9693 conftest$ac_exeext conftest.$ac_ext
9694 fi
9695 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9696 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9697 if test $ac_cv_func_malloc_get_state = yes; then
9698 :
9699 else
9700 doug_lea_malloc=no
9701 fi
9702
9703 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9704 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9705 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9707 else
9708 cat >conftest.$ac_ext <<_ACEOF
9709 /* confdefs.h. */
9710 _ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9714 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9716 #define malloc_set_state innocuous_malloc_set_state
9717
9718 /* System header to define __stub macros and hopefully few prototypes,
9719 which can conflict with char malloc_set_state (); below.
9720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9721 <limits.h> exists even on freestanding compilers. */
9722
9723 #ifdef __STDC__
9724 # include <limits.h>
9725 #else
9726 # include <assert.h>
9727 #endif
9728
9729 #undef malloc_set_state
9730
9731 /* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
9734 #ifdef __cplusplus
9735 extern "C"
9736 #endif
9737 char malloc_set_state ();
9738 /* The GNU C library defines this for functions which it implements
9739 to always fail with ENOSYS. Some functions are actually named
9740 something starting with __ and the normal name is an alias. */
9741 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9742 choke me
9743 #endif
9744
9745 int
9746 main ()
9747 {
9748 return malloc_set_state ();
9749 ;
9750 return 0;
9751 }
9752 _ACEOF
9753 rm -f conftest.$ac_objext conftest$ac_exeext
9754 if { (ac_try="$ac_link"
9755 case "(($ac_try" in
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9758 esac
9759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760 (eval "$ac_link") 2>conftest.er1
9761 ac_status=$?
9762 grep -v '^ *+' conftest.er1 >conftest.err
9763 rm -f conftest.er1
9764 cat conftest.err >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } && {
9767 test -z "$ac_c_werror_flag" ||
9768 test ! -s conftest.err
9769 } && test -s conftest$ac_exeext &&
9770 $as_test_x conftest$ac_exeext; then
9771 ac_cv_func_malloc_set_state=yes
9772 else
9773 echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9775
9776 ac_cv_func_malloc_set_state=no
9777 fi
9778
9779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9780 conftest$ac_exeext conftest.$ac_ext
9781 fi
9782 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9783 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9784 if test $ac_cv_func_malloc_set_state = yes; then
9785 :
9786 else
9787 doug_lea_malloc=no
9788 fi
9789
9790 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9791 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9792 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9795 cat >conftest.$ac_ext <<_ACEOF
9796 /* confdefs.h. */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801 extern void (* __after_morecore_hook)();
9802 int
9803 main ()
9804 {
9805 __after_morecore_hook = 0
9806 ;
9807 return 0;
9808 }
9809 _ACEOF
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (ac_try="$ac_link"
9812 case "(($ac_try" in
9813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814 *) ac_try_echo=$ac_try;;
9815 esac
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817 (eval "$ac_link") 2>conftest.er1
9818 ac_status=$?
9819 grep -v '^ *+' conftest.er1 >conftest.err
9820 rm -f conftest.er1
9821 cat conftest.err >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } && {
9824 test -z "$ac_c_werror_flag" ||
9825 test ! -s conftest.err
9826 } && test -s conftest$ac_exeext &&
9827 $as_test_x conftest$ac_exeext; then
9828 emacs_cv_var___after_morecore_hook=yes
9829 else
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9832
9833 emacs_cv_var___after_morecore_hook=no
9834 fi
9835
9836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9837 conftest$ac_exeext conftest.$ac_ext
9838 fi
9839 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9840 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9841 if test $emacs_cv_var___after_morecore_hook = no; then
9842 doug_lea_malloc=no
9843 fi
9844 if test "${system_malloc}" = "yes"; then
9845 GNU_MALLOC=no
9846 GNU_MALLOC_reason="
9847 (The GNU allocators don't work with this system configuration.)"
9848 fi
9849 if test "$doug_lea_malloc" = "yes" ; then
9850 if test "$GNU_MALLOC" = yes ; then
9851 GNU_MALLOC_reason="
9852 (Using Doug Lea's new malloc from the GNU C Library.)"
9853 fi
9854
9855 cat >>confdefs.h <<\_ACEOF
9856 #define DOUG_LEA_MALLOC 1
9857 _ACEOF
9858
9859 fi
9860
9861 if test x"${REL_ALLOC}" = x; then
9862 REL_ALLOC=${GNU_MALLOC}
9863 fi
9864
9865
9866
9867
9868 for ac_header in stdlib.h unistd.h
9869 do
9870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9876 fi
9877 ac_res=`eval echo '${'$as_ac_Header'}'`
9878 { echo "$as_me:$LINENO: result: $ac_res" >&5
9879 echo "${ECHO_T}$ac_res" >&6; }
9880 else
9881 # Is the header compilable?
9882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9884 cat >conftest.$ac_ext <<_ACEOF
9885 /* confdefs.h. */
9886 _ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9890 $ac_includes_default
9891 #include <$ac_header>
9892 _ACEOF
9893 rm -f conftest.$ac_objext
9894 if { (ac_try="$ac_compile"
9895 case "(($ac_try" in
9896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897 *) ac_try_echo=$ac_try;;
9898 esac
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900 (eval "$ac_compile") 2>conftest.er1
9901 ac_status=$?
9902 grep -v '^ *+' conftest.er1 >conftest.err
9903 rm -f conftest.er1
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } && {
9907 test -z "$ac_c_werror_flag" ||
9908 test ! -s conftest.err
9909 } && test -s conftest.$ac_objext; then
9910 ac_header_compiler=yes
9911 else
9912 echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9914
9915 ac_header_compiler=no
9916 fi
9917
9918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9920 echo "${ECHO_T}$ac_header_compiler" >&6; }
9921
9922 # Is the header present?
9923 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9925 cat >conftest.$ac_ext <<_ACEOF
9926 /* confdefs.h. */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9931 #include <$ac_header>
9932 _ACEOF
9933 if { (ac_try="$ac_cpp conftest.$ac_ext"
9934 case "(($ac_try" in
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9937 esac
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9940 ac_status=$?
9941 grep -v '^ *+' conftest.er1 >conftest.err
9942 rm -f conftest.er1
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } >/dev/null && {
9946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9947 test ! -s conftest.err
9948 }; then
9949 ac_header_preproc=yes
9950 else
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9953
9954 ac_header_preproc=no
9955 fi
9956
9957 rm -f conftest.err conftest.$ac_ext
9958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9959 echo "${ECHO_T}$ac_header_preproc" >&6; }
9960
9961 # So? What about this header?
9962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9963 yes:no: )
9964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9968 ac_header_preproc=yes
9969 ;;
9970 no:yes:* )
9971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9983
9984 ;;
9985 esac
9986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 else
9991 eval "$as_ac_Header=\$ac_header_preproc"
9992 fi
9993 ac_res=`eval echo '${'$as_ac_Header'}'`
9994 { echo "$as_me:$LINENO: result: $ac_res" >&5
9995 echo "${ECHO_T}$ac_res" >&6; }
9996
9997 fi
9998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9999 cat >>confdefs.h <<_ACEOF
10000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10001 _ACEOF
10002
10003 fi
10004
10005 done
10006
10007
10008 for ac_func in getpagesize
10009 do
10010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 else
10016 cat >conftest.$ac_ext <<_ACEOF
10017 /* confdefs.h. */
10018 _ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h. */
10022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10024 #define $ac_func innocuous_$ac_func
10025
10026 /* System header to define __stub macros and hopefully few prototypes,
10027 which can conflict with char $ac_func (); below.
10028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10029 <limits.h> exists even on freestanding compilers. */
10030
10031 #ifdef __STDC__
10032 # include <limits.h>
10033 #else
10034 # include <assert.h>
10035 #endif
10036
10037 #undef $ac_func
10038
10039 /* Override any GCC internal prototype to avoid an error.
10040 Use char because int might match the return type of a GCC
10041 builtin and then its argument prototype would still apply. */
10042 #ifdef __cplusplus
10043 extern "C"
10044 #endif
10045 char $ac_func ();
10046 /* The GNU C library defines this for functions which it implements
10047 to always fail with ENOSYS. Some functions are actually named
10048 something starting with __ and the normal name is an alias. */
10049 #if defined __stub_$ac_func || defined __stub___$ac_func
10050 choke me
10051 #endif
10052
10053 int
10054 main ()
10055 {
10056 return $ac_func ();
10057 ;
10058 return 0;
10059 }
10060 _ACEOF
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (ac_try="$ac_link"
10063 case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10066 esac
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_link") 2>conftest.er1
10069 ac_status=$?
10070 grep -v '^ *+' conftest.er1 >conftest.err
10071 rm -f conftest.er1
10072 cat conftest.err >&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } && {
10075 test -z "$ac_c_werror_flag" ||
10076 test ! -s conftest.err
10077 } && test -s conftest$ac_exeext &&
10078 $as_test_x conftest$ac_exeext; then
10079 eval "$as_ac_var=yes"
10080 else
10081 echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10083
10084 eval "$as_ac_var=no"
10085 fi
10086
10087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10088 conftest$ac_exeext conftest.$ac_ext
10089 fi
10090 ac_res=`eval echo '${'$as_ac_var'}'`
10091 { echo "$as_me:$LINENO: result: $ac_res" >&5
10092 echo "${ECHO_T}$ac_res" >&6; }
10093 if test `eval echo '${'$as_ac_var'}'` = yes; then
10094 cat >>confdefs.h <<_ACEOF
10095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10096 _ACEOF
10097
10098 fi
10099 done
10100
10101 { echo "$as_me:$LINENO: checking for working mmap" >&5
10102 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10103 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10105 else
10106 if test "$cross_compiling" = yes; then
10107 ac_cv_func_mmap_fixed_mapped=no
10108 else
10109 cat >conftest.$ac_ext <<_ACEOF
10110 /* confdefs.h. */
10111 _ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10115 $ac_includes_default
10116 /* malloc might have been renamed as rpl_malloc. */
10117 #undef malloc
10118
10119 /* Thanks to Mike Haertel and Jim Avera for this test.
10120 Here is a matrix of mmap possibilities:
10121 mmap private not fixed
10122 mmap private fixed at somewhere currently unmapped
10123 mmap private fixed at somewhere already mapped
10124 mmap shared not fixed
10125 mmap shared fixed at somewhere currently unmapped
10126 mmap shared fixed at somewhere already mapped
10127 For private mappings, we should verify that changes cannot be read()
10128 back from the file, nor mmap's back from the file at a different
10129 address. (There have been systems where private was not correctly
10130 implemented like the infamous i386 svr4.0, and systems where the
10131 VM page cache was not coherent with the file system buffer cache
10132 like early versions of FreeBSD and possibly contemporary NetBSD.)
10133 For shared mappings, we should conversely verify that changes get
10134 propagated back to all the places they're supposed to be.
10135
10136 Grep wants private fixed already mapped.
10137 The main things grep needs to know about mmap are:
10138 * does it exist and is it safe to write into the mmap'd area
10139 * how to use it (BSD variants) */
10140
10141 #include <fcntl.h>
10142 #include <sys/mman.h>
10143
10144 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10145 char *malloc ();
10146 #endif
10147
10148 /* This mess was copied from the GNU getpagesize.h. */
10149 #ifndef HAVE_GETPAGESIZE
10150 /* Assume that all systems that can run configure have sys/param.h. */
10151 # ifndef HAVE_SYS_PARAM_H
10152 # define HAVE_SYS_PARAM_H 1
10153 # endif
10154
10155 # ifdef _SC_PAGESIZE
10156 # define getpagesize() sysconf(_SC_PAGESIZE)
10157 # else /* no _SC_PAGESIZE */
10158 # ifdef HAVE_SYS_PARAM_H
10159 # include <sys/param.h>
10160 # ifdef EXEC_PAGESIZE
10161 # define getpagesize() EXEC_PAGESIZE
10162 # else /* no EXEC_PAGESIZE */
10163 # ifdef NBPG
10164 # define getpagesize() NBPG * CLSIZE
10165 # ifndef CLSIZE
10166 # define CLSIZE 1
10167 # endif /* no CLSIZE */
10168 # else /* no NBPG */
10169 # ifdef NBPC
10170 # define getpagesize() NBPC
10171 # else /* no NBPC */
10172 # ifdef PAGESIZE
10173 # define getpagesize() PAGESIZE
10174 # endif /* PAGESIZE */
10175 # endif /* no NBPC */
10176 # endif /* no NBPG */
10177 # endif /* no EXEC_PAGESIZE */
10178 # else /* no HAVE_SYS_PARAM_H */
10179 # define getpagesize() 8192 /* punt totally */
10180 # endif /* no HAVE_SYS_PARAM_H */
10181 # endif /* no _SC_PAGESIZE */
10182
10183 #endif /* no HAVE_GETPAGESIZE */
10184
10185 int
10186 main ()
10187 {
10188 char *data, *data2, *data3;
10189 int i, pagesize;
10190 int fd;
10191
10192 pagesize = getpagesize ();
10193
10194 /* First, make a file with some known garbage in it. */
10195 data = (char *) malloc (pagesize);
10196 if (!data)
10197 return 1;
10198 for (i = 0; i < pagesize; ++i)
10199 *(data + i) = rand ();
10200 umask (0);
10201 fd = creat ("conftest.mmap", 0600);
10202 if (fd < 0)
10203 return 1;
10204 if (write (fd, data, pagesize) != pagesize)
10205 return 1;
10206 close (fd);
10207
10208 /* Next, try to mmap the file at a fixed address which already has
10209 something else allocated at it. If we can, also make sure that
10210 we see the same garbage. */
10211 fd = open ("conftest.mmap", O_RDWR);
10212 if (fd < 0)
10213 return 1;
10214 data2 = (char *) malloc (2 * pagesize);
10215 if (!data2)
10216 return 1;
10217 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10218 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10219 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10220 return 1;
10221 for (i = 0; i < pagesize; ++i)
10222 if (*(data + i) != *(data2 + i))
10223 return 1;
10224
10225 /* Finally, make sure that changes to the mapped area do not
10226 percolate back to the file as seen by read(). (This is a bug on
10227 some variants of i386 svr4.0.) */
10228 for (i = 0; i < pagesize; ++i)
10229 *(data2 + i) = *(data2 + i) + 1;
10230 data3 = (char *) malloc (pagesize);
10231 if (!data3)
10232 return 1;
10233 if (read (fd, data3, pagesize) != pagesize)
10234 return 1;
10235 for (i = 0; i < pagesize; ++i)
10236 if (*(data + i) != *(data3 + i))
10237 return 1;
10238 close (fd);
10239 return 0;
10240 }
10241 _ACEOF
10242 rm -f conftest$ac_exeext
10243 if { (ac_try="$ac_link"
10244 case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10247 esac
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_link") 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10253 { (case "(($ac_try" in
10254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255 *) ac_try_echo=$ac_try;;
10256 esac
10257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258 (eval "$ac_try") 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }; then
10262 ac_cv_func_mmap_fixed_mapped=yes
10263 else
10264 echo "$as_me: program exited with status $ac_status" >&5
10265 echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10267
10268 ( exit $ac_status )
10269 ac_cv_func_mmap_fixed_mapped=no
10270 fi
10271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10272 fi
10273
10274
10275 fi
10276 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10277 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10278 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10279
10280 cat >>confdefs.h <<\_ACEOF
10281 #define HAVE_MMAP 1
10282 _ACEOF
10283
10284 fi
10285 rm -f conftest.mmap
10286
10287 if test $use_mmap_for_buffers = yes; then
10288 REL_ALLOC=no
10289 fi
10290
10291 LIBS="$libsrc_libs $LIBS"
10292
10293
10294 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10295 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10296 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 else
10299 ac_check_lib_save_LIBS=$LIBS
10300 LIBS="-ldnet $LIBS"
10301 cat >conftest.$ac_ext <<_ACEOF
10302 /* confdefs.h. */
10303 _ACEOF
10304 cat confdefs.h >>conftest.$ac_ext
10305 cat >>conftest.$ac_ext <<_ACEOF
10306 /* end confdefs.h. */
10307
10308 /* Override any GCC internal prototype to avoid an error.
10309 Use char because int might match the return type of a GCC
10310 builtin and then its argument prototype would still apply. */
10311 #ifdef __cplusplus
10312 extern "C"
10313 #endif
10314 char dnet_ntoa ();
10315 int
10316 main ()
10317 {
10318 return dnet_ntoa ();
10319 ;
10320 return 0;
10321 }
10322 _ACEOF
10323 rm -f conftest.$ac_objext conftest$ac_exeext
10324 if { (ac_try="$ac_link"
10325 case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328 esac
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_link") 2>conftest.er1
10331 ac_status=$?
10332 grep -v '^ *+' conftest.er1 >conftest.err
10333 rm -f conftest.er1
10334 cat conftest.err >&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest$ac_exeext &&
10340 $as_test_x conftest$ac_exeext; then
10341 ac_cv_lib_dnet_dnet_ntoa=yes
10342 else
10343 echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10345
10346 ac_cv_lib_dnet_dnet_ntoa=no
10347 fi
10348
10349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10350 conftest$ac_exeext conftest.$ac_ext
10351 LIBS=$ac_check_lib_save_LIBS
10352 fi
10353 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10354 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10355 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10356 cat >>confdefs.h <<_ACEOF
10357 #define HAVE_LIBDNET 1
10358 _ACEOF
10359
10360 LIBS="-ldnet $LIBS"
10361
10362 fi
10363
10364
10365 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10366 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10367 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10369 else
10370 ac_check_lib_save_LIBS=$LIBS
10371 LIBS="-lXbsd $LIBS"
10372 cat >conftest.$ac_ext <<_ACEOF
10373 /* confdefs.h. */
10374 _ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10378
10379
10380 int
10381 main ()
10382 {
10383 return main ();
10384 ;
10385 return 0;
10386 }
10387 _ACEOF
10388 rm -f conftest.$ac_objext conftest$ac_exeext
10389 if { (ac_try="$ac_link"
10390 case "(($ac_try" in
10391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392 *) ac_try_echo=$ac_try;;
10393 esac
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395 (eval "$ac_link") 2>conftest.er1
10396 ac_status=$?
10397 grep -v '^ *+' conftest.er1 >conftest.err
10398 rm -f conftest.er1
10399 cat conftest.err >&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } && {
10402 test -z "$ac_c_werror_flag" ||
10403 test ! -s conftest.err
10404 } && test -s conftest$ac_exeext &&
10405 $as_test_x conftest$ac_exeext; then
10406 ac_cv_lib_Xbsd_main=yes
10407 else
10408 echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.$ac_ext >&5
10410
10411 ac_cv_lib_Xbsd_main=no
10412 fi
10413
10414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10415 conftest$ac_exeext conftest.$ac_ext
10416 LIBS=$ac_check_lib_save_LIBS
10417 fi
10418 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10419 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10420 if test $ac_cv_lib_Xbsd_main = yes; then
10421 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10422 fi
10423
10424
10425
10426 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10427 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10428 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6
10430 else
10431 ac_check_lib_save_LIBS=$LIBS
10432 LIBS="-lpthreads $LIBS"
10433 cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h. */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439
10440 /* Override any GCC internal prototype to avoid an error.
10441 Use char because int might match the return type of a GCC
10442 builtin and then its argument prototype would still apply. */
10443 #ifdef __cplusplus
10444 extern "C"
10445 #endif
10446 char cma_open ();
10447 int
10448 main ()
10449 {
10450 return cma_open ();
10451 ;
10452 return 0;
10453 }
10454 _ACEOF
10455 rm -f conftest.$ac_objext conftest$ac_exeext
10456 if { (ac_try="$ac_link"
10457 case "(($ac_try" in
10458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459 *) ac_try_echo=$ac_try;;
10460 esac
10461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10462 (eval "$ac_link") 2>conftest.er1
10463 ac_status=$?
10464 grep -v '^ *+' conftest.er1 >conftest.err
10465 rm -f conftest.er1
10466 cat conftest.err >&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } && {
10469 test -z "$ac_c_werror_flag" ||
10470 test ! -s conftest.err
10471 } && test -s conftest$ac_exeext &&
10472 $as_test_x conftest$ac_exeext; then
10473 ac_cv_lib_pthreads_cma_open=yes
10474 else
10475 echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10477
10478 ac_cv_lib_pthreads_cma_open=no
10479 fi
10480
10481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10482 conftest$ac_exeext conftest.$ac_ext
10483 LIBS=$ac_check_lib_save_LIBS
10484 fi
10485 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10486 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10487 if test $ac_cv_lib_pthreads_cma_open = yes; then
10488 cat >>confdefs.h <<_ACEOF
10489 #define HAVE_LIBPTHREADS 1
10490 _ACEOF
10491
10492 LIBS="-lpthreads $LIBS"
10493
10494 fi
10495
10496
10497 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10498 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10499 if test -d /usr/X386/include; then
10500 HAVE_XFREE386=yes
10501 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10502 else
10503 HAVE_XFREE386=no
10504 fi
10505 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10506 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10507
10508
10509 case ${host_os} in
10510 aix*)
10511 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10512 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10513 if test "${gdb_cv_bigtoc+set}" = set; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10515 else
10516
10517 case $GCC in
10518 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10519 *) gdb_cv_bigtoc=-bbigtoc ;;
10520 esac
10521
10522 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10523 cat >conftest.$ac_ext <<_ACEOF
10524 /* confdefs.h. */
10525 _ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10529
10530 int
10531 main ()
10532 {
10533 int i;
10534 ;
10535 return 0;
10536 }
10537 _ACEOF
10538 rm -f conftest.$ac_objext conftest$ac_exeext
10539 if { (ac_try="$ac_link"
10540 case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10543 esac
10544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545 (eval "$ac_link") 2>conftest.er1
10546 ac_status=$?
10547 grep -v '^ *+' conftest.er1 >conftest.err
10548 rm -f conftest.er1
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } && {
10552 test -z "$ac_c_werror_flag" ||
10553 test ! -s conftest.err
10554 } && test -s conftest$ac_exeext &&
10555 $as_test_x conftest$ac_exeext; then
10556 :
10557 else
10558 echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10560
10561 gdb_cv_bigtoc=
10562 fi
10563
10564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10565 conftest$ac_exeext conftest.$ac_ext
10566
10567 fi
10568 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10569 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10570 ;;
10571 esac
10572
10573 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10574 # used for the tests that follow. We set them back to REAL_CFLAGS and
10575 # REAL_CPPFLAGS later on.
10576
10577 REAL_CPPFLAGS="$CPPFLAGS"
10578
10579 if test "${HAVE_X11}" = "yes"; then
10580 DEFS="$C_SWITCH_X_SITE $DEFS"
10581 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10582 LIBS="$LIBX $LIBS"
10583 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10584 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10585
10586 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10587 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10588 # but it's more convenient here to set LD_RUN_PATH
10589 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10590 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10591 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10592 export LD_RUN_PATH
10593 fi
10594
10595 if test "${opsys}" = "gnu-linux"; then
10596 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10597 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10598 cat >conftest.$ac_ext <<_ACEOF
10599 /* confdefs.h. */
10600 _ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h. */
10604
10605 int
10606 main ()
10607 {
10608 XOpenDisplay ("foo");
10609 ;
10610 return 0;
10611 }
10612 _ACEOF
10613 rm -f conftest.$ac_objext conftest$ac_exeext
10614 if { (ac_try="$ac_link"
10615 case "(($ac_try" in
10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10618 esac
10619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620 (eval "$ac_link") 2>conftest.er1
10621 ac_status=$?
10622 grep -v '^ *+' conftest.er1 >conftest.err
10623 rm -f conftest.er1
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } && {
10627 test -z "$ac_c_werror_flag" ||
10628 test ! -s conftest.err
10629 } && test -s conftest$ac_exeext &&
10630 $as_test_x conftest$ac_exeext; then
10631 xlinux_first_failure=no
10632 else
10633 echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10635
10636 xlinux_first_failure=yes
10637 fi
10638
10639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10640 conftest$ac_exeext conftest.$ac_ext
10641 if test "${xlinux_first_failure}" = "yes"; then
10642 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10643 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10644 OLD_CPPFLAGS="$CPPFLAGS"
10645 OLD_LIBS="$LIBS"
10646 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10647 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10648 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10649 LIBS="$LIBS -b i486-linuxaout"
10650 cat >conftest.$ac_ext <<_ACEOF
10651 /* confdefs.h. */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10656
10657 int
10658 main ()
10659 {
10660 XOpenDisplay ("foo");
10661 ;
10662 return 0;
10663 }
10664 _ACEOF
10665 rm -f conftest.$ac_objext conftest$ac_exeext
10666 if { (ac_try="$ac_link"
10667 case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10670 esac
10671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10672 (eval "$ac_link") 2>conftest.er1
10673 ac_status=$?
10674 grep -v '^ *+' conftest.er1 >conftest.err
10675 rm -f conftest.er1
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } && {
10679 test -z "$ac_c_werror_flag" ||
10680 test ! -s conftest.err
10681 } && test -s conftest$ac_exeext &&
10682 $as_test_x conftest$ac_exeext; then
10683 xlinux_second_failure=no
10684 else
10685 echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10687
10688 xlinux_second_failure=yes
10689 fi
10690
10691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10692 conftest$ac_exeext conftest.$ac_ext
10693 if test "${xlinux_second_failure}" = "yes"; then
10694 # If we get the same failure with -b, there is no use adding -b.
10695 # So take it out. This plays safe.
10696 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10697 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10698 CPPFLAGS="$OLD_CPPFLAGS"
10699 LIBS="$OLD_LIBS"
10700 { echo "$as_me:$LINENO: result: no" >&5
10701 echo "${ECHO_T}no" >&6; }
10702 else
10703 { echo "$as_me:$LINENO: result: yes" >&5
10704 echo "${ECHO_T}yes" >&6; }
10705 fi
10706 else
10707 { echo "$as_me:$LINENO: result: no" >&5
10708 echo "${ECHO_T}no" >&6; }
10709 fi
10710 fi
10711
10712 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10713 # header files included from there.
10714 { echo "$as_me:$LINENO: checking for Xkb" >&5
10715 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10716 cat >conftest.$ac_ext <<_ACEOF
10717 /* confdefs.h. */
10718 _ACEOF
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h. */
10722 #include <X11/Xlib.h>
10723 #include <X11/XKBlib.h>
10724 int
10725 main ()
10726 {
10727 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10728 ;
10729 return 0;
10730 }
10731 _ACEOF
10732 rm -f conftest.$ac_objext conftest$ac_exeext
10733 if { (ac_try="$ac_link"
10734 case "(($ac_try" in
10735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10736 *) ac_try_echo=$ac_try;;
10737 esac
10738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10739 (eval "$ac_link") 2>conftest.er1
10740 ac_status=$?
10741 grep -v '^ *+' conftest.er1 >conftest.err
10742 rm -f conftest.er1
10743 cat conftest.err >&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } && {
10746 test -z "$ac_c_werror_flag" ||
10747 test ! -s conftest.err
10748 } && test -s conftest$ac_exeext &&
10749 $as_test_x conftest$ac_exeext; then
10750 emacs_xkb=yes
10751 else
10752 echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10754
10755 emacs_xkb=no
10756 fi
10757
10758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10759 conftest$ac_exeext conftest.$ac_ext
10760 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10761 echo "${ECHO_T}$emacs_xkb" >&6; }
10762 if test $emacs_xkb = yes; then
10763
10764 cat >>confdefs.h <<\_ACEOF
10765 #define HAVE_XKBGETKEYBOARD 1
10766 _ACEOF
10767
10768 fi
10769
10770
10771
10772
10773
10774 for ac_func in XrmSetDatabase XScreenResourceString \
10775 XScreenNumberOfScreen XSetWMProtocols
10776 do
10777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10781 echo $ECHO_N "(cached) $ECHO_C" >&6
10782 else
10783 cat >conftest.$ac_ext <<_ACEOF
10784 /* confdefs.h. */
10785 _ACEOF
10786 cat confdefs.h >>conftest.$ac_ext
10787 cat >>conftest.$ac_ext <<_ACEOF
10788 /* end confdefs.h. */
10789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10791 #define $ac_func innocuous_$ac_func
10792
10793 /* System header to define __stub macros and hopefully few prototypes,
10794 which can conflict with char $ac_func (); below.
10795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10796 <limits.h> exists even on freestanding compilers. */
10797
10798 #ifdef __STDC__
10799 # include <limits.h>
10800 #else
10801 # include <assert.h>
10802 #endif
10803
10804 #undef $ac_func
10805
10806 /* Override any GCC internal prototype to avoid an error.
10807 Use char because int might match the return type of a GCC
10808 builtin and then its argument prototype would still apply. */
10809 #ifdef __cplusplus
10810 extern "C"
10811 #endif
10812 char $ac_func ();
10813 /* The GNU C library defines this for functions which it implements
10814 to always fail with ENOSYS. Some functions are actually named
10815 something starting with __ and the normal name is an alias. */
10816 #if defined __stub_$ac_func || defined __stub___$ac_func
10817 choke me
10818 #endif
10819
10820 int
10821 main ()
10822 {
10823 return $ac_func ();
10824 ;
10825 return 0;
10826 }
10827 _ACEOF
10828 rm -f conftest.$ac_objext conftest$ac_exeext
10829 if { (ac_try="$ac_link"
10830 case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10833 esac
10834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10835 (eval "$ac_link") 2>conftest.er1
10836 ac_status=$?
10837 grep -v '^ *+' conftest.er1 >conftest.err
10838 rm -f conftest.er1
10839 cat conftest.err >&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } && {
10842 test -z "$ac_c_werror_flag" ||
10843 test ! -s conftest.err
10844 } && test -s conftest$ac_exeext &&
10845 $as_test_x conftest$ac_exeext; then
10846 eval "$as_ac_var=yes"
10847 else
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10850
10851 eval "$as_ac_var=no"
10852 fi
10853
10854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10855 conftest$ac_exeext conftest.$ac_ext
10856 fi
10857 ac_res=`eval echo '${'$as_ac_var'}'`
10858 { echo "$as_me:$LINENO: result: $ac_res" >&5
10859 echo "${ECHO_T}$ac_res" >&6; }
10860 if test `eval echo '${'$as_ac_var'}'` = yes; then
10861 cat >>confdefs.h <<_ACEOF
10862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10863 _ACEOF
10864
10865 fi
10866 done
10867
10868 fi
10869
10870 if test "${window_system}" = "x11"; then
10871 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10872 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10873 if test "${emacs_cv_x11_version_6+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876 cat >conftest.$ac_ext <<_ACEOF
10877 /* confdefs.h. */
10878 _ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 #include <X11/Xlib.h>
10883 int
10884 main ()
10885 {
10886 #if XlibSpecificationRelease < 6
10887 fail;
10888 #endif
10889
10890 ;
10891 return 0;
10892 }
10893 _ACEOF
10894 rm -f conftest.$ac_objext conftest$ac_exeext
10895 if { (ac_try="$ac_link"
10896 case "(($ac_try" in
10897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898 *) ac_try_echo=$ac_try;;
10899 esac
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901 (eval "$ac_link") 2>conftest.er1
10902 ac_status=$?
10903 grep -v '^ *+' conftest.er1 >conftest.err
10904 rm -f conftest.er1
10905 cat conftest.err >&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); } && {
10908 test -z "$ac_c_werror_flag" ||
10909 test ! -s conftest.err
10910 } && test -s conftest$ac_exeext &&
10911 $as_test_x conftest$ac_exeext; then
10912 emacs_cv_x11_version_6=yes
10913 else
10914 echo "$as_me: failed program was:" >&5
10915 sed 's/^/| /' conftest.$ac_ext >&5
10916
10917 emacs_cv_x11_version_6=no
10918 fi
10919
10920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10921 conftest$ac_exeext conftest.$ac_ext
10922 fi
10923
10924 if test $emacs_cv_x11_version_6 = yes; then
10925 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10926 echo "${ECHO_T}6 or newer" >&6; }
10927
10928 cat >>confdefs.h <<\_ACEOF
10929 #define HAVE_X11R6 1
10930 _ACEOF
10931
10932 else
10933 { echo "$as_me:$LINENO: result: before 6" >&5
10934 echo "${ECHO_T}before 6" >&6; }
10935 fi
10936 fi
10937
10938 if test "${window_system}" = "x11"; then
10939 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10940 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10941 if test "${emacs_cv_x11_version_5+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10943 else
10944 cat >conftest.$ac_ext <<_ACEOF
10945 /* confdefs.h. */
10946 _ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10950 #include <X11/Xlib.h>
10951 int
10952 main ()
10953 {
10954 #if XlibSpecificationRelease < 5
10955 fail;
10956 #endif
10957
10958 ;
10959 return 0;
10960 }
10961 _ACEOF
10962 rm -f conftest.$ac_objext conftest$ac_exeext
10963 if { (ac_try="$ac_link"
10964 case "(($ac_try" in
10965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966 *) ac_try_echo=$ac_try;;
10967 esac
10968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969 (eval "$ac_link") 2>conftest.er1
10970 ac_status=$?
10971 grep -v '^ *+' conftest.er1 >conftest.err
10972 rm -f conftest.er1
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } && {
10976 test -z "$ac_c_werror_flag" ||
10977 test ! -s conftest.err
10978 } && test -s conftest$ac_exeext &&
10979 $as_test_x conftest$ac_exeext; then
10980 emacs_cv_x11_version_5=yes
10981 else
10982 echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10984
10985 emacs_cv_x11_version_5=no
10986 fi
10987
10988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10989 conftest$ac_exeext conftest.$ac_ext
10990 fi
10991
10992 if test $emacs_cv_x11_version_5 = yes; then
10993 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10994 echo "${ECHO_T}5 or newer" >&6; }
10995 HAVE_X11R5=yes
10996
10997 cat >>confdefs.h <<\_ACEOF
10998 #define HAVE_X11R5 1
10999 _ACEOF
11000
11001 else
11002 HAVE_X11R5=no
11003 { echo "$as_me:$LINENO: result: before 5" >&5
11004 echo "${ECHO_T}before 5" >&6; }
11005 fi
11006 fi
11007
11008 HAVE_GTK=no
11009 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11010 USE_X_TOOLKIT=none
11011 fi
11012 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11013 test "$USE_X_TOOLKIT" = "maybe"; then
11014 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11015 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11016 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11017 { (exit 1); exit 1; }; };
11018 fi
11019 GLIB_REQUIRED=2.4
11020 GTK_REQUIRED=2.4
11021 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11022
11023 if test "X${with_pkg_config_prog}" != X; then
11024 PKG_CONFIG="${with_pkg_config_prog}"
11025 fi
11026
11027 succeeded=no
11028
11029 if test -z "$PKG_CONFIG"; then
11030 # Extract the first word of "pkg-config", so it can be a program name with args.
11031 set dummy pkg-config; ac_word=$2
11032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11034 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037 case $PKG_CONFIG in
11038 [\\/]* | ?:[\\/]*)
11039 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11040 ;;
11041 *)
11042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043 for as_dir in $PATH
11044 do
11045 IFS=$as_save_IFS
11046 test -z "$as_dir" && as_dir=.
11047 for ac_exec_ext in '' $ac_executable_extensions; do
11048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11049 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11051 break 2
11052 fi
11053 done
11054 done
11055 IFS=$as_save_IFS
11056
11057 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11058 ;;
11059 esac
11060 fi
11061 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11062 if test -n "$PKG_CONFIG"; then
11063 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11064 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11065 else
11066 { echo "$as_me:$LINENO: result: no" >&5
11067 echo "${ECHO_T}no" >&6; }
11068 fi
11069
11070
11071 fi
11072
11073 if test "$PKG_CONFIG" = "no" ; then
11074 pkg_check_gtk=no
11075 else
11076 PKG_CONFIG_MIN_VERSION=0.9.0
11077 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11078 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11079 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11080
11081 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11082 { echo "$as_me:$LINENO: result: yes" >&5
11083 echo "${ECHO_T}yes" >&6; }
11084 succeeded=yes
11085
11086 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11087 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11088 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11089 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11090 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11091
11092 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11093 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11094 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11095 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11096 echo "${ECHO_T}$GTK_LIBS" >&6; }
11097 else
11098 { echo "$as_me:$LINENO: result: no" >&5
11099 echo "${ECHO_T}no" >&6; }
11100 GTK_CFLAGS=""
11101 GTK_LIBS=""
11102 ## If we have a custom action on failure, don't print errors, but
11103 ## do set a variable so people can do so.
11104 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11105
11106 fi
11107
11108
11109
11110 else
11111 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11112 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11113 fi
11114 fi
11115
11116 if test $succeeded = yes; then
11117 pkg_check_gtk=yes
11118 else
11119 pkg_check_gtk=no
11120 fi
11121
11122 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11123 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11124 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11125 { (exit 1); exit 1; }; }
11126 fi
11127 fi
11128
11129
11130 if test x"$pkg_check_gtk" = xyes; then
11131
11132
11133
11134 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11135 CFLAGS="$CFLAGS $GTK_CFLAGS"
11136 LIBS="$GTK_LIBS $LIBS"
11137 GTK_COMPILES=no
11138
11139 for ac_func in gtk_main
11140 do
11141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11142 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11144 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 else
11147 cat >conftest.$ac_ext <<_ACEOF
11148 /* confdefs.h. */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11155 #define $ac_func innocuous_$ac_func
11156
11157 /* System header to define __stub macros and hopefully few prototypes,
11158 which can conflict with char $ac_func (); below.
11159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11160 <limits.h> exists even on freestanding compilers. */
11161
11162 #ifdef __STDC__
11163 # include <limits.h>
11164 #else
11165 # include <assert.h>
11166 #endif
11167
11168 #undef $ac_func
11169
11170 /* Override any GCC internal prototype to avoid an error.
11171 Use char because int might match the return type of a GCC
11172 builtin and then its argument prototype would still apply. */
11173 #ifdef __cplusplus
11174 extern "C"
11175 #endif
11176 char $ac_func ();
11177 /* The GNU C library defines this for functions which it implements
11178 to always fail with ENOSYS. Some functions are actually named
11179 something starting with __ and the normal name is an alias. */
11180 #if defined __stub_$ac_func || defined __stub___$ac_func
11181 choke me
11182 #endif
11183
11184 int
11185 main ()
11186 {
11187 return $ac_func ();
11188 ;
11189 return 0;
11190 }
11191 _ACEOF
11192 rm -f conftest.$ac_objext conftest$ac_exeext
11193 if { (ac_try="$ac_link"
11194 case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11197 esac
11198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199 (eval "$ac_link") 2>conftest.er1
11200 ac_status=$?
11201 grep -v '^ *+' conftest.er1 >conftest.err
11202 rm -f conftest.er1
11203 cat conftest.err >&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } && {
11206 test -z "$ac_c_werror_flag" ||
11207 test ! -s conftest.err
11208 } && test -s conftest$ac_exeext &&
11209 $as_test_x conftest$ac_exeext; then
11210 eval "$as_ac_var=yes"
11211 else
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11214
11215 eval "$as_ac_var=no"
11216 fi
11217
11218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11219 conftest$ac_exeext conftest.$ac_ext
11220 fi
11221 ac_res=`eval echo '${'$as_ac_var'}'`
11222 { echo "$as_me:$LINENO: result: $ac_res" >&5
11223 echo "${ECHO_T}$ac_res" >&6; }
11224 if test `eval echo '${'$as_ac_var'}'` = yes; then
11225 cat >>confdefs.h <<_ACEOF
11226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11227 _ACEOF
11228 GTK_COMPILES=yes
11229 fi
11230 done
11231
11232 if test "${GTK_COMPILES}" != "yes"; then
11233 if test "$USE_X_TOOLKIT" != "maybe"; then
11234 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11235 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11236 { (exit 1); exit 1; }; };
11237 fi
11238 else
11239 HAVE_GTK=yes
11240
11241 cat >>confdefs.h <<\_ACEOF
11242 #define HAVE_GTK 1
11243 _ACEOF
11244
11245 USE_X_TOOLKIT=none
11246 fi
11247
11248 fi
11249
11250
11251 if test "${HAVE_GTK}" = "yes"; then
11252
11253 if test "$with_toolkit_scroll_bars" != no; then
11254 with_toolkit_scroll_bars=yes
11255 fi
11256
11257 HAVE_GTK_MULTIDISPLAY=no
11258
11259 for ac_func in gdk_display_open
11260 do
11261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 else
11267 cat >conftest.$ac_ext <<_ACEOF
11268 /* confdefs.h. */
11269 _ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h. */
11273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11275 #define $ac_func innocuous_$ac_func
11276
11277 /* System header to define __stub macros and hopefully few prototypes,
11278 which can conflict with char $ac_func (); below.
11279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11280 <limits.h> exists even on freestanding compilers. */
11281
11282 #ifdef __STDC__
11283 # include <limits.h>
11284 #else
11285 # include <assert.h>
11286 #endif
11287
11288 #undef $ac_func
11289
11290 /* Override any GCC internal prototype to avoid an error.
11291 Use char because int might match the return type of a GCC
11292 builtin and then its argument prototype would still apply. */
11293 #ifdef __cplusplus
11294 extern "C"
11295 #endif
11296 char $ac_func ();
11297 /* The GNU C library defines this for functions which it implements
11298 to always fail with ENOSYS. Some functions are actually named
11299 something starting with __ and the normal name is an alias. */
11300 #if defined __stub_$ac_func || defined __stub___$ac_func
11301 choke me
11302 #endif
11303
11304 int
11305 main ()
11306 {
11307 return $ac_func ();
11308 ;
11309 return 0;
11310 }
11311 _ACEOF
11312 rm -f conftest.$ac_objext conftest$ac_exeext
11313 if { (ac_try="$ac_link"
11314 case "(($ac_try" in
11315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11316 *) ac_try_echo=$ac_try;;
11317 esac
11318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11319 (eval "$ac_link") 2>conftest.er1
11320 ac_status=$?
11321 grep -v '^ *+' conftest.er1 >conftest.err
11322 rm -f conftest.er1
11323 cat conftest.err >&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } && {
11326 test -z "$ac_c_werror_flag" ||
11327 test ! -s conftest.err
11328 } && test -s conftest$ac_exeext &&
11329 $as_test_x conftest$ac_exeext; then
11330 eval "$as_ac_var=yes"
11331 else
11332 echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11334
11335 eval "$as_ac_var=no"
11336 fi
11337
11338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11339 conftest$ac_exeext conftest.$ac_ext
11340 fi
11341 ac_res=`eval echo '${'$as_ac_var'}'`
11342 { echo "$as_me:$LINENO: result: $ac_res" >&5
11343 echo "${ECHO_T}$ac_res" >&6; }
11344 if test `eval echo '${'$as_ac_var'}'` = yes; then
11345 cat >>confdefs.h <<_ACEOF
11346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11347 _ACEOF
11348 HAVE_GTK_MULTIDISPLAY=yes
11349 fi
11350 done
11351
11352 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11353
11354 cat >>confdefs.h <<\_ACEOF
11355 #define HAVE_GTK_MULTIDISPLAY 1
11356 _ACEOF
11357
11358 fi
11359 HAVE_GTK_FILE_SELECTION=no
11360
11361 for ac_func in gtk_file_selection_new
11362 do
11363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11364 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 else
11369 cat >conftest.$ac_ext <<_ACEOF
11370 /* confdefs.h. */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11377 #define $ac_func innocuous_$ac_func
11378
11379 /* System header to define __stub macros and hopefully few prototypes,
11380 which can conflict with char $ac_func (); below.
11381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11382 <limits.h> exists even on freestanding compilers. */
11383
11384 #ifdef __STDC__
11385 # include <limits.h>
11386 #else
11387 # include <assert.h>
11388 #endif
11389
11390 #undef $ac_func
11391
11392 /* Override any GCC internal prototype to avoid an error.
11393 Use char because int might match the return type of a GCC
11394 builtin and then its argument prototype would still apply. */
11395 #ifdef __cplusplus
11396 extern "C"
11397 #endif
11398 char $ac_func ();
11399 /* The GNU C library defines this for functions which it implements
11400 to always fail with ENOSYS. Some functions are actually named
11401 something starting with __ and the normal name is an alias. */
11402 #if defined __stub_$ac_func || defined __stub___$ac_func
11403 choke me
11404 #endif
11405
11406 int
11407 main ()
11408 {
11409 return $ac_func ();
11410 ;
11411 return 0;
11412 }
11413 _ACEOF
11414 rm -f conftest.$ac_objext conftest$ac_exeext
11415 if { (ac_try="$ac_link"
11416 case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11419 esac
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_link") 2>conftest.er1
11422 ac_status=$?
11423 grep -v '^ *+' conftest.er1 >conftest.err
11424 rm -f conftest.er1
11425 cat conftest.err >&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } && {
11428 test -z "$ac_c_werror_flag" ||
11429 test ! -s conftest.err
11430 } && test -s conftest$ac_exeext &&
11431 $as_test_x conftest$ac_exeext; then
11432 eval "$as_ac_var=yes"
11433 else
11434 echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11436
11437 eval "$as_ac_var=no"
11438 fi
11439
11440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11441 conftest$ac_exeext conftest.$ac_ext
11442 fi
11443 ac_res=`eval echo '${'$as_ac_var'}'`
11444 { echo "$as_me:$LINENO: result: $ac_res" >&5
11445 echo "${ECHO_T}$ac_res" >&6; }
11446 if test `eval echo '${'$as_ac_var'}'` = yes; then
11447 cat >>confdefs.h <<_ACEOF
11448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11449 _ACEOF
11450 HAVE_GTK_FILE_SELECTION=yes
11451 fi
11452 done
11453
11454
11455 HAVE_GTK_FILE_CHOOSER=no
11456
11457 for ac_func in gtk_file_chooser_dialog_new
11458 do
11459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11460 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11463 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 else
11465 cat >conftest.$ac_ext <<_ACEOF
11466 /* confdefs.h. */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11473 #define $ac_func innocuous_$ac_func
11474
11475 /* System header to define __stub macros and hopefully few prototypes,
11476 which can conflict with char $ac_func (); below.
11477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11478 <limits.h> exists even on freestanding compilers. */
11479
11480 #ifdef __STDC__
11481 # include <limits.h>
11482 #else
11483 # include <assert.h>
11484 #endif
11485
11486 #undef $ac_func
11487
11488 /* Override any GCC internal prototype to avoid an error.
11489 Use char because int might match the return type of a GCC
11490 builtin and then its argument prototype would still apply. */
11491 #ifdef __cplusplus
11492 extern "C"
11493 #endif
11494 char $ac_func ();
11495 /* The GNU C library defines this for functions which it implements
11496 to always fail with ENOSYS. Some functions are actually named
11497 something starting with __ and the normal name is an alias. */
11498 #if defined __stub_$ac_func || defined __stub___$ac_func
11499 choke me
11500 #endif
11501
11502 int
11503 main ()
11504 {
11505 return $ac_func ();
11506 ;
11507 return 0;
11508 }
11509 _ACEOF
11510 rm -f conftest.$ac_objext conftest$ac_exeext
11511 if { (ac_try="$ac_link"
11512 case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11515 esac
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_link") 2>conftest.er1
11518 ac_status=$?
11519 grep -v '^ *+' conftest.er1 >conftest.err
11520 rm -f conftest.er1
11521 cat conftest.err >&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } && {
11524 test -z "$ac_c_werror_flag" ||
11525 test ! -s conftest.err
11526 } && test -s conftest$ac_exeext &&
11527 $as_test_x conftest$ac_exeext; then
11528 eval "$as_ac_var=yes"
11529 else
11530 echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11532
11533 eval "$as_ac_var=no"
11534 fi
11535
11536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11537 conftest$ac_exeext conftest.$ac_ext
11538 fi
11539 ac_res=`eval echo '${'$as_ac_var'}'`
11540 { echo "$as_me:$LINENO: result: $ac_res" >&5
11541 echo "${ECHO_T}$ac_res" >&6; }
11542 if test `eval echo '${'$as_ac_var'}'` = yes; then
11543 cat >>confdefs.h <<_ACEOF
11544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11545 _ACEOF
11546 HAVE_GTK_FILE_CHOOSER=yes
11547 fi
11548 done
11549
11550
11551 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11552 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11553
11554 cat >>confdefs.h <<\_ACEOF
11555 #define HAVE_GTK_FILE_BOTH 1
11556 _ACEOF
11557
11558 fi
11559
11560 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11561 HAVE_GTK_AND_PTHREAD=no
11562
11563 for ac_header in pthread.h
11564 do
11565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11571 fi
11572 ac_res=`eval echo '${'$as_ac_Header'}'`
11573 { echo "$as_me:$LINENO: result: $ac_res" >&5
11574 echo "${ECHO_T}$ac_res" >&6; }
11575 else
11576 # Is the header compilable?
11577 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11579 cat >conftest.$ac_ext <<_ACEOF
11580 /* confdefs.h. */
11581 _ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h. */
11585 $ac_includes_default
11586 #include <$ac_header>
11587 _ACEOF
11588 rm -f conftest.$ac_objext
11589 if { (ac_try="$ac_compile"
11590 case "(($ac_try" in
11591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592 *) ac_try_echo=$ac_try;;
11593 esac
11594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11595 (eval "$ac_compile") 2>conftest.er1
11596 ac_status=$?
11597 grep -v '^ *+' conftest.er1 >conftest.err
11598 rm -f conftest.er1
11599 cat conftest.err >&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } && {
11602 test -z "$ac_c_werror_flag" ||
11603 test ! -s conftest.err
11604 } && test -s conftest.$ac_objext; then
11605 ac_header_compiler=yes
11606 else
11607 echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11609
11610 ac_header_compiler=no
11611 fi
11612
11613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11615 echo "${ECHO_T}$ac_header_compiler" >&6; }
11616
11617 # Is the header present?
11618 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11620 cat >conftest.$ac_ext <<_ACEOF
11621 /* confdefs.h. */
11622 _ACEOF
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h. */
11626 #include <$ac_header>
11627 _ACEOF
11628 if { (ac_try="$ac_cpp conftest.$ac_ext"
11629 case "(($ac_try" in
11630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631 *) ac_try_echo=$ac_try;;
11632 esac
11633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11635 ac_status=$?
11636 grep -v '^ *+' conftest.er1 >conftest.err
11637 rm -f conftest.er1
11638 cat conftest.err >&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } >/dev/null && {
11641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11642 test ! -s conftest.err
11643 }; then
11644 ac_header_preproc=yes
11645 else
11646 echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11648
11649 ac_header_preproc=no
11650 fi
11651
11652 rm -f conftest.err conftest.$ac_ext
11653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11654 echo "${ECHO_T}$ac_header_preproc" >&6; }
11655
11656 # So? What about this header?
11657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11658 yes:no: )
11659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11663 ac_header_preproc=yes
11664 ;;
11665 no:yes:* )
11666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11669 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11673 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11678
11679 ;;
11680 esac
11681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11685 else
11686 eval "$as_ac_Header=\$ac_header_preproc"
11687 fi
11688 ac_res=`eval echo '${'$as_ac_Header'}'`
11689 { echo "$as_me:$LINENO: result: $ac_res" >&5
11690 echo "${ECHO_T}$ac_res" >&6; }
11691
11692 fi
11693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11694 cat >>confdefs.h <<_ACEOF
11695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11696 _ACEOF
11697
11698 fi
11699
11700 done
11701
11702 if test "$ac_cv_header_pthread_h"; then
11703 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11704 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11705 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11707 else
11708 ac_check_lib_save_LIBS=$LIBS
11709 LIBS="-lpthread $LIBS"
11710 cat >conftest.$ac_ext <<_ACEOF
11711 /* confdefs.h. */
11712 _ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h. */
11716
11717 /* Override any GCC internal prototype to avoid an error.
11718 Use char because int might match the return type of a GCC
11719 builtin and then its argument prototype would still apply. */
11720 #ifdef __cplusplus
11721 extern "C"
11722 #endif
11723 char pthread_self ();
11724 int
11725 main ()
11726 {
11727 return pthread_self ();
11728 ;
11729 return 0;
11730 }
11731 _ACEOF
11732 rm -f conftest.$ac_objext conftest$ac_exeext
11733 if { (ac_try="$ac_link"
11734 case "(($ac_try" in
11735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736 *) ac_try_echo=$ac_try;;
11737 esac
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_link") 2>conftest.er1
11740 ac_status=$?
11741 grep -v '^ *+' conftest.er1 >conftest.err
11742 rm -f conftest.er1
11743 cat conftest.err >&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } && {
11746 test -z "$ac_c_werror_flag" ||
11747 test ! -s conftest.err
11748 } && test -s conftest$ac_exeext &&
11749 $as_test_x conftest$ac_exeext; then
11750 ac_cv_lib_pthread_pthread_self=yes
11751 else
11752 echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11754
11755 ac_cv_lib_pthread_pthread_self=no
11756 fi
11757
11758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11759 conftest$ac_exeext conftest.$ac_ext
11760 LIBS=$ac_check_lib_save_LIBS
11761 fi
11762 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11763 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11764 if test $ac_cv_lib_pthread_pthread_self = yes; then
11765 HAVE_GTK_AND_PTHREAD=yes
11766 fi
11767
11768 fi
11769 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11770 GTK_LIBS="$GTK_LIBS -lpthread"
11771
11772 cat >>confdefs.h <<\_ACEOF
11773 #define HAVE_GTK_AND_PTHREAD 1
11774 _ACEOF
11775
11776 fi
11777 fi
11778 fi
11779
11780 ### Link with -lXft if available to work around a bug.
11781 HAVE_XFT=maybe
11782 if test "${HAVE_GTK}" = "yes"; then
11783 if test "X${with_pkg_config_prog}" != X; then
11784 PKG_CONFIG="${with_pkg_config_prog}"
11785 fi
11786
11787
11788 succeeded=no
11789
11790 if test -z "$PKG_CONFIG"; then
11791 # Extract the first word of "pkg-config", so it can be a program name with args.
11792 set dummy pkg-config; ac_word=$2
11793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11795 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798 case $PKG_CONFIG in
11799 [\\/]* | ?:[\\/]*)
11800 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11801 ;;
11802 *)
11803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11804 for as_dir in $PATH
11805 do
11806 IFS=$as_save_IFS
11807 test -z "$as_dir" && as_dir=.
11808 for ac_exec_ext in '' $ac_executable_extensions; do
11809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11810 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11812 break 2
11813 fi
11814 done
11815 done
11816 IFS=$as_save_IFS
11817
11818 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11819 ;;
11820 esac
11821 fi
11822 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11823 if test -n "$PKG_CONFIG"; then
11824 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11825 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11826 else
11827 { echo "$as_me:$LINENO: result: no" >&5
11828 echo "${ECHO_T}no" >&6; }
11829 fi
11830
11831
11832 fi
11833
11834 if test "$PKG_CONFIG" = "no" ; then
11835 HAVE_XFT=no
11836 else
11837 PKG_CONFIG_MIN_VERSION=0.9.0
11838 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11839 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11840 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11841
11842 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11843 { echo "$as_me:$LINENO: result: yes" >&5
11844 echo "${ECHO_T}yes" >&6; }
11845 succeeded=yes
11846
11847 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11848 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11849 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11850 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11851 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11852
11853 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11854 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11855 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11856 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11857 echo "${ECHO_T}$XFT_LIBS" >&6; }
11858 else
11859 { echo "$as_me:$LINENO: result: no" >&5
11860 echo "${ECHO_T}no" >&6; }
11861 XFT_CFLAGS=""
11862 XFT_LIBS=""
11863 ## If we have a custom action on failure, don't print errors, but
11864 ## do set a variable so people can do so.
11865 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11866
11867 fi
11868
11869
11870
11871 else
11872 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11873 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11874 fi
11875 fi
11876
11877 if test $succeeded = yes; then
11878 :
11879 else
11880 HAVE_XFT=no
11881 fi
11882
11883 if test "$HAVE_XFT" != no; then
11884 OLD_CFLAGS="$CPPFLAGS"
11885 OLD_CPPFLAGS="$CFLAGS"
11886 OLD_LIBS="$LIBS"
11887 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11888 CFLAGS="$CFLAGS $XFT_CFLAGS"
11889 LIBS="$XFT_LIBS $LIBS"
11890 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11891 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11892 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11893 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11895 fi
11896 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11897 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11898 else
11899 # Is the header compilable?
11900 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11901 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11902 cat >conftest.$ac_ext <<_ACEOF
11903 /* confdefs.h. */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11908 $ac_includes_default
11909 #include <X11/Xft/Xft.h>
11910 _ACEOF
11911 rm -f conftest.$ac_objext
11912 if { (ac_try="$ac_compile"
11913 case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11916 esac
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_compile") 2>conftest.er1
11919 ac_status=$?
11920 grep -v '^ *+' conftest.er1 >conftest.err
11921 rm -f conftest.er1
11922 cat conftest.err >&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } && {
11925 test -z "$ac_c_werror_flag" ||
11926 test ! -s conftest.err
11927 } && test -s conftest.$ac_objext; then
11928 ac_header_compiler=yes
11929 else
11930 echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11932
11933 ac_header_compiler=no
11934 fi
11935
11936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11938 echo "${ECHO_T}$ac_header_compiler" >&6; }
11939
11940 # Is the header present?
11941 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11942 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11943 cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h. */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949 #include <X11/Xft/Xft.h>
11950 _ACEOF
11951 if { (ac_try="$ac_cpp conftest.$ac_ext"
11952 case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11955 esac
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11958 ac_status=$?
11959 grep -v '^ *+' conftest.er1 >conftest.err
11960 rm -f conftest.er1
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } >/dev/null && {
11964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11965 test ! -s conftest.err
11966 }; then
11967 ac_header_preproc=yes
11968 else
11969 echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11971
11972 ac_header_preproc=no
11973 fi
11974
11975 rm -f conftest.err conftest.$ac_ext
11976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11977 echo "${ECHO_T}$ac_header_preproc" >&6; }
11978
11979 # So? What about this header?
11980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11981 yes:no: )
11982 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11983 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11984 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11985 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11986 ac_header_preproc=yes
11987 ;;
11988 no:yes:* )
11989 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11990 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11991 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11992 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11993 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11994 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11995 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11996 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11997 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11998 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11999 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12000 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12001
12002 ;;
12003 esac
12004 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12005 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12006 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12010 fi
12011 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12012 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12013
12014 fi
12015 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12016 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12017 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12018 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 else
12021 ac_check_lib_save_LIBS=$LIBS
12022 LIBS="-lXft $XFT_LIBS $LIBS"
12023 cat >conftest.$ac_ext <<_ACEOF
12024 /* confdefs.h. */
12025 _ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h. */
12029
12030 /* Override any GCC internal prototype to avoid an error.
12031 Use char because int might match the return type of a GCC
12032 builtin and then its argument prototype would still apply. */
12033 #ifdef __cplusplus
12034 extern "C"
12035 #endif
12036 char XftFontOpen ();
12037 int
12038 main ()
12039 {
12040 return XftFontOpen ();
12041 ;
12042 return 0;
12043 }
12044 _ACEOF
12045 rm -f conftest.$ac_objext conftest$ac_exeext
12046 if { (ac_try="$ac_link"
12047 case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12050 esac
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052 (eval "$ac_link") 2>conftest.er1
12053 ac_status=$?
12054 grep -v '^ *+' conftest.er1 >conftest.err
12055 rm -f conftest.er1
12056 cat conftest.err >&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } && {
12059 test -z "$ac_c_werror_flag" ||
12060 test ! -s conftest.err
12061 } && test -s conftest$ac_exeext &&
12062 $as_test_x conftest$ac_exeext; then
12063 ac_cv_lib_Xft_XftFontOpen=yes
12064 else
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12067
12068 ac_cv_lib_Xft_XftFontOpen=no
12069 fi
12070
12071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12072 conftest$ac_exeext conftest.$ac_ext
12073 LIBS=$ac_check_lib_save_LIBS
12074 fi
12075 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12076 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12077 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12078 HAVE_XFT=yes
12079 fi
12080
12081 fi
12082
12083
12084
12085 if test "${HAVE_XFT}" = "yes"; then
12086
12087 cat >>confdefs.h <<\_ACEOF
12088 #define HAVE_XFT 1
12089 _ACEOF
12090
12091
12092 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12093 else
12094 CFLAGS="$OLD_CPPFLAGS"
12095 CFLAGS="$OLD_CFLAGS"
12096 LIBS="$OLD_LIBS"
12097 fi
12098 fi
12099 fi
12100
12101 HAVE_XAW3D=no
12102 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12103 if test x"${HAVE_X11R5}" != xyes; then
12104 USE_X_TOOLKIT=none
12105 else
12106 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12107 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12108 if test "${emacs_cv_xaw3d+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12110 else
12111 cat >conftest.$ac_ext <<_ACEOF
12112 /* confdefs.h. */
12113 _ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12117
12118 #include <X11/Intrinsic.h>
12119 #include <X11/Xaw3d/Simple.h>
12120 int
12121 main ()
12122 {
12123
12124 ;
12125 return 0;
12126 }
12127 _ACEOF
12128 rm -f conftest.$ac_objext conftest$ac_exeext
12129 if { (ac_try="$ac_link"
12130 case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12133 esac
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_link") 2>conftest.er1
12136 ac_status=$?
12137 grep -v '^ *+' conftest.er1 >conftest.err
12138 rm -f conftest.er1
12139 cat conftest.err >&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } && {
12142 test -z "$ac_c_werror_flag" ||
12143 test ! -s conftest.err
12144 } && test -s conftest$ac_exeext &&
12145 $as_test_x conftest$ac_exeext; then
12146 emacs_cv_xaw3d=yes
12147 else
12148 echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12150
12151 emacs_cv_xaw3d=no
12152 fi
12153
12154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12155 conftest$ac_exeext conftest.$ac_ext
12156 fi
12157
12158 if test $emacs_cv_xaw3d = yes; then
12159 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12160 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12161 USE_X_TOOLKIT=LUCID
12162 HAVE_XAW3D=yes
12163
12164 cat >>confdefs.h <<\_ACEOF
12165 #define HAVE_XAW3D 1
12166 _ACEOF
12167
12168 else
12169 { echo "$as_me:$LINENO: result: no" >&5
12170 echo "${ECHO_T}no" >&6; }
12171 { echo "$as_me:$LINENO: checking for libXaw" >&5
12172 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12173 if test "${emacs_cv_xaw+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 else
12176 cat >conftest.$ac_ext <<_ACEOF
12177 /* confdefs.h. */
12178 _ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12182
12183 #include <X11/Intrinsic.h>
12184 #include <X11/Xaw/Simple.h>
12185 int
12186 main ()
12187 {
12188
12189 ;
12190 return 0;
12191 }
12192 _ACEOF
12193 rm -f conftest.$ac_objext conftest$ac_exeext
12194 if { (ac_try="$ac_link"
12195 case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198 esac
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_link") 2>conftest.er1
12201 ac_status=$?
12202 grep -v '^ *+' conftest.er1 >conftest.err
12203 rm -f conftest.er1
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } && {
12207 test -z "$ac_c_werror_flag" ||
12208 test ! -s conftest.err
12209 } && test -s conftest$ac_exeext &&
12210 $as_test_x conftest$ac_exeext; then
12211 emacs_cv_xaw=yes
12212 else
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12215
12216 emacs_cv_xaw=no
12217 fi
12218
12219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12220 conftest$ac_exeext conftest.$ac_ext
12221 fi
12222
12223 if test $emacs_cv_xaw = yes; then
12224 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12225 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12226 USE_X_TOOLKIT=LUCID
12227 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12228 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12229 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12230 { (exit 1); exit 1; }; }
12231 else
12232 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12233 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12234 USE_X_TOOLKIT=none
12235 fi
12236 fi
12237 fi
12238 fi
12239
12240 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12241
12242 if test "${USE_X_TOOLKIT}" != "none"; then
12243 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12244 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12245 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12247 else
12248 cat >conftest.$ac_ext <<_ACEOF
12249 /* confdefs.h. */
12250 _ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12254 #include <X11/Intrinsic.h>
12255 int
12256 main ()
12257 {
12258 #if XtSpecificationRelease < 6
12259 fail;
12260 #endif
12261
12262 ;
12263 return 0;
12264 }
12265 _ACEOF
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (ac_try="$ac_link"
12268 case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12271 esac
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_link") 2>conftest.er1
12274 ac_status=$?
12275 grep -v '^ *+' conftest.er1 >conftest.err
12276 rm -f conftest.er1
12277 cat conftest.err >&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } && {
12280 test -z "$ac_c_werror_flag" ||
12281 test ! -s conftest.err
12282 } && test -s conftest$ac_exeext &&
12283 $as_test_x conftest$ac_exeext; then
12284 emacs_cv_x11_toolkit_version_6=yes
12285 else
12286 echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12288
12289 emacs_cv_x11_toolkit_version_6=no
12290 fi
12291
12292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12293 conftest$ac_exeext conftest.$ac_ext
12294 fi
12295
12296 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12297 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12298 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12299 echo "${ECHO_T}6 or newer" >&6; }
12300
12301 cat >>confdefs.h <<\_ACEOF
12302 #define HAVE_X11XTR6 1
12303 _ACEOF
12304
12305 else
12306 { echo "$as_me:$LINENO: result: before 6" >&5
12307 echo "${ECHO_T}before 6" >&6; }
12308 fi
12309
12310 OLDLIBS="$LIBS"
12311 if test x$HAVE_X11XTR6 = xyes; then
12312 LIBS="-lXt -lSM -lICE $LIBS"
12313 else
12314 LIBS="-lXt $LIBS"
12315 fi
12316
12317 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12318 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12319 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12321 else
12322 ac_check_lib_save_LIBS=$LIBS
12323 LIBS="-lXmu $LIBS"
12324 cat >conftest.$ac_ext <<_ACEOF
12325 /* confdefs.h. */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12330
12331 /* Override any GCC internal prototype to avoid an error.
12332 Use char because int might match the return type of a GCC
12333 builtin and then its argument prototype would still apply. */
12334 #ifdef __cplusplus
12335 extern "C"
12336 #endif
12337 char XmuConvertStandardSelection ();
12338 int
12339 main ()
12340 {
12341 return XmuConvertStandardSelection ();
12342 ;
12343 return 0;
12344 }
12345 _ACEOF
12346 rm -f conftest.$ac_objext conftest$ac_exeext
12347 if { (ac_try="$ac_link"
12348 case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12351 esac
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_link") 2>conftest.er1
12354 ac_status=$?
12355 grep -v '^ *+' conftest.er1 >conftest.err
12356 rm -f conftest.er1
12357 cat conftest.err >&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } && {
12360 test -z "$ac_c_werror_flag" ||
12361 test ! -s conftest.err
12362 } && test -s conftest$ac_exeext &&
12363 $as_test_x conftest$ac_exeext; then
12364 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12365 else
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12368
12369 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12370 fi
12371
12372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12373 conftest$ac_exeext conftest.$ac_ext
12374 LIBS=$ac_check_lib_save_LIBS
12375 fi
12376 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12377 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12378 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12379 cat >>confdefs.h <<_ACEOF
12380 #define HAVE_LIBXMU 1
12381 _ACEOF
12382
12383 LIBS="-lXmu $LIBS"
12384
12385 fi
12386
12387 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12388 fi
12389
12390 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12391 if test "${HAVE_X11}" = "yes"; then
12392 if test "${USE_X_TOOLKIT}" != "none"; then
12393
12394 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12395 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12396 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12398 else
12399 ac_check_lib_save_LIBS=$LIBS
12400 LIBS="-lXext $LIBS"
12401 cat >conftest.$ac_ext <<_ACEOF
12402 /* confdefs.h. */
12403 _ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12407
12408 /* Override any GCC internal prototype to avoid an error.
12409 Use char because int might match the return type of a GCC
12410 builtin and then its argument prototype would still apply. */
12411 #ifdef __cplusplus
12412 extern "C"
12413 #endif
12414 char XShapeQueryExtension ();
12415 int
12416 main ()
12417 {
12418 return XShapeQueryExtension ();
12419 ;
12420 return 0;
12421 }
12422 _ACEOF
12423 rm -f conftest.$ac_objext conftest$ac_exeext
12424 if { (ac_try="$ac_link"
12425 case "(($ac_try" in
12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12428 esac
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430 (eval "$ac_link") 2>conftest.er1
12431 ac_status=$?
12432 grep -v '^ *+' conftest.er1 >conftest.err
12433 rm -f conftest.er1
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } && {
12437 test -z "$ac_c_werror_flag" ||
12438 test ! -s conftest.err
12439 } && test -s conftest$ac_exeext &&
12440 $as_test_x conftest$ac_exeext; then
12441 ac_cv_lib_Xext_XShapeQueryExtension=yes
12442 else
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12445
12446 ac_cv_lib_Xext_XShapeQueryExtension=no
12447 fi
12448
12449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12450 conftest$ac_exeext conftest.$ac_ext
12451 LIBS=$ac_check_lib_save_LIBS
12452 fi
12453 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12454 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12455 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12456 cat >>confdefs.h <<_ACEOF
12457 #define HAVE_LIBXEXT 1
12458 _ACEOF
12459
12460 LIBS="-lXext $LIBS"
12461
12462 fi
12463
12464 fi
12465 fi
12466
12467 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12468 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12469 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12470 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473 cat >conftest.$ac_ext <<_ACEOF
12474 /* confdefs.h. */
12475 _ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12479 #include <Xm/Xm.h>
12480 int
12481 main ()
12482 {
12483 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12484 int x = 5;
12485 #else
12486 Motif version prior to 2.1.
12487 #endif
12488 ;
12489 return 0;
12490 }
12491 _ACEOF
12492 rm -f conftest.$ac_objext
12493 if { (ac_try="$ac_compile"
12494 case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12497 esac
12498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499 (eval "$ac_compile") 2>conftest.er1
12500 ac_status=$?
12501 grep -v '^ *+' conftest.er1 >conftest.err
12502 rm -f conftest.er1
12503 cat conftest.err >&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } && {
12506 test -z "$ac_c_werror_flag" ||
12507 test ! -s conftest.err
12508 } && test -s conftest.$ac_objext; then
12509 emacs_cv_motif_version_2_1=yes
12510 else
12511 echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12513
12514 emacs_cv_motif_version_2_1=no
12515 fi
12516
12517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12518 fi
12519 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12520 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12521 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12522 if test $emacs_cv_motif_version_2_1 = yes; then
12523 HAVE_LIBXP=no
12524
12525 cat >>confdefs.h <<\_ACEOF
12526 #define HAVE_MOTIF_2_1 1
12527 _ACEOF
12528
12529 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12530 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12531 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12533 else
12534 ac_check_lib_save_LIBS=$LIBS
12535 LIBS="-lXp $LIBS"
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
12543 /* Override any GCC internal prototype to avoid an error.
12544 Use char because int might match the return type of a GCC
12545 builtin and then its argument prototype would still apply. */
12546 #ifdef __cplusplus
12547 extern "C"
12548 #endif
12549 char XpCreateContext ();
12550 int
12551 main ()
12552 {
12553 return XpCreateContext ();
12554 ;
12555 return 0;
12556 }
12557 _ACEOF
12558 rm -f conftest.$ac_objext conftest$ac_exeext
12559 if { (ac_try="$ac_link"
12560 case "(($ac_try" in
12561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562 *) ac_try_echo=$ac_try;;
12563 esac
12564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565 (eval "$ac_link") 2>conftest.er1
12566 ac_status=$?
12567 grep -v '^ *+' conftest.er1 >conftest.err
12568 rm -f conftest.er1
12569 cat conftest.err >&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } && {
12572 test -z "$ac_c_werror_flag" ||
12573 test ! -s conftest.err
12574 } && test -s conftest$ac_exeext &&
12575 $as_test_x conftest$ac_exeext; then
12576 ac_cv_lib_Xp_XpCreateContext=yes
12577 else
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12580
12581 ac_cv_lib_Xp_XpCreateContext=no
12582 fi
12583
12584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12585 conftest$ac_exeext conftest.$ac_ext
12586 LIBS=$ac_check_lib_save_LIBS
12587 fi
12588 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12589 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12590 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12591 HAVE_LIBXP=yes
12592 fi
12593
12594 if test ${HAVE_LIBXP} = yes; then
12595
12596 cat >>confdefs.h <<\_ACEOF
12597 #define HAVE_LIBXP 1
12598 _ACEOF
12599
12600 fi
12601 else
12602 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12603 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12604 if test "${emacs_cv_lesstif+set}" = set; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12606 else
12607 # We put this in CFLAGS temporarily to precede other -I options
12608 # that might be in CFLAGS temporarily.
12609 # We put this in CPPFLAGS where it precedes the other -I options.
12610 OLD_CPPFLAGS=$CPPFLAGS
12611 OLD_CFLAGS=$CFLAGS
12612 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12613 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12614 cat >conftest.$ac_ext <<_ACEOF
12615 /* confdefs.h. */
12616 _ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h. */
12620 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12621 int
12622 main ()
12623 {
12624 int x = 5;
12625 ;
12626 return 0;
12627 }
12628 _ACEOF
12629 rm -f conftest.$ac_objext
12630 if { (ac_try="$ac_compile"
12631 case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12634 esac
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_compile") 2>conftest.er1
12637 ac_status=$?
12638 grep -v '^ *+' conftest.er1 >conftest.err
12639 rm -f conftest.er1
12640 cat conftest.err >&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } && {
12643 test -z "$ac_c_werror_flag" ||
12644 test ! -s conftest.err
12645 } && test -s conftest.$ac_objext; then
12646 emacs_cv_lesstif=yes
12647 else
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12650
12651 emacs_cv_lesstif=no
12652 fi
12653
12654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12655 fi
12656 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12657 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12658 if test $emacs_cv_lesstif = yes; then
12659 # Make sure this -I option remains in CPPFLAGS after it is set
12660 # back to REAL_CPPFLAGS.
12661 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12662 # have those other -I options anyway. Ultimately, having this
12663 # directory ultimately in CPPFLAGS will be enough.
12664 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12665 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12666 else
12667 CFLAGS=$OLD_CFLAGS
12668 CPPFLAGS=$OLD_CPPFLAGS
12669 fi
12670 fi
12671 fi
12672
12673
12674
12675 USE_TOOLKIT_SCROLL_BARS=no
12676 if test "${with_toolkit_scroll_bars}" != "no"; then
12677 if test "${USE_X_TOOLKIT}" != "none"; then
12678 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12679 cat >>confdefs.h <<\_ACEOF
12680 #define USE_TOOLKIT_SCROLL_BARS 1
12681 _ACEOF
12682
12683 HAVE_XAW3D=no
12684 USE_TOOLKIT_SCROLL_BARS=yes
12685 elif test "${HAVE_XAW3D}" = "yes"; then
12686 cat >>confdefs.h <<\_ACEOF
12687 #define USE_TOOLKIT_SCROLL_BARS 1
12688 _ACEOF
12689
12690 USE_TOOLKIT_SCROLL_BARS=yes
12691 fi
12692 elif test "${HAVE_GTK}" = "yes"; then
12693 cat >>confdefs.h <<\_ACEOF
12694 #define USE_TOOLKIT_SCROLL_BARS 1
12695 _ACEOF
12696
12697 USE_TOOLKIT_SCROLL_BARS=yes
12698 elif test "${HAVE_CARBON}" = "yes"; then
12699 cat >>confdefs.h <<\_ACEOF
12700 #define USE_TOOLKIT_SCROLL_BARS 1
12701 _ACEOF
12702
12703 USE_TOOLKIT_SCROLL_BARS=yes
12704 fi
12705 fi
12706
12707 cat >conftest.$ac_ext <<_ACEOF
12708 /* confdefs.h. */
12709 _ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12713
12714 #include <X11/Xlib.h>
12715 #include <X11/Xresource.h>
12716 int
12717 main ()
12718 {
12719 XIMProc callback;
12720 ;
12721 return 0;
12722 }
12723 _ACEOF
12724 rm -f conftest.$ac_objext
12725 if { (ac_try="$ac_compile"
12726 case "(($ac_try" in
12727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728 *) ac_try_echo=$ac_try;;
12729 esac
12730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731 (eval "$ac_compile") 2>conftest.er1
12732 ac_status=$?
12733 grep -v '^ *+' conftest.er1 >conftest.err
12734 rm -f conftest.er1
12735 cat conftest.err >&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } && {
12738 test -z "$ac_c_werror_flag" ||
12739 test ! -s conftest.err
12740 } && test -s conftest.$ac_objext; then
12741 HAVE_XIM=yes
12742
12743 cat >>confdefs.h <<\_ACEOF
12744 #define HAVE_XIM 1
12745 _ACEOF
12746
12747 else
12748 echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12750
12751 HAVE_XIM=no
12752 fi
12753
12754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12755
12756
12757 if test "${with_xim}" != "no"; then
12758
12759 cat >>confdefs.h <<\_ACEOF
12760 #define USE_XIM 1
12761 _ACEOF
12762
12763 fi
12764
12765
12766 if test "${HAVE_XIM}" != "no"; then
12767 late_CFLAGS=$CFLAGS
12768 if test "$GCC" = yes; then
12769 CFLAGS="$CFLAGS --pedantic-errors"
12770 fi
12771 cat >conftest.$ac_ext <<_ACEOF
12772 /* confdefs.h. */
12773 _ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12777
12778 #include <X11/Xlib.h>
12779 #include <X11/Xresource.h>
12780 int
12781 main ()
12782 {
12783 Display *display;
12784 XrmDatabase db;
12785 char *res_name;
12786 char *res_class;
12787 XIMProc callback;
12788 XPointer *client_data;
12789 #ifndef __GNUC__
12790 /* If we're not using GCC, it's probably not XFree86, and this is
12791 probably right, but we can't use something like --pedantic-errors. */
12792 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12793 char*, XIMProc, XPointer*);
12794 #endif
12795 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12796 client_data);
12797 ;
12798 return 0;
12799 }
12800 _ACEOF
12801 rm -f conftest.$ac_objext
12802 if { (ac_try="$ac_compile"
12803 case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12806 esac
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_compile") 2>conftest.er1
12809 ac_status=$?
12810 grep -v '^ *+' conftest.er1 >conftest.err
12811 rm -f conftest.er1
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } && {
12815 test -z "$ac_c_werror_flag" ||
12816 test ! -s conftest.err
12817 } && test -s conftest.$ac_objext; then
12818 emacs_cv_arg6_star=yes
12819 else
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12822
12823
12824 fi
12825
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12827
12828 if test "$emacs_cv_arg6_star" = yes; then
12829 cat >>confdefs.h <<\_ACEOF
12830 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12831 _ACEOF
12832
12833 else
12834 cat >>confdefs.h <<\_ACEOF
12835 #define XRegisterIMInstantiateCallback_arg6 XPointer
12836 _ACEOF
12837
12838 fi
12839 CFLAGS=$late_CFLAGS
12840 fi
12841
12842 ### Use -lXpm if available, unless `--with-xpm=no'.
12843 HAVE_XPM=no
12844 if test "${HAVE_X11}" = "yes"; then
12845 if test "${with_xpm}" != "no"; then
12846 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12847 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12848 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12849 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12850 echo $ECHO_N "(cached) $ECHO_C" >&6
12851 fi
12852 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12853 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12854 else
12855 # Is the header compilable?
12856 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12857 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12858 cat >conftest.$ac_ext <<_ACEOF
12859 /* confdefs.h. */
12860 _ACEOF
12861 cat confdefs.h >>conftest.$ac_ext
12862 cat >>conftest.$ac_ext <<_ACEOF
12863 /* end confdefs.h. */
12864 $ac_includes_default
12865 #include <X11/xpm.h>
12866 _ACEOF
12867 rm -f conftest.$ac_objext
12868 if { (ac_try="$ac_compile"
12869 case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12872 esac
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_compile") 2>conftest.er1
12875 ac_status=$?
12876 grep -v '^ *+' conftest.er1 >conftest.err
12877 rm -f conftest.er1
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } && {
12881 test -z "$ac_c_werror_flag" ||
12882 test ! -s conftest.err
12883 } && test -s conftest.$ac_objext; then
12884 ac_header_compiler=yes
12885 else
12886 echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12888
12889 ac_header_compiler=no
12890 fi
12891
12892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12894 echo "${ECHO_T}$ac_header_compiler" >&6; }
12895
12896 # Is the header present?
12897 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12898 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12899 cat >conftest.$ac_ext <<_ACEOF
12900 /* confdefs.h. */
12901 _ACEOF
12902 cat confdefs.h >>conftest.$ac_ext
12903 cat >>conftest.$ac_ext <<_ACEOF
12904 /* end confdefs.h. */
12905 #include <X11/xpm.h>
12906 _ACEOF
12907 if { (ac_try="$ac_cpp conftest.$ac_ext"
12908 case "(($ac_try" in
12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12911 esac
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12914 ac_status=$?
12915 grep -v '^ *+' conftest.er1 >conftest.err
12916 rm -f conftest.er1
12917 cat conftest.err >&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } >/dev/null && {
12920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12921 test ! -s conftest.err
12922 }; then
12923 ac_header_preproc=yes
12924 else
12925 echo "$as_me: failed program was:" >&5
12926 sed 's/^/| /' conftest.$ac_ext >&5
12927
12928 ac_header_preproc=no
12929 fi
12930
12931 rm -f conftest.err conftest.$ac_ext
12932 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12933 echo "${ECHO_T}$ac_header_preproc" >&6; }
12934
12935 # So? What about this header?
12936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12937 yes:no: )
12938 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12939 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12940 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12941 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12942 ac_header_preproc=yes
12943 ;;
12944 no:yes:* )
12945 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12946 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12948 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12949 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12950 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12951 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12952 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12953 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12954 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12955 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12956 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12957
12958 ;;
12959 esac
12960 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12961 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12962 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12964 else
12965 ac_cv_header_X11_xpm_h=$ac_header_preproc
12966 fi
12967 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12968 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12969
12970 fi
12971 if test $ac_cv_header_X11_xpm_h = yes; then
12972 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12973 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12974 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 else
12977 ac_check_lib_save_LIBS=$LIBS
12978 LIBS="-lXpm -lX11 $LIBS"
12979 cat >conftest.$ac_ext <<_ACEOF
12980 /* confdefs.h. */
12981 _ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12985
12986 /* Override any GCC internal prototype to avoid an error.
12987 Use char because int might match the return type of a GCC
12988 builtin and then its argument prototype would still apply. */
12989 #ifdef __cplusplus
12990 extern "C"
12991 #endif
12992 char XpmReadFileToPixmap ();
12993 int
12994 main ()
12995 {
12996 return XpmReadFileToPixmap ();
12997 ;
12998 return 0;
12999 }
13000 _ACEOF
13001 rm -f conftest.$ac_objext conftest$ac_exeext
13002 if { (ac_try="$ac_link"
13003 case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13006 esac
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_link") 2>conftest.er1
13009 ac_status=$?
13010 grep -v '^ *+' conftest.er1 >conftest.err
13011 rm -f conftest.er1
13012 cat conftest.err >&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } && {
13015 test -z "$ac_c_werror_flag" ||
13016 test ! -s conftest.err
13017 } && test -s conftest$ac_exeext &&
13018 $as_test_x conftest$ac_exeext; then
13019 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13020 else
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13023
13024 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13025 fi
13026
13027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13028 conftest$ac_exeext conftest.$ac_ext
13029 LIBS=$ac_check_lib_save_LIBS
13030 fi
13031 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13032 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13033 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13034 HAVE_XPM=yes
13035 fi
13036
13037 fi
13038
13039
13040 if test "${HAVE_XPM}" = "yes"; then
13041 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13042 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13043 cat >conftest.$ac_ext <<_ACEOF
13044 /* confdefs.h. */
13045 _ACEOF
13046 cat confdefs.h >>conftest.$ac_ext
13047 cat >>conftest.$ac_ext <<_ACEOF
13048 /* end confdefs.h. */
13049 #include "X11/xpm.h"
13050 #ifndef XpmReturnAllocPixels
13051 no_return_alloc_pixels
13052 #endif
13053
13054 _ACEOF
13055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13056 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13057 HAVE_XPM=no
13058 else
13059 HAVE_XPM=yes
13060 fi
13061 rm -f conftest*
13062
13063
13064 if test "${HAVE_XPM}" = "yes"; then
13065 { echo "$as_me:$LINENO: result: yes" >&5
13066 echo "${ECHO_T}yes" >&6; }
13067 else
13068 { echo "$as_me:$LINENO: result: no" >&5
13069 echo "${ECHO_T}no" >&6; }
13070 fi
13071 fi
13072 fi
13073
13074 if test "${HAVE_XPM}" = "yes"; then
13075
13076 cat >>confdefs.h <<\_ACEOF
13077 #define HAVE_XPM 1
13078 _ACEOF
13079
13080 fi
13081 fi
13082
13083 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13084 HAVE_JPEG=no
13085 if test "${HAVE_X11}" = "yes"; then
13086 if test "${with_jpeg}" != "no"; then
13087 if test "${ac_cv_header_jerror_h+set}" = set; then
13088 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13089 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13090 if test "${ac_cv_header_jerror_h+set}" = set; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13092 fi
13093 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13094 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13095 else
13096 # Is the header compilable?
13097 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13098 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13099 cat >conftest.$ac_ext <<_ACEOF
13100 /* confdefs.h. */
13101 _ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h. */
13105 $ac_includes_default
13106 #include <jerror.h>
13107 _ACEOF
13108 rm -f conftest.$ac_objext
13109 if { (ac_try="$ac_compile"
13110 case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13113 esac
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115 (eval "$ac_compile") 2>conftest.er1
13116 ac_status=$?
13117 grep -v '^ *+' conftest.er1 >conftest.err
13118 rm -f conftest.er1
13119 cat conftest.err >&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } && {
13122 test -z "$ac_c_werror_flag" ||
13123 test ! -s conftest.err
13124 } && test -s conftest.$ac_objext; then
13125 ac_header_compiler=yes
13126 else
13127 echo "$as_me: failed program was:" >&5
13128 sed 's/^/| /' conftest.$ac_ext >&5
13129
13130 ac_header_compiler=no
13131 fi
13132
13133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13135 echo "${ECHO_T}$ac_header_compiler" >&6; }
13136
13137 # Is the header present?
13138 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13139 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13140 cat >conftest.$ac_ext <<_ACEOF
13141 /* confdefs.h. */
13142 _ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h. */
13146 #include <jerror.h>
13147 _ACEOF
13148 if { (ac_try="$ac_cpp conftest.$ac_ext"
13149 case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13152 esac
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13155 ac_status=$?
13156 grep -v '^ *+' conftest.er1 >conftest.err
13157 rm -f conftest.er1
13158 cat conftest.err >&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } >/dev/null && {
13161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13162 test ! -s conftest.err
13163 }; then
13164 ac_header_preproc=yes
13165 else
13166 echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13168
13169 ac_header_preproc=no
13170 fi
13171
13172 rm -f conftest.err conftest.$ac_ext
13173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13174 echo "${ECHO_T}$ac_header_preproc" >&6; }
13175
13176 # So? What about this header?
13177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13178 yes:no: )
13179 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13180 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13181 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13182 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13183 ac_header_preproc=yes
13184 ;;
13185 no:yes:* )
13186 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13187 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13188 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13189 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13190 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13191 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13192 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13193 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13194 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13195 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13196 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13197 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13198
13199 ;;
13200 esac
13201 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13202 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13203 if test "${ac_cv_header_jerror_h+set}" = set; then
13204 echo $ECHO_N "(cached) $ECHO_C" >&6
13205 else
13206 ac_cv_header_jerror_h=$ac_header_preproc
13207 fi
13208 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13209 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13210
13211 fi
13212 if test $ac_cv_header_jerror_h = yes; then
13213 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13214 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13215 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
13217 else
13218 ac_check_lib_save_LIBS=$LIBS
13219 LIBS="-ljpeg $LIBS"
13220 cat >conftest.$ac_ext <<_ACEOF
13221 /* confdefs.h. */
13222 _ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13226
13227 /* Override any GCC internal prototype to avoid an error.
13228 Use char because int might match the return type of a GCC
13229 builtin and then its argument prototype would still apply. */
13230 #ifdef __cplusplus
13231 extern "C"
13232 #endif
13233 char jpeg_destroy_compress ();
13234 int
13235 main ()
13236 {
13237 return jpeg_destroy_compress ();
13238 ;
13239 return 0;
13240 }
13241 _ACEOF
13242 rm -f conftest.$ac_objext conftest$ac_exeext
13243 if { (ac_try="$ac_link"
13244 case "(($ac_try" in
13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246 *) ac_try_echo=$ac_try;;
13247 esac
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249 (eval "$ac_link") 2>conftest.er1
13250 ac_status=$?
13251 grep -v '^ *+' conftest.er1 >conftest.err
13252 rm -f conftest.er1
13253 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } && {
13256 test -z "$ac_c_werror_flag" ||
13257 test ! -s conftest.err
13258 } && test -s conftest$ac_exeext &&
13259 $as_test_x conftest$ac_exeext; then
13260 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13261 else
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13264
13265 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13266 fi
13267
13268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13269 conftest$ac_exeext conftest.$ac_ext
13270 LIBS=$ac_check_lib_save_LIBS
13271 fi
13272 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13273 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13274 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13275 HAVE_JPEG=yes
13276 fi
13277
13278 fi
13279
13280
13281 fi
13282
13283
13284 if test "${HAVE_JPEG}" = "yes"; then
13285 cat >>confdefs.h <<\_ACEOF
13286 #define HAVE_JPEG 1
13287 _ACEOF
13288
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h. */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295 #include <jpeglib.h>
13296 version=JPEG_LIB_VERSION
13297
13298 _ACEOF
13299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13300 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13301 cat >>confdefs.h <<\_ACEOF
13302 #define HAVE_JPEG 1
13303 _ACEOF
13304
13305 else
13306 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13307 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13308 HAVE_JPEG=no
13309 fi
13310 rm -f conftest*
13311
13312 fi
13313 fi
13314
13315 ### Use -lpng if available, unless `--with-png=no'.
13316 HAVE_PNG=no
13317 if test "${HAVE_X11}" = "yes"; then
13318 if test "${with_png}" != "no"; then
13319 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13320 # in /usr/include/libpng.
13321
13322
13323 for ac_header in png.h libpng/png.h
13324 do
13325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13330 echo $ECHO_N "(cached) $ECHO_C" >&6
13331 fi
13332 ac_res=`eval echo '${'$as_ac_Header'}'`
13333 { echo "$as_me:$LINENO: result: $ac_res" >&5
13334 echo "${ECHO_T}$ac_res" >&6; }
13335 else
13336 # Is the header compilable?
13337 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13339 cat >conftest.$ac_ext <<_ACEOF
13340 /* confdefs.h. */
13341 _ACEOF
13342 cat confdefs.h >>conftest.$ac_ext
13343 cat >>conftest.$ac_ext <<_ACEOF
13344 /* end confdefs.h. */
13345 $ac_includes_default
13346 #include <$ac_header>
13347 _ACEOF
13348 rm -f conftest.$ac_objext
13349 if { (ac_try="$ac_compile"
13350 case "(($ac_try" in
13351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352 *) ac_try_echo=$ac_try;;
13353 esac
13354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355 (eval "$ac_compile") 2>conftest.er1
13356 ac_status=$?
13357 grep -v '^ *+' conftest.er1 >conftest.err
13358 rm -f conftest.er1
13359 cat conftest.err >&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); } && {
13362 test -z "$ac_c_werror_flag" ||
13363 test ! -s conftest.err
13364 } && test -s conftest.$ac_objext; then
13365 ac_header_compiler=yes
13366 else
13367 echo "$as_me: failed program was:" >&5
13368 sed 's/^/| /' conftest.$ac_ext >&5
13369
13370 ac_header_compiler=no
13371 fi
13372
13373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13375 echo "${ECHO_T}$ac_header_compiler" >&6; }
13376
13377 # Is the header present?
13378 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13380 cat >conftest.$ac_ext <<_ACEOF
13381 /* confdefs.h. */
13382 _ACEOF
13383 cat confdefs.h >>conftest.$ac_ext
13384 cat >>conftest.$ac_ext <<_ACEOF
13385 /* end confdefs.h. */
13386 #include <$ac_header>
13387 _ACEOF
13388 if { (ac_try="$ac_cpp conftest.$ac_ext"
13389 case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13392 esac
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13395 ac_status=$?
13396 grep -v '^ *+' conftest.er1 >conftest.err
13397 rm -f conftest.er1
13398 cat conftest.err >&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } >/dev/null && {
13401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13402 test ! -s conftest.err
13403 }; then
13404 ac_header_preproc=yes
13405 else
13406 echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13408
13409 ac_header_preproc=no
13410 fi
13411
13412 rm -f conftest.err conftest.$ac_ext
13413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13414 echo "${ECHO_T}$ac_header_preproc" >&6; }
13415
13416 # So? What about this header?
13417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13418 yes:no: )
13419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13423 ac_header_preproc=yes
13424 ;;
13425 no:yes:* )
13426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13433 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13438
13439 ;;
13440 esac
13441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 else
13446 eval "$as_ac_Header=\$ac_header_preproc"
13447 fi
13448 ac_res=`eval echo '${'$as_ac_Header'}'`
13449 { echo "$as_me:$LINENO: result: $ac_res" >&5
13450 echo "${ECHO_T}$ac_res" >&6; }
13451
13452 fi
13453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13454 cat >>confdefs.h <<_ACEOF
13455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13456 _ACEOF
13457
13458 fi
13459
13460 done
13461
13462 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13463 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13464 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13465 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13467 else
13468 ac_check_lib_save_LIBS=$LIBS
13469 LIBS="-lpng -lz -lm $LIBS"
13470 cat >conftest.$ac_ext <<_ACEOF
13471 /* confdefs.h. */
13472 _ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h. */
13476
13477 /* Override any GCC internal prototype to avoid an error.
13478 Use char because int might match the return type of a GCC
13479 builtin and then its argument prototype would still apply. */
13480 #ifdef __cplusplus
13481 extern "C"
13482 #endif
13483 char png_get_channels ();
13484 int
13485 main ()
13486 {
13487 return png_get_channels ();
13488 ;
13489 return 0;
13490 }
13491 _ACEOF
13492 rm -f conftest.$ac_objext conftest$ac_exeext
13493 if { (ac_try="$ac_link"
13494 case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13497 esac
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_link") 2>conftest.er1
13500 ac_status=$?
13501 grep -v '^ *+' conftest.er1 >conftest.err
13502 rm -f conftest.er1
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } && {
13506 test -z "$ac_c_werror_flag" ||
13507 test ! -s conftest.err
13508 } && test -s conftest$ac_exeext &&
13509 $as_test_x conftest$ac_exeext; then
13510 ac_cv_lib_png_png_get_channels=yes
13511 else
13512 echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13514
13515 ac_cv_lib_png_png_get_channels=no
13516 fi
13517
13518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13519 conftest$ac_exeext conftest.$ac_ext
13520 LIBS=$ac_check_lib_save_LIBS
13521 fi
13522 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13523 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13524 if test $ac_cv_lib_png_png_get_channels = yes; then
13525 HAVE_PNG=yes
13526 fi
13527
13528 fi
13529 fi
13530
13531 if test "${HAVE_PNG}" = "yes"; then
13532
13533 cat >>confdefs.h <<\_ACEOF
13534 #define HAVE_PNG 1
13535 _ACEOF
13536
13537 fi
13538 fi
13539
13540 ### Use -ltiff if available, unless `--with-tiff=no'.
13541 HAVE_TIFF=no
13542 if test "${HAVE_X11}" = "yes"; then
13543 if test "${with_tiff}" != "no"; then
13544 if test "${ac_cv_header_tiffio_h+set}" = set; then
13545 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13546 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13547 if test "${ac_cv_header_tiffio_h+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13549 fi
13550 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13551 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13552 else
13553 # Is the header compilable?
13554 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13555 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13556 cat >conftest.$ac_ext <<_ACEOF
13557 /* confdefs.h. */
13558 _ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13562 $ac_includes_default
13563 #include <tiffio.h>
13564 _ACEOF
13565 rm -f conftest.$ac_objext
13566 if { (ac_try="$ac_compile"
13567 case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13570 esac
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572 (eval "$ac_compile") 2>conftest.er1
13573 ac_status=$?
13574 grep -v '^ *+' conftest.er1 >conftest.err
13575 rm -f conftest.er1
13576 cat conftest.err >&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } && {
13579 test -z "$ac_c_werror_flag" ||
13580 test ! -s conftest.err
13581 } && test -s conftest.$ac_objext; then
13582 ac_header_compiler=yes
13583 else
13584 echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13586
13587 ac_header_compiler=no
13588 fi
13589
13590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13592 echo "${ECHO_T}$ac_header_compiler" >&6; }
13593
13594 # Is the header present?
13595 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13596 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13597 cat >conftest.$ac_ext <<_ACEOF
13598 /* confdefs.h. */
13599 _ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13603 #include <tiffio.h>
13604 _ACEOF
13605 if { (ac_try="$ac_cpp conftest.$ac_ext"
13606 case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608 *) ac_try_echo=$ac_try;;
13609 esac
13610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13612 ac_status=$?
13613 grep -v '^ *+' conftest.er1 >conftest.err
13614 rm -f conftest.er1
13615 cat conftest.err >&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } >/dev/null && {
13618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13619 test ! -s conftest.err
13620 }; then
13621 ac_header_preproc=yes
13622 else
13623 echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13625
13626 ac_header_preproc=no
13627 fi
13628
13629 rm -f conftest.err conftest.$ac_ext
13630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13631 echo "${ECHO_T}$ac_header_preproc" >&6; }
13632
13633 # So? What about this header?
13634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13635 yes:no: )
13636 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13637 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13638 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13639 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13640 ac_header_preproc=yes
13641 ;;
13642 no:yes:* )
13643 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13644 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13646 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13648 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13650 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13652 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13653 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13654 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13655
13656 ;;
13657 esac
13658 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13659 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13660 if test "${ac_cv_header_tiffio_h+set}" = set; then
13661 echo $ECHO_N "(cached) $ECHO_C" >&6
13662 else
13663 ac_cv_header_tiffio_h=$ac_header_preproc
13664 fi
13665 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13666 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13667
13668 fi
13669 if test $ac_cv_header_tiffio_h = yes; then
13670 tifflibs="-lz -lm"
13671 # At least one tiff package requires the jpeg library.
13672 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13673 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13674 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13675 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13677 else
13678 ac_check_lib_save_LIBS=$LIBS
13679 LIBS="-ltiff $tifflibs $LIBS"
13680 cat >conftest.$ac_ext <<_ACEOF
13681 /* confdefs.h. */
13682 _ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13686
13687 /* Override any GCC internal prototype to avoid an error.
13688 Use char because int might match the return type of a GCC
13689 builtin and then its argument prototype would still apply. */
13690 #ifdef __cplusplus
13691 extern "C"
13692 #endif
13693 char TIFFGetVersion ();
13694 int
13695 main ()
13696 {
13697 return TIFFGetVersion ();
13698 ;
13699 return 0;
13700 }
13701 _ACEOF
13702 rm -f conftest.$ac_objext conftest$ac_exeext
13703 if { (ac_try="$ac_link"
13704 case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13707 esac
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_link") 2>conftest.er1
13710 ac_status=$?
13711 grep -v '^ *+' conftest.er1 >conftest.err
13712 rm -f conftest.er1
13713 cat conftest.err >&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } && {
13716 test -z "$ac_c_werror_flag" ||
13717 test ! -s conftest.err
13718 } && test -s conftest$ac_exeext &&
13719 $as_test_x conftest$ac_exeext; then
13720 ac_cv_lib_tiff_TIFFGetVersion=yes
13721 else
13722 echo "$as_me: failed program was:" >&5
13723 sed 's/^/| /' conftest.$ac_ext >&5
13724
13725 ac_cv_lib_tiff_TIFFGetVersion=no
13726 fi
13727
13728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13729 conftest$ac_exeext conftest.$ac_ext
13730 LIBS=$ac_check_lib_save_LIBS
13731 fi
13732 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13733 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13734 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13735 HAVE_TIFF=yes
13736 fi
13737
13738 fi
13739
13740
13741 fi
13742
13743 if test "${HAVE_TIFF}" = "yes"; then
13744
13745 cat >>confdefs.h <<\_ACEOF
13746 #define HAVE_TIFF 1
13747 _ACEOF
13748
13749 fi
13750 fi
13751
13752 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13753 HAVE_GIF=no
13754 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13755 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13756 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13757 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13758 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13760 fi
13761 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13762 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13763 else
13764 # Is the header compilable?
13765 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13766 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13767 cat >conftest.$ac_ext <<_ACEOF
13768 /* confdefs.h. */
13769 _ACEOF
13770 cat confdefs.h >>conftest.$ac_ext
13771 cat >>conftest.$ac_ext <<_ACEOF
13772 /* end confdefs.h. */
13773 $ac_includes_default
13774 #include <gif_lib.h>
13775 _ACEOF
13776 rm -f conftest.$ac_objext
13777 if { (ac_try="$ac_compile"
13778 case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13781 esac
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_compile") 2>conftest.er1
13784 ac_status=$?
13785 grep -v '^ *+' conftest.er1 >conftest.err
13786 rm -f conftest.er1
13787 cat conftest.err >&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } && {
13790 test -z "$ac_c_werror_flag" ||
13791 test ! -s conftest.err
13792 } && test -s conftest.$ac_objext; then
13793 ac_header_compiler=yes
13794 else
13795 echo "$as_me: failed program was:" >&5
13796 sed 's/^/| /' conftest.$ac_ext >&5
13797
13798 ac_header_compiler=no
13799 fi
13800
13801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13803 echo "${ECHO_T}$ac_header_compiler" >&6; }
13804
13805 # Is the header present?
13806 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13807 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13808 cat >conftest.$ac_ext <<_ACEOF
13809 /* confdefs.h. */
13810 _ACEOF
13811 cat confdefs.h >>conftest.$ac_ext
13812 cat >>conftest.$ac_ext <<_ACEOF
13813 /* end confdefs.h. */
13814 #include <gif_lib.h>
13815 _ACEOF
13816 if { (ac_try="$ac_cpp conftest.$ac_ext"
13817 case "(($ac_try" in
13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819 *) ac_try_echo=$ac_try;;
13820 esac
13821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13823 ac_status=$?
13824 grep -v '^ *+' conftest.er1 >conftest.err
13825 rm -f conftest.er1
13826 cat conftest.err >&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } >/dev/null && {
13829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13830 test ! -s conftest.err
13831 }; then
13832 ac_header_preproc=yes
13833 else
13834 echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.$ac_ext >&5
13836
13837 ac_header_preproc=no
13838 fi
13839
13840 rm -f conftest.err conftest.$ac_ext
13841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13842 echo "${ECHO_T}$ac_header_preproc" >&6; }
13843
13844 # So? What about this header?
13845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13846 yes:no: )
13847 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13848 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13850 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13851 ac_header_preproc=yes
13852 ;;
13853 no:yes:* )
13854 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13855 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13856 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13857 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13858 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13859 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13860 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13861 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13862 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13863 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13864 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13865 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13866
13867 ;;
13868 esac
13869 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13870 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13871 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 else
13874 ac_cv_header_gif_lib_h=$ac_header_preproc
13875 fi
13876 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13877 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13878
13879 fi
13880 if test $ac_cv_header_gif_lib_h = yes; then
13881 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13882 # Earlier versions can crash Emacs.
13883 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13884 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13885 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13886 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 else
13888 ac_check_lib_save_LIBS=$LIBS
13889 LIBS="-lungif $LIBS"
13890 cat >conftest.$ac_ext <<_ACEOF
13891 /* confdefs.h. */
13892 _ACEOF
13893 cat confdefs.h >>conftest.$ac_ext
13894 cat >>conftest.$ac_ext <<_ACEOF
13895 /* end confdefs.h. */
13896
13897 /* Override any GCC internal prototype to avoid an error.
13898 Use char because int might match the return type of a GCC
13899 builtin and then its argument prototype would still apply. */
13900 #ifdef __cplusplus
13901 extern "C"
13902 #endif
13903 char EGifPutExtensionLast ();
13904 int
13905 main ()
13906 {
13907 return EGifPutExtensionLast ();
13908 ;
13909 return 0;
13910 }
13911 _ACEOF
13912 rm -f conftest.$ac_objext conftest$ac_exeext
13913 if { (ac_try="$ac_link"
13914 case "(($ac_try" in
13915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13916 *) ac_try_echo=$ac_try;;
13917 esac
13918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13919 (eval "$ac_link") 2>conftest.er1
13920 ac_status=$?
13921 grep -v '^ *+' conftest.er1 >conftest.err
13922 rm -f conftest.er1
13923 cat conftest.err >&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } && {
13926 test -z "$ac_c_werror_flag" ||
13927 test ! -s conftest.err
13928 } && test -s conftest$ac_exeext &&
13929 $as_test_x conftest$ac_exeext; then
13930 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13931 else
13932 echo "$as_me: failed program was:" >&5
13933 sed 's/^/| /' conftest.$ac_ext >&5
13934
13935 ac_cv_lib_ungif_EGifPutExtensionLast=no
13936 fi
13937
13938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13939 conftest$ac_exeext conftest.$ac_ext
13940 LIBS=$ac_check_lib_save_LIBS
13941 fi
13942 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13943 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13944 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13945 HAVE_GIF=yes
13946 else
13947 try_libgif=yes
13948 fi
13949
13950 fi
13951
13952
13953
13954 if test "$HAVE_GIF" = yes; then
13955 ac_gif_lib_name="-lungif"
13956 fi
13957
13958 # If gif_lib.h but no libungif, try libgif.
13959 if test x"$try_libgif" = xyes; then
13960 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
13961 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
13962 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
13963 echo $ECHO_N "(cached) $ECHO_C" >&6
13964 else
13965 ac_check_lib_save_LIBS=$LIBS
13966 LIBS="-lgif $LIBS"
13967 cat >conftest.$ac_ext <<_ACEOF
13968 /* confdefs.h. */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13973
13974 /* Override any GCC internal prototype to avoid an error.
13975 Use char because int might match the return type of a GCC
13976 builtin and then its argument prototype would still apply. */
13977 #ifdef __cplusplus
13978 extern "C"
13979 #endif
13980 char EGifPutExtensionLast ();
13981 int
13982 main ()
13983 {
13984 return EGifPutExtensionLast ();
13985 ;
13986 return 0;
13987 }
13988 _ACEOF
13989 rm -f conftest.$ac_objext conftest$ac_exeext
13990 if { (ac_try="$ac_link"
13991 case "(($ac_try" in
13992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993 *) ac_try_echo=$ac_try;;
13994 esac
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996 (eval "$ac_link") 2>conftest.er1
13997 ac_status=$?
13998 grep -v '^ *+' conftest.er1 >conftest.err
13999 rm -f conftest.er1
14000 cat conftest.err >&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } && {
14003 test -z "$ac_c_werror_flag" ||
14004 test ! -s conftest.err
14005 } && test -s conftest$ac_exeext &&
14006 $as_test_x conftest$ac_exeext; then
14007 ac_cv_lib_gif_EGifPutExtensionLast=yes
14008 else
14009 echo "$as_me: failed program was:" >&5
14010 sed 's/^/| /' conftest.$ac_ext >&5
14011
14012 ac_cv_lib_gif_EGifPutExtensionLast=no
14013 fi
14014
14015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14016 conftest$ac_exeext conftest.$ac_ext
14017 LIBS=$ac_check_lib_save_LIBS
14018 fi
14019 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14020 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14021 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14022 HAVE_GIF=yes
14023 fi
14024
14025
14026 if test "$HAVE_GIF" = yes; then
14027
14028 cat >>confdefs.h <<\_ACEOF
14029 #define LIBGIF -lgif
14030 _ACEOF
14031
14032 ac_gif_lib_name="-lgif"
14033 fi
14034 fi
14035
14036 if test "${HAVE_GIF}" = "yes"; then
14037
14038 cat >>confdefs.h <<\_ACEOF
14039 #define HAVE_GIF 1
14040 _ACEOF
14041
14042 fi
14043 fi
14044
14045 ### Use -lgpm if available, unless `--with-gpm=no'.
14046 HAVE_GPM=no
14047 if test "${with_gpm}" != "no"; then
14048 if test "${ac_cv_header_gpm_h+set}" = set; then
14049 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14050 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14051 if test "${ac_cv_header_gpm_h+set}" = set; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14053 fi
14054 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14055 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14056 else
14057 # Is the header compilable?
14058 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14059 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14060 cat >conftest.$ac_ext <<_ACEOF
14061 /* confdefs.h. */
14062 _ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14066 $ac_includes_default
14067 #include <gpm.h>
14068 _ACEOF
14069 rm -f conftest.$ac_objext
14070 if { (ac_try="$ac_compile"
14071 case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14074 esac
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_compile") 2>conftest.er1
14077 ac_status=$?
14078 grep -v '^ *+' conftest.er1 >conftest.err
14079 rm -f conftest.er1
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } && {
14083 test -z "$ac_c_werror_flag" ||
14084 test ! -s conftest.err
14085 } && test -s conftest.$ac_objext; then
14086 ac_header_compiler=yes
14087 else
14088 echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14090
14091 ac_header_compiler=no
14092 fi
14093
14094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14096 echo "${ECHO_T}$ac_header_compiler" >&6; }
14097
14098 # Is the header present?
14099 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14100 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14101 cat >conftest.$ac_ext <<_ACEOF
14102 /* confdefs.h. */
14103 _ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14107 #include <gpm.h>
14108 _ACEOF
14109 if { (ac_try="$ac_cpp conftest.$ac_ext"
14110 case "(($ac_try" in
14111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112 *) ac_try_echo=$ac_try;;
14113 esac
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14116 ac_status=$?
14117 grep -v '^ *+' conftest.er1 >conftest.err
14118 rm -f conftest.er1
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } >/dev/null && {
14122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14123 test ! -s conftest.err
14124 }; then
14125 ac_header_preproc=yes
14126 else
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14129
14130 ac_header_preproc=no
14131 fi
14132
14133 rm -f conftest.err conftest.$ac_ext
14134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14135 echo "${ECHO_T}$ac_header_preproc" >&6; }
14136
14137 # So? What about this header?
14138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14139 yes:no: )
14140 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14141 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14142 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14143 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14144 ac_header_preproc=yes
14145 ;;
14146 no:yes:* )
14147 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14148 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14149 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14150 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14151 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14152 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14153 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14154 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14155 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14156 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14157 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14158 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14159
14160 ;;
14161 esac
14162 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14163 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14164 if test "${ac_cv_header_gpm_h+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14166 else
14167 ac_cv_header_gpm_h=$ac_header_preproc
14168 fi
14169 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14170 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14171
14172 fi
14173 if test $ac_cv_header_gpm_h = yes; then
14174 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14175 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14176 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14177 echo $ECHO_N "(cached) $ECHO_C" >&6
14178 else
14179 ac_check_lib_save_LIBS=$LIBS
14180 LIBS="-lgpm $LIBS"
14181 cat >conftest.$ac_ext <<_ACEOF
14182 /* confdefs.h. */
14183 _ACEOF
14184 cat confdefs.h >>conftest.$ac_ext
14185 cat >>conftest.$ac_ext <<_ACEOF
14186 /* end confdefs.h. */
14187
14188 /* Override any GCC internal prototype to avoid an error.
14189 Use char because int might match the return type of a GCC
14190 builtin and then its argument prototype would still apply. */
14191 #ifdef __cplusplus
14192 extern "C"
14193 #endif
14194 char Gpm_Open ();
14195 int
14196 main ()
14197 {
14198 return Gpm_Open ();
14199 ;
14200 return 0;
14201 }
14202 _ACEOF
14203 rm -f conftest.$ac_objext conftest$ac_exeext
14204 if { (ac_try="$ac_link"
14205 case "(($ac_try" in
14206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207 *) ac_try_echo=$ac_try;;
14208 esac
14209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210 (eval "$ac_link") 2>conftest.er1
14211 ac_status=$?
14212 grep -v '^ *+' conftest.er1 >conftest.err
14213 rm -f conftest.er1
14214 cat conftest.err >&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } && {
14217 test -z "$ac_c_werror_flag" ||
14218 test ! -s conftest.err
14219 } && test -s conftest$ac_exeext &&
14220 $as_test_x conftest$ac_exeext; then
14221 ac_cv_lib_gpm_Gpm_Open=yes
14222 else
14223 echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14225
14226 ac_cv_lib_gpm_Gpm_Open=no
14227 fi
14228
14229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14230 conftest$ac_exeext conftest.$ac_ext
14231 LIBS=$ac_check_lib_save_LIBS
14232 fi
14233 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14234 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14235 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14236 HAVE_GPM=yes
14237 fi
14238
14239 fi
14240
14241
14242 fi
14243
14244 if test "${HAVE_GPM}" = "yes"; then
14245
14246 cat >>confdefs.h <<\_ACEOF
14247 #define HAVE_GPM 1
14248 _ACEOF
14249
14250 fi
14251
14252 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14253 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14254 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14255 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14256 echo $ECHO_N "(cached) $ECHO_C" >&6
14257 fi
14258 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14259 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14260 else
14261 # Is the header compilable?
14262 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14263 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14264 cat >conftest.$ac_ext <<_ACEOF
14265 /* confdefs.h. */
14266 _ACEOF
14267 cat confdefs.h >>conftest.$ac_ext
14268 cat >>conftest.$ac_ext <<_ACEOF
14269 /* end confdefs.h. */
14270 $ac_includes_default
14271 #include <malloc/malloc.h>
14272 _ACEOF
14273 rm -f conftest.$ac_objext
14274 if { (ac_try="$ac_compile"
14275 case "(($ac_try" in
14276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277 *) ac_try_echo=$ac_try;;
14278 esac
14279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14280 (eval "$ac_compile") 2>conftest.er1
14281 ac_status=$?
14282 grep -v '^ *+' conftest.er1 >conftest.err
14283 rm -f conftest.er1
14284 cat conftest.err >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } && {
14287 test -z "$ac_c_werror_flag" ||
14288 test ! -s conftest.err
14289 } && test -s conftest.$ac_objext; then
14290 ac_header_compiler=yes
14291 else
14292 echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14294
14295 ac_header_compiler=no
14296 fi
14297
14298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14299 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14300 echo "${ECHO_T}$ac_header_compiler" >&6; }
14301
14302 # Is the header present?
14303 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14304 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14305 cat >conftest.$ac_ext <<_ACEOF
14306 /* confdefs.h. */
14307 _ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14311 #include <malloc/malloc.h>
14312 _ACEOF
14313 if { (ac_try="$ac_cpp conftest.$ac_ext"
14314 case "(($ac_try" in
14315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316 *) ac_try_echo=$ac_try;;
14317 esac
14318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14320 ac_status=$?
14321 grep -v '^ *+' conftest.er1 >conftest.err
14322 rm -f conftest.er1
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } >/dev/null && {
14326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14327 test ! -s conftest.err
14328 }; then
14329 ac_header_preproc=yes
14330 else
14331 echo "$as_me: failed program was:" >&5
14332 sed 's/^/| /' conftest.$ac_ext >&5
14333
14334 ac_header_preproc=no
14335 fi
14336
14337 rm -f conftest.err conftest.$ac_ext
14338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14339 echo "${ECHO_T}$ac_header_preproc" >&6; }
14340
14341 # So? What about this header?
14342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14343 yes:no: )
14344 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14345 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14346 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14347 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14348 ac_header_preproc=yes
14349 ;;
14350 no:yes:* )
14351 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14352 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14353 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14354 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14355 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14356 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14357 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14358 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14359 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14360 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14361 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14362 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14363
14364 ;;
14365 esac
14366 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14367 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14368 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 else
14371 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14372 fi
14373 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14374 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14375
14376 fi
14377 if test $ac_cv_header_malloc_malloc_h = yes; then
14378
14379 cat >>confdefs.h <<\_ACEOF
14380 #define HAVE_MALLOC_MALLOC_H 1
14381 _ACEOF
14382
14383 fi
14384
14385
14386
14387 ### Use Mac OS X Carbon API to implement GUI.
14388 if test "${HAVE_CARBON}" = "yes"; then
14389
14390 cat >>confdefs.h <<\_ACEOF
14391 #define HAVE_CARBON 1
14392 _ACEOF
14393
14394 ## Specify the install directory
14395 carbon_appdir=
14396 if test "${carbon_appdir_x}" != ""; then
14397 case ${carbon_appdir_x} in
14398 y | ye | yes) carbon_appdir=/Applications ;;
14399 * ) carbon_appdir=${carbon_appdir_x} ;;
14400 esac
14401 fi
14402 # We also have mouse menus.
14403 HAVE_MENUS=yes
14404 fi
14405
14406 ### Use session management (-lSM -lICE) if available
14407 HAVE_X_SM=no
14408 if test "${HAVE_X11}" = "yes"; then
14409 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14410 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14411 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14412 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14413 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 fi
14415 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14416 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14417 else
14418 # Is the header compilable?
14419 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14420 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14421 cat >conftest.$ac_ext <<_ACEOF
14422 /* confdefs.h. */
14423 _ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h. */
14427 $ac_includes_default
14428 #include <X11/SM/SMlib.h>
14429 _ACEOF
14430 rm -f conftest.$ac_objext
14431 if { (ac_try="$ac_compile"
14432 case "(($ac_try" in
14433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434 *) ac_try_echo=$ac_try;;
14435 esac
14436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437 (eval "$ac_compile") 2>conftest.er1
14438 ac_status=$?
14439 grep -v '^ *+' conftest.er1 >conftest.err
14440 rm -f conftest.er1
14441 cat conftest.err >&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } && {
14444 test -z "$ac_c_werror_flag" ||
14445 test ! -s conftest.err
14446 } && test -s conftest.$ac_objext; then
14447 ac_header_compiler=yes
14448 else
14449 echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14451
14452 ac_header_compiler=no
14453 fi
14454
14455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14457 echo "${ECHO_T}$ac_header_compiler" >&6; }
14458
14459 # Is the header present?
14460 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14461 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14462 cat >conftest.$ac_ext <<_ACEOF
14463 /* confdefs.h. */
14464 _ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h. */
14468 #include <X11/SM/SMlib.h>
14469 _ACEOF
14470 if { (ac_try="$ac_cpp conftest.$ac_ext"
14471 case "(($ac_try" in
14472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14473 *) ac_try_echo=$ac_try;;
14474 esac
14475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14477 ac_status=$?
14478 grep -v '^ *+' conftest.er1 >conftest.err
14479 rm -f conftest.er1
14480 cat conftest.err >&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } >/dev/null && {
14483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14484 test ! -s conftest.err
14485 }; then
14486 ac_header_preproc=yes
14487 else
14488 echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14490
14491 ac_header_preproc=no
14492 fi
14493
14494 rm -f conftest.err conftest.$ac_ext
14495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14496 echo "${ECHO_T}$ac_header_preproc" >&6; }
14497
14498 # So? What about this header?
14499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14500 yes:no: )
14501 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14502 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14503 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14504 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14505 ac_header_preproc=yes
14506 ;;
14507 no:yes:* )
14508 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14509 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14510 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14511 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14512 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14513 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14514 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14515 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14516 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14517 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14518 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14519 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14520
14521 ;;
14522 esac
14523 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14524 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14525 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14526 echo $ECHO_N "(cached) $ECHO_C" >&6
14527 else
14528 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14529 fi
14530 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14531 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14532
14533 fi
14534 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14535 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14536 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14537 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14539 else
14540 ac_check_lib_save_LIBS=$LIBS
14541 LIBS="-lSM -lICE $LIBS"
14542 cat >conftest.$ac_ext <<_ACEOF
14543 /* confdefs.h. */
14544 _ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14548
14549 /* Override any GCC internal prototype to avoid an error.
14550 Use char because int might match the return type of a GCC
14551 builtin and then its argument prototype would still apply. */
14552 #ifdef __cplusplus
14553 extern "C"
14554 #endif
14555 char SmcOpenConnection ();
14556 int
14557 main ()
14558 {
14559 return SmcOpenConnection ();
14560 ;
14561 return 0;
14562 }
14563 _ACEOF
14564 rm -f conftest.$ac_objext conftest$ac_exeext
14565 if { (ac_try="$ac_link"
14566 case "(($ac_try" in
14567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14569 esac
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571 (eval "$ac_link") 2>conftest.er1
14572 ac_status=$?
14573 grep -v '^ *+' conftest.er1 >conftest.err
14574 rm -f conftest.er1
14575 cat conftest.err >&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } && {
14578 test -z "$ac_c_werror_flag" ||
14579 test ! -s conftest.err
14580 } && test -s conftest$ac_exeext &&
14581 $as_test_x conftest$ac_exeext; then
14582 ac_cv_lib_SM_SmcOpenConnection=yes
14583 else
14584 echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14586
14587 ac_cv_lib_SM_SmcOpenConnection=no
14588 fi
14589
14590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14591 conftest$ac_exeext conftest.$ac_ext
14592 LIBS=$ac_check_lib_save_LIBS
14593 fi
14594 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14595 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14596 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14597 HAVE_X_SM=yes
14598 fi
14599
14600 fi
14601
14602
14603
14604 if test "${HAVE_X_SM}" = "yes"; then
14605
14606 cat >>confdefs.h <<\_ACEOF
14607 #define HAVE_X_SM 1
14608 _ACEOF
14609
14610 case "$LIBS" in
14611 *-lSM*) ;;
14612 *) LIBS="-lSM -lICE $LIBS" ;;
14613 esac
14614 fi
14615 fi
14616
14617 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14618 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14619 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14620 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14621 echo $ECHO_N "(cached) $ECHO_C" >&6
14622 else
14623 cat >conftest.$ac_ext <<_ACEOF
14624 /* confdefs.h. */
14625 _ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14629 #include <netdb.h>
14630 int
14631 main ()
14632 {
14633 return h_errno;
14634 ;
14635 return 0;
14636 }
14637 _ACEOF
14638 rm -f conftest.$ac_objext conftest$ac_exeext
14639 if { (ac_try="$ac_link"
14640 case "(($ac_try" in
14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642 *) ac_try_echo=$ac_try;;
14643 esac
14644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645 (eval "$ac_link") 2>conftest.er1
14646 ac_status=$?
14647 grep -v '^ *+' conftest.er1 >conftest.err
14648 rm -f conftest.er1
14649 cat conftest.err >&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } && {
14652 test -z "$ac_c_werror_flag" ||
14653 test ! -s conftest.err
14654 } && test -s conftest$ac_exeext &&
14655 $as_test_x conftest$ac_exeext; then
14656 emacs_cv_netdb_declares_h_errno=yes
14657 else
14658 echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14660
14661 emacs_cv_netdb_declares_h_errno=no
14662 fi
14663
14664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14665 conftest$ac_exeext conftest.$ac_ext
14666 fi
14667 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14668 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14669 if test $emacs_cv_netdb_declares_h_errno = yes; then
14670
14671 cat >>confdefs.h <<\_ACEOF
14672 #define HAVE_H_ERRNO 1
14673 _ACEOF
14674
14675 fi
14676
14677 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14678 # for constant arguments. Useless!
14679 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14680 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14681 if test "${ac_cv_working_alloca_h+set}" = set; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14683 else
14684 cat >conftest.$ac_ext <<_ACEOF
14685 /* confdefs.h. */
14686 _ACEOF
14687 cat confdefs.h >>conftest.$ac_ext
14688 cat >>conftest.$ac_ext <<_ACEOF
14689 /* end confdefs.h. */
14690 #include <alloca.h>
14691 int
14692 main ()
14693 {
14694 char *p = (char *) alloca (2 * sizeof (int));
14695 if (p) return 0;
14696 ;
14697 return 0;
14698 }
14699 _ACEOF
14700 rm -f conftest.$ac_objext conftest$ac_exeext
14701 if { (ac_try="$ac_link"
14702 case "(($ac_try" in
14703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704 *) ac_try_echo=$ac_try;;
14705 esac
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707 (eval "$ac_link") 2>conftest.er1
14708 ac_status=$?
14709 grep -v '^ *+' conftest.er1 >conftest.err
14710 rm -f conftest.er1
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } && {
14714 test -z "$ac_c_werror_flag" ||
14715 test ! -s conftest.err
14716 } && test -s conftest$ac_exeext &&
14717 $as_test_x conftest$ac_exeext; then
14718 ac_cv_working_alloca_h=yes
14719 else
14720 echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14722
14723 ac_cv_working_alloca_h=no
14724 fi
14725
14726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14727 conftest$ac_exeext conftest.$ac_ext
14728 fi
14729 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14730 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14731 if test $ac_cv_working_alloca_h = yes; then
14732
14733 cat >>confdefs.h <<\_ACEOF
14734 #define HAVE_ALLOCA_H 1
14735 _ACEOF
14736
14737 fi
14738
14739 { echo "$as_me:$LINENO: checking for alloca" >&5
14740 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14741 if test "${ac_cv_func_alloca_works+set}" = set; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 else
14744 cat >conftest.$ac_ext <<_ACEOF
14745 /* confdefs.h. */
14746 _ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14750 #ifdef __GNUC__
14751 # define alloca __builtin_alloca
14752 #else
14753 # ifdef _MSC_VER
14754 # include <malloc.h>
14755 # define alloca _alloca
14756 # else
14757 # ifdef HAVE_ALLOCA_H
14758 # include <alloca.h>
14759 # else
14760 # ifdef _AIX
14761 #pragma alloca
14762 # else
14763 # ifndef alloca /* predefined by HP cc +Olibcalls */
14764 char *alloca ();
14765 # endif
14766 # endif
14767 # endif
14768 # endif
14769 #endif
14770
14771 int
14772 main ()
14773 {
14774 char *p = (char *) alloca (1);
14775 if (p) return 0;
14776 ;
14777 return 0;
14778 }
14779 _ACEOF
14780 rm -f conftest.$ac_objext conftest$ac_exeext
14781 if { (ac_try="$ac_link"
14782 case "(($ac_try" in
14783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784 *) ac_try_echo=$ac_try;;
14785 esac
14786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14787 (eval "$ac_link") 2>conftest.er1
14788 ac_status=$?
14789 grep -v '^ *+' conftest.er1 >conftest.err
14790 rm -f conftest.er1
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } && {
14794 test -z "$ac_c_werror_flag" ||
14795 test ! -s conftest.err
14796 } && test -s conftest$ac_exeext &&
14797 $as_test_x conftest$ac_exeext; then
14798 ac_cv_func_alloca_works=yes
14799 else
14800 echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14802
14803 ac_cv_func_alloca_works=no
14804 fi
14805
14806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14807 conftest$ac_exeext conftest.$ac_ext
14808 fi
14809 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14810 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14811
14812 if test $ac_cv_func_alloca_works = yes; then
14813
14814 cat >>confdefs.h <<\_ACEOF
14815 #define HAVE_ALLOCA 1
14816 _ACEOF
14817
14818 else
14819 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14820 # that cause trouble. Some versions do not even contain alloca or
14821 # contain a buggy version. If you still want to use their alloca,
14822 # use ar to extract alloca.o from them instead of compiling alloca.c.
14823
14824 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14825
14826 cat >>confdefs.h <<\_ACEOF
14827 #define C_ALLOCA 1
14828 _ACEOF
14829
14830
14831 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14832 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14833 if test "${ac_cv_os_cray+set}" = set; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14835 else
14836 cat >conftest.$ac_ext <<_ACEOF
14837 /* confdefs.h. */
14838 _ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h. */
14842 #if defined CRAY && ! defined CRAY2
14843 webecray
14844 #else
14845 wenotbecray
14846 #endif
14847
14848 _ACEOF
14849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14850 $EGREP "webecray" >/dev/null 2>&1; then
14851 ac_cv_os_cray=yes
14852 else
14853 ac_cv_os_cray=no
14854 fi
14855 rm -f conftest*
14856
14857 fi
14858 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14859 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14860 if test $ac_cv_os_cray = yes; then
14861 for ac_func in _getb67 GETB67 getb67; do
14862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14866 echo $ECHO_N "(cached) $ECHO_C" >&6
14867 else
14868 cat >conftest.$ac_ext <<_ACEOF
14869 /* confdefs.h. */
14870 _ACEOF
14871 cat confdefs.h >>conftest.$ac_ext
14872 cat >>conftest.$ac_ext <<_ACEOF
14873 /* end confdefs.h. */
14874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14876 #define $ac_func innocuous_$ac_func
14877
14878 /* System header to define __stub macros and hopefully few prototypes,
14879 which can conflict with char $ac_func (); below.
14880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14881 <limits.h> exists even on freestanding compilers. */
14882
14883 #ifdef __STDC__
14884 # include <limits.h>
14885 #else
14886 # include <assert.h>
14887 #endif
14888
14889 #undef $ac_func
14890
14891 /* Override any GCC internal prototype to avoid an error.
14892 Use char because int might match the return type of a GCC
14893 builtin and then its argument prototype would still apply. */
14894 #ifdef __cplusplus
14895 extern "C"
14896 #endif
14897 char $ac_func ();
14898 /* The GNU C library defines this for functions which it implements
14899 to always fail with ENOSYS. Some functions are actually named
14900 something starting with __ and the normal name is an alias. */
14901 #if defined __stub_$ac_func || defined __stub___$ac_func
14902 choke me
14903 #endif
14904
14905 int
14906 main ()
14907 {
14908 return $ac_func ();
14909 ;
14910 return 0;
14911 }
14912 _ACEOF
14913 rm -f conftest.$ac_objext conftest$ac_exeext
14914 if { (ac_try="$ac_link"
14915 case "(($ac_try" in
14916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14917 *) ac_try_echo=$ac_try;;
14918 esac
14919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14920 (eval "$ac_link") 2>conftest.er1
14921 ac_status=$?
14922 grep -v '^ *+' conftest.er1 >conftest.err
14923 rm -f conftest.er1
14924 cat conftest.err >&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); } && {
14927 test -z "$ac_c_werror_flag" ||
14928 test ! -s conftest.err
14929 } && test -s conftest$ac_exeext &&
14930 $as_test_x conftest$ac_exeext; then
14931 eval "$as_ac_var=yes"
14932 else
14933 echo "$as_me: failed program was:" >&5
14934 sed 's/^/| /' conftest.$ac_ext >&5
14935
14936 eval "$as_ac_var=no"
14937 fi
14938
14939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14940 conftest$ac_exeext conftest.$ac_ext
14941 fi
14942 ac_res=`eval echo '${'$as_ac_var'}'`
14943 { echo "$as_me:$LINENO: result: $ac_res" >&5
14944 echo "${ECHO_T}$ac_res" >&6; }
14945 if test `eval echo '${'$as_ac_var'}'` = yes; then
14946
14947 cat >>confdefs.h <<_ACEOF
14948 #define CRAY_STACKSEG_END $ac_func
14949 _ACEOF
14950
14951 break
14952 fi
14953
14954 done
14955 fi
14956
14957 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14958 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14959 if test "${ac_cv_c_stack_direction+set}" = set; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14961 else
14962 if test "$cross_compiling" = yes; then
14963 ac_cv_c_stack_direction=0
14964 else
14965 cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h. */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14971 $ac_includes_default
14972 int
14973 find_stack_direction ()
14974 {
14975 static char *addr = 0;
14976 auto char dummy;
14977 if (addr == 0)
14978 {
14979 addr = &dummy;
14980 return find_stack_direction ();
14981 }
14982 else
14983 return (&dummy > addr) ? 1 : -1;
14984 }
14985
14986 int
14987 main ()
14988 {
14989 return find_stack_direction () < 0;
14990 }
14991 _ACEOF
14992 rm -f conftest$ac_exeext
14993 if { (ac_try="$ac_link"
14994 case "(($ac_try" in
14995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996 *) ac_try_echo=$ac_try;;
14997 esac
14998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999 (eval "$ac_link") 2>&5
15000 ac_status=$?
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15003 { (case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15006 esac
15007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008 (eval "$ac_try") 2>&5
15009 ac_status=$?
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; }; then
15012 ac_cv_c_stack_direction=1
15013 else
15014 echo "$as_me: program exited with status $ac_status" >&5
15015 echo "$as_me: failed program was:" >&5
15016 sed 's/^/| /' conftest.$ac_ext >&5
15017
15018 ( exit $ac_status )
15019 ac_cv_c_stack_direction=-1
15020 fi
15021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15022 fi
15023
15024
15025 fi
15026 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15027 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15028
15029 cat >>confdefs.h <<_ACEOF
15030 #define STACK_DIRECTION $ac_cv_c_stack_direction
15031 _ACEOF
15032
15033
15034 fi
15035
15036
15037 # fmod, logb, and frexp are found in -lm on most systems.
15038 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15039
15040 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15041 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15042 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15044 else
15045 ac_check_lib_save_LIBS=$LIBS
15046 LIBS="-lm $LIBS"
15047 cat >conftest.$ac_ext <<_ACEOF
15048 /* confdefs.h. */
15049 _ACEOF
15050 cat confdefs.h >>conftest.$ac_ext
15051 cat >>conftest.$ac_ext <<_ACEOF
15052 /* end confdefs.h. */
15053
15054 /* Override any GCC internal prototype to avoid an error.
15055 Use char because int might match the return type of a GCC
15056 builtin and then its argument prototype would still apply. */
15057 #ifdef __cplusplus
15058 extern "C"
15059 #endif
15060 char sqrt ();
15061 int
15062 main ()
15063 {
15064 return sqrt ();
15065 ;
15066 return 0;
15067 }
15068 _ACEOF
15069 rm -f conftest.$ac_objext conftest$ac_exeext
15070 if { (ac_try="$ac_link"
15071 case "(($ac_try" in
15072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073 *) ac_try_echo=$ac_try;;
15074 esac
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076 (eval "$ac_link") 2>conftest.er1
15077 ac_status=$?
15078 grep -v '^ *+' conftest.er1 >conftest.err
15079 rm -f conftest.er1
15080 cat conftest.err >&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } && {
15083 test -z "$ac_c_werror_flag" ||
15084 test ! -s conftest.err
15085 } && test -s conftest$ac_exeext &&
15086 $as_test_x conftest$ac_exeext; then
15087 ac_cv_lib_m_sqrt=yes
15088 else
15089 echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15091
15092 ac_cv_lib_m_sqrt=no
15093 fi
15094
15095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15096 conftest$ac_exeext conftest.$ac_ext
15097 LIBS=$ac_check_lib_save_LIBS
15098 fi
15099 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15100 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15101 if test $ac_cv_lib_m_sqrt = yes; then
15102 cat >>confdefs.h <<_ACEOF
15103 #define HAVE_LIBM 1
15104 _ACEOF
15105
15106 LIBS="-lm $LIBS"
15107
15108 fi
15109
15110
15111 # Check for mail-locking functions in a "mail" library. Probably this should
15112 # have the same check as for liblockfile below.
15113
15114 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15115 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15116 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15117 echo $ECHO_N "(cached) $ECHO_C" >&6
15118 else
15119 ac_check_lib_save_LIBS=$LIBS
15120 LIBS="-lmail $LIBS"
15121 cat >conftest.$ac_ext <<_ACEOF
15122 /* confdefs.h. */
15123 _ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h. */
15127
15128 /* Override any GCC internal prototype to avoid an error.
15129 Use char because int might match the return type of a GCC
15130 builtin and then its argument prototype would still apply. */
15131 #ifdef __cplusplus
15132 extern "C"
15133 #endif
15134 char maillock ();
15135 int
15136 main ()
15137 {
15138 return maillock ();
15139 ;
15140 return 0;
15141 }
15142 _ACEOF
15143 rm -f conftest.$ac_objext conftest$ac_exeext
15144 if { (ac_try="$ac_link"
15145 case "(($ac_try" in
15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15148 esac
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150 (eval "$ac_link") 2>conftest.er1
15151 ac_status=$?
15152 grep -v '^ *+' conftest.er1 >conftest.err
15153 rm -f conftest.er1
15154 cat conftest.err >&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); } && {
15157 test -z "$ac_c_werror_flag" ||
15158 test ! -s conftest.err
15159 } && test -s conftest$ac_exeext &&
15160 $as_test_x conftest$ac_exeext; then
15161 ac_cv_lib_mail_maillock=yes
15162 else
15163 echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15165
15166 ac_cv_lib_mail_maillock=no
15167 fi
15168
15169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15170 conftest$ac_exeext conftest.$ac_ext
15171 LIBS=$ac_check_lib_save_LIBS
15172 fi
15173 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15174 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15175 if test $ac_cv_lib_mail_maillock = yes; then
15176 cat >>confdefs.h <<_ACEOF
15177 #define HAVE_LIBMAIL 1
15178 _ACEOF
15179
15180 LIBS="-lmail $LIBS"
15181
15182 fi
15183
15184
15185 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15186 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15187 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
15189 else
15190 ac_check_lib_save_LIBS=$LIBS
15191 LIBS="-llockfile $LIBS"
15192 cat >conftest.$ac_ext <<_ACEOF
15193 /* confdefs.h. */
15194 _ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h. */
15198
15199 /* Override any GCC internal prototype to avoid an error.
15200 Use char because int might match the return type of a GCC
15201 builtin and then its argument prototype would still apply. */
15202 #ifdef __cplusplus
15203 extern "C"
15204 #endif
15205 char maillock ();
15206 int
15207 main ()
15208 {
15209 return maillock ();
15210 ;
15211 return 0;
15212 }
15213 _ACEOF
15214 rm -f conftest.$ac_objext conftest$ac_exeext
15215 if { (ac_try="$ac_link"
15216 case "(($ac_try" in
15217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218 *) ac_try_echo=$ac_try;;
15219 esac
15220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221 (eval "$ac_link") 2>conftest.er1
15222 ac_status=$?
15223 grep -v '^ *+' conftest.er1 >conftest.err
15224 rm -f conftest.er1
15225 cat conftest.err >&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } && {
15228 test -z "$ac_c_werror_flag" ||
15229 test ! -s conftest.err
15230 } && test -s conftest$ac_exeext &&
15231 $as_test_x conftest$ac_exeext; then
15232 ac_cv_lib_lockfile_maillock=yes
15233 else
15234 echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15236
15237 ac_cv_lib_lockfile_maillock=no
15238 fi
15239
15240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15241 conftest$ac_exeext conftest.$ac_ext
15242 LIBS=$ac_check_lib_save_LIBS
15243 fi
15244 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15245 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15246 if test $ac_cv_lib_lockfile_maillock = yes; then
15247 cat >>confdefs.h <<_ACEOF
15248 #define HAVE_LIBLOCKFILE 1
15249 _ACEOF
15250
15251 LIBS="-llockfile $LIBS"
15252
15253 fi
15254
15255 # If we have the shared liblockfile, assume we must use it for mail
15256 # locking (e.g. Debian). If we couldn't link against liblockfile
15257 # (no liblockfile.a installed), ensure that we don't need to.
15258 if test "$ac_cv_lib_lockfile_maillock" = no; then
15259 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15260 set dummy liblockfile.so; ac_word=$2
15261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15263 if test "${ac_cv_prog_liblockfile+set}" = set; then
15264 echo $ECHO_N "(cached) $ECHO_C" >&6
15265 else
15266 if test -n "$liblockfile"; then
15267 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15268 else
15269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15270 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15271 for as_dir in $as_dummy
15272 do
15273 IFS=$as_save_IFS
15274 test -z "$as_dir" && as_dir=.
15275 for ac_exec_ext in '' $ac_executable_extensions; do
15276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15277 ac_cv_prog_liblockfile="yes"
15278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15279 break 2
15280 fi
15281 done
15282 done
15283 IFS=$as_save_IFS
15284
15285 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15286 fi
15287 fi
15288 liblockfile=$ac_cv_prog_liblockfile
15289 if test -n "$liblockfile"; then
15290 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15291 echo "${ECHO_T}$liblockfile" >&6; }
15292 else
15293 { echo "$as_me:$LINENO: result: no" >&5
15294 echo "${ECHO_T}no" >&6; }
15295 fi
15296
15297
15298 if test $ac_cv_prog_liblockfile = yes; then
15299 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15300 This probably means that movemail could lose mail.
15301 There may be a \`development' package to install containing liblockfile." >&5
15302 echo "$as_me: error: Shared liblockfile found but can't link against it.
15303 This probably means that movemail could lose mail.
15304 There may be a \`development' package to install containing liblockfile." >&2;}
15305 { (exit 1); exit 1; }; }
15306 else :
15307 fi
15308 fi
15309
15310 for ac_func in touchlock
15311 do
15312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15313 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15316 echo $ECHO_N "(cached) $ECHO_C" >&6
15317 else
15318 cat >conftest.$ac_ext <<_ACEOF
15319 /* confdefs.h. */
15320 _ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h. */
15324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15326 #define $ac_func innocuous_$ac_func
15327
15328 /* System header to define __stub macros and hopefully few prototypes,
15329 which can conflict with char $ac_func (); below.
15330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15331 <limits.h> exists even on freestanding compilers. */
15332
15333 #ifdef __STDC__
15334 # include <limits.h>
15335 #else
15336 # include <assert.h>
15337 #endif
15338
15339 #undef $ac_func
15340
15341 /* Override any GCC internal prototype to avoid an error.
15342 Use char because int might match the return type of a GCC
15343 builtin and then its argument prototype would still apply. */
15344 #ifdef __cplusplus
15345 extern "C"
15346 #endif
15347 char $ac_func ();
15348 /* The GNU C library defines this for functions which it implements
15349 to always fail with ENOSYS. Some functions are actually named
15350 something starting with __ and the normal name is an alias. */
15351 #if defined __stub_$ac_func || defined __stub___$ac_func
15352 choke me
15353 #endif
15354
15355 int
15356 main ()
15357 {
15358 return $ac_func ();
15359 ;
15360 return 0;
15361 }
15362 _ACEOF
15363 rm -f conftest.$ac_objext conftest$ac_exeext
15364 if { (ac_try="$ac_link"
15365 case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15368 esac
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_link") 2>conftest.er1
15371 ac_status=$?
15372 grep -v '^ *+' conftest.er1 >conftest.err
15373 rm -f conftest.er1
15374 cat conftest.err >&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } && {
15377 test -z "$ac_c_werror_flag" ||
15378 test ! -s conftest.err
15379 } && test -s conftest$ac_exeext &&
15380 $as_test_x conftest$ac_exeext; then
15381 eval "$as_ac_var=yes"
15382 else
15383 echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.$ac_ext >&5
15385
15386 eval "$as_ac_var=no"
15387 fi
15388
15389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15390 conftest$ac_exeext conftest.$ac_ext
15391 fi
15392 ac_res=`eval echo '${'$as_ac_var'}'`
15393 { echo "$as_me:$LINENO: result: $ac_res" >&5
15394 echo "${ECHO_T}$ac_res" >&6; }
15395 if test `eval echo '${'$as_ac_var'}'` = yes; then
15396 cat >>confdefs.h <<_ACEOF
15397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15398 _ACEOF
15399
15400 fi
15401 done
15402
15403
15404 for ac_header in maillock.h
15405 do
15406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 fi
15413 ac_res=`eval echo '${'$as_ac_Header'}'`
15414 { echo "$as_me:$LINENO: result: $ac_res" >&5
15415 echo "${ECHO_T}$ac_res" >&6; }
15416 else
15417 # Is the header compilable?
15418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15420 cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h. */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 $ac_includes_default
15427 #include <$ac_header>
15428 _ACEOF
15429 rm -f conftest.$ac_objext
15430 if { (ac_try="$ac_compile"
15431 case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15434 esac
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_compile") 2>conftest.er1
15437 ac_status=$?
15438 grep -v '^ *+' conftest.er1 >conftest.err
15439 rm -f conftest.er1
15440 cat conftest.err >&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } && {
15443 test -z "$ac_c_werror_flag" ||
15444 test ! -s conftest.err
15445 } && test -s conftest.$ac_objext; then
15446 ac_header_compiler=yes
15447 else
15448 echo "$as_me: failed program was:" >&5
15449 sed 's/^/| /' conftest.$ac_ext >&5
15450
15451 ac_header_compiler=no
15452 fi
15453
15454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15456 echo "${ECHO_T}$ac_header_compiler" >&6; }
15457
15458 # Is the header present?
15459 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15461 cat >conftest.$ac_ext <<_ACEOF
15462 /* confdefs.h. */
15463 _ACEOF
15464 cat confdefs.h >>conftest.$ac_ext
15465 cat >>conftest.$ac_ext <<_ACEOF
15466 /* end confdefs.h. */
15467 #include <$ac_header>
15468 _ACEOF
15469 if { (ac_try="$ac_cpp conftest.$ac_ext"
15470 case "(($ac_try" in
15471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472 *) ac_try_echo=$ac_try;;
15473 esac
15474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15476 ac_status=$?
15477 grep -v '^ *+' conftest.er1 >conftest.err
15478 rm -f conftest.er1
15479 cat conftest.err >&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); } >/dev/null && {
15482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15483 test ! -s conftest.err
15484 }; then
15485 ac_header_preproc=yes
15486 else
15487 echo "$as_me: failed program was:" >&5
15488 sed 's/^/| /' conftest.$ac_ext >&5
15489
15490 ac_header_preproc=no
15491 fi
15492
15493 rm -f conftest.err conftest.$ac_ext
15494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15495 echo "${ECHO_T}$ac_header_preproc" >&6; }
15496
15497 # So? What about this header?
15498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15499 yes:no: )
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15504 ac_header_preproc=yes
15505 ;;
15506 no:yes:* )
15507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15514 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15519
15520 ;;
15521 esac
15522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15525 echo $ECHO_N "(cached) $ECHO_C" >&6
15526 else
15527 eval "$as_ac_Header=\$ac_header_preproc"
15528 fi
15529 ac_res=`eval echo '${'$as_ac_Header'}'`
15530 { echo "$as_me:$LINENO: result: $ac_res" >&5
15531 echo "${ECHO_T}$ac_res" >&6; }
15532
15533 fi
15534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15535 cat >>confdefs.h <<_ACEOF
15536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15537 _ACEOF
15538
15539 fi
15540
15541 done
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613 for ac_func in gethostname getdomainname dup2 \
15614 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15615 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15616 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15617 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15618 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15619 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15620 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15621 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15622 do
15623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15624 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15626 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15627 echo $ECHO_N "(cached) $ECHO_C" >&6
15628 else
15629 cat >conftest.$ac_ext <<_ACEOF
15630 /* confdefs.h. */
15631 _ACEOF
15632 cat confdefs.h >>conftest.$ac_ext
15633 cat >>conftest.$ac_ext <<_ACEOF
15634 /* end confdefs.h. */
15635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15637 #define $ac_func innocuous_$ac_func
15638
15639 /* System header to define __stub macros and hopefully few prototypes,
15640 which can conflict with char $ac_func (); below.
15641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15642 <limits.h> exists even on freestanding compilers. */
15643
15644 #ifdef __STDC__
15645 # include <limits.h>
15646 #else
15647 # include <assert.h>
15648 #endif
15649
15650 #undef $ac_func
15651
15652 /* Override any GCC internal prototype to avoid an error.
15653 Use char because int might match the return type of a GCC
15654 builtin and then its argument prototype would still apply. */
15655 #ifdef __cplusplus
15656 extern "C"
15657 #endif
15658 char $ac_func ();
15659 /* The GNU C library defines this for functions which it implements
15660 to always fail with ENOSYS. Some functions are actually named
15661 something starting with __ and the normal name is an alias. */
15662 #if defined __stub_$ac_func || defined __stub___$ac_func
15663 choke me
15664 #endif
15665
15666 int
15667 main ()
15668 {
15669 return $ac_func ();
15670 ;
15671 return 0;
15672 }
15673 _ACEOF
15674 rm -f conftest.$ac_objext conftest$ac_exeext
15675 if { (ac_try="$ac_link"
15676 case "(($ac_try" in
15677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678 *) ac_try_echo=$ac_try;;
15679 esac
15680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681 (eval "$ac_link") 2>conftest.er1
15682 ac_status=$?
15683 grep -v '^ *+' conftest.er1 >conftest.err
15684 rm -f conftest.er1
15685 cat conftest.err >&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); } && {
15688 test -z "$ac_c_werror_flag" ||
15689 test ! -s conftest.err
15690 } && test -s conftest$ac_exeext &&
15691 $as_test_x conftest$ac_exeext; then
15692 eval "$as_ac_var=yes"
15693 else
15694 echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.$ac_ext >&5
15696
15697 eval "$as_ac_var=no"
15698 fi
15699
15700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15701 conftest$ac_exeext conftest.$ac_ext
15702 fi
15703 ac_res=`eval echo '${'$as_ac_var'}'`
15704 { echo "$as_me:$LINENO: result: $ac_res" >&5
15705 echo "${ECHO_T}$ac_res" >&6; }
15706 if test `eval echo '${'$as_ac_var'}'` = yes; then
15707 cat >>confdefs.h <<_ACEOF
15708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15709 _ACEOF
15710
15711 fi
15712 done
15713
15714
15715
15716 for ac_header in sys/un.h
15717 do
15718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15723 echo $ECHO_N "(cached) $ECHO_C" >&6
15724 fi
15725 ac_res=`eval echo '${'$as_ac_Header'}'`
15726 { echo "$as_me:$LINENO: result: $ac_res" >&5
15727 echo "${ECHO_T}$ac_res" >&6; }
15728 else
15729 # Is the header compilable?
15730 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15732 cat >conftest.$ac_ext <<_ACEOF
15733 /* confdefs.h. */
15734 _ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15738 $ac_includes_default
15739 #include <$ac_header>
15740 _ACEOF
15741 rm -f conftest.$ac_objext
15742 if { (ac_try="$ac_compile"
15743 case "(($ac_try" in
15744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745 *) ac_try_echo=$ac_try;;
15746 esac
15747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748 (eval "$ac_compile") 2>conftest.er1
15749 ac_status=$?
15750 grep -v '^ *+' conftest.er1 >conftest.err
15751 rm -f conftest.er1
15752 cat conftest.err >&5
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); } && {
15755 test -z "$ac_c_werror_flag" ||
15756 test ! -s conftest.err
15757 } && test -s conftest.$ac_objext; then
15758 ac_header_compiler=yes
15759 else
15760 echo "$as_me: failed program was:" >&5
15761 sed 's/^/| /' conftest.$ac_ext >&5
15762
15763 ac_header_compiler=no
15764 fi
15765
15766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15767 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15768 echo "${ECHO_T}$ac_header_compiler" >&6; }
15769
15770 # Is the header present?
15771 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15773 cat >conftest.$ac_ext <<_ACEOF
15774 /* confdefs.h. */
15775 _ACEOF
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h. */
15779 #include <$ac_header>
15780 _ACEOF
15781 if { (ac_try="$ac_cpp conftest.$ac_ext"
15782 case "(($ac_try" in
15783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784 *) ac_try_echo=$ac_try;;
15785 esac
15786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15788 ac_status=$?
15789 grep -v '^ *+' conftest.er1 >conftest.err
15790 rm -f conftest.er1
15791 cat conftest.err >&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } >/dev/null && {
15794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15795 test ! -s conftest.err
15796 }; then
15797 ac_header_preproc=yes
15798 else
15799 echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15801
15802 ac_header_preproc=no
15803 fi
15804
15805 rm -f conftest.err conftest.$ac_ext
15806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15807 echo "${ECHO_T}$ac_header_preproc" >&6; }
15808
15809 # So? What about this header?
15810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15811 yes:no: )
15812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15816 ac_header_preproc=yes
15817 ;;
15818 no:yes:* )
15819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15826 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15831
15832 ;;
15833 esac
15834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15837 echo $ECHO_N "(cached) $ECHO_C" >&6
15838 else
15839 eval "$as_ac_Header=\$ac_header_preproc"
15840 fi
15841 ac_res=`eval echo '${'$as_ac_Header'}'`
15842 { echo "$as_me:$LINENO: result: $ac_res" >&5
15843 echo "${ECHO_T}$ac_res" >&6; }
15844
15845 fi
15846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15847 cat >>confdefs.h <<_ACEOF
15848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15849 _ACEOF
15850
15851 fi
15852
15853 done
15854
15855
15856
15857
15858
15859
15860 for ac_header in $ac_header_list
15861 do
15862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15868 fi
15869 ac_res=`eval echo '${'$as_ac_Header'}'`
15870 { echo "$as_me:$LINENO: result: $ac_res" >&5
15871 echo "${ECHO_T}$ac_res" >&6; }
15872 else
15873 # Is the header compilable?
15874 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15876 cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h. */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882 $ac_includes_default
15883 #include <$ac_header>
15884 _ACEOF
15885 rm -f conftest.$ac_objext
15886 if { (ac_try="$ac_compile"
15887 case "(($ac_try" in
15888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889 *) ac_try_echo=$ac_try;;
15890 esac
15891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892 (eval "$ac_compile") 2>conftest.er1
15893 ac_status=$?
15894 grep -v '^ *+' conftest.er1 >conftest.err
15895 rm -f conftest.er1
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } && {
15899 test -z "$ac_c_werror_flag" ||
15900 test ! -s conftest.err
15901 } && test -s conftest.$ac_objext; then
15902 ac_header_compiler=yes
15903 else
15904 echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.$ac_ext >&5
15906
15907 ac_header_compiler=no
15908 fi
15909
15910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15912 echo "${ECHO_T}$ac_header_compiler" >&6; }
15913
15914 # Is the header present?
15915 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15917 cat >conftest.$ac_ext <<_ACEOF
15918 /* confdefs.h. */
15919 _ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15923 #include <$ac_header>
15924 _ACEOF
15925 if { (ac_try="$ac_cpp conftest.$ac_ext"
15926 case "(($ac_try" in
15927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15929 esac
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15932 ac_status=$?
15933 grep -v '^ *+' conftest.er1 >conftest.err
15934 rm -f conftest.er1
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } >/dev/null && {
15938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15939 test ! -s conftest.err
15940 }; then
15941 ac_header_preproc=yes
15942 else
15943 echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15945
15946 ac_header_preproc=no
15947 fi
15948
15949 rm -f conftest.err conftest.$ac_ext
15950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15951 echo "${ECHO_T}$ac_header_preproc" >&6; }
15952
15953 # So? What about this header?
15954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15955 yes:no: )
15956 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15957 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15959 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15960 ac_header_preproc=yes
15961 ;;
15962 no:yes:* )
15963 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15964 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15965 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15966 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15967 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15968 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15970 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15974 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15975
15976 ;;
15977 esac
15978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15982 else
15983 eval "$as_ac_Header=\$ac_header_preproc"
15984 fi
15985 ac_res=`eval echo '${'$as_ac_Header'}'`
15986 { echo "$as_me:$LINENO: result: $ac_res" >&5
15987 echo "${ECHO_T}$ac_res" >&6; }
15988
15989 fi
15990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15991 cat >>confdefs.h <<_ACEOF
15992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15993 _ACEOF
15994
15995 fi
15996
15997 done
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007 for ac_func in $ac_func_list
16008 do
16009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16010 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16013 echo $ECHO_N "(cached) $ECHO_C" >&6
16014 else
16015 cat >conftest.$ac_ext <<_ACEOF
16016 /* confdefs.h. */
16017 _ACEOF
16018 cat confdefs.h >>conftest.$ac_ext
16019 cat >>conftest.$ac_ext <<_ACEOF
16020 /* end confdefs.h. */
16021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16023 #define $ac_func innocuous_$ac_func
16024
16025 /* System header to define __stub macros and hopefully few prototypes,
16026 which can conflict with char $ac_func (); below.
16027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16028 <limits.h> exists even on freestanding compilers. */
16029
16030 #ifdef __STDC__
16031 # include <limits.h>
16032 #else
16033 # include <assert.h>
16034 #endif
16035
16036 #undef $ac_func
16037
16038 /* Override any GCC internal prototype to avoid an error.
16039 Use char because int might match the return type of a GCC
16040 builtin and then its argument prototype would still apply. */
16041 #ifdef __cplusplus
16042 extern "C"
16043 #endif
16044 char $ac_func ();
16045 /* The GNU C library defines this for functions which it implements
16046 to always fail with ENOSYS. Some functions are actually named
16047 something starting with __ and the normal name is an alias. */
16048 #if defined __stub_$ac_func || defined __stub___$ac_func
16049 choke me
16050 #endif
16051
16052 int
16053 main ()
16054 {
16055 return $ac_func ();
16056 ;
16057 return 0;
16058 }
16059 _ACEOF
16060 rm -f conftest.$ac_objext conftest$ac_exeext
16061 if { (ac_try="$ac_link"
16062 case "(($ac_try" in
16063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064 *) ac_try_echo=$ac_try;;
16065 esac
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067 (eval "$ac_link") 2>conftest.er1
16068 ac_status=$?
16069 grep -v '^ *+' conftest.er1 >conftest.err
16070 rm -f conftest.er1
16071 cat conftest.err >&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } && {
16074 test -z "$ac_c_werror_flag" ||
16075 test ! -s conftest.err
16076 } && test -s conftest$ac_exeext &&
16077 $as_test_x conftest$ac_exeext; then
16078 eval "$as_ac_var=yes"
16079 else
16080 echo "$as_me: failed program was:" >&5
16081 sed 's/^/| /' conftest.$ac_ext >&5
16082
16083 eval "$as_ac_var=no"
16084 fi
16085
16086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16087 conftest$ac_exeext conftest.$ac_ext
16088 fi
16089 ac_res=`eval echo '${'$as_ac_var'}'`
16090 { echo "$as_me:$LINENO: result: $ac_res" >&5
16091 echo "${ECHO_T}$ac_res" >&6; }
16092 if test `eval echo '${'$as_ac_var'}'` = yes; then
16093 cat >>confdefs.h <<_ACEOF
16094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16095 _ACEOF
16096
16097 fi
16098 done
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116 { echo "$as_me:$LINENO: checking for working mktime" >&5
16117 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16118 if test "${ac_cv_func_working_mktime+set}" = set; then
16119 echo $ECHO_N "(cached) $ECHO_C" >&6
16120 else
16121 if test "$cross_compiling" = yes; then
16122 ac_cv_func_working_mktime=no
16123 else
16124 cat >conftest.$ac_ext <<_ACEOF
16125 /* confdefs.h. */
16126 _ACEOF
16127 cat confdefs.h >>conftest.$ac_ext
16128 cat >>conftest.$ac_ext <<_ACEOF
16129 /* end confdefs.h. */
16130 /* Test program from Paul Eggert and Tony Leneis. */
16131 #ifdef TIME_WITH_SYS_TIME
16132 # include <sys/time.h>
16133 # include <time.h>
16134 #else
16135 # ifdef HAVE_SYS_TIME_H
16136 # include <sys/time.h>
16137 # else
16138 # include <time.h>
16139 # endif
16140 #endif
16141
16142 #include <stdlib.h>
16143
16144 #ifdef HAVE_UNISTD_H
16145 # include <unistd.h>
16146 #endif
16147
16148 #ifndef HAVE_ALARM
16149 # define alarm(X) /* empty */
16150 #endif
16151
16152 /* Work around redefinition to rpl_putenv by other config tests. */
16153 #undef putenv
16154
16155 static time_t time_t_max;
16156 static time_t time_t_min;
16157
16158 /* Values we'll use to set the TZ environment variable. */
16159 static char *tz_strings[] = {
16160 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16161 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16162 };
16163 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16164
16165 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16166 Based on a problem report from Andreas Jaeger. */
16167 static int
16168 spring_forward_gap ()
16169 {
16170 /* glibc (up to about 1998-10-07) failed this test. */
16171 struct tm tm;
16172
16173 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16174 instead of "TZ=America/Vancouver" in order to detect the bug even
16175 on systems that don't support the Olson extension, or don't have the
16176 full zoneinfo tables installed. */
16177 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16178
16179 tm.tm_year = 98;
16180 tm.tm_mon = 3;
16181 tm.tm_mday = 5;
16182 tm.tm_hour = 2;
16183 tm.tm_min = 0;
16184 tm.tm_sec = 0;
16185 tm.tm_isdst = -1;
16186 return mktime (&tm) != (time_t) -1;
16187 }
16188
16189 static int
16190 mktime_test1 (now)
16191 time_t now;
16192 {
16193 struct tm *lt;
16194 return ! (lt = localtime (&now)) || mktime (lt) == now;
16195 }
16196
16197 static int
16198 mktime_test (now)
16199 time_t now;
16200 {
16201 return (mktime_test1 (now)
16202 && mktime_test1 ((time_t) (time_t_max - now))
16203 && mktime_test1 ((time_t) (time_t_min + now)));
16204 }
16205
16206 static int
16207 irix_6_4_bug ()
16208 {
16209 /* Based on code from Ariel Faigon. */
16210 struct tm tm;
16211 tm.tm_year = 96;
16212 tm.tm_mon = 3;
16213 tm.tm_mday = 0;
16214 tm.tm_hour = 0;
16215 tm.tm_min = 0;
16216 tm.tm_sec = 0;
16217 tm.tm_isdst = -1;
16218 mktime (&tm);
16219 return tm.tm_mon == 2 && tm.tm_mday == 31;
16220 }
16221
16222 static int
16223 bigtime_test (j)
16224 int j;
16225 {
16226 struct tm tm;
16227 time_t now;
16228 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16229 now = mktime (&tm);
16230 if (now != (time_t) -1)
16231 {
16232 struct tm *lt = localtime (&now);
16233 if (! (lt
16234 && lt->tm_year == tm.tm_year
16235 && lt->tm_mon == tm.tm_mon
16236 && lt->tm_mday == tm.tm_mday
16237 && lt->tm_hour == tm.tm_hour
16238 && lt->tm_min == tm.tm_min
16239 && lt->tm_sec == tm.tm_sec
16240 && lt->tm_yday == tm.tm_yday
16241 && lt->tm_wday == tm.tm_wday
16242 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16243 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16244 return 0;
16245 }
16246 return 1;
16247 }
16248
16249 static int
16250 year_2050_test ()
16251 {
16252 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16253 ignoring leap seconds. */
16254 unsigned long int answer = 2527315200UL;
16255
16256 struct tm tm;
16257 time_t t;
16258 tm.tm_year = 2050 - 1900;
16259 tm.tm_mon = 2 - 1;
16260 tm.tm_mday = 1;
16261 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16262 tm.tm_isdst = -1;
16263
16264 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16265 instead of "TZ=America/Vancouver" in order to detect the bug even
16266 on systems that don't support the Olson extension, or don't have the
16267 full zoneinfo tables installed. */
16268 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16269
16270 t = mktime (&tm);
16271
16272 /* Check that the result is either a failure, or close enough
16273 to the correct answer that we can assume the discrepancy is
16274 due to leap seconds. */
16275 return (t == (time_t) -1
16276 || (0 < t && answer - 120 <= t && t <= answer + 120));
16277 }
16278
16279 int
16280 main ()
16281 {
16282 time_t t, delta;
16283 int i, j;
16284
16285 /* This test makes some buggy mktime implementations loop.
16286 Give up after 60 seconds; a mktime slower than that
16287 isn't worth using anyway. */
16288 alarm (60);
16289
16290 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16291 continue;
16292 time_t_max--;
16293 if ((time_t) -1 < 0)
16294 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16295 continue;
16296 delta = time_t_max / 997; /* a suitable prime number */
16297 for (i = 0; i < N_STRINGS; i++)
16298 {
16299 if (tz_strings[i])
16300 putenv (tz_strings[i]);
16301
16302 for (t = 0; t <= time_t_max - delta; t += delta)
16303 if (! mktime_test (t))
16304 return 1;
16305 if (! (mktime_test ((time_t) 1)
16306 && mktime_test ((time_t) (60 * 60))
16307 && mktime_test ((time_t) (60 * 60 * 24))))
16308 return 1;
16309
16310 for (j = 1; 0 < j; j *= 2)
16311 if (! bigtime_test (j))
16312 return 1;
16313 if (! bigtime_test (j - 1))
16314 return 1;
16315 }
16316 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16317 }
16318 _ACEOF
16319 rm -f conftest$ac_exeext
16320 if { (ac_try="$ac_link"
16321 case "(($ac_try" in
16322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323 *) ac_try_echo=$ac_try;;
16324 esac
16325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16326 (eval "$ac_link") 2>&5
16327 ac_status=$?
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16330 { (case "(($ac_try" in
16331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16332 *) ac_try_echo=$ac_try;;
16333 esac
16334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16335 (eval "$ac_try") 2>&5
16336 ac_status=$?
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); }; }; then
16339 ac_cv_func_working_mktime=yes
16340 else
16341 echo "$as_me: program exited with status $ac_status" >&5
16342 echo "$as_me: failed program was:" >&5
16343 sed 's/^/| /' conftest.$ac_ext >&5
16344
16345 ( exit $ac_status )
16346 ac_cv_func_working_mktime=no
16347 fi
16348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16349 fi
16350
16351
16352 fi
16353 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16354 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16355 if test $ac_cv_func_working_mktime = no; then
16356 case " $LIBOBJS " in
16357 *" mktime.$ac_objext "* ) ;;
16358 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16359 ;;
16360 esac
16361
16362 fi
16363
16364 if test "$ac_cv_func_working_mktime" = no; then
16365
16366 cat >>confdefs.h <<\_ACEOF
16367 #define BROKEN_MKTIME 1
16368 _ACEOF
16369
16370 fi
16371
16372 ac_have_func=no # yes means we've found a way to get the load average.
16373
16374 # Make sure getloadavg.c is where it belongs, at configure-time.
16375 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16376 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16377 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16378 { (exit 1); exit 1; }; }
16379
16380 ac_save_LIBS=$LIBS
16381
16382 # Check for getloadavg, but be sure not to touch the cache variable.
16383 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16384 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16385 if test "${ac_cv_func_getloadavg+set}" = set; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
16387 else
16388 cat >conftest.$ac_ext <<_ACEOF
16389 /* confdefs.h. */
16390 _ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16394 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16396 #define getloadavg innocuous_getloadavg
16397
16398 /* System header to define __stub macros and hopefully few prototypes,
16399 which can conflict with char getloadavg (); below.
16400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16401 <limits.h> exists even on freestanding compilers. */
16402
16403 #ifdef __STDC__
16404 # include <limits.h>
16405 #else
16406 # include <assert.h>
16407 #endif
16408
16409 #undef getloadavg
16410
16411 /* Override any GCC internal prototype to avoid an error.
16412 Use char because int might match the return type of a GCC
16413 builtin and then its argument prototype would still apply. */
16414 #ifdef __cplusplus
16415 extern "C"
16416 #endif
16417 char getloadavg ();
16418 /* The GNU C library defines this for functions which it implements
16419 to always fail with ENOSYS. Some functions are actually named
16420 something starting with __ and the normal name is an alias. */
16421 #if defined __stub_getloadavg || defined __stub___getloadavg
16422 choke me
16423 #endif
16424
16425 int
16426 main ()
16427 {
16428 return getloadavg ();
16429 ;
16430 return 0;
16431 }
16432 _ACEOF
16433 rm -f conftest.$ac_objext conftest$ac_exeext
16434 if { (ac_try="$ac_link"
16435 case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16438 esac
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440 (eval "$ac_link") 2>conftest.er1
16441 ac_status=$?
16442 grep -v '^ *+' conftest.er1 >conftest.err
16443 rm -f conftest.er1
16444 cat conftest.err >&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } && {
16447 test -z "$ac_c_werror_flag" ||
16448 test ! -s conftest.err
16449 } && test -s conftest$ac_exeext &&
16450 $as_test_x conftest$ac_exeext; then
16451 ac_cv_func_getloadavg=yes
16452 else
16453 echo "$as_me: failed program was:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16455
16456 ac_cv_func_getloadavg=no
16457 fi
16458
16459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16460 conftest$ac_exeext conftest.$ac_ext
16461 fi
16462 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16463 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16464 if test $ac_cv_func_getloadavg = yes; then
16465 exit 0
16466 else
16467 exit 1
16468 fi
16469 ) && ac_have_func=yes
16470
16471 # On HPUX9, an unprivileged user can get load averages through this function.
16472
16473 for ac_func in pstat_getdynamic
16474 do
16475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16480 else
16481 cat >conftest.$ac_ext <<_ACEOF
16482 /* confdefs.h. */
16483 _ACEOF
16484 cat confdefs.h >>conftest.$ac_ext
16485 cat >>conftest.$ac_ext <<_ACEOF
16486 /* end confdefs.h. */
16487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16489 #define $ac_func innocuous_$ac_func
16490
16491 /* System header to define __stub macros and hopefully few prototypes,
16492 which can conflict with char $ac_func (); below.
16493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16494 <limits.h> exists even on freestanding compilers. */
16495
16496 #ifdef __STDC__
16497 # include <limits.h>
16498 #else
16499 # include <assert.h>
16500 #endif
16501
16502 #undef $ac_func
16503
16504 /* Override any GCC internal prototype to avoid an error.
16505 Use char because int might match the return type of a GCC
16506 builtin and then its argument prototype would still apply. */
16507 #ifdef __cplusplus
16508 extern "C"
16509 #endif
16510 char $ac_func ();
16511 /* The GNU C library defines this for functions which it implements
16512 to always fail with ENOSYS. Some functions are actually named
16513 something starting with __ and the normal name is an alias. */
16514 #if defined __stub_$ac_func || defined __stub___$ac_func
16515 choke me
16516 #endif
16517
16518 int
16519 main ()
16520 {
16521 return $ac_func ();
16522 ;
16523 return 0;
16524 }
16525 _ACEOF
16526 rm -f conftest.$ac_objext conftest$ac_exeext
16527 if { (ac_try="$ac_link"
16528 case "(($ac_try" in
16529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16530 *) ac_try_echo=$ac_try;;
16531 esac
16532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16533 (eval "$ac_link") 2>conftest.er1
16534 ac_status=$?
16535 grep -v '^ *+' conftest.er1 >conftest.err
16536 rm -f conftest.er1
16537 cat conftest.err >&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); } && {
16540 test -z "$ac_c_werror_flag" ||
16541 test ! -s conftest.err
16542 } && test -s conftest$ac_exeext &&
16543 $as_test_x conftest$ac_exeext; then
16544 eval "$as_ac_var=yes"
16545 else
16546 echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16548
16549 eval "$as_ac_var=no"
16550 fi
16551
16552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16553 conftest$ac_exeext conftest.$ac_ext
16554 fi
16555 ac_res=`eval echo '${'$as_ac_var'}'`
16556 { echo "$as_me:$LINENO: result: $ac_res" >&5
16557 echo "${ECHO_T}$ac_res" >&6; }
16558 if test `eval echo '${'$as_ac_var'}'` = yes; then
16559 cat >>confdefs.h <<_ACEOF
16560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16561 _ACEOF
16562
16563 fi
16564 done
16565
16566
16567 # Solaris has libkstat which does not require root.
16568
16569 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16570 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16571 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16572 echo $ECHO_N "(cached) $ECHO_C" >&6
16573 else
16574 ac_check_lib_save_LIBS=$LIBS
16575 LIBS="-lkstat $LIBS"
16576 cat >conftest.$ac_ext <<_ACEOF
16577 /* confdefs.h. */
16578 _ACEOF
16579 cat confdefs.h >>conftest.$ac_ext
16580 cat >>conftest.$ac_ext <<_ACEOF
16581 /* end confdefs.h. */
16582
16583 /* Override any GCC internal prototype to avoid an error.
16584 Use char because int might match the return type of a GCC
16585 builtin and then its argument prototype would still apply. */
16586 #ifdef __cplusplus
16587 extern "C"
16588 #endif
16589 char kstat_open ();
16590 int
16591 main ()
16592 {
16593 return kstat_open ();
16594 ;
16595 return 0;
16596 }
16597 _ACEOF
16598 rm -f conftest.$ac_objext conftest$ac_exeext
16599 if { (ac_try="$ac_link"
16600 case "(($ac_try" in
16601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16602 *) ac_try_echo=$ac_try;;
16603 esac
16604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16605 (eval "$ac_link") 2>conftest.er1
16606 ac_status=$?
16607 grep -v '^ *+' conftest.er1 >conftest.err
16608 rm -f conftest.er1
16609 cat conftest.err >&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); } && {
16612 test -z "$ac_c_werror_flag" ||
16613 test ! -s conftest.err
16614 } && test -s conftest$ac_exeext &&
16615 $as_test_x conftest$ac_exeext; then
16616 ac_cv_lib_kstat_kstat_open=yes
16617 else
16618 echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16620
16621 ac_cv_lib_kstat_kstat_open=no
16622 fi
16623
16624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16625 conftest$ac_exeext conftest.$ac_ext
16626 LIBS=$ac_check_lib_save_LIBS
16627 fi
16628 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16629 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16630 if test $ac_cv_lib_kstat_kstat_open = yes; then
16631 cat >>confdefs.h <<_ACEOF
16632 #define HAVE_LIBKSTAT 1
16633 _ACEOF
16634
16635 LIBS="-lkstat $LIBS"
16636
16637 fi
16638
16639 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16640
16641 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16642 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16643 # to get the right answer into the cache.
16644 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16645 if test $ac_have_func = no; then
16646 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16647 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16648 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16650 else
16651 ac_check_lib_save_LIBS=$LIBS
16652 LIBS="-lelf $LIBS"
16653 cat >conftest.$ac_ext <<_ACEOF
16654 /* confdefs.h. */
16655 _ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16659
16660 /* Override any GCC internal prototype to avoid an error.
16661 Use char because int might match the return type of a GCC
16662 builtin and then its argument prototype would still apply. */
16663 #ifdef __cplusplus
16664 extern "C"
16665 #endif
16666 char elf_begin ();
16667 int
16668 main ()
16669 {
16670 return elf_begin ();
16671 ;
16672 return 0;
16673 }
16674 _ACEOF
16675 rm -f conftest.$ac_objext conftest$ac_exeext
16676 if { (ac_try="$ac_link"
16677 case "(($ac_try" in
16678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16679 *) ac_try_echo=$ac_try;;
16680 esac
16681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16682 (eval "$ac_link") 2>conftest.er1
16683 ac_status=$?
16684 grep -v '^ *+' conftest.er1 >conftest.err
16685 rm -f conftest.er1
16686 cat conftest.err >&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } && {
16689 test -z "$ac_c_werror_flag" ||
16690 test ! -s conftest.err
16691 } && test -s conftest$ac_exeext &&
16692 $as_test_x conftest$ac_exeext; then
16693 ac_cv_lib_elf_elf_begin=yes
16694 else
16695 echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16697
16698 ac_cv_lib_elf_elf_begin=no
16699 fi
16700
16701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16702 conftest$ac_exeext conftest.$ac_ext
16703 LIBS=$ac_check_lib_save_LIBS
16704 fi
16705 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16706 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16707 if test $ac_cv_lib_elf_elf_begin = yes; then
16708 LIBS="-lelf $LIBS"
16709 fi
16710
16711 fi
16712 if test $ac_have_func = no; then
16713 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16714 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16715 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16716 echo $ECHO_N "(cached) $ECHO_C" >&6
16717 else
16718 ac_check_lib_save_LIBS=$LIBS
16719 LIBS="-lkvm $LIBS"
16720 cat >conftest.$ac_ext <<_ACEOF
16721 /* confdefs.h. */
16722 _ACEOF
16723 cat confdefs.h >>conftest.$ac_ext
16724 cat >>conftest.$ac_ext <<_ACEOF
16725 /* end confdefs.h. */
16726
16727 /* Override any GCC internal prototype to avoid an error.
16728 Use char because int might match the return type of a GCC
16729 builtin and then its argument prototype would still apply. */
16730 #ifdef __cplusplus
16731 extern "C"
16732 #endif
16733 char kvm_open ();
16734 int
16735 main ()
16736 {
16737 return kvm_open ();
16738 ;
16739 return 0;
16740 }
16741 _ACEOF
16742 rm -f conftest.$ac_objext conftest$ac_exeext
16743 if { (ac_try="$ac_link"
16744 case "(($ac_try" in
16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746 *) ac_try_echo=$ac_try;;
16747 esac
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749 (eval "$ac_link") 2>conftest.er1
16750 ac_status=$?
16751 grep -v '^ *+' conftest.er1 >conftest.err
16752 rm -f conftest.er1
16753 cat conftest.err >&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); } && {
16756 test -z "$ac_c_werror_flag" ||
16757 test ! -s conftest.err
16758 } && test -s conftest$ac_exeext &&
16759 $as_test_x conftest$ac_exeext; then
16760 ac_cv_lib_kvm_kvm_open=yes
16761 else
16762 echo "$as_me: failed program was:" >&5
16763 sed 's/^/| /' conftest.$ac_ext >&5
16764
16765 ac_cv_lib_kvm_kvm_open=no
16766 fi
16767
16768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16769 conftest$ac_exeext conftest.$ac_ext
16770 LIBS=$ac_check_lib_save_LIBS
16771 fi
16772 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16773 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16774 if test $ac_cv_lib_kvm_kvm_open = yes; then
16775 LIBS="-lkvm $LIBS"
16776 fi
16777
16778 # Check for the 4.4BSD definition of getloadavg.
16779 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16780 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16781 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16782 echo $ECHO_N "(cached) $ECHO_C" >&6
16783 else
16784 ac_check_lib_save_LIBS=$LIBS
16785 LIBS="-lutil $LIBS"
16786 cat >conftest.$ac_ext <<_ACEOF
16787 /* confdefs.h. */
16788 _ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h. */
16792
16793 /* Override any GCC internal prototype to avoid an error.
16794 Use char because int might match the return type of a GCC
16795 builtin and then its argument prototype would still apply. */
16796 #ifdef __cplusplus
16797 extern "C"
16798 #endif
16799 char getloadavg ();
16800 int
16801 main ()
16802 {
16803 return getloadavg ();
16804 ;
16805 return 0;
16806 }
16807 _ACEOF
16808 rm -f conftest.$ac_objext conftest$ac_exeext
16809 if { (ac_try="$ac_link"
16810 case "(($ac_try" in
16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812 *) ac_try_echo=$ac_try;;
16813 esac
16814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815 (eval "$ac_link") 2>conftest.er1
16816 ac_status=$?
16817 grep -v '^ *+' conftest.er1 >conftest.err
16818 rm -f conftest.er1
16819 cat conftest.err >&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); } && {
16822 test -z "$ac_c_werror_flag" ||
16823 test ! -s conftest.err
16824 } && test -s conftest$ac_exeext &&
16825 $as_test_x conftest$ac_exeext; then
16826 ac_cv_lib_util_getloadavg=yes
16827 else
16828 echo "$as_me: failed program was:" >&5
16829 sed 's/^/| /' conftest.$ac_ext >&5
16830
16831 ac_cv_lib_util_getloadavg=no
16832 fi
16833
16834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16835 conftest$ac_exeext conftest.$ac_ext
16836 LIBS=$ac_check_lib_save_LIBS
16837 fi
16838 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16839 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16840 if test $ac_cv_lib_util_getloadavg = yes; then
16841 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16842 fi
16843
16844 fi
16845
16846 if test $ac_have_func = no; then
16847 # There is a commonly available library for RS/6000 AIX.
16848 # Since it is not a standard part of AIX, it might be installed locally.
16849 ac_getloadavg_LIBS=$LIBS
16850 LIBS="-L/usr/local/lib $LIBS"
16851 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16852 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16853 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16854 echo $ECHO_N "(cached) $ECHO_C" >&6
16855 else
16856 ac_check_lib_save_LIBS=$LIBS
16857 LIBS="-lgetloadavg $LIBS"
16858 cat >conftest.$ac_ext <<_ACEOF
16859 /* confdefs.h. */
16860 _ACEOF
16861 cat confdefs.h >>conftest.$ac_ext
16862 cat >>conftest.$ac_ext <<_ACEOF
16863 /* end confdefs.h. */
16864
16865 /* Override any GCC internal prototype to avoid an error.
16866 Use char because int might match the return type of a GCC
16867 builtin and then its argument prototype would still apply. */
16868 #ifdef __cplusplus
16869 extern "C"
16870 #endif
16871 char getloadavg ();
16872 int
16873 main ()
16874 {
16875 return getloadavg ();
16876 ;
16877 return 0;
16878 }
16879 _ACEOF
16880 rm -f conftest.$ac_objext conftest$ac_exeext
16881 if { (ac_try="$ac_link"
16882 case "(($ac_try" in
16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884 *) ac_try_echo=$ac_try;;
16885 esac
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887 (eval "$ac_link") 2>conftest.er1
16888 ac_status=$?
16889 grep -v '^ *+' conftest.er1 >conftest.err
16890 rm -f conftest.er1
16891 cat conftest.err >&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } && {
16894 test -z "$ac_c_werror_flag" ||
16895 test ! -s conftest.err
16896 } && test -s conftest$ac_exeext &&
16897 $as_test_x conftest$ac_exeext; then
16898 ac_cv_lib_getloadavg_getloadavg=yes
16899 else
16900 echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16902
16903 ac_cv_lib_getloadavg_getloadavg=no
16904 fi
16905
16906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16907 conftest$ac_exeext conftest.$ac_ext
16908 LIBS=$ac_check_lib_save_LIBS
16909 fi
16910 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16911 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16912 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16913 LIBS="-lgetloadavg $LIBS"
16914 else
16915 LIBS=$ac_getloadavg_LIBS
16916 fi
16917
16918 fi
16919
16920 # Make sure it is really in the library, if we think we found it,
16921 # otherwise set up the replacement function.
16922
16923 for ac_func in getloadavg
16924 do
16925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16926 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16930 else
16931 cat >conftest.$ac_ext <<_ACEOF
16932 /* confdefs.h. */
16933 _ACEOF
16934 cat confdefs.h >>conftest.$ac_ext
16935 cat >>conftest.$ac_ext <<_ACEOF
16936 /* end confdefs.h. */
16937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16939 #define $ac_func innocuous_$ac_func
16940
16941 /* System header to define __stub macros and hopefully few prototypes,
16942 which can conflict with char $ac_func (); below.
16943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16944 <limits.h> exists even on freestanding compilers. */
16945
16946 #ifdef __STDC__
16947 # include <limits.h>
16948 #else
16949 # include <assert.h>
16950 #endif
16951
16952 #undef $ac_func
16953
16954 /* Override any GCC internal prototype to avoid an error.
16955 Use char because int might match the return type of a GCC
16956 builtin and then its argument prototype would still apply. */
16957 #ifdef __cplusplus
16958 extern "C"
16959 #endif
16960 char $ac_func ();
16961 /* The GNU C library defines this for functions which it implements
16962 to always fail with ENOSYS. Some functions are actually named
16963 something starting with __ and the normal name is an alias. */
16964 #if defined __stub_$ac_func || defined __stub___$ac_func
16965 choke me
16966 #endif
16967
16968 int
16969 main ()
16970 {
16971 return $ac_func ();
16972 ;
16973 return 0;
16974 }
16975 _ACEOF
16976 rm -f conftest.$ac_objext conftest$ac_exeext
16977 if { (ac_try="$ac_link"
16978 case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16981 esac
16982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983 (eval "$ac_link") 2>conftest.er1
16984 ac_status=$?
16985 grep -v '^ *+' conftest.er1 >conftest.err
16986 rm -f conftest.er1
16987 cat conftest.err >&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } && {
16990 test -z "$ac_c_werror_flag" ||
16991 test ! -s conftest.err
16992 } && test -s conftest$ac_exeext &&
16993 $as_test_x conftest$ac_exeext; then
16994 eval "$as_ac_var=yes"
16995 else
16996 echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.$ac_ext >&5
16998
16999 eval "$as_ac_var=no"
17000 fi
17001
17002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17003 conftest$ac_exeext conftest.$ac_ext
17004 fi
17005 ac_res=`eval echo '${'$as_ac_var'}'`
17006 { echo "$as_me:$LINENO: result: $ac_res" >&5
17007 echo "${ECHO_T}$ac_res" >&6; }
17008 if test `eval echo '${'$as_ac_var'}'` = yes; then
17009 cat >>confdefs.h <<_ACEOF
17010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17011 _ACEOF
17012
17013 else
17014 case " $LIBOBJS " in
17015 *" getloadavg.$ac_objext "* ) ;;
17016 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17017 ;;
17018 esac
17019
17020
17021 cat >>confdefs.h <<\_ACEOF
17022 #define C_GETLOADAVG 1
17023 _ACEOF
17024
17025 # Figure out what our getloadavg.c needs.
17026 ac_have_func=no
17027 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17028 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17029 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17030 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17032 fi
17033 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17034 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17035 else
17036 # Is the header compilable?
17037 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17038 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17039 cat >conftest.$ac_ext <<_ACEOF
17040 /* confdefs.h. */
17041 _ACEOF
17042 cat confdefs.h >>conftest.$ac_ext
17043 cat >>conftest.$ac_ext <<_ACEOF
17044 /* end confdefs.h. */
17045 $ac_includes_default
17046 #include <sys/dg_sys_info.h>
17047 _ACEOF
17048 rm -f conftest.$ac_objext
17049 if { (ac_try="$ac_compile"
17050 case "(($ac_try" in
17051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052 *) ac_try_echo=$ac_try;;
17053 esac
17054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17055 (eval "$ac_compile") 2>conftest.er1
17056 ac_status=$?
17057 grep -v '^ *+' conftest.er1 >conftest.err
17058 rm -f conftest.er1
17059 cat conftest.err >&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } && {
17062 test -z "$ac_c_werror_flag" ||
17063 test ! -s conftest.err
17064 } && test -s conftest.$ac_objext; then
17065 ac_header_compiler=yes
17066 else
17067 echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17069
17070 ac_header_compiler=no
17071 fi
17072
17073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17075 echo "${ECHO_T}$ac_header_compiler" >&6; }
17076
17077 # Is the header present?
17078 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17079 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17080 cat >conftest.$ac_ext <<_ACEOF
17081 /* confdefs.h. */
17082 _ACEOF
17083 cat confdefs.h >>conftest.$ac_ext
17084 cat >>conftest.$ac_ext <<_ACEOF
17085 /* end confdefs.h. */
17086 #include <sys/dg_sys_info.h>
17087 _ACEOF
17088 if { (ac_try="$ac_cpp conftest.$ac_ext"
17089 case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17092 esac
17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17095 ac_status=$?
17096 grep -v '^ *+' conftest.er1 >conftest.err
17097 rm -f conftest.er1
17098 cat conftest.err >&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); } >/dev/null && {
17101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17102 test ! -s conftest.err
17103 }; then
17104 ac_header_preproc=yes
17105 else
17106 echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17108
17109 ac_header_preproc=no
17110 fi
17111
17112 rm -f conftest.err conftest.$ac_ext
17113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17114 echo "${ECHO_T}$ac_header_preproc" >&6; }
17115
17116 # So? What about this header?
17117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17118 yes:no: )
17119 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17120 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17121 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17122 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17123 ac_header_preproc=yes
17124 ;;
17125 no:yes:* )
17126 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17127 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17128 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17129 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17130 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17131 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17132 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17133 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17134 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17135 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17136 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17137 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17138
17139 ;;
17140 esac
17141 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17142 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17143 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
17145 else
17146 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17147 fi
17148 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17149 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17150
17151 fi
17152 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17153 ac_have_func=yes
17154
17155 cat >>confdefs.h <<\_ACEOF
17156 #define DGUX 1
17157 _ACEOF
17158
17159
17160 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17161 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17162 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17163 echo $ECHO_N "(cached) $ECHO_C" >&6
17164 else
17165 ac_check_lib_save_LIBS=$LIBS
17166 LIBS="-ldgc $LIBS"
17167 cat >conftest.$ac_ext <<_ACEOF
17168 /* confdefs.h. */
17169 _ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h. */
17173
17174 /* Override any GCC internal prototype to avoid an error.
17175 Use char because int might match the return type of a GCC
17176 builtin and then its argument prototype would still apply. */
17177 #ifdef __cplusplus
17178 extern "C"
17179 #endif
17180 char dg_sys_info ();
17181 int
17182 main ()
17183 {
17184 return dg_sys_info ();
17185 ;
17186 return 0;
17187 }
17188 _ACEOF
17189 rm -f conftest.$ac_objext conftest$ac_exeext
17190 if { (ac_try="$ac_link"
17191 case "(($ac_try" in
17192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193 *) ac_try_echo=$ac_try;;
17194 esac
17195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196 (eval "$ac_link") 2>conftest.er1
17197 ac_status=$?
17198 grep -v '^ *+' conftest.er1 >conftest.err
17199 rm -f conftest.er1
17200 cat conftest.err >&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } && {
17203 test -z "$ac_c_werror_flag" ||
17204 test ! -s conftest.err
17205 } && test -s conftest$ac_exeext &&
17206 $as_test_x conftest$ac_exeext; then
17207 ac_cv_lib_dgc_dg_sys_info=yes
17208 else
17209 echo "$as_me: failed program was:" >&5
17210 sed 's/^/| /' conftest.$ac_ext >&5
17211
17212 ac_cv_lib_dgc_dg_sys_info=no
17213 fi
17214
17215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17216 conftest$ac_exeext conftest.$ac_ext
17217 LIBS=$ac_check_lib_save_LIBS
17218 fi
17219 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17220 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17221 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17222 cat >>confdefs.h <<_ACEOF
17223 #define HAVE_LIBDGC 1
17224 _ACEOF
17225
17226 LIBS="-ldgc $LIBS"
17227
17228 fi
17229
17230 fi
17231
17232
17233
17234 if test "${ac_cv_header_locale_h+set}" = set; then
17235 { echo "$as_me:$LINENO: checking for locale.h" >&5
17236 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17237 if test "${ac_cv_header_locale_h+set}" = set; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17239 fi
17240 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17241 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17242 else
17243 # Is the header compilable?
17244 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17245 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17246 cat >conftest.$ac_ext <<_ACEOF
17247 /* confdefs.h. */
17248 _ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h. */
17252 $ac_includes_default
17253 #include <locale.h>
17254 _ACEOF
17255 rm -f conftest.$ac_objext
17256 if { (ac_try="$ac_compile"
17257 case "(($ac_try" in
17258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259 *) ac_try_echo=$ac_try;;
17260 esac
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262 (eval "$ac_compile") 2>conftest.er1
17263 ac_status=$?
17264 grep -v '^ *+' conftest.er1 >conftest.err
17265 rm -f conftest.er1
17266 cat conftest.err >&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); } && {
17269 test -z "$ac_c_werror_flag" ||
17270 test ! -s conftest.err
17271 } && test -s conftest.$ac_objext; then
17272 ac_header_compiler=yes
17273 else
17274 echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17276
17277 ac_header_compiler=no
17278 fi
17279
17280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17281 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17282 echo "${ECHO_T}$ac_header_compiler" >&6; }
17283
17284 # Is the header present?
17285 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17286 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17287 cat >conftest.$ac_ext <<_ACEOF
17288 /* confdefs.h. */
17289 _ACEOF
17290 cat confdefs.h >>conftest.$ac_ext
17291 cat >>conftest.$ac_ext <<_ACEOF
17292 /* end confdefs.h. */
17293 #include <locale.h>
17294 _ACEOF
17295 if { (ac_try="$ac_cpp conftest.$ac_ext"
17296 case "(($ac_try" in
17297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17298 *) ac_try_echo=$ac_try;;
17299 esac
17300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17302 ac_status=$?
17303 grep -v '^ *+' conftest.er1 >conftest.err
17304 rm -f conftest.er1
17305 cat conftest.err >&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } >/dev/null && {
17308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17309 test ! -s conftest.err
17310 }; then
17311 ac_header_preproc=yes
17312 else
17313 echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17315
17316 ac_header_preproc=no
17317 fi
17318
17319 rm -f conftest.err conftest.$ac_ext
17320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17321 echo "${ECHO_T}$ac_header_preproc" >&6; }
17322
17323 # So? What about this header?
17324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17325 yes:no: )
17326 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17327 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17328 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17329 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17330 ac_header_preproc=yes
17331 ;;
17332 no:yes:* )
17333 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17334 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17335 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17336 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17337 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17338 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17339 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17340 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17341 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17342 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17343 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17344 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17345
17346 ;;
17347 esac
17348 { echo "$as_me:$LINENO: checking for locale.h" >&5
17349 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17350 if test "${ac_cv_header_locale_h+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17352 else
17353 ac_cv_header_locale_h=$ac_header_preproc
17354 fi
17355 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17356 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17357
17358 fi
17359
17360
17361
17362 for ac_func in setlocale
17363 do
17364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17365 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17370 cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h. */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17378 #define $ac_func innocuous_$ac_func
17379
17380 /* System header to define __stub macros and hopefully few prototypes,
17381 which can conflict with char $ac_func (); below.
17382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17383 <limits.h> exists even on freestanding compilers. */
17384
17385 #ifdef __STDC__
17386 # include <limits.h>
17387 #else
17388 # include <assert.h>
17389 #endif
17390
17391 #undef $ac_func
17392
17393 /* Override any GCC internal prototype to avoid an error.
17394 Use char because int might match the return type of a GCC
17395 builtin and then its argument prototype would still apply. */
17396 #ifdef __cplusplus
17397 extern "C"
17398 #endif
17399 char $ac_func ();
17400 /* The GNU C library defines this for functions which it implements
17401 to always fail with ENOSYS. Some functions are actually named
17402 something starting with __ and the normal name is an alias. */
17403 #if defined __stub_$ac_func || defined __stub___$ac_func
17404 choke me
17405 #endif
17406
17407 int
17408 main ()
17409 {
17410 return $ac_func ();
17411 ;
17412 return 0;
17413 }
17414 _ACEOF
17415 rm -f conftest.$ac_objext conftest$ac_exeext
17416 if { (ac_try="$ac_link"
17417 case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17420 esac
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_link") 2>conftest.er1
17423 ac_status=$?
17424 grep -v '^ *+' conftest.er1 >conftest.err
17425 rm -f conftest.er1
17426 cat conftest.err >&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } && {
17429 test -z "$ac_c_werror_flag" ||
17430 test ! -s conftest.err
17431 } && test -s conftest$ac_exeext &&
17432 $as_test_x conftest$ac_exeext; then
17433 eval "$as_ac_var=yes"
17434 else
17435 echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17437
17438 eval "$as_ac_var=no"
17439 fi
17440
17441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17442 conftest$ac_exeext conftest.$ac_ext
17443 fi
17444 ac_res=`eval echo '${'$as_ac_var'}'`
17445 { echo "$as_me:$LINENO: result: $ac_res" >&5
17446 echo "${ECHO_T}$ac_res" >&6; }
17447 if test `eval echo '${'$as_ac_var'}'` = yes; then
17448 cat >>confdefs.h <<_ACEOF
17449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17450 _ACEOF
17451
17452 fi
17453 done
17454
17455
17456 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17457 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17458 # Irix 4.0.5F has the header but not the library.
17459 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17460 ac_have_func=yes
17461
17462 cat >>confdefs.h <<\_ACEOF
17463 #define SVR4 1
17464 _ACEOF
17465
17466 fi
17467
17468 if test $ac_have_func = no; then
17469 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17470 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17471 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17472 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 fi
17475 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17476 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17477 else
17478 # Is the header compilable?
17479 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17480 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17481 cat >conftest.$ac_ext <<_ACEOF
17482 /* confdefs.h. */
17483 _ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17487 $ac_includes_default
17488 #include <inq_stats/cpustats.h>
17489 _ACEOF
17490 rm -f conftest.$ac_objext
17491 if { (ac_try="$ac_compile"
17492 case "(($ac_try" in
17493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494 *) ac_try_echo=$ac_try;;
17495 esac
17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497 (eval "$ac_compile") 2>conftest.er1
17498 ac_status=$?
17499 grep -v '^ *+' conftest.er1 >conftest.err
17500 rm -f conftest.er1
17501 cat conftest.err >&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } && {
17504 test -z "$ac_c_werror_flag" ||
17505 test ! -s conftest.err
17506 } && test -s conftest.$ac_objext; then
17507 ac_header_compiler=yes
17508 else
17509 echo "$as_me: failed program was:" >&5
17510 sed 's/^/| /' conftest.$ac_ext >&5
17511
17512 ac_header_compiler=no
17513 fi
17514
17515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17517 echo "${ECHO_T}$ac_header_compiler" >&6; }
17518
17519 # Is the header present?
17520 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17521 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17522 cat >conftest.$ac_ext <<_ACEOF
17523 /* confdefs.h. */
17524 _ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h. */
17528 #include <inq_stats/cpustats.h>
17529 _ACEOF
17530 if { (ac_try="$ac_cpp conftest.$ac_ext"
17531 case "(($ac_try" in
17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17534 esac
17535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17537 ac_status=$?
17538 grep -v '^ *+' conftest.er1 >conftest.err
17539 rm -f conftest.er1
17540 cat conftest.err >&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } >/dev/null && {
17543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17544 test ! -s conftest.err
17545 }; then
17546 ac_header_preproc=yes
17547 else
17548 echo "$as_me: failed program was:" >&5
17549 sed 's/^/| /' conftest.$ac_ext >&5
17550
17551 ac_header_preproc=no
17552 fi
17553
17554 rm -f conftest.err conftest.$ac_ext
17555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17556 echo "${ECHO_T}$ac_header_preproc" >&6; }
17557
17558 # So? What about this header?
17559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17560 yes:no: )
17561 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17562 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17563 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17564 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17565 ac_header_preproc=yes
17566 ;;
17567 no:yes:* )
17568 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17569 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17570 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17571 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17572 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17573 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17574 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17575 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17576 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17577 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17578 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17579 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17580
17581 ;;
17582 esac
17583 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17584 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17585 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17587 else
17588 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17589 fi
17590 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17591 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17592
17593 fi
17594 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17595 ac_have_func=yes
17596
17597 cat >>confdefs.h <<\_ACEOF
17598 #define UMAX 1
17599 _ACEOF
17600
17601
17602 cat >>confdefs.h <<\_ACEOF
17603 #define UMAX4_3 1
17604 _ACEOF
17605
17606 fi
17607
17608
17609 fi
17610
17611 if test $ac_have_func = no; then
17612 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17613 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17614 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17615 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17616 echo $ECHO_N "(cached) $ECHO_C" >&6
17617 fi
17618 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17619 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17620 else
17621 # Is the header compilable?
17622 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17623 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17624 cat >conftest.$ac_ext <<_ACEOF
17625 /* confdefs.h. */
17626 _ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17630 $ac_includes_default
17631 #include <sys/cpustats.h>
17632 _ACEOF
17633 rm -f conftest.$ac_objext
17634 if { (ac_try="$ac_compile"
17635 case "(($ac_try" in
17636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637 *) ac_try_echo=$ac_try;;
17638 esac
17639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17640 (eval "$ac_compile") 2>conftest.er1
17641 ac_status=$?
17642 grep -v '^ *+' conftest.er1 >conftest.err
17643 rm -f conftest.er1
17644 cat conftest.err >&5
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } && {
17647 test -z "$ac_c_werror_flag" ||
17648 test ! -s conftest.err
17649 } && test -s conftest.$ac_objext; then
17650 ac_header_compiler=yes
17651 else
17652 echo "$as_me: failed program was:" >&5
17653 sed 's/^/| /' conftest.$ac_ext >&5
17654
17655 ac_header_compiler=no
17656 fi
17657
17658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17660 echo "${ECHO_T}$ac_header_compiler" >&6; }
17661
17662 # Is the header present?
17663 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17664 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17665 cat >conftest.$ac_ext <<_ACEOF
17666 /* confdefs.h. */
17667 _ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h. */
17671 #include <sys/cpustats.h>
17672 _ACEOF
17673 if { (ac_try="$ac_cpp conftest.$ac_ext"
17674 case "(($ac_try" in
17675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676 *) ac_try_echo=$ac_try;;
17677 esac
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17680 ac_status=$?
17681 grep -v '^ *+' conftest.er1 >conftest.err
17682 rm -f conftest.er1
17683 cat conftest.err >&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } >/dev/null && {
17686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17687 test ! -s conftest.err
17688 }; then
17689 ac_header_preproc=yes
17690 else
17691 echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17693
17694 ac_header_preproc=no
17695 fi
17696
17697 rm -f conftest.err conftest.$ac_ext
17698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17699 echo "${ECHO_T}$ac_header_preproc" >&6; }
17700
17701 # So? What about this header?
17702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17703 yes:no: )
17704 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17705 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17706 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17707 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17708 ac_header_preproc=yes
17709 ;;
17710 no:yes:* )
17711 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17712 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17713 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17714 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17715 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17716 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17717 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17718 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17719 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17720 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17721 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17722 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17723
17724 ;;
17725 esac
17726 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17727 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17728 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17729 echo $ECHO_N "(cached) $ECHO_C" >&6
17730 else
17731 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17732 fi
17733 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17734 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17735
17736 fi
17737 if test $ac_cv_header_sys_cpustats_h = yes; then
17738 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17739 #define UMAX 1
17740 _ACEOF
17741
17742 fi
17743
17744
17745 fi
17746
17747 if test $ac_have_func = no; then
17748
17749 for ac_header in mach/mach.h
17750 do
17751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17757 fi
17758 ac_res=`eval echo '${'$as_ac_Header'}'`
17759 { echo "$as_me:$LINENO: result: $ac_res" >&5
17760 echo "${ECHO_T}$ac_res" >&6; }
17761 else
17762 # Is the header compilable?
17763 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17765 cat >conftest.$ac_ext <<_ACEOF
17766 /* confdefs.h. */
17767 _ACEOF
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h. */
17771 $ac_includes_default
17772 #include <$ac_header>
17773 _ACEOF
17774 rm -f conftest.$ac_objext
17775 if { (ac_try="$ac_compile"
17776 case "(($ac_try" in
17777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17778 *) ac_try_echo=$ac_try;;
17779 esac
17780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17781 (eval "$ac_compile") 2>conftest.er1
17782 ac_status=$?
17783 grep -v '^ *+' conftest.er1 >conftest.err
17784 rm -f conftest.er1
17785 cat conftest.err >&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); } && {
17788 test -z "$ac_c_werror_flag" ||
17789 test ! -s conftest.err
17790 } && test -s conftest.$ac_objext; then
17791 ac_header_compiler=yes
17792 else
17793 echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17795
17796 ac_header_compiler=no
17797 fi
17798
17799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17800 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17801 echo "${ECHO_T}$ac_header_compiler" >&6; }
17802
17803 # Is the header present?
17804 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17806 cat >conftest.$ac_ext <<_ACEOF
17807 /* confdefs.h. */
17808 _ACEOF
17809 cat confdefs.h >>conftest.$ac_ext
17810 cat >>conftest.$ac_ext <<_ACEOF
17811 /* end confdefs.h. */
17812 #include <$ac_header>
17813 _ACEOF
17814 if { (ac_try="$ac_cpp conftest.$ac_ext"
17815 case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17818 esac
17819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17821 ac_status=$?
17822 grep -v '^ *+' conftest.er1 >conftest.err
17823 rm -f conftest.er1
17824 cat conftest.err >&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); } >/dev/null && {
17827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17828 test ! -s conftest.err
17829 }; then
17830 ac_header_preproc=yes
17831 else
17832 echo "$as_me: failed program was:" >&5
17833 sed 's/^/| /' conftest.$ac_ext >&5
17834
17835 ac_header_preproc=no
17836 fi
17837
17838 rm -f conftest.err conftest.$ac_ext
17839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17840 echo "${ECHO_T}$ac_header_preproc" >&6; }
17841
17842 # So? What about this header?
17843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17844 yes:no: )
17845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17849 ac_header_preproc=yes
17850 ;;
17851 no:yes:* )
17852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17859 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17864
17865 ;;
17866 esac
17867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17870 echo $ECHO_N "(cached) $ECHO_C" >&6
17871 else
17872 eval "$as_ac_Header=\$ac_header_preproc"
17873 fi
17874 ac_res=`eval echo '${'$as_ac_Header'}'`
17875 { echo "$as_me:$LINENO: result: $ac_res" >&5
17876 echo "${ECHO_T}$ac_res" >&6; }
17877
17878 fi
17879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17880 cat >>confdefs.h <<_ACEOF
17881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17882 _ACEOF
17883
17884 fi
17885
17886 done
17887
17888 fi
17889
17890
17891 for ac_header in nlist.h
17892 do
17893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17898 echo $ECHO_N "(cached) $ECHO_C" >&6
17899 fi
17900 ac_res=`eval echo '${'$as_ac_Header'}'`
17901 { echo "$as_me:$LINENO: result: $ac_res" >&5
17902 echo "${ECHO_T}$ac_res" >&6; }
17903 else
17904 # Is the header compilable?
17905 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17907 cat >conftest.$ac_ext <<_ACEOF
17908 /* confdefs.h. */
17909 _ACEOF
17910 cat confdefs.h >>conftest.$ac_ext
17911 cat >>conftest.$ac_ext <<_ACEOF
17912 /* end confdefs.h. */
17913 $ac_includes_default
17914 #include <$ac_header>
17915 _ACEOF
17916 rm -f conftest.$ac_objext
17917 if { (ac_try="$ac_compile"
17918 case "(($ac_try" in
17919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920 *) ac_try_echo=$ac_try;;
17921 esac
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923 (eval "$ac_compile") 2>conftest.er1
17924 ac_status=$?
17925 grep -v '^ *+' conftest.er1 >conftest.err
17926 rm -f conftest.er1
17927 cat conftest.err >&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); } && {
17930 test -z "$ac_c_werror_flag" ||
17931 test ! -s conftest.err
17932 } && test -s conftest.$ac_objext; then
17933 ac_header_compiler=yes
17934 else
17935 echo "$as_me: failed program was:" >&5
17936 sed 's/^/| /' conftest.$ac_ext >&5
17937
17938 ac_header_compiler=no
17939 fi
17940
17941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17943 echo "${ECHO_T}$ac_header_compiler" >&6; }
17944
17945 # Is the header present?
17946 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17948 cat >conftest.$ac_ext <<_ACEOF
17949 /* confdefs.h. */
17950 _ACEOF
17951 cat confdefs.h >>conftest.$ac_ext
17952 cat >>conftest.$ac_ext <<_ACEOF
17953 /* end confdefs.h. */
17954 #include <$ac_header>
17955 _ACEOF
17956 if { (ac_try="$ac_cpp conftest.$ac_ext"
17957 case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17960 esac
17961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17963 ac_status=$?
17964 grep -v '^ *+' conftest.er1 >conftest.err
17965 rm -f conftest.er1
17966 cat conftest.err >&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } >/dev/null && {
17969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17970 test ! -s conftest.err
17971 }; then
17972 ac_header_preproc=yes
17973 else
17974 echo "$as_me: failed program was:" >&5
17975 sed 's/^/| /' conftest.$ac_ext >&5
17976
17977 ac_header_preproc=no
17978 fi
17979
17980 rm -f conftest.err conftest.$ac_ext
17981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17982 echo "${ECHO_T}$ac_header_preproc" >&6; }
17983
17984 # So? What about this header?
17985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17986 yes:no: )
17987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17991 ac_header_preproc=yes
17992 ;;
17993 no:yes:* )
17994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18006
18007 ;;
18008 esac
18009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014 eval "$as_ac_Header=\$ac_header_preproc"
18015 fi
18016 ac_res=`eval echo '${'$as_ac_Header'}'`
18017 { echo "$as_me:$LINENO: result: $ac_res" >&5
18018 echo "${ECHO_T}$ac_res" >&6; }
18019
18020 fi
18021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18022 cat >>confdefs.h <<_ACEOF
18023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18024 _ACEOF
18025 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18026 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18027 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18029 else
18030 cat >conftest.$ac_ext <<_ACEOF
18031 /* confdefs.h. */
18032 _ACEOF
18033 cat confdefs.h >>conftest.$ac_ext
18034 cat >>conftest.$ac_ext <<_ACEOF
18035 /* end confdefs.h. */
18036 #include <nlist.h>
18037
18038 int
18039 main ()
18040 {
18041 static struct nlist ac_aggr;
18042 if (ac_aggr.n_un.n_name)
18043 return 0;
18044 ;
18045 return 0;
18046 }
18047 _ACEOF
18048 rm -f conftest.$ac_objext
18049 if { (ac_try="$ac_compile"
18050 case "(($ac_try" in
18051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052 *) ac_try_echo=$ac_try;;
18053 esac
18054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18055 (eval "$ac_compile") 2>conftest.er1
18056 ac_status=$?
18057 grep -v '^ *+' conftest.er1 >conftest.err
18058 rm -f conftest.er1
18059 cat conftest.err >&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); } && {
18062 test -z "$ac_c_werror_flag" ||
18063 test ! -s conftest.err
18064 } && test -s conftest.$ac_objext; then
18065 ac_cv_member_struct_nlist_n_un_n_name=yes
18066 else
18067 echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18069
18070 cat >conftest.$ac_ext <<_ACEOF
18071 /* confdefs.h. */
18072 _ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h. */
18076 #include <nlist.h>
18077
18078 int
18079 main ()
18080 {
18081 static struct nlist ac_aggr;
18082 if (sizeof ac_aggr.n_un.n_name)
18083 return 0;
18084 ;
18085 return 0;
18086 }
18087 _ACEOF
18088 rm -f conftest.$ac_objext
18089 if { (ac_try="$ac_compile"
18090 case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18093 esac
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_compile") 2>conftest.er1
18096 ac_status=$?
18097 grep -v '^ *+' conftest.er1 >conftest.err
18098 rm -f conftest.er1
18099 cat conftest.err >&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } && {
18102 test -z "$ac_c_werror_flag" ||
18103 test ! -s conftest.err
18104 } && test -s conftest.$ac_objext; then
18105 ac_cv_member_struct_nlist_n_un_n_name=yes
18106 else
18107 echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18109
18110 ac_cv_member_struct_nlist_n_un_n_name=no
18111 fi
18112
18113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18114 fi
18115
18116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18117 fi
18118 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18119 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18120 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18121
18122 cat >>confdefs.h <<_ACEOF
18123 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18124 _ACEOF
18125
18126
18127 cat >>confdefs.h <<\_ACEOF
18128 #define NLIST_NAME_UNION 1
18129 _ACEOF
18130
18131 fi
18132
18133
18134 fi
18135
18136 done
18137
18138 fi
18139 done
18140
18141
18142 # Some definitions of getloadavg require that the program be installed setgid.
18143 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18144 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18145 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18147 else
18148 cat >conftest.$ac_ext <<_ACEOF
18149 /* confdefs.h. */
18150 _ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18154 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18155 #ifdef LDAV_PRIVILEGED
18156 Yowza Am I SETGID yet
18157 #endif
18158 _ACEOF
18159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18160 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18161 ac_cv_func_getloadavg_setgid=yes
18162 else
18163 ac_cv_func_getloadavg_setgid=no
18164 fi
18165 rm -f conftest*
18166
18167 fi
18168 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18169 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18170 if test $ac_cv_func_getloadavg_setgid = yes; then
18171 NEED_SETGID=true
18172
18173 cat >>confdefs.h <<\_ACEOF
18174 #define GETLOADAVG_PRIVILEGED 1
18175 _ACEOF
18176
18177 else
18178 NEED_SETGID=false
18179 fi
18180
18181 if test $ac_cv_func_getloadavg_setgid = yes; then
18182 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18183 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18184 if test "${ac_cv_group_kmem+set}" = set; then
18185 echo $ECHO_N "(cached) $ECHO_C" >&6
18186 else
18187 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18188 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18189 # If we got an error (system does not support symlinks), try without -L.
18190 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18191 ac_cv_group_kmem=`echo $ac_ls_output \
18192 | sed -ne 's/[ ][ ]*/ /g;
18193 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18194 / /s/.* //;p;'`
18195
18196 fi
18197 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18198 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18199 KMEM_GROUP=$ac_cv_group_kmem
18200 fi
18201 if test "x$ac_save_LIBS" = x; then
18202 GETLOADAVG_LIBS=$LIBS
18203 else
18204 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18205 fi
18206 LIBS=$ac_save_LIBS
18207
18208
18209
18210 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18211 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18212 if test "${ac_cv_sys_largefile_source+set}" = set; then
18213 echo $ECHO_N "(cached) $ECHO_C" >&6
18214 else
18215 while :; do
18216 cat >conftest.$ac_ext <<_ACEOF
18217 /* confdefs.h. */
18218 _ACEOF
18219 cat confdefs.h >>conftest.$ac_ext
18220 cat >>conftest.$ac_ext <<_ACEOF
18221 /* end confdefs.h. */
18222 #include <stdio.h>
18223 int
18224 main ()
18225 {
18226 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18227 ;
18228 return 0;
18229 }
18230 _ACEOF
18231 rm -f conftest.$ac_objext conftest$ac_exeext
18232 if { (ac_try="$ac_link"
18233 case "(($ac_try" in
18234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235 *) ac_try_echo=$ac_try;;
18236 esac
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238 (eval "$ac_link") 2>conftest.er1
18239 ac_status=$?
18240 grep -v '^ *+' conftest.er1 >conftest.err
18241 rm -f conftest.er1
18242 cat conftest.err >&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } && {
18245 test -z "$ac_c_werror_flag" ||
18246 test ! -s conftest.err
18247 } && test -s conftest$ac_exeext &&
18248 $as_test_x conftest$ac_exeext; then
18249 ac_cv_sys_largefile_source=no; break
18250 else
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18253
18254
18255 fi
18256
18257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18258 conftest$ac_exeext conftest.$ac_ext
18259 cat >conftest.$ac_ext <<_ACEOF
18260 /* confdefs.h. */
18261 _ACEOF
18262 cat confdefs.h >>conftest.$ac_ext
18263 cat >>conftest.$ac_ext <<_ACEOF
18264 /* end confdefs.h. */
18265 #define _LARGEFILE_SOURCE 1
18266 #include <stdio.h>
18267 int
18268 main ()
18269 {
18270 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18271 ;
18272 return 0;
18273 }
18274 _ACEOF
18275 rm -f conftest.$ac_objext conftest$ac_exeext
18276 if { (ac_try="$ac_link"
18277 case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18280 esac
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_link") 2>conftest.er1
18283 ac_status=$?
18284 grep -v '^ *+' conftest.er1 >conftest.err
18285 rm -f conftest.er1
18286 cat conftest.err >&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); } && {
18289 test -z "$ac_c_werror_flag" ||
18290 test ! -s conftest.err
18291 } && test -s conftest$ac_exeext &&
18292 $as_test_x conftest$ac_exeext; then
18293 ac_cv_sys_largefile_source=1; break
18294 else
18295 echo "$as_me: failed program was:" >&5
18296 sed 's/^/| /' conftest.$ac_ext >&5
18297
18298
18299 fi
18300
18301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18302 conftest$ac_exeext conftest.$ac_ext
18303 ac_cv_sys_largefile_source=unknown
18304 break
18305 done
18306 fi
18307 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18308 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18309 case $ac_cv_sys_largefile_source in #(
18310 no | unknown) ;;
18311 *)
18312 cat >>confdefs.h <<_ACEOF
18313 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18314 _ACEOF
18315 ;;
18316 esac
18317 rm -f conftest*
18318
18319 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18320 # in glibc 2.1.3, but that breaks too many other things.
18321 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18322 if test $ac_cv_sys_largefile_source != unknown; then
18323
18324 cat >>confdefs.h <<\_ACEOF
18325 #define HAVE_FSEEKO 1
18326 _ACEOF
18327
18328 fi
18329
18330
18331 # Configure getopt.
18332 # getopt.m4 serial 10
18333
18334 # The getopt module assume you want GNU getopt, with getopt_long etc,
18335 # rather than vanilla POSIX getopt. This means your your code should
18336 # always include <getopt.h> for the getopt prototypes.
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348 # Prerequisites of lib/getopt*.
18349
18350
18351
18352
18353 GETOPT_H=
18354
18355 for ac_header in getopt.h
18356 do
18357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18362 echo $ECHO_N "(cached) $ECHO_C" >&6
18363 fi
18364 ac_res=`eval echo '${'$as_ac_Header'}'`
18365 { echo "$as_me:$LINENO: result: $ac_res" >&5
18366 echo "${ECHO_T}$ac_res" >&6; }
18367 else
18368 # Is the header compilable?
18369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18371 cat >conftest.$ac_ext <<_ACEOF
18372 /* confdefs.h. */
18373 _ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18377 $ac_includes_default
18378 #include <$ac_header>
18379 _ACEOF
18380 rm -f conftest.$ac_objext
18381 if { (ac_try="$ac_compile"
18382 case "(($ac_try" in
18383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18384 *) ac_try_echo=$ac_try;;
18385 esac
18386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18387 (eval "$ac_compile") 2>conftest.er1
18388 ac_status=$?
18389 grep -v '^ *+' conftest.er1 >conftest.err
18390 rm -f conftest.er1
18391 cat conftest.err >&5
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); } && {
18394 test -z "$ac_c_werror_flag" ||
18395 test ! -s conftest.err
18396 } && test -s conftest.$ac_objext; then
18397 ac_header_compiler=yes
18398 else
18399 echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.$ac_ext >&5
18401
18402 ac_header_compiler=no
18403 fi
18404
18405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18407 echo "${ECHO_T}$ac_header_compiler" >&6; }
18408
18409 # Is the header present?
18410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18412 cat >conftest.$ac_ext <<_ACEOF
18413 /* confdefs.h. */
18414 _ACEOF
18415 cat confdefs.h >>conftest.$ac_ext
18416 cat >>conftest.$ac_ext <<_ACEOF
18417 /* end confdefs.h. */
18418 #include <$ac_header>
18419 _ACEOF
18420 if { (ac_try="$ac_cpp conftest.$ac_ext"
18421 case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18424 esac
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18427 ac_status=$?
18428 grep -v '^ *+' conftest.er1 >conftest.err
18429 rm -f conftest.er1
18430 cat conftest.err >&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } >/dev/null && {
18433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18434 test ! -s conftest.err
18435 }; then
18436 ac_header_preproc=yes
18437 else
18438 echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18440
18441 ac_header_preproc=no
18442 fi
18443
18444 rm -f conftest.err conftest.$ac_ext
18445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18446 echo "${ECHO_T}$ac_header_preproc" >&6; }
18447
18448 # So? What about this header?
18449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18450 yes:no: )
18451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18455 ac_header_preproc=yes
18456 ;;
18457 no:yes:* )
18458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18470
18471 ;;
18472 esac
18473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18476 echo $ECHO_N "(cached) $ECHO_C" >&6
18477 else
18478 eval "$as_ac_Header=\$ac_header_preproc"
18479 fi
18480 ac_res=`eval echo '${'$as_ac_Header'}'`
18481 { echo "$as_me:$LINENO: result: $ac_res" >&5
18482 echo "${ECHO_T}$ac_res" >&6; }
18483
18484 fi
18485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18486 cat >>confdefs.h <<_ACEOF
18487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18488 _ACEOF
18489
18490 else
18491 GETOPT_H=getopt.h
18492 fi
18493
18494 done
18495
18496 if test -z "$GETOPT_H"; then
18497
18498 for ac_func in getopt_long_only
18499 do
18500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18501 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18503 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18504 echo $ECHO_N "(cached) $ECHO_C" >&6
18505 else
18506 cat >conftest.$ac_ext <<_ACEOF
18507 /* confdefs.h. */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18514 #define $ac_func innocuous_$ac_func
18515
18516 /* System header to define __stub macros and hopefully few prototypes,
18517 which can conflict with char $ac_func (); below.
18518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18519 <limits.h> exists even on freestanding compilers. */
18520
18521 #ifdef __STDC__
18522 # include <limits.h>
18523 #else
18524 # include <assert.h>
18525 #endif
18526
18527 #undef $ac_func
18528
18529 /* Override any GCC internal prototype to avoid an error.
18530 Use char because int might match the return type of a GCC
18531 builtin and then its argument prototype would still apply. */
18532 #ifdef __cplusplus
18533 extern "C"
18534 #endif
18535 char $ac_func ();
18536 /* The GNU C library defines this for functions which it implements
18537 to always fail with ENOSYS. Some functions are actually named
18538 something starting with __ and the normal name is an alias. */
18539 #if defined __stub_$ac_func || defined __stub___$ac_func
18540 choke me
18541 #endif
18542
18543 int
18544 main ()
18545 {
18546 return $ac_func ();
18547 ;
18548 return 0;
18549 }
18550 _ACEOF
18551 rm -f conftest.$ac_objext conftest$ac_exeext
18552 if { (ac_try="$ac_link"
18553 case "(($ac_try" in
18554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555 *) ac_try_echo=$ac_try;;
18556 esac
18557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18558 (eval "$ac_link") 2>conftest.er1
18559 ac_status=$?
18560 grep -v '^ *+' conftest.er1 >conftest.err
18561 rm -f conftest.er1
18562 cat conftest.err >&5
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); } && {
18565 test -z "$ac_c_werror_flag" ||
18566 test ! -s conftest.err
18567 } && test -s conftest$ac_exeext &&
18568 $as_test_x conftest$ac_exeext; then
18569 eval "$as_ac_var=yes"
18570 else
18571 echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18573
18574 eval "$as_ac_var=no"
18575 fi
18576
18577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18578 conftest$ac_exeext conftest.$ac_ext
18579 fi
18580 ac_res=`eval echo '${'$as_ac_var'}'`
18581 { echo "$as_me:$LINENO: result: $ac_res" >&5
18582 echo "${ECHO_T}$ac_res" >&6; }
18583 if test `eval echo '${'$as_ac_var'}'` = yes; then
18584 cat >>confdefs.h <<_ACEOF
18585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18586 _ACEOF
18587
18588 else
18589 GETOPT_H=getopt.h
18590 fi
18591 done
18592
18593 fi
18594
18595 if test -z "$GETOPT_H"; then
18596 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18597 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18598 if test "${ac_cv_have_decl_optreset+set}" = set; then
18599 echo $ECHO_N "(cached) $ECHO_C" >&6
18600 else
18601 cat >conftest.$ac_ext <<_ACEOF
18602 /* confdefs.h. */
18603 _ACEOF
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
18606 /* end confdefs.h. */
18607 #include <getopt.h>
18608
18609 int
18610 main ()
18611 {
18612 #ifndef optreset
18613 (void) optreset;
18614 #endif
18615
18616 ;
18617 return 0;
18618 }
18619 _ACEOF
18620 rm -f conftest.$ac_objext
18621 if { (ac_try="$ac_compile"
18622 case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18625 esac
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_compile") 2>conftest.er1
18628 ac_status=$?
18629 grep -v '^ *+' conftest.er1 >conftest.err
18630 rm -f conftest.er1
18631 cat conftest.err >&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } && {
18634 test -z "$ac_c_werror_flag" ||
18635 test ! -s conftest.err
18636 } && test -s conftest.$ac_objext; then
18637 ac_cv_have_decl_optreset=yes
18638 else
18639 echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18641
18642 ac_cv_have_decl_optreset=no
18643 fi
18644
18645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18646 fi
18647 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18648 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18649 if test $ac_cv_have_decl_optreset = yes; then
18650 GETOPT_H=getopt.h
18651 fi
18652
18653 fi
18654
18655 if test -z "$GETOPT_H"; then
18656 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18657 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18658 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18659 echo $ECHO_N "(cached) $ECHO_C" >&6
18660 else
18661 if test "$cross_compiling" = yes; then
18662 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18663 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18664 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18665 echo $ECHO_N "(cached) $ECHO_C" >&6
18666 else
18667 cat >conftest.$ac_ext <<_ACEOF
18668 /* confdefs.h. */
18669 _ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18673 #include <getopt.h>
18674
18675 int
18676 main ()
18677 {
18678 #ifndef getopt_clip
18679 (void) getopt_clip;
18680 #endif
18681
18682 ;
18683 return 0;
18684 }
18685 _ACEOF
18686 rm -f conftest.$ac_objext
18687 if { (ac_try="$ac_compile"
18688 case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18691 esac
18692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693 (eval "$ac_compile") 2>conftest.er1
18694 ac_status=$?
18695 grep -v '^ *+' conftest.er1 >conftest.err
18696 rm -f conftest.er1
18697 cat conftest.err >&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } && {
18700 test -z "$ac_c_werror_flag" ||
18701 test ! -s conftest.err
18702 } && test -s conftest.$ac_objext; then
18703 ac_cv_have_decl_getopt_clip=yes
18704 else
18705 echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18707
18708 ac_cv_have_decl_getopt_clip=no
18709 fi
18710
18711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18712 fi
18713 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18714 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18715 if test $ac_cv_have_decl_getopt_clip = yes; then
18716 gl_cv_func_gnu_getopt=no
18717 else
18718 gl_cv_func_gnu_getopt=yes
18719 fi
18720
18721 else
18722 cat >conftest.$ac_ext <<_ACEOF
18723 /* confdefs.h. */
18724 _ACEOF
18725 cat confdefs.h >>conftest.$ac_ext
18726 cat >>conftest.$ac_ext <<_ACEOF
18727 /* end confdefs.h. */
18728 #include <getopt.h>
18729 int
18730 main ()
18731 {
18732
18733 char *myargv[3];
18734 myargv[0] = "conftest";
18735 myargv[1] = "-+";
18736 myargv[2] = 0;
18737 return getopt (2, myargv, "+a") != '?';
18738
18739 ;
18740 return 0;
18741 }
18742 _ACEOF
18743 rm -f conftest$ac_exeext
18744 if { (ac_try="$ac_link"
18745 case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18748 esac
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_link") 2>&5
18751 ac_status=$?
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18754 { (case "(($ac_try" in
18755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18756 *) ac_try_echo=$ac_try;;
18757 esac
18758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18759 (eval "$ac_try") 2>&5
18760 ac_status=$?
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); }; }; then
18763 gl_cv_func_gnu_getopt=yes
18764 else
18765 echo "$as_me: program exited with status $ac_status" >&5
18766 echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.$ac_ext >&5
18768
18769 ( exit $ac_status )
18770 gl_cv_func_gnu_getopt=no
18771 fi
18772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18773 fi
18774
18775
18776 fi
18777 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18778 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18779 if test "$gl_cv_func_gnu_getopt" = "no"; then
18780 GETOPT_H=getopt.h
18781 fi
18782 fi
18783
18784
18785
18786 if test -n "$GETOPT_H"; then
18787
18788
18789 GETOPT_H=getopt.h
18790
18791 cat >>confdefs.h <<\_ACEOF
18792 #define __GETOPT_PREFIX rpl_
18793 _ACEOF
18794
18795
18796
18797 :
18798 GETOPTOBJS='getopt.o getopt1.o'
18799
18800 fi
18801
18802
18803
18804
18805 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18806 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18807 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18809 else
18810 # Use it with a single arg.
18811 cat >conftest.$ac_ext <<_ACEOF
18812 /* confdefs.h. */
18813 _ACEOF
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h. */
18817 $ac_includes_default
18818 int
18819 main ()
18820 {
18821 getpgrp (0);
18822 ;
18823 return 0;
18824 }
18825 _ACEOF
18826 rm -f conftest.$ac_objext
18827 if { (ac_try="$ac_compile"
18828 case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18831 esac
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_compile") 2>conftest.er1
18834 ac_status=$?
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } && {
18840 test -z "$ac_c_werror_flag" ||
18841 test ! -s conftest.err
18842 } && test -s conftest.$ac_objext; then
18843 ac_cv_func_getpgrp_void=no
18844 else
18845 echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18847
18848 ac_cv_func_getpgrp_void=yes
18849 fi
18850
18851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18852
18853 fi
18854 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18855 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18856 if test $ac_cv_func_getpgrp_void = yes; then
18857
18858 cat >>confdefs.h <<\_ACEOF
18859 #define GETPGRP_VOID 1
18860 _ACEOF
18861
18862 fi
18863
18864
18865
18866 for ac_func in strftime
18867 do
18868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18872 echo $ECHO_N "(cached) $ECHO_C" >&6
18873 else
18874 cat >conftest.$ac_ext <<_ACEOF
18875 /* confdefs.h. */
18876 _ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18882 #define $ac_func innocuous_$ac_func
18883
18884 /* System header to define __stub macros and hopefully few prototypes,
18885 which can conflict with char $ac_func (); below.
18886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18887 <limits.h> exists even on freestanding compilers. */
18888
18889 #ifdef __STDC__
18890 # include <limits.h>
18891 #else
18892 # include <assert.h>
18893 #endif
18894
18895 #undef $ac_func
18896
18897 /* Override any GCC internal prototype to avoid an error.
18898 Use char because int might match the return type of a GCC
18899 builtin and then its argument prototype would still apply. */
18900 #ifdef __cplusplus
18901 extern "C"
18902 #endif
18903 char $ac_func ();
18904 /* The GNU C library defines this for functions which it implements
18905 to always fail with ENOSYS. Some functions are actually named
18906 something starting with __ and the normal name is an alias. */
18907 #if defined __stub_$ac_func || defined __stub___$ac_func
18908 choke me
18909 #endif
18910
18911 int
18912 main ()
18913 {
18914 return $ac_func ();
18915 ;
18916 return 0;
18917 }
18918 _ACEOF
18919 rm -f conftest.$ac_objext conftest$ac_exeext
18920 if { (ac_try="$ac_link"
18921 case "(($ac_try" in
18922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18923 *) ac_try_echo=$ac_try;;
18924 esac
18925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18926 (eval "$ac_link") 2>conftest.er1
18927 ac_status=$?
18928 grep -v '^ *+' conftest.er1 >conftest.err
18929 rm -f conftest.er1
18930 cat conftest.err >&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } && {
18933 test -z "$ac_c_werror_flag" ||
18934 test ! -s conftest.err
18935 } && test -s conftest$ac_exeext &&
18936 $as_test_x conftest$ac_exeext; then
18937 eval "$as_ac_var=yes"
18938 else
18939 echo "$as_me: failed program was:" >&5
18940 sed 's/^/| /' conftest.$ac_ext >&5
18941
18942 eval "$as_ac_var=no"
18943 fi
18944
18945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18946 conftest$ac_exeext conftest.$ac_ext
18947 fi
18948 ac_res=`eval echo '${'$as_ac_var'}'`
18949 { echo "$as_me:$LINENO: result: $ac_res" >&5
18950 echo "${ECHO_T}$ac_res" >&6; }
18951 if test `eval echo '${'$as_ac_var'}'` = yes; then
18952 cat >>confdefs.h <<_ACEOF
18953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18954 _ACEOF
18955
18956 else
18957 # strftime is in -lintl on SCO UNIX.
18958 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18959 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18960 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18962 else
18963 ac_check_lib_save_LIBS=$LIBS
18964 LIBS="-lintl $LIBS"
18965 cat >conftest.$ac_ext <<_ACEOF
18966 /* confdefs.h. */
18967 _ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18971
18972 /* Override any GCC internal prototype to avoid an error.
18973 Use char because int might match the return type of a GCC
18974 builtin and then its argument prototype would still apply. */
18975 #ifdef __cplusplus
18976 extern "C"
18977 #endif
18978 char strftime ();
18979 int
18980 main ()
18981 {
18982 return strftime ();
18983 ;
18984 return 0;
18985 }
18986 _ACEOF
18987 rm -f conftest.$ac_objext conftest$ac_exeext
18988 if { (ac_try="$ac_link"
18989 case "(($ac_try" in
18990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18991 *) ac_try_echo=$ac_try;;
18992 esac
18993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18994 (eval "$ac_link") 2>conftest.er1
18995 ac_status=$?
18996 grep -v '^ *+' conftest.er1 >conftest.err
18997 rm -f conftest.er1
18998 cat conftest.err >&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } && {
19001 test -z "$ac_c_werror_flag" ||
19002 test ! -s conftest.err
19003 } && test -s conftest$ac_exeext &&
19004 $as_test_x conftest$ac_exeext; then
19005 ac_cv_lib_intl_strftime=yes
19006 else
19007 echo "$as_me: failed program was:" >&5
19008 sed 's/^/| /' conftest.$ac_ext >&5
19009
19010 ac_cv_lib_intl_strftime=no
19011 fi
19012
19013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19014 conftest$ac_exeext conftest.$ac_ext
19015 LIBS=$ac_check_lib_save_LIBS
19016 fi
19017 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19018 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19019 if test $ac_cv_lib_intl_strftime = yes; then
19020 cat >>confdefs.h <<\_ACEOF
19021 #define HAVE_STRFTIME 1
19022 _ACEOF
19023
19024 LIBS="-lintl $LIBS"
19025 fi
19026
19027 fi
19028 done
19029
19030
19031 # UNIX98 PTYs.
19032
19033 for ac_func in grantpt
19034 do
19035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19040 else
19041 cat >conftest.$ac_ext <<_ACEOF
19042 /* confdefs.h. */
19043 _ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h. */
19047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19049 #define $ac_func innocuous_$ac_func
19050
19051 /* System header to define __stub macros and hopefully few prototypes,
19052 which can conflict with char $ac_func (); below.
19053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19054 <limits.h> exists even on freestanding compilers. */
19055
19056 #ifdef __STDC__
19057 # include <limits.h>
19058 #else
19059 # include <assert.h>
19060 #endif
19061
19062 #undef $ac_func
19063
19064 /* Override any GCC internal prototype to avoid an error.
19065 Use char because int might match the return type of a GCC
19066 builtin and then its argument prototype would still apply. */
19067 #ifdef __cplusplus
19068 extern "C"
19069 #endif
19070 char $ac_func ();
19071 /* The GNU C library defines this for functions which it implements
19072 to always fail with ENOSYS. Some functions are actually named
19073 something starting with __ and the normal name is an alias. */
19074 #if defined __stub_$ac_func || defined __stub___$ac_func
19075 choke me
19076 #endif
19077
19078 int
19079 main ()
19080 {
19081 return $ac_func ();
19082 ;
19083 return 0;
19084 }
19085 _ACEOF
19086 rm -f conftest.$ac_objext conftest$ac_exeext
19087 if { (ac_try="$ac_link"
19088 case "(($ac_try" in
19089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090 *) ac_try_echo=$ac_try;;
19091 esac
19092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093 (eval "$ac_link") 2>conftest.er1
19094 ac_status=$?
19095 grep -v '^ *+' conftest.er1 >conftest.err
19096 rm -f conftest.er1
19097 cat conftest.err >&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } && {
19100 test -z "$ac_c_werror_flag" ||
19101 test ! -s conftest.err
19102 } && test -s conftest$ac_exeext &&
19103 $as_test_x conftest$ac_exeext; then
19104 eval "$as_ac_var=yes"
19105 else
19106 echo "$as_me: failed program was:" >&5
19107 sed 's/^/| /' conftest.$ac_ext >&5
19108
19109 eval "$as_ac_var=no"
19110 fi
19111
19112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19113 conftest$ac_exeext conftest.$ac_ext
19114 fi
19115 ac_res=`eval echo '${'$as_ac_var'}'`
19116 { echo "$as_me:$LINENO: result: $ac_res" >&5
19117 echo "${ECHO_T}$ac_res" >&6; }
19118 if test `eval echo '${'$as_ac_var'}'` = yes; then
19119 cat >>confdefs.h <<_ACEOF
19120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19121 _ACEOF
19122
19123 fi
19124 done
19125
19126
19127 # PTY-related GNU extensions.
19128
19129 for ac_func in getpt
19130 do
19131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19135 echo $ECHO_N "(cached) $ECHO_C" >&6
19136 else
19137 cat >conftest.$ac_ext <<_ACEOF
19138 /* confdefs.h. */
19139 _ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19145 #define $ac_func innocuous_$ac_func
19146
19147 /* System header to define __stub macros and hopefully few prototypes,
19148 which can conflict with char $ac_func (); below.
19149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19150 <limits.h> exists even on freestanding compilers. */
19151
19152 #ifdef __STDC__
19153 # include <limits.h>
19154 #else
19155 # include <assert.h>
19156 #endif
19157
19158 #undef $ac_func
19159
19160 /* Override any GCC internal prototype to avoid an error.
19161 Use char because int might match the return type of a GCC
19162 builtin and then its argument prototype would still apply. */
19163 #ifdef __cplusplus
19164 extern "C"
19165 #endif
19166 char $ac_func ();
19167 /* The GNU C library defines this for functions which it implements
19168 to always fail with ENOSYS. Some functions are actually named
19169 something starting with __ and the normal name is an alias. */
19170 #if defined __stub_$ac_func || defined __stub___$ac_func
19171 choke me
19172 #endif
19173
19174 int
19175 main ()
19176 {
19177 return $ac_func ();
19178 ;
19179 return 0;
19180 }
19181 _ACEOF
19182 rm -f conftest.$ac_objext conftest$ac_exeext
19183 if { (ac_try="$ac_link"
19184 case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19187 esac
19188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189 (eval "$ac_link") 2>conftest.er1
19190 ac_status=$?
19191 grep -v '^ *+' conftest.er1 >conftest.err
19192 rm -f conftest.er1
19193 cat conftest.err >&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } && {
19196 test -z "$ac_c_werror_flag" ||
19197 test ! -s conftest.err
19198 } && test -s conftest$ac_exeext &&
19199 $as_test_x conftest$ac_exeext; then
19200 eval "$as_ac_var=yes"
19201 else
19202 echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.$ac_ext >&5
19204
19205 eval "$as_ac_var=no"
19206 fi
19207
19208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19209 conftest$ac_exeext conftest.$ac_ext
19210 fi
19211 ac_res=`eval echo '${'$as_ac_var'}'`
19212 { echo "$as_me:$LINENO: result: $ac_res" >&5
19213 echo "${ECHO_T}$ac_res" >&6; }
19214 if test `eval echo '${'$as_ac_var'}'` = yes; then
19215 cat >>confdefs.h <<_ACEOF
19216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19217 _ACEOF
19218
19219 fi
19220 done
19221
19222
19223 # Check this now, so that we will NOT find the above functions in ncurses.
19224 # That is because we have not set up to link ncurses in lib-src.
19225 # It's better to believe a function is not available
19226 # than to expect to find it in ncurses.
19227
19228 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19229 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19230 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19231 echo $ECHO_N "(cached) $ECHO_C" >&6
19232 else
19233 ac_check_lib_save_LIBS=$LIBS
19234 LIBS="-lncurses $LIBS"
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
19242 /* Override any GCC internal prototype to avoid an error.
19243 Use char because int might match the return type of a GCC
19244 builtin and then its argument prototype would still apply. */
19245 #ifdef __cplusplus
19246 extern "C"
19247 #endif
19248 char tparm ();
19249 int
19250 main ()
19251 {
19252 return tparm ();
19253 ;
19254 return 0;
19255 }
19256 _ACEOF
19257 rm -f conftest.$ac_objext conftest$ac_exeext
19258 if { (ac_try="$ac_link"
19259 case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19262 esac
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264 (eval "$ac_link") 2>conftest.er1
19265 ac_status=$?
19266 grep -v '^ *+' conftest.er1 >conftest.err
19267 rm -f conftest.er1
19268 cat conftest.err >&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); } && {
19271 test -z "$ac_c_werror_flag" ||
19272 test ! -s conftest.err
19273 } && test -s conftest$ac_exeext &&
19274 $as_test_x conftest$ac_exeext; then
19275 ac_cv_lib_ncurses_tparm=yes
19276 else
19277 echo "$as_me: failed program was:" >&5
19278 sed 's/^/| /' conftest.$ac_ext >&5
19279
19280 ac_cv_lib_ncurses_tparm=no
19281 fi
19282
19283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19284 conftest$ac_exeext conftest.$ac_ext
19285 LIBS=$ac_check_lib_save_LIBS
19286 fi
19287 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19288 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19289 if test $ac_cv_lib_ncurses_tparm = yes; then
19290 cat >>confdefs.h <<_ACEOF
19291 #define HAVE_LIBNCURSES 1
19292 _ACEOF
19293
19294 LIBS="-lncurses $LIBS"
19295
19296 fi
19297
19298
19299 # Do we need the Hesiod library to provide the support routines?
19300 if test "$with_hesiod" = yes ; then
19301 # Don't set $LIBS here -- see comments above.
19302 resolv=no
19303 { echo "$as_me:$LINENO: checking for res_send" >&5
19304 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19305 if test "${ac_cv_func_res_send+set}" = set; then
19306 echo $ECHO_N "(cached) $ECHO_C" >&6
19307 else
19308 cat >conftest.$ac_ext <<_ACEOF
19309 /* confdefs.h. */
19310 _ACEOF
19311 cat confdefs.h >>conftest.$ac_ext
19312 cat >>conftest.$ac_ext <<_ACEOF
19313 /* end confdefs.h. */
19314 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19316 #define res_send innocuous_res_send
19317
19318 /* System header to define __stub macros and hopefully few prototypes,
19319 which can conflict with char res_send (); below.
19320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19321 <limits.h> exists even on freestanding compilers. */
19322
19323 #ifdef __STDC__
19324 # include <limits.h>
19325 #else
19326 # include <assert.h>
19327 #endif
19328
19329 #undef res_send
19330
19331 /* Override any GCC internal prototype to avoid an error.
19332 Use char because int might match the return type of a GCC
19333 builtin and then its argument prototype would still apply. */
19334 #ifdef __cplusplus
19335 extern "C"
19336 #endif
19337 char res_send ();
19338 /* The GNU C library defines this for functions which it implements
19339 to always fail with ENOSYS. Some functions are actually named
19340 something starting with __ and the normal name is an alias. */
19341 #if defined __stub_res_send || defined __stub___res_send
19342 choke me
19343 #endif
19344
19345 int
19346 main ()
19347 {
19348 return res_send ();
19349 ;
19350 return 0;
19351 }
19352 _ACEOF
19353 rm -f conftest.$ac_objext conftest$ac_exeext
19354 if { (ac_try="$ac_link"
19355 case "(($ac_try" in
19356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357 *) ac_try_echo=$ac_try;;
19358 esac
19359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360 (eval "$ac_link") 2>conftest.er1
19361 ac_status=$?
19362 grep -v '^ *+' conftest.er1 >conftest.err
19363 rm -f conftest.er1
19364 cat conftest.err >&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } && {
19367 test -z "$ac_c_werror_flag" ||
19368 test ! -s conftest.err
19369 } && test -s conftest$ac_exeext &&
19370 $as_test_x conftest$ac_exeext; then
19371 ac_cv_func_res_send=yes
19372 else
19373 echo "$as_me: failed program was:" >&5
19374 sed 's/^/| /' conftest.$ac_ext >&5
19375
19376 ac_cv_func_res_send=no
19377 fi
19378
19379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19380 conftest$ac_exeext conftest.$ac_ext
19381 fi
19382 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19383 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19384 if test $ac_cv_func_res_send = yes; then
19385 :
19386 else
19387 { echo "$as_me:$LINENO: checking for __res_send" >&5
19388 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19389 if test "${ac_cv_func___res_send+set}" = set; then
19390 echo $ECHO_N "(cached) $ECHO_C" >&6
19391 else
19392 cat >conftest.$ac_ext <<_ACEOF
19393 /* confdefs.h. */
19394 _ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19398 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19400 #define __res_send innocuous___res_send
19401
19402 /* System header to define __stub macros and hopefully few prototypes,
19403 which can conflict with char __res_send (); below.
19404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19405 <limits.h> exists even on freestanding compilers. */
19406
19407 #ifdef __STDC__
19408 # include <limits.h>
19409 #else
19410 # include <assert.h>
19411 #endif
19412
19413 #undef __res_send
19414
19415 /* Override any GCC internal prototype to avoid an error.
19416 Use char because int might match the return type of a GCC
19417 builtin and then its argument prototype would still apply. */
19418 #ifdef __cplusplus
19419 extern "C"
19420 #endif
19421 char __res_send ();
19422 /* The GNU C library defines this for functions which it implements
19423 to always fail with ENOSYS. Some functions are actually named
19424 something starting with __ and the normal name is an alias. */
19425 #if defined __stub___res_send || defined __stub_____res_send
19426 choke me
19427 #endif
19428
19429 int
19430 main ()
19431 {
19432 return __res_send ();
19433 ;
19434 return 0;
19435 }
19436 _ACEOF
19437 rm -f conftest.$ac_objext conftest$ac_exeext
19438 if { (ac_try="$ac_link"
19439 case "(($ac_try" in
19440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441 *) ac_try_echo=$ac_try;;
19442 esac
19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444 (eval "$ac_link") 2>conftest.er1
19445 ac_status=$?
19446 grep -v '^ *+' conftest.er1 >conftest.err
19447 rm -f conftest.er1
19448 cat conftest.err >&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); } && {
19451 test -z "$ac_c_werror_flag" ||
19452 test ! -s conftest.err
19453 } && test -s conftest$ac_exeext &&
19454 $as_test_x conftest$ac_exeext; then
19455 ac_cv_func___res_send=yes
19456 else
19457 echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.$ac_ext >&5
19459
19460 ac_cv_func___res_send=no
19461 fi
19462
19463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19464 conftest$ac_exeext conftest.$ac_ext
19465 fi
19466 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19467 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19468 if test $ac_cv_func___res_send = yes; then
19469 :
19470 else
19471 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19472 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19473 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19475 else
19476 ac_check_lib_save_LIBS=$LIBS
19477 LIBS="-lresolv $LIBS"
19478 cat >conftest.$ac_ext <<_ACEOF
19479 /* confdefs.h. */
19480 _ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h. */
19484
19485 /* Override any GCC internal prototype to avoid an error.
19486 Use char because int might match the return type of a GCC
19487 builtin and then its argument prototype would still apply. */
19488 #ifdef __cplusplus
19489 extern "C"
19490 #endif
19491 char res_send ();
19492 int
19493 main ()
19494 {
19495 return res_send ();
19496 ;
19497 return 0;
19498 }
19499 _ACEOF
19500 rm -f conftest.$ac_objext conftest$ac_exeext
19501 if { (ac_try="$ac_link"
19502 case "(($ac_try" in
19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504 *) ac_try_echo=$ac_try;;
19505 esac
19506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507 (eval "$ac_link") 2>conftest.er1
19508 ac_status=$?
19509 grep -v '^ *+' conftest.er1 >conftest.err
19510 rm -f conftest.er1
19511 cat conftest.err >&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } && {
19514 test -z "$ac_c_werror_flag" ||
19515 test ! -s conftest.err
19516 } && test -s conftest$ac_exeext &&
19517 $as_test_x conftest$ac_exeext; then
19518 ac_cv_lib_resolv_res_send=yes
19519 else
19520 echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19522
19523 ac_cv_lib_resolv_res_send=no
19524 fi
19525
19526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19527 conftest$ac_exeext conftest.$ac_ext
19528 LIBS=$ac_check_lib_save_LIBS
19529 fi
19530 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19531 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19532 if test $ac_cv_lib_resolv_res_send = yes; then
19533 resolv=yes
19534 else
19535 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19536 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19537 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19538 echo $ECHO_N "(cached) $ECHO_C" >&6
19539 else
19540 ac_check_lib_save_LIBS=$LIBS
19541 LIBS="-lresolv $LIBS"
19542 cat >conftest.$ac_ext <<_ACEOF
19543 /* confdefs.h. */
19544 _ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h. */
19548
19549 /* Override any GCC internal prototype to avoid an error.
19550 Use char because int might match the return type of a GCC
19551 builtin and then its argument prototype would still apply. */
19552 #ifdef __cplusplus
19553 extern "C"
19554 #endif
19555 char __res_send ();
19556 int
19557 main ()
19558 {
19559 return __res_send ();
19560 ;
19561 return 0;
19562 }
19563 _ACEOF
19564 rm -f conftest.$ac_objext conftest$ac_exeext
19565 if { (ac_try="$ac_link"
19566 case "(($ac_try" in
19567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19568 *) ac_try_echo=$ac_try;;
19569 esac
19570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19571 (eval "$ac_link") 2>conftest.er1
19572 ac_status=$?
19573 grep -v '^ *+' conftest.er1 >conftest.err
19574 rm -f conftest.er1
19575 cat conftest.err >&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); } && {
19578 test -z "$ac_c_werror_flag" ||
19579 test ! -s conftest.err
19580 } && test -s conftest$ac_exeext &&
19581 $as_test_x conftest$ac_exeext; then
19582 ac_cv_lib_resolv___res_send=yes
19583 else
19584 echo "$as_me: failed program was:" >&5
19585 sed 's/^/| /' conftest.$ac_ext >&5
19586
19587 ac_cv_lib_resolv___res_send=no
19588 fi
19589
19590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19591 conftest$ac_exeext conftest.$ac_ext
19592 LIBS=$ac_check_lib_save_LIBS
19593 fi
19594 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19595 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19596 if test $ac_cv_lib_resolv___res_send = yes; then
19597 resolv=yes
19598 fi
19599
19600 fi
19601
19602 fi
19603
19604 fi
19605
19606 if test "$resolv" = yes ; then
19607 RESOLVLIB=-lresolv
19608
19609 cat >>confdefs.h <<\_ACEOF
19610 #define HAVE_LIBRESOLV 1
19611 _ACEOF
19612
19613 else
19614 RESOLVLIB=
19615 fi
19616 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19617 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19618 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19619 echo $ECHO_N "(cached) $ECHO_C" >&6
19620 else
19621 cat >conftest.$ac_ext <<_ACEOF
19622 /* confdefs.h. */
19623 _ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19627 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19629 #define hes_getmailhost innocuous_hes_getmailhost
19630
19631 /* System header to define __stub macros and hopefully few prototypes,
19632 which can conflict with char hes_getmailhost (); below.
19633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19634 <limits.h> exists even on freestanding compilers. */
19635
19636 #ifdef __STDC__
19637 # include <limits.h>
19638 #else
19639 # include <assert.h>
19640 #endif
19641
19642 #undef hes_getmailhost
19643
19644 /* Override any GCC internal prototype to avoid an error.
19645 Use char because int might match the return type of a GCC
19646 builtin and then its argument prototype would still apply. */
19647 #ifdef __cplusplus
19648 extern "C"
19649 #endif
19650 char hes_getmailhost ();
19651 /* The GNU C library defines this for functions which it implements
19652 to always fail with ENOSYS. Some functions are actually named
19653 something starting with __ and the normal name is an alias. */
19654 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19655 choke me
19656 #endif
19657
19658 int
19659 main ()
19660 {
19661 return hes_getmailhost ();
19662 ;
19663 return 0;
19664 }
19665 _ACEOF
19666 rm -f conftest.$ac_objext conftest$ac_exeext
19667 if { (ac_try="$ac_link"
19668 case "(($ac_try" in
19669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19670 *) ac_try_echo=$ac_try;;
19671 esac
19672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19673 (eval "$ac_link") 2>conftest.er1
19674 ac_status=$?
19675 grep -v '^ *+' conftest.er1 >conftest.err
19676 rm -f conftest.er1
19677 cat conftest.err >&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); } && {
19680 test -z "$ac_c_werror_flag" ||
19681 test ! -s conftest.err
19682 } && test -s conftest$ac_exeext &&
19683 $as_test_x conftest$ac_exeext; then
19684 ac_cv_func_hes_getmailhost=yes
19685 else
19686 echo "$as_me: failed program was:" >&5
19687 sed 's/^/| /' conftest.$ac_ext >&5
19688
19689 ac_cv_func_hes_getmailhost=no
19690 fi
19691
19692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19693 conftest$ac_exeext conftest.$ac_ext
19694 fi
19695 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19696 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19697 if test $ac_cv_func_hes_getmailhost = yes; then
19698 :
19699 else
19700 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19701 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19702 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19703 echo $ECHO_N "(cached) $ECHO_C" >&6
19704 else
19705 ac_check_lib_save_LIBS=$LIBS
19706 LIBS="-lhesiod $RESOLVLIB $LIBS"
19707 cat >conftest.$ac_ext <<_ACEOF
19708 /* confdefs.h. */
19709 _ACEOF
19710 cat confdefs.h >>conftest.$ac_ext
19711 cat >>conftest.$ac_ext <<_ACEOF
19712 /* end confdefs.h. */
19713
19714 /* Override any GCC internal prototype to avoid an error.
19715 Use char because int might match the return type of a GCC
19716 builtin and then its argument prototype would still apply. */
19717 #ifdef __cplusplus
19718 extern "C"
19719 #endif
19720 char hes_getmailhost ();
19721 int
19722 main ()
19723 {
19724 return hes_getmailhost ();
19725 ;
19726 return 0;
19727 }
19728 _ACEOF
19729 rm -f conftest.$ac_objext conftest$ac_exeext
19730 if { (ac_try="$ac_link"
19731 case "(($ac_try" in
19732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733 *) ac_try_echo=$ac_try;;
19734 esac
19735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736 (eval "$ac_link") 2>conftest.er1
19737 ac_status=$?
19738 grep -v '^ *+' conftest.er1 >conftest.err
19739 rm -f conftest.er1
19740 cat conftest.err >&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } && {
19743 test -z "$ac_c_werror_flag" ||
19744 test ! -s conftest.err
19745 } && test -s conftest$ac_exeext &&
19746 $as_test_x conftest$ac_exeext; then
19747 ac_cv_lib_hesiod_hes_getmailhost=yes
19748 else
19749 echo "$as_me: failed program was:" >&5
19750 sed 's/^/| /' conftest.$ac_ext >&5
19751
19752 ac_cv_lib_hesiod_hes_getmailhost=no
19753 fi
19754
19755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19756 conftest$ac_exeext conftest.$ac_ext
19757 LIBS=$ac_check_lib_save_LIBS
19758 fi
19759 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19760 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19761 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19762
19763 cat >>confdefs.h <<\_ACEOF
19764 #define HAVE_LIBHESIOD 1
19765 _ACEOF
19766
19767 else
19768 :
19769 fi
19770
19771 fi
19772
19773 fi
19774
19775 # These tell us which Kerberos-related libraries to use.
19776 if test "${with_kerberos+set}" = set; then
19777
19778 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19779 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19780 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19782 else
19783 ac_check_lib_save_LIBS=$LIBS
19784 LIBS="-lcom_err $LIBS"
19785 cat >conftest.$ac_ext <<_ACEOF
19786 /* confdefs.h. */
19787 _ACEOF
19788 cat confdefs.h >>conftest.$ac_ext
19789 cat >>conftest.$ac_ext <<_ACEOF
19790 /* end confdefs.h. */
19791
19792 /* Override any GCC internal prototype to avoid an error.
19793 Use char because int might match the return type of a GCC
19794 builtin and then its argument prototype would still apply. */
19795 #ifdef __cplusplus
19796 extern "C"
19797 #endif
19798 char com_err ();
19799 int
19800 main ()
19801 {
19802 return com_err ();
19803 ;
19804 return 0;
19805 }
19806 _ACEOF
19807 rm -f conftest.$ac_objext conftest$ac_exeext
19808 if { (ac_try="$ac_link"
19809 case "(($ac_try" in
19810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19811 *) ac_try_echo=$ac_try;;
19812 esac
19813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19814 (eval "$ac_link") 2>conftest.er1
19815 ac_status=$?
19816 grep -v '^ *+' conftest.er1 >conftest.err
19817 rm -f conftest.er1
19818 cat conftest.err >&5
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); } && {
19821 test -z "$ac_c_werror_flag" ||
19822 test ! -s conftest.err
19823 } && test -s conftest$ac_exeext &&
19824 $as_test_x conftest$ac_exeext; then
19825 ac_cv_lib_com_err_com_err=yes
19826 else
19827 echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19829
19830 ac_cv_lib_com_err_com_err=no
19831 fi
19832
19833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19834 conftest$ac_exeext conftest.$ac_ext
19835 LIBS=$ac_check_lib_save_LIBS
19836 fi
19837 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19838 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19839 if test $ac_cv_lib_com_err_com_err = yes; then
19840 cat >>confdefs.h <<_ACEOF
19841 #define HAVE_LIBCOM_ERR 1
19842 _ACEOF
19843
19844 LIBS="-lcom_err $LIBS"
19845
19846 fi
19847
19848
19849 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19850 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19851 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19853 else
19854 ac_check_lib_save_LIBS=$LIBS
19855 LIBS="-lk5crypto $LIBS"
19856 cat >conftest.$ac_ext <<_ACEOF
19857 /* confdefs.h. */
19858 _ACEOF
19859 cat confdefs.h >>conftest.$ac_ext
19860 cat >>conftest.$ac_ext <<_ACEOF
19861 /* end confdefs.h. */
19862
19863 /* Override any GCC internal prototype to avoid an error.
19864 Use char because int might match the return type of a GCC
19865 builtin and then its argument prototype would still apply. */
19866 #ifdef __cplusplus
19867 extern "C"
19868 #endif
19869 char mit_des_cbc_encrypt ();
19870 int
19871 main ()
19872 {
19873 return mit_des_cbc_encrypt ();
19874 ;
19875 return 0;
19876 }
19877 _ACEOF
19878 rm -f conftest.$ac_objext conftest$ac_exeext
19879 if { (ac_try="$ac_link"
19880 case "(($ac_try" in
19881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882 *) ac_try_echo=$ac_try;;
19883 esac
19884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885 (eval "$ac_link") 2>conftest.er1
19886 ac_status=$?
19887 grep -v '^ *+' conftest.er1 >conftest.err
19888 rm -f conftest.er1
19889 cat conftest.err >&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } && {
19892 test -z "$ac_c_werror_flag" ||
19893 test ! -s conftest.err
19894 } && test -s conftest$ac_exeext &&
19895 $as_test_x conftest$ac_exeext; then
19896 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19897 else
19898 echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19900
19901 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19902 fi
19903
19904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19905 conftest$ac_exeext conftest.$ac_ext
19906 LIBS=$ac_check_lib_save_LIBS
19907 fi
19908 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19909 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19910 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19911 cat >>confdefs.h <<_ACEOF
19912 #define HAVE_LIBK5CRYPTO 1
19913 _ACEOF
19914
19915 LIBS="-lk5crypto $LIBS"
19916
19917 fi
19918
19919
19920 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19921 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19922 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19923 echo $ECHO_N "(cached) $ECHO_C" >&6
19924 else
19925 ac_check_lib_save_LIBS=$LIBS
19926 LIBS="-lcrypto $LIBS"
19927 cat >conftest.$ac_ext <<_ACEOF
19928 /* confdefs.h. */
19929 _ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h. */
19933
19934 /* Override any GCC internal prototype to avoid an error.
19935 Use char because int might match the return type of a GCC
19936 builtin and then its argument prototype would still apply. */
19937 #ifdef __cplusplus
19938 extern "C"
19939 #endif
19940 char mit_des_cbc_encrypt ();
19941 int
19942 main ()
19943 {
19944 return mit_des_cbc_encrypt ();
19945 ;
19946 return 0;
19947 }
19948 _ACEOF
19949 rm -f conftest.$ac_objext conftest$ac_exeext
19950 if { (ac_try="$ac_link"
19951 case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19954 esac
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_link") 2>conftest.er1
19957 ac_status=$?
19958 grep -v '^ *+' conftest.er1 >conftest.err
19959 rm -f conftest.er1
19960 cat conftest.err >&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); } && {
19963 test -z "$ac_c_werror_flag" ||
19964 test ! -s conftest.err
19965 } && test -s conftest$ac_exeext &&
19966 $as_test_x conftest$ac_exeext; then
19967 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19968 else
19969 echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19971
19972 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19973 fi
19974
19975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19976 conftest$ac_exeext conftest.$ac_ext
19977 LIBS=$ac_check_lib_save_LIBS
19978 fi
19979 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19980 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19981 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19982 cat >>confdefs.h <<_ACEOF
19983 #define HAVE_LIBCRYPTO 1
19984 _ACEOF
19985
19986 LIBS="-lcrypto $LIBS"
19987
19988 fi
19989
19990
19991 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19992 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19993 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19994 echo $ECHO_N "(cached) $ECHO_C" >&6
19995 else
19996 ac_check_lib_save_LIBS=$LIBS
19997 LIBS="-lkrb5 $LIBS"
19998 cat >conftest.$ac_ext <<_ACEOF
19999 /* confdefs.h. */
20000 _ACEOF
20001 cat confdefs.h >>conftest.$ac_ext
20002 cat >>conftest.$ac_ext <<_ACEOF
20003 /* end confdefs.h. */
20004
20005 /* Override any GCC internal prototype to avoid an error.
20006 Use char because int might match the return type of a GCC
20007 builtin and then its argument prototype would still apply. */
20008 #ifdef __cplusplus
20009 extern "C"
20010 #endif
20011 char krb5_init_context ();
20012 int
20013 main ()
20014 {
20015 return krb5_init_context ();
20016 ;
20017 return 0;
20018 }
20019 _ACEOF
20020 rm -f conftest.$ac_objext conftest$ac_exeext
20021 if { (ac_try="$ac_link"
20022 case "(($ac_try" in
20023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20024 *) ac_try_echo=$ac_try;;
20025 esac
20026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20027 (eval "$ac_link") 2>conftest.er1
20028 ac_status=$?
20029 grep -v '^ *+' conftest.er1 >conftest.err
20030 rm -f conftest.er1
20031 cat conftest.err >&5
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); } && {
20034 test -z "$ac_c_werror_flag" ||
20035 test ! -s conftest.err
20036 } && test -s conftest$ac_exeext &&
20037 $as_test_x conftest$ac_exeext; then
20038 ac_cv_lib_krb5_krb5_init_context=yes
20039 else
20040 echo "$as_me: failed program was:" >&5
20041 sed 's/^/| /' conftest.$ac_ext >&5
20042
20043 ac_cv_lib_krb5_krb5_init_context=no
20044 fi
20045
20046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20047 conftest$ac_exeext conftest.$ac_ext
20048 LIBS=$ac_check_lib_save_LIBS
20049 fi
20050 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20051 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20052 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20053 cat >>confdefs.h <<_ACEOF
20054 #define HAVE_LIBKRB5 1
20055 _ACEOF
20056
20057 LIBS="-lkrb5 $LIBS"
20058
20059 fi
20060
20061 if test "${with_kerberos5+set}" != set; then
20062
20063 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20064 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20065 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20066 echo $ECHO_N "(cached) $ECHO_C" >&6
20067 else
20068 ac_check_lib_save_LIBS=$LIBS
20069 LIBS="-ldes425 $LIBS"
20070 cat >conftest.$ac_ext <<_ACEOF
20071 /* confdefs.h. */
20072 _ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h. */
20076
20077 /* Override any GCC internal prototype to avoid an error.
20078 Use char because int might match the return type of a GCC
20079 builtin and then its argument prototype would still apply. */
20080 #ifdef __cplusplus
20081 extern "C"
20082 #endif
20083 char des_cbc_encrypt ();
20084 int
20085 main ()
20086 {
20087 return des_cbc_encrypt ();
20088 ;
20089 return 0;
20090 }
20091 _ACEOF
20092 rm -f conftest.$ac_objext conftest$ac_exeext
20093 if { (ac_try="$ac_link"
20094 case "(($ac_try" in
20095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20096 *) ac_try_echo=$ac_try;;
20097 esac
20098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20099 (eval "$ac_link") 2>conftest.er1
20100 ac_status=$?
20101 grep -v '^ *+' conftest.er1 >conftest.err
20102 rm -f conftest.er1
20103 cat conftest.err >&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); } && {
20106 test -z "$ac_c_werror_flag" ||
20107 test ! -s conftest.err
20108 } && test -s conftest$ac_exeext &&
20109 $as_test_x conftest$ac_exeext; then
20110 ac_cv_lib_des425_des_cbc_encrypt=yes
20111 else
20112 echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.$ac_ext >&5
20114
20115 ac_cv_lib_des425_des_cbc_encrypt=no
20116 fi
20117
20118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20119 conftest$ac_exeext conftest.$ac_ext
20120 LIBS=$ac_check_lib_save_LIBS
20121 fi
20122 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20123 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20124 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20125 cat >>confdefs.h <<_ACEOF
20126 #define HAVE_LIBDES425 1
20127 _ACEOF
20128
20129 LIBS="-ldes425 $LIBS"
20130
20131 else
20132
20133 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20134 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20135 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20137 else
20138 ac_check_lib_save_LIBS=$LIBS
20139 LIBS="-ldes $LIBS"
20140 cat >conftest.$ac_ext <<_ACEOF
20141 /* confdefs.h. */
20142 _ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h. */
20146
20147 /* Override any GCC internal prototype to avoid an error.
20148 Use char because int might match the return type of a GCC
20149 builtin and then its argument prototype would still apply. */
20150 #ifdef __cplusplus
20151 extern "C"
20152 #endif
20153 char des_cbc_encrypt ();
20154 int
20155 main ()
20156 {
20157 return des_cbc_encrypt ();
20158 ;
20159 return 0;
20160 }
20161 _ACEOF
20162 rm -f conftest.$ac_objext conftest$ac_exeext
20163 if { (ac_try="$ac_link"
20164 case "(($ac_try" in
20165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166 *) ac_try_echo=$ac_try;;
20167 esac
20168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169 (eval "$ac_link") 2>conftest.er1
20170 ac_status=$?
20171 grep -v '^ *+' conftest.er1 >conftest.err
20172 rm -f conftest.er1
20173 cat conftest.err >&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } && {
20176 test -z "$ac_c_werror_flag" ||
20177 test ! -s conftest.err
20178 } && test -s conftest$ac_exeext &&
20179 $as_test_x conftest$ac_exeext; then
20180 ac_cv_lib_des_des_cbc_encrypt=yes
20181 else
20182 echo "$as_me: failed program was:" >&5
20183 sed 's/^/| /' conftest.$ac_ext >&5
20184
20185 ac_cv_lib_des_des_cbc_encrypt=no
20186 fi
20187
20188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20189 conftest$ac_exeext conftest.$ac_ext
20190 LIBS=$ac_check_lib_save_LIBS
20191 fi
20192 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20193 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20194 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20195 cat >>confdefs.h <<_ACEOF
20196 #define HAVE_LIBDES 1
20197 _ACEOF
20198
20199 LIBS="-ldes $LIBS"
20200
20201 fi
20202
20203 fi
20204
20205
20206 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20207 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20208 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20209 echo $ECHO_N "(cached) $ECHO_C" >&6
20210 else
20211 ac_check_lib_save_LIBS=$LIBS
20212 LIBS="-lkrb4 $LIBS"
20213 cat >conftest.$ac_ext <<_ACEOF
20214 /* confdefs.h. */
20215 _ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h. */
20219
20220 /* Override any GCC internal prototype to avoid an error.
20221 Use char because int might match the return type of a GCC
20222 builtin and then its argument prototype would still apply. */
20223 #ifdef __cplusplus
20224 extern "C"
20225 #endif
20226 char krb_get_cred ();
20227 int
20228 main ()
20229 {
20230 return krb_get_cred ();
20231 ;
20232 return 0;
20233 }
20234 _ACEOF
20235 rm -f conftest.$ac_objext conftest$ac_exeext
20236 if { (ac_try="$ac_link"
20237 case "(($ac_try" in
20238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239 *) ac_try_echo=$ac_try;;
20240 esac
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242 (eval "$ac_link") 2>conftest.er1
20243 ac_status=$?
20244 grep -v '^ *+' conftest.er1 >conftest.err
20245 rm -f conftest.er1
20246 cat conftest.err >&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } && {
20249 test -z "$ac_c_werror_flag" ||
20250 test ! -s conftest.err
20251 } && test -s conftest$ac_exeext &&
20252 $as_test_x conftest$ac_exeext; then
20253 ac_cv_lib_krb4_krb_get_cred=yes
20254 else
20255 echo "$as_me: failed program was:" >&5
20256 sed 's/^/| /' conftest.$ac_ext >&5
20257
20258 ac_cv_lib_krb4_krb_get_cred=no
20259 fi
20260
20261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20262 conftest$ac_exeext conftest.$ac_ext
20263 LIBS=$ac_check_lib_save_LIBS
20264 fi
20265 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20266 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20267 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20268 cat >>confdefs.h <<_ACEOF
20269 #define HAVE_LIBKRB4 1
20270 _ACEOF
20271
20272 LIBS="-lkrb4 $LIBS"
20273
20274 else
20275
20276 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20277 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20278 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20279 echo $ECHO_N "(cached) $ECHO_C" >&6
20280 else
20281 ac_check_lib_save_LIBS=$LIBS
20282 LIBS="-lkrb $LIBS"
20283 cat >conftest.$ac_ext <<_ACEOF
20284 /* confdefs.h. */
20285 _ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20289
20290 /* Override any GCC internal prototype to avoid an error.
20291 Use char because int might match the return type of a GCC
20292 builtin and then its argument prototype would still apply. */
20293 #ifdef __cplusplus
20294 extern "C"
20295 #endif
20296 char krb_get_cred ();
20297 int
20298 main ()
20299 {
20300 return krb_get_cred ();
20301 ;
20302 return 0;
20303 }
20304 _ACEOF
20305 rm -f conftest.$ac_objext conftest$ac_exeext
20306 if { (ac_try="$ac_link"
20307 case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20310 esac
20311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312 (eval "$ac_link") 2>conftest.er1
20313 ac_status=$?
20314 grep -v '^ *+' conftest.er1 >conftest.err
20315 rm -f conftest.er1
20316 cat conftest.err >&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } && {
20319 test -z "$ac_c_werror_flag" ||
20320 test ! -s conftest.err
20321 } && test -s conftest$ac_exeext &&
20322 $as_test_x conftest$ac_exeext; then
20323 ac_cv_lib_krb_krb_get_cred=yes
20324 else
20325 echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20327
20328 ac_cv_lib_krb_krb_get_cred=no
20329 fi
20330
20331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20332 conftest$ac_exeext conftest.$ac_ext
20333 LIBS=$ac_check_lib_save_LIBS
20334 fi
20335 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20336 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20337 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20338 cat >>confdefs.h <<_ACEOF
20339 #define HAVE_LIBKRB 1
20340 _ACEOF
20341
20342 LIBS="-lkrb $LIBS"
20343
20344 fi
20345
20346 fi
20347
20348 fi
20349
20350 if test "${with_kerberos5+set}" = set; then
20351
20352 for ac_header in krb5.h
20353 do
20354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20360 fi
20361 ac_res=`eval echo '${'$as_ac_Header'}'`
20362 { echo "$as_me:$LINENO: result: $ac_res" >&5
20363 echo "${ECHO_T}$ac_res" >&6; }
20364 else
20365 # Is the header compilable?
20366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20368 cat >conftest.$ac_ext <<_ACEOF
20369 /* confdefs.h. */
20370 _ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h. */
20374 $ac_includes_default
20375 #include <$ac_header>
20376 _ACEOF
20377 rm -f conftest.$ac_objext
20378 if { (ac_try="$ac_compile"
20379 case "(($ac_try" in
20380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20381 *) ac_try_echo=$ac_try;;
20382 esac
20383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20384 (eval "$ac_compile") 2>conftest.er1
20385 ac_status=$?
20386 grep -v '^ *+' conftest.er1 >conftest.err
20387 rm -f conftest.er1
20388 cat conftest.err >&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); } && {
20391 test -z "$ac_c_werror_flag" ||
20392 test ! -s conftest.err
20393 } && test -s conftest.$ac_objext; then
20394 ac_header_compiler=yes
20395 else
20396 echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.$ac_ext >&5
20398
20399 ac_header_compiler=no
20400 fi
20401
20402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20404 echo "${ECHO_T}$ac_header_compiler" >&6; }
20405
20406 # Is the header present?
20407 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20409 cat >conftest.$ac_ext <<_ACEOF
20410 /* confdefs.h. */
20411 _ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20415 #include <$ac_header>
20416 _ACEOF
20417 if { (ac_try="$ac_cpp conftest.$ac_ext"
20418 case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20424 ac_status=$?
20425 grep -v '^ *+' conftest.er1 >conftest.err
20426 rm -f conftest.er1
20427 cat conftest.err >&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } >/dev/null && {
20430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20431 test ! -s conftest.err
20432 }; then
20433 ac_header_preproc=yes
20434 else
20435 echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.$ac_ext >&5
20437
20438 ac_header_preproc=no
20439 fi
20440
20441 rm -f conftest.err conftest.$ac_ext
20442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20443 echo "${ECHO_T}$ac_header_preproc" >&6; }
20444
20445 # So? What about this header?
20446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20447 yes:no: )
20448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20452 ac_header_preproc=yes
20453 ;;
20454 no:yes:* )
20455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20467
20468 ;;
20469 esac
20470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20473 echo $ECHO_N "(cached) $ECHO_C" >&6
20474 else
20475 eval "$as_ac_Header=\$ac_header_preproc"
20476 fi
20477 ac_res=`eval echo '${'$as_ac_Header'}'`
20478 { echo "$as_me:$LINENO: result: $ac_res" >&5
20479 echo "${ECHO_T}$ac_res" >&6; }
20480
20481 fi
20482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20483 cat >>confdefs.h <<_ACEOF
20484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20485 _ACEOF
20486
20487 fi
20488
20489 done
20490
20491 else
20492
20493 for ac_header in des.h
20494 do
20495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20500 echo $ECHO_N "(cached) $ECHO_C" >&6
20501 fi
20502 ac_res=`eval echo '${'$as_ac_Header'}'`
20503 { echo "$as_me:$LINENO: result: $ac_res" >&5
20504 echo "${ECHO_T}$ac_res" >&6; }
20505 else
20506 # Is the header compilable?
20507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20509 cat >conftest.$ac_ext <<_ACEOF
20510 /* confdefs.h. */
20511 _ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20515 $ac_includes_default
20516 #include <$ac_header>
20517 _ACEOF
20518 rm -f conftest.$ac_objext
20519 if { (ac_try="$ac_compile"
20520 case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20523 esac
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525 (eval "$ac_compile") 2>conftest.er1
20526 ac_status=$?
20527 grep -v '^ *+' conftest.er1 >conftest.err
20528 rm -f conftest.er1
20529 cat conftest.err >&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); } && {
20532 test -z "$ac_c_werror_flag" ||
20533 test ! -s conftest.err
20534 } && test -s conftest.$ac_objext; then
20535 ac_header_compiler=yes
20536 else
20537 echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.$ac_ext >&5
20539
20540 ac_header_compiler=no
20541 fi
20542
20543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20545 echo "${ECHO_T}$ac_header_compiler" >&6; }
20546
20547 # Is the header present?
20548 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20550 cat >conftest.$ac_ext <<_ACEOF
20551 /* confdefs.h. */
20552 _ACEOF
20553 cat confdefs.h >>conftest.$ac_ext
20554 cat >>conftest.$ac_ext <<_ACEOF
20555 /* end confdefs.h. */
20556 #include <$ac_header>
20557 _ACEOF
20558 if { (ac_try="$ac_cpp conftest.$ac_ext"
20559 case "(($ac_try" in
20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20562 esac
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20565 ac_status=$?
20566 grep -v '^ *+' conftest.er1 >conftest.err
20567 rm -f conftest.er1
20568 cat conftest.err >&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } >/dev/null && {
20571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20572 test ! -s conftest.err
20573 }; then
20574 ac_header_preproc=yes
20575 else
20576 echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20578
20579 ac_header_preproc=no
20580 fi
20581
20582 rm -f conftest.err conftest.$ac_ext
20583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20584 echo "${ECHO_T}$ac_header_preproc" >&6; }
20585
20586 # So? What about this header?
20587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20588 yes:no: )
20589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20593 ac_header_preproc=yes
20594 ;;
20595 no:yes:* )
20596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20608
20609 ;;
20610 esac
20611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20614 echo $ECHO_N "(cached) $ECHO_C" >&6
20615 else
20616 eval "$as_ac_Header=\$ac_header_preproc"
20617 fi
20618 ac_res=`eval echo '${'$as_ac_Header'}'`
20619 { echo "$as_me:$LINENO: result: $ac_res" >&5
20620 echo "${ECHO_T}$ac_res" >&6; }
20621
20622 fi
20623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20624 cat >>confdefs.h <<_ACEOF
20625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20626 _ACEOF
20627
20628 else
20629
20630 for ac_header in kerberosIV/des.h
20631 do
20632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20638 fi
20639 ac_res=`eval echo '${'$as_ac_Header'}'`
20640 { echo "$as_me:$LINENO: result: $ac_res" >&5
20641 echo "${ECHO_T}$ac_res" >&6; }
20642 else
20643 # Is the header compilable?
20644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20646 cat >conftest.$ac_ext <<_ACEOF
20647 /* confdefs.h. */
20648 _ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20652 $ac_includes_default
20653 #include <$ac_header>
20654 _ACEOF
20655 rm -f conftest.$ac_objext
20656 if { (ac_try="$ac_compile"
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_compile") 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); } && {
20669 test -z "$ac_c_werror_flag" ||
20670 test ! -s conftest.err
20671 } && test -s conftest.$ac_objext; then
20672 ac_header_compiler=yes
20673 else
20674 echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20676
20677 ac_header_compiler=no
20678 fi
20679
20680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20682 echo "${ECHO_T}$ac_header_compiler" >&6; }
20683
20684 # Is the header present?
20685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20687 cat >conftest.$ac_ext <<_ACEOF
20688 /* confdefs.h. */
20689 _ACEOF
20690 cat confdefs.h >>conftest.$ac_ext
20691 cat >>conftest.$ac_ext <<_ACEOF
20692 /* end confdefs.h. */
20693 #include <$ac_header>
20694 _ACEOF
20695 if { (ac_try="$ac_cpp conftest.$ac_ext"
20696 case "(($ac_try" in
20697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20698 *) ac_try_echo=$ac_try;;
20699 esac
20700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20702 ac_status=$?
20703 grep -v '^ *+' conftest.er1 >conftest.err
20704 rm -f conftest.er1
20705 cat conftest.err >&5
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); } >/dev/null && {
20708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20709 test ! -s conftest.err
20710 }; then
20711 ac_header_preproc=yes
20712 else
20713 echo "$as_me: failed program was:" >&5
20714 sed 's/^/| /' conftest.$ac_ext >&5
20715
20716 ac_header_preproc=no
20717 fi
20718
20719 rm -f conftest.err conftest.$ac_ext
20720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20721 echo "${ECHO_T}$ac_header_preproc" >&6; }
20722
20723 # So? What about this header?
20724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20725 yes:no: )
20726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20730 ac_header_preproc=yes
20731 ;;
20732 no:yes:* )
20733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20745
20746 ;;
20747 esac
20748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20751 echo $ECHO_N "(cached) $ECHO_C" >&6
20752 else
20753 eval "$as_ac_Header=\$ac_header_preproc"
20754 fi
20755 ac_res=`eval echo '${'$as_ac_Header'}'`
20756 { echo "$as_me:$LINENO: result: $ac_res" >&5
20757 echo "${ECHO_T}$ac_res" >&6; }
20758
20759 fi
20760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20761 cat >>confdefs.h <<_ACEOF
20762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20763 _ACEOF
20764
20765 else
20766
20767 for ac_header in kerberos/des.h
20768 do
20769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20774 echo $ECHO_N "(cached) $ECHO_C" >&6
20775 fi
20776 ac_res=`eval echo '${'$as_ac_Header'}'`
20777 { echo "$as_me:$LINENO: result: $ac_res" >&5
20778 echo "${ECHO_T}$ac_res" >&6; }
20779 else
20780 # Is the header compilable?
20781 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20783 cat >conftest.$ac_ext <<_ACEOF
20784 /* confdefs.h. */
20785 _ACEOF
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
20788 /* end confdefs.h. */
20789 $ac_includes_default
20790 #include <$ac_header>
20791 _ACEOF
20792 rm -f conftest.$ac_objext
20793 if { (ac_try="$ac_compile"
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_compile") 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); } && {
20806 test -z "$ac_c_werror_flag" ||
20807 test ! -s conftest.err
20808 } && test -s conftest.$ac_objext; then
20809 ac_header_compiler=yes
20810 else
20811 echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20813
20814 ac_header_compiler=no
20815 fi
20816
20817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20819 echo "${ECHO_T}$ac_header_compiler" >&6; }
20820
20821 # Is the header present?
20822 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20824 cat >conftest.$ac_ext <<_ACEOF
20825 /* confdefs.h. */
20826 _ACEOF
20827 cat confdefs.h >>conftest.$ac_ext
20828 cat >>conftest.$ac_ext <<_ACEOF
20829 /* end confdefs.h. */
20830 #include <$ac_header>
20831 _ACEOF
20832 if { (ac_try="$ac_cpp conftest.$ac_ext"
20833 case "(($ac_try" in
20834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835 *) ac_try_echo=$ac_try;;
20836 esac
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20839 ac_status=$?
20840 grep -v '^ *+' conftest.er1 >conftest.err
20841 rm -f conftest.er1
20842 cat conftest.err >&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } >/dev/null && {
20845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20846 test ! -s conftest.err
20847 }; then
20848 ac_header_preproc=yes
20849 else
20850 echo "$as_me: failed program was:" >&5
20851 sed 's/^/| /' conftest.$ac_ext >&5
20852
20853 ac_header_preproc=no
20854 fi
20855
20856 rm -f conftest.err conftest.$ac_ext
20857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20858 echo "${ECHO_T}$ac_header_preproc" >&6; }
20859
20860 # So? What about this header?
20861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20862 yes:no: )
20863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20867 ac_header_preproc=yes
20868 ;;
20869 no:yes:* )
20870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20882
20883 ;;
20884 esac
20885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20888 echo $ECHO_N "(cached) $ECHO_C" >&6
20889 else
20890 eval "$as_ac_Header=\$ac_header_preproc"
20891 fi
20892 ac_res=`eval echo '${'$as_ac_Header'}'`
20893 { echo "$as_me:$LINENO: result: $ac_res" >&5
20894 echo "${ECHO_T}$ac_res" >&6; }
20895
20896 fi
20897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20898 cat >>confdefs.h <<_ACEOF
20899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20900 _ACEOF
20901
20902 fi
20903
20904 done
20905
20906 fi
20907
20908 done
20909
20910 fi
20911
20912 done
20913
20914
20915 for ac_header in krb.h
20916 do
20917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20922 echo $ECHO_N "(cached) $ECHO_C" >&6
20923 fi
20924 ac_res=`eval echo '${'$as_ac_Header'}'`
20925 { echo "$as_me:$LINENO: result: $ac_res" >&5
20926 echo "${ECHO_T}$ac_res" >&6; }
20927 else
20928 # Is the header compilable?
20929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20931 cat >conftest.$ac_ext <<_ACEOF
20932 /* confdefs.h. */
20933 _ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h. */
20937 $ac_includes_default
20938 #include <$ac_header>
20939 _ACEOF
20940 rm -f conftest.$ac_objext
20941 if { (ac_try="$ac_compile"
20942 case "(($ac_try" in
20943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20944 *) ac_try_echo=$ac_try;;
20945 esac
20946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20947 (eval "$ac_compile") 2>conftest.er1
20948 ac_status=$?
20949 grep -v '^ *+' conftest.er1 >conftest.err
20950 rm -f conftest.er1
20951 cat conftest.err >&5
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); } && {
20954 test -z "$ac_c_werror_flag" ||
20955 test ! -s conftest.err
20956 } && test -s conftest.$ac_objext; then
20957 ac_header_compiler=yes
20958 else
20959 echo "$as_me: failed program was:" >&5
20960 sed 's/^/| /' conftest.$ac_ext >&5
20961
20962 ac_header_compiler=no
20963 fi
20964
20965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20967 echo "${ECHO_T}$ac_header_compiler" >&6; }
20968
20969 # Is the header present?
20970 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20972 cat >conftest.$ac_ext <<_ACEOF
20973 /* confdefs.h. */
20974 _ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h. */
20978 #include <$ac_header>
20979 _ACEOF
20980 if { (ac_try="$ac_cpp conftest.$ac_ext"
20981 case "(($ac_try" in
20982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20983 *) ac_try_echo=$ac_try;;
20984 esac
20985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20987 ac_status=$?
20988 grep -v '^ *+' conftest.er1 >conftest.err
20989 rm -f conftest.er1
20990 cat conftest.err >&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } >/dev/null && {
20993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20994 test ! -s conftest.err
20995 }; then
20996 ac_header_preproc=yes
20997 else
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21000
21001 ac_header_preproc=no
21002 fi
21003
21004 rm -f conftest.err conftest.$ac_ext
21005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21006 echo "${ECHO_T}$ac_header_preproc" >&6; }
21007
21008 # So? What about this header?
21009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21010 yes:no: )
21011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21015 ac_header_preproc=yes
21016 ;;
21017 no:yes:* )
21018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21030
21031 ;;
21032 esac
21033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
21037 else
21038 eval "$as_ac_Header=\$ac_header_preproc"
21039 fi
21040 ac_res=`eval echo '${'$as_ac_Header'}'`
21041 { echo "$as_me:$LINENO: result: $ac_res" >&5
21042 echo "${ECHO_T}$ac_res" >&6; }
21043
21044 fi
21045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21046 cat >>confdefs.h <<_ACEOF
21047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21048 _ACEOF
21049
21050 else
21051
21052 for ac_header in kerberosIV/krb.h
21053 do
21054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21059 echo $ECHO_N "(cached) $ECHO_C" >&6
21060 fi
21061 ac_res=`eval echo '${'$as_ac_Header'}'`
21062 { echo "$as_me:$LINENO: result: $ac_res" >&5
21063 echo "${ECHO_T}$ac_res" >&6; }
21064 else
21065 # Is the header compilable?
21066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21068 cat >conftest.$ac_ext <<_ACEOF
21069 /* confdefs.h. */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21074 $ac_includes_default
21075 #include <$ac_header>
21076 _ACEOF
21077 rm -f conftest.$ac_objext
21078 if { (ac_try="$ac_compile"
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_compile") 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); } && {
21091 test -z "$ac_c_werror_flag" ||
21092 test ! -s conftest.err
21093 } && test -s conftest.$ac_objext; then
21094 ac_header_compiler=yes
21095 else
21096 echo "$as_me: failed program was:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21098
21099 ac_header_compiler=no
21100 fi
21101
21102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21104 echo "${ECHO_T}$ac_header_compiler" >&6; }
21105
21106 # Is the header present?
21107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21109 cat >conftest.$ac_ext <<_ACEOF
21110 /* confdefs.h. */
21111 _ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21115 #include <$ac_header>
21116 _ACEOF
21117 if { (ac_try="$ac_cpp conftest.$ac_ext"
21118 case "(($ac_try" in
21119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120 *) ac_try_echo=$ac_try;;
21121 esac
21122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21124 ac_status=$?
21125 grep -v '^ *+' conftest.er1 >conftest.err
21126 rm -f conftest.er1
21127 cat conftest.err >&5
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); } >/dev/null && {
21130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21131 test ! -s conftest.err
21132 }; then
21133 ac_header_preproc=yes
21134 else
21135 echo "$as_me: failed program was:" >&5
21136 sed 's/^/| /' conftest.$ac_ext >&5
21137
21138 ac_header_preproc=no
21139 fi
21140
21141 rm -f conftest.err conftest.$ac_ext
21142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21143 echo "${ECHO_T}$ac_header_preproc" >&6; }
21144
21145 # So? What about this header?
21146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21147 yes:no: )
21148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21152 ac_header_preproc=yes
21153 ;;
21154 no:yes:* )
21155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21167
21168 ;;
21169 esac
21170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21173 echo $ECHO_N "(cached) $ECHO_C" >&6
21174 else
21175 eval "$as_ac_Header=\$ac_header_preproc"
21176 fi
21177 ac_res=`eval echo '${'$as_ac_Header'}'`
21178 { echo "$as_me:$LINENO: result: $ac_res" >&5
21179 echo "${ECHO_T}$ac_res" >&6; }
21180
21181 fi
21182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21183 cat >>confdefs.h <<_ACEOF
21184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21185 _ACEOF
21186
21187 else
21188
21189 for ac_header in kerberos/krb.h
21190 do
21191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21196 echo $ECHO_N "(cached) $ECHO_C" >&6
21197 fi
21198 ac_res=`eval echo '${'$as_ac_Header'}'`
21199 { echo "$as_me:$LINENO: result: $ac_res" >&5
21200 echo "${ECHO_T}$ac_res" >&6; }
21201 else
21202 # Is the header compilable?
21203 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21205 cat >conftest.$ac_ext <<_ACEOF
21206 /* confdefs.h. */
21207 _ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h. */
21211 $ac_includes_default
21212 #include <$ac_header>
21213 _ACEOF
21214 rm -f conftest.$ac_objext
21215 if { (ac_try="$ac_compile"
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_compile") 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); } && {
21228 test -z "$ac_c_werror_flag" ||
21229 test ! -s conftest.err
21230 } && test -s conftest.$ac_objext; then
21231 ac_header_compiler=yes
21232 else
21233 echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21235
21236 ac_header_compiler=no
21237 fi
21238
21239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21241 echo "${ECHO_T}$ac_header_compiler" >&6; }
21242
21243 # Is the header present?
21244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21246 cat >conftest.$ac_ext <<_ACEOF
21247 /* confdefs.h. */
21248 _ACEOF
21249 cat confdefs.h >>conftest.$ac_ext
21250 cat >>conftest.$ac_ext <<_ACEOF
21251 /* end confdefs.h. */
21252 #include <$ac_header>
21253 _ACEOF
21254 if { (ac_try="$ac_cpp conftest.$ac_ext"
21255 case "(($ac_try" in
21256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21257 *) ac_try_echo=$ac_try;;
21258 esac
21259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21261 ac_status=$?
21262 grep -v '^ *+' conftest.er1 >conftest.err
21263 rm -f conftest.er1
21264 cat conftest.err >&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } >/dev/null && {
21267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21268 test ! -s conftest.err
21269 }; then
21270 ac_header_preproc=yes
21271 else
21272 echo "$as_me: failed program was:" >&5
21273 sed 's/^/| /' conftest.$ac_ext >&5
21274
21275 ac_header_preproc=no
21276 fi
21277
21278 rm -f conftest.err conftest.$ac_ext
21279 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21280 echo "${ECHO_T}$ac_header_preproc" >&6; }
21281
21282 # So? What about this header?
21283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21284 yes:no: )
21285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21288 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21289 ac_header_preproc=yes
21290 ;;
21291 no:yes:* )
21292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21295 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21297 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21299 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21303 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21304
21305 ;;
21306 esac
21307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21310 echo $ECHO_N "(cached) $ECHO_C" >&6
21311 else
21312 eval "$as_ac_Header=\$ac_header_preproc"
21313 fi
21314 ac_res=`eval echo '${'$as_ac_Header'}'`
21315 { echo "$as_me:$LINENO: result: $ac_res" >&5
21316 echo "${ECHO_T}$ac_res" >&6; }
21317
21318 fi
21319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21320 cat >>confdefs.h <<_ACEOF
21321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21322 _ACEOF
21323
21324 fi
21325
21326 done
21327
21328 fi
21329
21330 done
21331
21332 fi
21333
21334 done
21335
21336 fi
21337
21338 for ac_header in com_err.h
21339 do
21340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21342 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21345 echo $ECHO_N "(cached) $ECHO_C" >&6
21346 fi
21347 ac_res=`eval echo '${'$as_ac_Header'}'`
21348 { echo "$as_me:$LINENO: result: $ac_res" >&5
21349 echo "${ECHO_T}$ac_res" >&6; }
21350 else
21351 # Is the header compilable?
21352 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21354 cat >conftest.$ac_ext <<_ACEOF
21355 /* confdefs.h. */
21356 _ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h. */
21360 $ac_includes_default
21361 #include <$ac_header>
21362 _ACEOF
21363 rm -f conftest.$ac_objext
21364 if { (ac_try="$ac_compile"
21365 case "(($ac_try" in
21366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21367 *) ac_try_echo=$ac_try;;
21368 esac
21369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21370 (eval "$ac_compile") 2>conftest.er1
21371 ac_status=$?
21372 grep -v '^ *+' conftest.er1 >conftest.err
21373 rm -f conftest.er1
21374 cat conftest.err >&5
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); } && {
21377 test -z "$ac_c_werror_flag" ||
21378 test ! -s conftest.err
21379 } && test -s conftest.$ac_objext; then
21380 ac_header_compiler=yes
21381 else
21382 echo "$as_me: failed program was:" >&5
21383 sed 's/^/| /' conftest.$ac_ext >&5
21384
21385 ac_header_compiler=no
21386 fi
21387
21388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21389 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21390 echo "${ECHO_T}$ac_header_compiler" >&6; }
21391
21392 # Is the header present?
21393 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21395 cat >conftest.$ac_ext <<_ACEOF
21396 /* confdefs.h. */
21397 _ACEOF
21398 cat confdefs.h >>conftest.$ac_ext
21399 cat >>conftest.$ac_ext <<_ACEOF
21400 /* end confdefs.h. */
21401 #include <$ac_header>
21402 _ACEOF
21403 if { (ac_try="$ac_cpp conftest.$ac_ext"
21404 case "(($ac_try" in
21405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406 *) ac_try_echo=$ac_try;;
21407 esac
21408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21410 ac_status=$?
21411 grep -v '^ *+' conftest.er1 >conftest.err
21412 rm -f conftest.er1
21413 cat conftest.err >&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); } >/dev/null && {
21416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21417 test ! -s conftest.err
21418 }; then
21419 ac_header_preproc=yes
21420 else
21421 echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.$ac_ext >&5
21423
21424 ac_header_preproc=no
21425 fi
21426
21427 rm -f conftest.err conftest.$ac_ext
21428 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21429 echo "${ECHO_T}$ac_header_preproc" >&6; }
21430
21431 # So? What about this header?
21432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21433 yes:no: )
21434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21437 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21438 ac_header_preproc=yes
21439 ;;
21440 no:yes:* )
21441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21444 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21445 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21446 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21447 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21448 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21451 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21452 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21453
21454 ;;
21455 esac
21456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21459 echo $ECHO_N "(cached) $ECHO_C" >&6
21460 else
21461 eval "$as_ac_Header=\$ac_header_preproc"
21462 fi
21463 ac_res=`eval echo '${'$as_ac_Header'}'`
21464 { echo "$as_me:$LINENO: result: $ac_res" >&5
21465 echo "${ECHO_T}$ac_res" >&6; }
21466
21467 fi
21468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21469 cat >>confdefs.h <<_ACEOF
21470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21471 _ACEOF
21472
21473 fi
21474
21475 done
21476
21477 fi
21478
21479 # Solaris requires -lintl if you want strerror (which calls dgettext)
21480 # to return localized messages.
21481
21482 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21483 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21484 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21485 echo $ECHO_N "(cached) $ECHO_C" >&6
21486 else
21487 ac_check_lib_save_LIBS=$LIBS
21488 LIBS="-lintl $LIBS"
21489 cat >conftest.$ac_ext <<_ACEOF
21490 /* confdefs.h. */
21491 _ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21495
21496 /* Override any GCC internal prototype to avoid an error.
21497 Use char because int might match the return type of a GCC
21498 builtin and then its argument prototype would still apply. */
21499 #ifdef __cplusplus
21500 extern "C"
21501 #endif
21502 char dgettext ();
21503 int
21504 main ()
21505 {
21506 return dgettext ();
21507 ;
21508 return 0;
21509 }
21510 _ACEOF
21511 rm -f conftest.$ac_objext conftest$ac_exeext
21512 if { (ac_try="$ac_link"
21513 case "(($ac_try" in
21514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515 *) ac_try_echo=$ac_try;;
21516 esac
21517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518 (eval "$ac_link") 2>conftest.er1
21519 ac_status=$?
21520 grep -v '^ *+' conftest.er1 >conftest.err
21521 rm -f conftest.er1
21522 cat conftest.err >&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } && {
21525 test -z "$ac_c_werror_flag" ||
21526 test ! -s conftest.err
21527 } && test -s conftest$ac_exeext &&
21528 $as_test_x conftest$ac_exeext; then
21529 ac_cv_lib_intl_dgettext=yes
21530 else
21531 echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21533
21534 ac_cv_lib_intl_dgettext=no
21535 fi
21536
21537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21538 conftest$ac_exeext conftest.$ac_ext
21539 LIBS=$ac_check_lib_save_LIBS
21540 fi
21541 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21542 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21543 if test $ac_cv_lib_intl_dgettext = yes; then
21544 cat >>confdefs.h <<_ACEOF
21545 #define HAVE_LIBINTL 1
21546 _ACEOF
21547
21548 LIBS="-lintl $LIBS"
21549
21550 fi
21551
21552
21553 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21554 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21555 if test "${emacs_cv_localtime_cache+set}" = set; then
21556 echo $ECHO_N "(cached) $ECHO_C" >&6
21557 else
21558 if test x$ac_cv_func_tzset = xyes; then
21559 if test "$cross_compiling" = yes; then
21560 # If we have tzset, assume the worst when cross-compiling.
21561 emacs_cv_localtime_cache=yes
21562 else
21563 cat >conftest.$ac_ext <<_ACEOF
21564 /* confdefs.h. */
21565 _ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h. */
21569 #include <time.h>
21570 extern char **environ;
21571 unset_TZ ()
21572 {
21573 char **from, **to;
21574 for (to = from = environ; (*to = *from); from++)
21575 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21576 to++;
21577 }
21578 char TZ_GMT0[] = "TZ=GMT0";
21579 char TZ_PST8[] = "TZ=PST8";
21580 main()
21581 {
21582 time_t now = time ((time_t *) 0);
21583 int hour_GMT0, hour_unset;
21584 if (putenv (TZ_GMT0) != 0)
21585 exit (1);
21586 hour_GMT0 = localtime (&now)->tm_hour;
21587 unset_TZ ();
21588 hour_unset = localtime (&now)->tm_hour;
21589 if (putenv (TZ_PST8) != 0)
21590 exit (1);
21591 if (localtime (&now)->tm_hour == hour_GMT0)
21592 exit (1);
21593 unset_TZ ();
21594 if (localtime (&now)->tm_hour != hour_unset)
21595 exit (1);
21596 exit (0);
21597 }
21598 _ACEOF
21599 rm -f conftest$ac_exeext
21600 if { (ac_try="$ac_link"
21601 case "(($ac_try" in
21602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21603 *) ac_try_echo=$ac_try;;
21604 esac
21605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21606 (eval "$ac_link") 2>&5
21607 ac_status=$?
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21610 { (case "(($ac_try" in
21611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21612 *) ac_try_echo=$ac_try;;
21613 esac
21614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21615 (eval "$ac_try") 2>&5
21616 ac_status=$?
21617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); }; }; then
21619 emacs_cv_localtime_cache=no
21620 else
21621 echo "$as_me: program exited with status $ac_status" >&5
21622 echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21624
21625 ( exit $ac_status )
21626 emacs_cv_localtime_cache=yes
21627 fi
21628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21629 fi
21630
21631
21632 else
21633 # If we lack tzset, report that localtime does not cache TZ,
21634 # since we can't invalidate the cache if we don't have tzset.
21635 emacs_cv_localtime_cache=no
21636 fi
21637 fi
21638 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21639 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21640 if test $emacs_cv_localtime_cache = yes; then
21641
21642 cat >>confdefs.h <<\_ACEOF
21643 #define LOCALTIME_CACHE 1
21644 _ACEOF
21645
21646 fi
21647
21648 if test "x$HAVE_TIMEVAL" = xyes; then
21649
21650 for ac_func in gettimeofday
21651 do
21652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21656 echo $ECHO_N "(cached) $ECHO_C" >&6
21657 else
21658 cat >conftest.$ac_ext <<_ACEOF
21659 /* confdefs.h. */
21660 _ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h. */
21664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21666 #define $ac_func innocuous_$ac_func
21667
21668 /* System header to define __stub macros and hopefully few prototypes,
21669 which can conflict with char $ac_func (); below.
21670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21671 <limits.h> exists even on freestanding compilers. */
21672
21673 #ifdef __STDC__
21674 # include <limits.h>
21675 #else
21676 # include <assert.h>
21677 #endif
21678
21679 #undef $ac_func
21680
21681 /* Override any GCC internal prototype to avoid an error.
21682 Use char because int might match the return type of a GCC
21683 builtin and then its argument prototype would still apply. */
21684 #ifdef __cplusplus
21685 extern "C"
21686 #endif
21687 char $ac_func ();
21688 /* The GNU C library defines this for functions which it implements
21689 to always fail with ENOSYS. Some functions are actually named
21690 something starting with __ and the normal name is an alias. */
21691 #if defined __stub_$ac_func || defined __stub___$ac_func
21692 choke me
21693 #endif
21694
21695 int
21696 main ()
21697 {
21698 return $ac_func ();
21699 ;
21700 return 0;
21701 }
21702 _ACEOF
21703 rm -f conftest.$ac_objext conftest$ac_exeext
21704 if { (ac_try="$ac_link"
21705 case "(($ac_try" in
21706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707 *) ac_try_echo=$ac_try;;
21708 esac
21709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21710 (eval "$ac_link") 2>conftest.er1
21711 ac_status=$?
21712 grep -v '^ *+' conftest.er1 >conftest.err
21713 rm -f conftest.er1
21714 cat conftest.err >&5
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); } && {
21717 test -z "$ac_c_werror_flag" ||
21718 test ! -s conftest.err
21719 } && test -s conftest$ac_exeext &&
21720 $as_test_x conftest$ac_exeext; then
21721 eval "$as_ac_var=yes"
21722 else
21723 echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21725
21726 eval "$as_ac_var=no"
21727 fi
21728
21729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21730 conftest$ac_exeext conftest.$ac_ext
21731 fi
21732 ac_res=`eval echo '${'$as_ac_var'}'`
21733 { echo "$as_me:$LINENO: result: $ac_res" >&5
21734 echo "${ECHO_T}$ac_res" >&6; }
21735 if test `eval echo '${'$as_ac_var'}'` = yes; then
21736 cat >>confdefs.h <<_ACEOF
21737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21738 _ACEOF
21739
21740 fi
21741 done
21742
21743 if test $ac_cv_func_gettimeofday = yes; then
21744 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21745 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21746 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21747 echo $ECHO_N "(cached) $ECHO_C" >&6
21748 else
21749 cat >conftest.$ac_ext <<_ACEOF
21750 /* confdefs.h. */
21751 _ACEOF
21752 cat confdefs.h >>conftest.$ac_ext
21753 cat >>conftest.$ac_ext <<_ACEOF
21754 /* end confdefs.h. */
21755
21756 #ifdef TIME_WITH_SYS_TIME
21757 #include <sys/time.h>
21758 #include <time.h>
21759 #else
21760 #ifdef HAVE_SYS_TIME_H
21761 #include <sys/time.h>
21762 #else
21763 #include <time.h>
21764 #endif
21765 #endif
21766 int
21767 main ()
21768 {
21769 struct timeval time;
21770 gettimeofday (&time, 0);
21771 ;
21772 return 0;
21773 }
21774 _ACEOF
21775 rm -f conftest.$ac_objext
21776 if { (ac_try="$ac_compile"
21777 case "(($ac_try" in
21778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21779 *) ac_try_echo=$ac_try;;
21780 esac
21781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21782 (eval "$ac_compile") 2>conftest.er1
21783 ac_status=$?
21784 grep -v '^ *+' conftest.er1 >conftest.err
21785 rm -f conftest.er1
21786 cat conftest.err >&5
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); } && {
21789 test -z "$ac_c_werror_flag" ||
21790 test ! -s conftest.err
21791 } && test -s conftest.$ac_objext; then
21792 emacs_cv_gettimeofday_two_arguments=yes
21793 else
21794 echo "$as_me: failed program was:" >&5
21795 sed 's/^/| /' conftest.$ac_ext >&5
21796
21797 emacs_cv_gettimeofday_two_arguments=no
21798 fi
21799
21800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21801 fi
21802 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21803 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21804 if test $emacs_cv_gettimeofday_two_arguments = no; then
21805
21806 cat >>confdefs.h <<\_ACEOF
21807 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21808 _ACEOF
21809
21810 fi
21811 fi
21812 fi
21813
21814 ok_so_far=yes
21815 { echo "$as_me:$LINENO: checking for socket" >&5
21816 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21817 if test "${ac_cv_func_socket+set}" = set; then
21818 echo $ECHO_N "(cached) $ECHO_C" >&6
21819 else
21820 cat >conftest.$ac_ext <<_ACEOF
21821 /* confdefs.h. */
21822 _ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h. */
21826 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21828 #define socket innocuous_socket
21829
21830 /* System header to define __stub macros and hopefully few prototypes,
21831 which can conflict with char socket (); below.
21832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21833 <limits.h> exists even on freestanding compilers. */
21834
21835 #ifdef __STDC__
21836 # include <limits.h>
21837 #else
21838 # include <assert.h>
21839 #endif
21840
21841 #undef socket
21842
21843 /* Override any GCC internal prototype to avoid an error.
21844 Use char because int might match the return type of a GCC
21845 builtin and then its argument prototype would still apply. */
21846 #ifdef __cplusplus
21847 extern "C"
21848 #endif
21849 char socket ();
21850 /* The GNU C library defines this for functions which it implements
21851 to always fail with ENOSYS. Some functions are actually named
21852 something starting with __ and the normal name is an alias. */
21853 #if defined __stub_socket || defined __stub___socket
21854 choke me
21855 #endif
21856
21857 int
21858 main ()
21859 {
21860 return socket ();
21861 ;
21862 return 0;
21863 }
21864 _ACEOF
21865 rm -f conftest.$ac_objext conftest$ac_exeext
21866 if { (ac_try="$ac_link"
21867 case "(($ac_try" in
21868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21869 *) ac_try_echo=$ac_try;;
21870 esac
21871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21872 (eval "$ac_link") 2>conftest.er1
21873 ac_status=$?
21874 grep -v '^ *+' conftest.er1 >conftest.err
21875 rm -f conftest.er1
21876 cat conftest.err >&5
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); } && {
21879 test -z "$ac_c_werror_flag" ||
21880 test ! -s conftest.err
21881 } && test -s conftest$ac_exeext &&
21882 $as_test_x conftest$ac_exeext; then
21883 ac_cv_func_socket=yes
21884 else
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21887
21888 ac_cv_func_socket=no
21889 fi
21890
21891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21892 conftest$ac_exeext conftest.$ac_ext
21893 fi
21894 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21895 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21896 if test $ac_cv_func_socket = yes; then
21897 :
21898 else
21899 ok_so_far=no
21900 fi
21901
21902 if test $ok_so_far = yes; then
21903 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21904 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21905 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21906 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21907 echo $ECHO_N "(cached) $ECHO_C" >&6
21908 fi
21909 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21910 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21911 else
21912 # Is the header compilable?
21913 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21914 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21915 cat >conftest.$ac_ext <<_ACEOF
21916 /* confdefs.h. */
21917 _ACEOF
21918 cat confdefs.h >>conftest.$ac_ext
21919 cat >>conftest.$ac_ext <<_ACEOF
21920 /* end confdefs.h. */
21921 $ac_includes_default
21922 #include <netinet/in.h>
21923 _ACEOF
21924 rm -f conftest.$ac_objext
21925 if { (ac_try="$ac_compile"
21926 case "(($ac_try" in
21927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21928 *) ac_try_echo=$ac_try;;
21929 esac
21930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21931 (eval "$ac_compile") 2>conftest.er1
21932 ac_status=$?
21933 grep -v '^ *+' conftest.er1 >conftest.err
21934 rm -f conftest.er1
21935 cat conftest.err >&5
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); } && {
21938 test -z "$ac_c_werror_flag" ||
21939 test ! -s conftest.err
21940 } && test -s conftest.$ac_objext; then
21941 ac_header_compiler=yes
21942 else
21943 echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.$ac_ext >&5
21945
21946 ac_header_compiler=no
21947 fi
21948
21949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21950 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21951 echo "${ECHO_T}$ac_header_compiler" >&6; }
21952
21953 # Is the header present?
21954 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21955 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21956 cat >conftest.$ac_ext <<_ACEOF
21957 /* confdefs.h. */
21958 _ACEOF
21959 cat confdefs.h >>conftest.$ac_ext
21960 cat >>conftest.$ac_ext <<_ACEOF
21961 /* end confdefs.h. */
21962 #include <netinet/in.h>
21963 _ACEOF
21964 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
21977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21978 test ! -s conftest.err
21979 }; then
21980 ac_header_preproc=yes
21981 else
21982 echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21984
21985 ac_header_preproc=no
21986 fi
21987
21988 rm -f conftest.err conftest.$ac_ext
21989 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21990 echo "${ECHO_T}$ac_header_preproc" >&6; }
21991
21992 # So? What about this header?
21993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21994 yes:no: )
21995 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21996 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21997 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21998 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21999 ac_header_preproc=yes
22000 ;;
22001 no:yes:* )
22002 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22003 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22004 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22005 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22006 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22007 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22008 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22009 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22010 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22011 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22012 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22013 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22014
22015 ;;
22016 esac
22017 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22018 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22019 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22020 echo $ECHO_N "(cached) $ECHO_C" >&6
22021 else
22022 ac_cv_header_netinet_in_h=$ac_header_preproc
22023 fi
22024 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22025 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22026
22027 fi
22028 if test $ac_cv_header_netinet_in_h = yes; then
22029 :
22030 else
22031 ok_so_far=no
22032 fi
22033
22034
22035 fi
22036 if test $ok_so_far = yes; then
22037 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22038 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22039 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22040 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22041 echo $ECHO_N "(cached) $ECHO_C" >&6
22042 fi
22043 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22044 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22045 else
22046 # Is the header compilable?
22047 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22048 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22049 cat >conftest.$ac_ext <<_ACEOF
22050 /* confdefs.h. */
22051 _ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h. */
22055 $ac_includes_default
22056 #include <arpa/inet.h>
22057 _ACEOF
22058 rm -f conftest.$ac_objext
22059 if { (ac_try="$ac_compile"
22060 case "(($ac_try" in
22061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062 *) ac_try_echo=$ac_try;;
22063 esac
22064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22065 (eval "$ac_compile") 2>conftest.er1
22066 ac_status=$?
22067 grep -v '^ *+' conftest.er1 >conftest.err
22068 rm -f conftest.er1
22069 cat conftest.err >&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); } && {
22072 test -z "$ac_c_werror_flag" ||
22073 test ! -s conftest.err
22074 } && test -s conftest.$ac_objext; then
22075 ac_header_compiler=yes
22076 else
22077 echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22079
22080 ac_header_compiler=no
22081 fi
22082
22083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22085 echo "${ECHO_T}$ac_header_compiler" >&6; }
22086
22087 # Is the header present?
22088 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22089 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22090 cat >conftest.$ac_ext <<_ACEOF
22091 /* confdefs.h. */
22092 _ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22096 #include <arpa/inet.h>
22097 _ACEOF
22098 if { (ac_try="$ac_cpp conftest.$ac_ext"
22099 case "(($ac_try" in
22100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101 *) ac_try_echo=$ac_try;;
22102 esac
22103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22105 ac_status=$?
22106 grep -v '^ *+' conftest.er1 >conftest.err
22107 rm -f conftest.er1
22108 cat conftest.err >&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); } >/dev/null && {
22111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22112 test ! -s conftest.err
22113 }; then
22114 ac_header_preproc=yes
22115 else
22116 echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22118
22119 ac_header_preproc=no
22120 fi
22121
22122 rm -f conftest.err conftest.$ac_ext
22123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22124 echo "${ECHO_T}$ac_header_preproc" >&6; }
22125
22126 # So? What about this header?
22127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22128 yes:no: )
22129 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22130 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22131 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22132 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22133 ac_header_preproc=yes
22134 ;;
22135 no:yes:* )
22136 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22137 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22138 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22139 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22140 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22141 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22142 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22143 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22144 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22145 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22146 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22147 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22148
22149 ;;
22150 esac
22151 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22152 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22153 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22154 echo $ECHO_N "(cached) $ECHO_C" >&6
22155 else
22156 ac_cv_header_arpa_inet_h=$ac_header_preproc
22157 fi
22158 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22159 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22160
22161 fi
22162 if test $ac_cv_header_arpa_inet_h = yes; then
22163 :
22164 else
22165 ok_so_far=no
22166 fi
22167
22168
22169 fi
22170 if test $ok_so_far = yes; then
22171
22172 cat >>confdefs.h <<\_ACEOF
22173 #define HAVE_INET_SOCKETS 1
22174 _ACEOF
22175
22176 fi
22177
22178
22179 for ac_header in sys/ioctl.h
22180 do
22181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22186 echo $ECHO_N "(cached) $ECHO_C" >&6
22187 fi
22188 ac_res=`eval echo '${'$as_ac_Header'}'`
22189 { echo "$as_me:$LINENO: result: $ac_res" >&5
22190 echo "${ECHO_T}$ac_res" >&6; }
22191 else
22192 # Is the header compilable?
22193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22195 cat >conftest.$ac_ext <<_ACEOF
22196 /* confdefs.h. */
22197 _ACEOF
22198 cat confdefs.h >>conftest.$ac_ext
22199 cat >>conftest.$ac_ext <<_ACEOF
22200 /* end confdefs.h. */
22201 $ac_includes_default
22202 #include <$ac_header>
22203 _ACEOF
22204 rm -f conftest.$ac_objext
22205 if { (ac_try="$ac_compile"
22206 case "(($ac_try" in
22207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22208 *) ac_try_echo=$ac_try;;
22209 esac
22210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22211 (eval "$ac_compile") 2>conftest.er1
22212 ac_status=$?
22213 grep -v '^ *+' conftest.er1 >conftest.err
22214 rm -f conftest.er1
22215 cat conftest.err >&5
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); } && {
22218 test -z "$ac_c_werror_flag" ||
22219 test ! -s conftest.err
22220 } && test -s conftest.$ac_objext; then
22221 ac_header_compiler=yes
22222 else
22223 echo "$as_me: failed program was:" >&5
22224 sed 's/^/| /' conftest.$ac_ext >&5
22225
22226 ac_header_compiler=no
22227 fi
22228
22229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22231 echo "${ECHO_T}$ac_header_compiler" >&6; }
22232
22233 # Is the header present?
22234 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22236 cat >conftest.$ac_ext <<_ACEOF
22237 /* confdefs.h. */
22238 _ACEOF
22239 cat confdefs.h >>conftest.$ac_ext
22240 cat >>conftest.$ac_ext <<_ACEOF
22241 /* end confdefs.h. */
22242 #include <$ac_header>
22243 _ACEOF
22244 if { (ac_try="$ac_cpp conftest.$ac_ext"
22245 case "(($ac_try" in
22246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247 *) ac_try_echo=$ac_try;;
22248 esac
22249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22251 ac_status=$?
22252 grep -v '^ *+' conftest.er1 >conftest.err
22253 rm -f conftest.er1
22254 cat conftest.err >&5
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } >/dev/null && {
22257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22258 test ! -s conftest.err
22259 }; then
22260 ac_header_preproc=yes
22261 else
22262 echo "$as_me: failed program was:" >&5
22263 sed 's/^/| /' conftest.$ac_ext >&5
22264
22265 ac_header_preproc=no
22266 fi
22267
22268 rm -f conftest.err conftest.$ac_ext
22269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22270 echo "${ECHO_T}$ac_header_preproc" >&6; }
22271
22272 # So? What about this header?
22273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22274 yes:no: )
22275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22279 ac_header_preproc=yes
22280 ;;
22281 no:yes:* )
22282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22294
22295 ;;
22296 esac
22297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22300 echo $ECHO_N "(cached) $ECHO_C" >&6
22301 else
22302 eval "$as_ac_Header=\$ac_header_preproc"
22303 fi
22304 ac_res=`eval echo '${'$as_ac_Header'}'`
22305 { echo "$as_me:$LINENO: result: $ac_res" >&5
22306 echo "${ECHO_T}$ac_res" >&6; }
22307
22308 fi
22309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22310 cat >>confdefs.h <<_ACEOF
22311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22312 _ACEOF
22313
22314 fi
22315
22316 done
22317
22318
22319 if test -f /usr/lpp/X11/bin/smt.exp; then
22320
22321 cat >>confdefs.h <<\_ACEOF
22322 #define HAVE_AIX_SMT_EXP 1
22323 _ACEOF
22324
22325 fi
22326
22327 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22328 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22329 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22330 { echo "$as_me:$LINENO: result: yes" >&5
22331 echo "${ECHO_T}yes" >&6; }
22332
22333 cat >>confdefs.h <<\_ACEOF
22334 #define HAVE_DEV_PTMX 1
22335 _ACEOF
22336
22337 else
22338 { echo "$as_me:$LINENO: result: no" >&5
22339 echo "${ECHO_T}no" >&6; }
22340 fi
22341
22342 { echo "$as_me:$LINENO: checking for pid_t" >&5
22343 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22344 if test "${ac_cv_type_pid_t+set}" = set; then
22345 echo $ECHO_N "(cached) $ECHO_C" >&6
22346 else
22347 cat >conftest.$ac_ext <<_ACEOF
22348 /* confdefs.h. */
22349 _ACEOF
22350 cat confdefs.h >>conftest.$ac_ext
22351 cat >>conftest.$ac_ext <<_ACEOF
22352 /* end confdefs.h. */
22353 $ac_includes_default
22354 typedef pid_t ac__type_new_;
22355 int
22356 main ()
22357 {
22358 if ((ac__type_new_ *) 0)
22359 return 0;
22360 if (sizeof (ac__type_new_))
22361 return 0;
22362 ;
22363 return 0;
22364 }
22365 _ACEOF
22366 rm -f conftest.$ac_objext
22367 if { (ac_try="$ac_compile"
22368 case "(($ac_try" in
22369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22370 *) ac_try_echo=$ac_try;;
22371 esac
22372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22373 (eval "$ac_compile") 2>conftest.er1
22374 ac_status=$?
22375 grep -v '^ *+' conftest.er1 >conftest.err
22376 rm -f conftest.er1
22377 cat conftest.err >&5
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); } && {
22380 test -z "$ac_c_werror_flag" ||
22381 test ! -s conftest.err
22382 } && test -s conftest.$ac_objext; then
22383 ac_cv_type_pid_t=yes
22384 else
22385 echo "$as_me: failed program was:" >&5
22386 sed 's/^/| /' conftest.$ac_ext >&5
22387
22388 ac_cv_type_pid_t=no
22389 fi
22390
22391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22392 fi
22393 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22394 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22395 if test $ac_cv_type_pid_t = yes; then
22396 :
22397 else
22398
22399 cat >>confdefs.h <<_ACEOF
22400 #define pid_t int
22401 _ACEOF
22402
22403 fi
22404
22405
22406 for ac_header in vfork.h
22407 do
22408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22413 echo $ECHO_N "(cached) $ECHO_C" >&6
22414 fi
22415 ac_res=`eval echo '${'$as_ac_Header'}'`
22416 { echo "$as_me:$LINENO: result: $ac_res" >&5
22417 echo "${ECHO_T}$ac_res" >&6; }
22418 else
22419 # Is the header compilable?
22420 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22422 cat >conftest.$ac_ext <<_ACEOF
22423 /* confdefs.h. */
22424 _ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h. */
22428 $ac_includes_default
22429 #include <$ac_header>
22430 _ACEOF
22431 rm -f conftest.$ac_objext
22432 if { (ac_try="$ac_compile"
22433 case "(($ac_try" in
22434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22435 *) ac_try_echo=$ac_try;;
22436 esac
22437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22438 (eval "$ac_compile") 2>conftest.er1
22439 ac_status=$?
22440 grep -v '^ *+' conftest.er1 >conftest.err
22441 rm -f conftest.er1
22442 cat conftest.err >&5
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); } && {
22445 test -z "$ac_c_werror_flag" ||
22446 test ! -s conftest.err
22447 } && test -s conftest.$ac_objext; then
22448 ac_header_compiler=yes
22449 else
22450 echo "$as_me: failed program was:" >&5
22451 sed 's/^/| /' conftest.$ac_ext >&5
22452
22453 ac_header_compiler=no
22454 fi
22455
22456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22458 echo "${ECHO_T}$ac_header_compiler" >&6; }
22459
22460 # Is the header present?
22461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22463 cat >conftest.$ac_ext <<_ACEOF
22464 /* confdefs.h. */
22465 _ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h. */
22469 #include <$ac_header>
22470 _ACEOF
22471 if { (ac_try="$ac_cpp conftest.$ac_ext"
22472 case "(($ac_try" in
22473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22474 *) ac_try_echo=$ac_try;;
22475 esac
22476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22478 ac_status=$?
22479 grep -v '^ *+' conftest.er1 >conftest.err
22480 rm -f conftest.er1
22481 cat conftest.err >&5
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); } >/dev/null && {
22484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22485 test ! -s conftest.err
22486 }; then
22487 ac_header_preproc=yes
22488 else
22489 echo "$as_me: failed program was:" >&5
22490 sed 's/^/| /' conftest.$ac_ext >&5
22491
22492 ac_header_preproc=no
22493 fi
22494
22495 rm -f conftest.err conftest.$ac_ext
22496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22497 echo "${ECHO_T}$ac_header_preproc" >&6; }
22498
22499 # So? What about this header?
22500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22501 yes:no: )
22502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22506 ac_header_preproc=yes
22507 ;;
22508 no:yes:* )
22509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22521
22522 ;;
22523 esac
22524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
22528 else
22529 eval "$as_ac_Header=\$ac_header_preproc"
22530 fi
22531 ac_res=`eval echo '${'$as_ac_Header'}'`
22532 { echo "$as_me:$LINENO: result: $ac_res" >&5
22533 echo "${ECHO_T}$ac_res" >&6; }
22534
22535 fi
22536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22537 cat >>confdefs.h <<_ACEOF
22538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22539 _ACEOF
22540
22541 fi
22542
22543 done
22544
22545
22546
22547 for ac_func in fork vfork
22548 do
22549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22553 echo $ECHO_N "(cached) $ECHO_C" >&6
22554 else
22555 cat >conftest.$ac_ext <<_ACEOF
22556 /* confdefs.h. */
22557 _ACEOF
22558 cat confdefs.h >>conftest.$ac_ext
22559 cat >>conftest.$ac_ext <<_ACEOF
22560 /* end confdefs.h. */
22561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22563 #define $ac_func innocuous_$ac_func
22564
22565 /* System header to define __stub macros and hopefully few prototypes,
22566 which can conflict with char $ac_func (); below.
22567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22568 <limits.h> exists even on freestanding compilers. */
22569
22570 #ifdef __STDC__
22571 # include <limits.h>
22572 #else
22573 # include <assert.h>
22574 #endif
22575
22576 #undef $ac_func
22577
22578 /* Override any GCC internal prototype to avoid an error.
22579 Use char because int might match the return type of a GCC
22580 builtin and then its argument prototype would still apply. */
22581 #ifdef __cplusplus
22582 extern "C"
22583 #endif
22584 char $ac_func ();
22585 /* The GNU C library defines this for functions which it implements
22586 to always fail with ENOSYS. Some functions are actually named
22587 something starting with __ and the normal name is an alias. */
22588 #if defined __stub_$ac_func || defined __stub___$ac_func
22589 choke me
22590 #endif
22591
22592 int
22593 main ()
22594 {
22595 return $ac_func ();
22596 ;
22597 return 0;
22598 }
22599 _ACEOF
22600 rm -f conftest.$ac_objext conftest$ac_exeext
22601 if { (ac_try="$ac_link"
22602 case "(($ac_try" in
22603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22604 *) ac_try_echo=$ac_try;;
22605 esac
22606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22607 (eval "$ac_link") 2>conftest.er1
22608 ac_status=$?
22609 grep -v '^ *+' conftest.er1 >conftest.err
22610 rm -f conftest.er1
22611 cat conftest.err >&5
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); } && {
22614 test -z "$ac_c_werror_flag" ||
22615 test ! -s conftest.err
22616 } && test -s conftest$ac_exeext &&
22617 $as_test_x conftest$ac_exeext; then
22618 eval "$as_ac_var=yes"
22619 else
22620 echo "$as_me: failed program was:" >&5
22621 sed 's/^/| /' conftest.$ac_ext >&5
22622
22623 eval "$as_ac_var=no"
22624 fi
22625
22626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22627 conftest$ac_exeext conftest.$ac_ext
22628 fi
22629 ac_res=`eval echo '${'$as_ac_var'}'`
22630 { echo "$as_me:$LINENO: result: $ac_res" >&5
22631 echo "${ECHO_T}$ac_res" >&6; }
22632 if test `eval echo '${'$as_ac_var'}'` = yes; then
22633 cat >>confdefs.h <<_ACEOF
22634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22635 _ACEOF
22636
22637 fi
22638 done
22639
22640 if test "x$ac_cv_func_fork" = xyes; then
22641 { echo "$as_me:$LINENO: checking for working fork" >&5
22642 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22643 if test "${ac_cv_func_fork_works+set}" = set; then
22644 echo $ECHO_N "(cached) $ECHO_C" >&6
22645 else
22646 if test "$cross_compiling" = yes; then
22647 ac_cv_func_fork_works=cross
22648 else
22649 cat >conftest.$ac_ext <<_ACEOF
22650 /* confdefs.h. */
22651 _ACEOF
22652 cat confdefs.h >>conftest.$ac_ext
22653 cat >>conftest.$ac_ext <<_ACEOF
22654 /* end confdefs.h. */
22655 $ac_includes_default
22656 int
22657 main ()
22658 {
22659
22660 /* By Ruediger Kuhlmann. */
22661 return fork () < 0;
22662
22663 ;
22664 return 0;
22665 }
22666 _ACEOF
22667 rm -f conftest$ac_exeext
22668 if { (ac_try="$ac_link"
22669 case "(($ac_try" in
22670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22671 *) ac_try_echo=$ac_try;;
22672 esac
22673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22674 (eval "$ac_link") 2>&5
22675 ac_status=$?
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22678 { (case "(($ac_try" in
22679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22680 *) ac_try_echo=$ac_try;;
22681 esac
22682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22683 (eval "$ac_try") 2>&5
22684 ac_status=$?
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); }; }; then
22687 ac_cv_func_fork_works=yes
22688 else
22689 echo "$as_me: program exited with status $ac_status" >&5
22690 echo "$as_me: failed program was:" >&5
22691 sed 's/^/| /' conftest.$ac_ext >&5
22692
22693 ( exit $ac_status )
22694 ac_cv_func_fork_works=no
22695 fi
22696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22697 fi
22698
22699
22700 fi
22701 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22702 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22703
22704 else
22705 ac_cv_func_fork_works=$ac_cv_func_fork
22706 fi
22707 if test "x$ac_cv_func_fork_works" = xcross; then
22708 case $host in
22709 *-*-amigaos* | *-*-msdosdjgpp*)
22710 # Override, as these systems have only a dummy fork() stub
22711 ac_cv_func_fork_works=no
22712 ;;
22713 *)
22714 ac_cv_func_fork_works=yes
22715 ;;
22716 esac
22717 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22718 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22719 fi
22720 ac_cv_func_vfork_works=$ac_cv_func_vfork
22721 if test "x$ac_cv_func_vfork" = xyes; then
22722 { echo "$as_me:$LINENO: checking for working vfork" >&5
22723 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22724 if test "${ac_cv_func_vfork_works+set}" = set; then
22725 echo $ECHO_N "(cached) $ECHO_C" >&6
22726 else
22727 if test "$cross_compiling" = yes; then
22728 ac_cv_func_vfork_works=cross
22729 else
22730 cat >conftest.$ac_ext <<_ACEOF
22731 /* confdefs.h. */
22732 _ACEOF
22733 cat confdefs.h >>conftest.$ac_ext
22734 cat >>conftest.$ac_ext <<_ACEOF
22735 /* end confdefs.h. */
22736 /* Thanks to Paul Eggert for this test. */
22737 $ac_includes_default
22738 #include <sys/wait.h>
22739 #ifdef HAVE_VFORK_H
22740 # include <vfork.h>
22741 #endif
22742 /* On some sparc systems, changes by the child to local and incoming
22743 argument registers are propagated back to the parent. The compiler
22744 is told about this with #include <vfork.h>, but some compilers
22745 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22746 static variable whose address is put into a register that is
22747 clobbered by the vfork. */
22748 static void
22749 #ifdef __cplusplus
22750 sparc_address_test (int arg)
22751 # else
22752 sparc_address_test (arg) int arg;
22753 #endif
22754 {
22755 static pid_t child;
22756 if (!child) {
22757 child = vfork ();
22758 if (child < 0) {
22759 perror ("vfork");
22760 _exit(2);
22761 }
22762 if (!child) {
22763 arg = getpid();
22764 write(-1, "", 0);
22765 _exit (arg);
22766 }
22767 }
22768 }
22769
22770 int
22771 main ()
22772 {
22773 pid_t parent = getpid ();
22774 pid_t child;
22775
22776 sparc_address_test (0);
22777
22778 child = vfork ();
22779
22780 if (child == 0) {
22781 /* Here is another test for sparc vfork register problems. This
22782 test uses lots of local variables, at least as many local
22783 variables as main has allocated so far including compiler
22784 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22785 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22786 reuse the register of parent for one of the local variables,
22787 since it will think that parent can't possibly be used any more
22788 in this routine. Assigning to the local variable will thus
22789 munge parent in the parent process. */
22790 pid_t
22791 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22792 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22793 /* Convince the compiler that p..p7 are live; otherwise, it might
22794 use the same hardware register for all 8 local variables. */
22795 if (p != p1 || p != p2 || p != p3 || p != p4
22796 || p != p5 || p != p6 || p != p7)
22797 _exit(1);
22798
22799 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22800 from child file descriptors. If the child closes a descriptor
22801 before it execs or exits, this munges the parent's descriptor
22802 as well. Test for this by closing stdout in the child. */
22803 _exit(close(fileno(stdout)) != 0);
22804 } else {
22805 int status;
22806 struct stat st;
22807
22808 while (wait(&status) != child)
22809 ;
22810 return (
22811 /* Was there some problem with vforking? */
22812 child < 0
22813
22814 /* Did the child fail? (This shouldn't happen.) */
22815 || status
22816
22817 /* Did the vfork/compiler bug occur? */
22818 || parent != getpid()
22819
22820 /* Did the file descriptor bug occur? */
22821 || fstat(fileno(stdout), &st) != 0
22822 );
22823 }
22824 }
22825 _ACEOF
22826 rm -f conftest$ac_exeext
22827 if { (ac_try="$ac_link"
22828 case "(($ac_try" in
22829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22830 *) ac_try_echo=$ac_try;;
22831 esac
22832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22833 (eval "$ac_link") 2>&5
22834 ac_status=$?
22835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22837 { (case "(($ac_try" in
22838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22839 *) ac_try_echo=$ac_try;;
22840 esac
22841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22842 (eval "$ac_try") 2>&5
22843 ac_status=$?
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); }; }; then
22846 ac_cv_func_vfork_works=yes
22847 else
22848 echo "$as_me: program exited with status $ac_status" >&5
22849 echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22851
22852 ( exit $ac_status )
22853 ac_cv_func_vfork_works=no
22854 fi
22855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22856 fi
22857
22858
22859 fi
22860 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22861 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22862
22863 fi;
22864 if test "x$ac_cv_func_fork_works" = xcross; then
22865 ac_cv_func_vfork_works=$ac_cv_func_vfork
22866 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22867 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22868 fi
22869
22870 if test "x$ac_cv_func_vfork_works" = xyes; then
22871
22872 cat >>confdefs.h <<\_ACEOF
22873 #define HAVE_WORKING_VFORK 1
22874 _ACEOF
22875
22876 else
22877
22878 cat >>confdefs.h <<\_ACEOF
22879 #define vfork fork
22880 _ACEOF
22881
22882 fi
22883 if test "x$ac_cv_func_fork_works" = xyes; then
22884
22885 cat >>confdefs.h <<\_ACEOF
22886 #define HAVE_WORKING_FORK 1
22887 _ACEOF
22888
22889 fi
22890
22891
22892 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22893 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22894 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22895 echo $ECHO_N "(cached) $ECHO_C" >&6
22896 else
22897 cat >conftest.$ac_ext <<_ACEOF
22898 /* confdefs.h. */
22899 _ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22903 #include <langinfo.h>
22904 int
22905 main ()
22906 {
22907 char* cs = nl_langinfo(CODESET);
22908 ;
22909 return 0;
22910 }
22911 _ACEOF
22912 rm -f conftest.$ac_objext conftest$ac_exeext
22913 if { (ac_try="$ac_link"
22914 case "(($ac_try" in
22915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916 *) ac_try_echo=$ac_try;;
22917 esac
22918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22919 (eval "$ac_link") 2>conftest.er1
22920 ac_status=$?
22921 grep -v '^ *+' conftest.er1 >conftest.err
22922 rm -f conftest.er1
22923 cat conftest.err >&5
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); } && {
22926 test -z "$ac_c_werror_flag" ||
22927 test ! -s conftest.err
22928 } && test -s conftest$ac_exeext &&
22929 $as_test_x conftest$ac_exeext; then
22930 emacs_cv_langinfo_codeset=yes
22931 else
22932 echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22934
22935 emacs_cv_langinfo_codeset=no
22936 fi
22937
22938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22939 conftest$ac_exeext conftest.$ac_ext
22940
22941 fi
22942 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22943 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22944 if test $emacs_cv_langinfo_codeset = yes; then
22945
22946 cat >>confdefs.h <<\_ACEOF
22947 #define HAVE_LANGINFO_CODESET 1
22948 _ACEOF
22949
22950 fi
22951
22952 { echo "$as_me:$LINENO: checking for size_t" >&5
22953 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22954 if test "${ac_cv_type_size_t+set}" = set; then
22955 echo $ECHO_N "(cached) $ECHO_C" >&6
22956 else
22957 cat >conftest.$ac_ext <<_ACEOF
22958 /* confdefs.h. */
22959 _ACEOF
22960 cat confdefs.h >>conftest.$ac_ext
22961 cat >>conftest.$ac_ext <<_ACEOF
22962 /* end confdefs.h. */
22963 $ac_includes_default
22964 typedef size_t ac__type_new_;
22965 int
22966 main ()
22967 {
22968 if ((ac__type_new_ *) 0)
22969 return 0;
22970 if (sizeof (ac__type_new_))
22971 return 0;
22972 ;
22973 return 0;
22974 }
22975 _ACEOF
22976 rm -f conftest.$ac_objext
22977 if { (ac_try="$ac_compile"
22978 case "(($ac_try" in
22979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22980 *) ac_try_echo=$ac_try;;
22981 esac
22982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22983 (eval "$ac_compile") 2>conftest.er1
22984 ac_status=$?
22985 grep -v '^ *+' conftest.er1 >conftest.err
22986 rm -f conftest.er1
22987 cat conftest.err >&5
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); } && {
22990 test -z "$ac_c_werror_flag" ||
22991 test ! -s conftest.err
22992 } && test -s conftest.$ac_objext; then
22993 ac_cv_type_size_t=yes
22994 else
22995 echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22997
22998 ac_cv_type_size_t=no
22999 fi
23000
23001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23002 fi
23003 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23004 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23005 if test $ac_cv_type_size_t = yes; then
23006
23007 cat >>confdefs.h <<_ACEOF
23008 #define HAVE_SIZE_T 1
23009 _ACEOF
23010
23011
23012 fi
23013
23014
23015 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23016 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23017 if test "${ac_cv_type_mbstate_t+set}" = set; then
23018 echo $ECHO_N "(cached) $ECHO_C" >&6
23019 else
23020 cat >conftest.$ac_ext <<_ACEOF
23021 /* confdefs.h. */
23022 _ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23026 $ac_includes_default
23027 # include <wchar.h>
23028 int
23029 main ()
23030 {
23031 mbstate_t x; return sizeof x;
23032 ;
23033 return 0;
23034 }
23035 _ACEOF
23036 rm -f conftest.$ac_objext
23037 if { (ac_try="$ac_compile"
23038 case "(($ac_try" in
23039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23040 *) ac_try_echo=$ac_try;;
23041 esac
23042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23043 (eval "$ac_compile") 2>conftest.er1
23044 ac_status=$?
23045 grep -v '^ *+' conftest.er1 >conftest.err
23046 rm -f conftest.er1
23047 cat conftest.err >&5
23048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049 (exit $ac_status); } && {
23050 test -z "$ac_c_werror_flag" ||
23051 test ! -s conftest.err
23052 } && test -s conftest.$ac_objext; then
23053 ac_cv_type_mbstate_t=yes
23054 else
23055 echo "$as_me: failed program was:" >&5
23056 sed 's/^/| /' conftest.$ac_ext >&5
23057
23058 ac_cv_type_mbstate_t=no
23059 fi
23060
23061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23062 fi
23063 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23064 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23065 if test $ac_cv_type_mbstate_t = yes; then
23066
23067 cat >>confdefs.h <<\_ACEOF
23068 #define HAVE_MBSTATE_T 1
23069 _ACEOF
23070
23071 else
23072
23073 cat >>confdefs.h <<\_ACEOF
23074 #define mbstate_t int
23075 _ACEOF
23076
23077 fi
23078
23079 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23080 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23081 if test "${emacs_cv_c_restrict+set}" = set; then
23082 echo $ECHO_N "(cached) $ECHO_C" >&6
23083 else
23084 cat >conftest.$ac_ext <<_ACEOF
23085 /* confdefs.h. */
23086 _ACEOF
23087 cat confdefs.h >>conftest.$ac_ext
23088 cat >>conftest.$ac_ext <<_ACEOF
23089 /* end confdefs.h. */
23090 void fred (int *restrict x);
23091 int
23092 main ()
23093 {
23094
23095 ;
23096 return 0;
23097 }
23098 _ACEOF
23099 rm -f conftest.$ac_objext
23100 if { (ac_try="$ac_compile"
23101 case "(($ac_try" in
23102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23103 *) ac_try_echo=$ac_try;;
23104 esac
23105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23106 (eval "$ac_compile") 2>conftest.er1
23107 ac_status=$?
23108 grep -v '^ *+' conftest.er1 >conftest.err
23109 rm -f conftest.er1
23110 cat conftest.err >&5
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); } && {
23113 test -z "$ac_c_werror_flag" ||
23114 test ! -s conftest.err
23115 } && test -s conftest.$ac_objext; then
23116 emacs_cv_c_restrict=yes
23117 else
23118 echo "$as_me: failed program was:" >&5
23119 sed 's/^/| /' conftest.$ac_ext >&5
23120
23121 cat >conftest.$ac_ext <<_ACEOF
23122 /* confdefs.h. */
23123 _ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h. */
23127 void fred (int *__restrict x);
23128 int
23129 main ()
23130 {
23131
23132 ;
23133 return 0;
23134 }
23135 _ACEOF
23136 rm -f conftest.$ac_objext
23137 if { (ac_try="$ac_compile"
23138 case "(($ac_try" in
23139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23140 *) ac_try_echo=$ac_try;;
23141 esac
23142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23143 (eval "$ac_compile") 2>conftest.er1
23144 ac_status=$?
23145 grep -v '^ *+' conftest.er1 >conftest.err
23146 rm -f conftest.er1
23147 cat conftest.err >&5
23148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149 (exit $ac_status); } && {
23150 test -z "$ac_c_werror_flag" ||
23151 test ! -s conftest.err
23152 } && test -s conftest.$ac_objext; then
23153 emacs_cv_c_restrict=__restrict
23154 else
23155 echo "$as_me: failed program was:" >&5
23156 sed 's/^/| /' conftest.$ac_ext >&5
23157
23158 emacs_cv_c_restrict=no
23159 fi
23160
23161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23162 fi
23163
23164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23165 fi
23166 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23167 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23168 case "$emacs_cv_c_restrict" in
23169 yes) emacs_restrict=restrict;;
23170 no) emacs_restrict="";;
23171 *) emacs_restrict="$emacs_cv_c_restrict";;
23172 esac
23173 if test "$emacs_restrict" != __restrict; then
23174
23175 cat >>confdefs.h <<_ACEOF
23176 #define __restrict $emacs_restrict
23177 _ACEOF
23178
23179 fi
23180
23181 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23182 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23183 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23184 echo $ECHO_N "(cached) $ECHO_C" >&6
23185 else
23186 cat >conftest.$ac_ext <<_ACEOF
23187 /* confdefs.h. */
23188 _ACEOF
23189 cat confdefs.h >>conftest.$ac_ext
23190 cat >>conftest.$ac_ext <<_ACEOF
23191 /* end confdefs.h. */
23192 void fred (int x[__restrict]);
23193 int
23194 main ()
23195 {
23196
23197 ;
23198 return 0;
23199 }
23200 _ACEOF
23201 rm -f conftest.$ac_objext
23202 if { (ac_try="$ac_compile"
23203 case "(($ac_try" in
23204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23205 *) ac_try_echo=$ac_try;;
23206 esac
23207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23208 (eval "$ac_compile") 2>conftest.er1
23209 ac_status=$?
23210 grep -v '^ *+' conftest.er1 >conftest.err
23211 rm -f conftest.er1
23212 cat conftest.err >&5
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); } && {
23215 test -z "$ac_c_werror_flag" ||
23216 test ! -s conftest.err
23217 } && test -s conftest.$ac_objext; then
23218 emacs_cv_c_restrict_arr=yes
23219 else
23220 echo "$as_me: failed program was:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23222
23223 emacs_cv_c_restrict_arr=no
23224 fi
23225
23226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23227 fi
23228 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23229 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23230 if test "$emacs_cv_c_restrict_arr" = yes; then
23231
23232 cat >>confdefs.h <<\_ACEOF
23233 #define __restrict_arr __restrict
23234 _ACEOF
23235
23236 fi
23237
23238
23239
23240 # Set up the CFLAGS for real compilation, so we can substitute it.
23241 CFLAGS="$REAL_CFLAGS"
23242 CPPFLAGS="$REAL_CPPFLAGS"
23243
23244 #### Find out which version of Emacs this is.
23245 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23246 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23247 if test x"${version}" = x; then
23248 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23249 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23250 { (exit 1); exit 1; }; }
23251 fi
23252
23253 ### Specify what sort of things we'll be editing into Makefile and config.h.
23254 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290 cat >>confdefs.h <<_ACEOF
23291 #define EMACS_CONFIGURATION "${canonical}"
23292 _ACEOF
23293
23294
23295 cat >>confdefs.h <<_ACEOF
23296 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23297 _ACEOF
23298
23299
23300 cat >>confdefs.h <<_ACEOF
23301 #define config_machfile "${machfile}"
23302 _ACEOF
23303
23304
23305 cat >>confdefs.h <<_ACEOF
23306 #define config_opsysfile "${opsysfile}"
23307 _ACEOF
23308
23309
23310 cat >>confdefs.h <<_ACEOF
23311 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23312 _ACEOF
23313
23314
23315 cat >>confdefs.h <<_ACEOF
23316 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23317 _ACEOF
23318
23319
23320 cat >>confdefs.h <<_ACEOF
23321 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23322 _ACEOF
23323
23324
23325 cat >>confdefs.h <<_ACEOF
23326 #define UNEXEC_SRC ${UNEXEC_SRC}
23327 _ACEOF
23328
23329
23330 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23331
23332 cat >>confdefs.h <<\_ACEOF
23333 #define HAVE_X_WINDOWS 1
23334 _ACEOF
23335
23336 fi
23337 if test "${USE_X_TOOLKIT}" != "none" ; then
23338
23339 cat >>confdefs.h <<\_ACEOF
23340 #define USE_X_TOOLKIT 1
23341 _ACEOF
23342
23343 fi
23344 if test "${HAVE_X11}" = "yes" ; then
23345
23346 cat >>confdefs.h <<\_ACEOF
23347 #define HAVE_X11 1
23348 _ACEOF
23349
23350 fi
23351 if test "${HAVE_XFREE386}" = "yes" ; then
23352
23353 cat >>confdefs.h <<\_ACEOF
23354 #define HAVE_XFREE386 1
23355 _ACEOF
23356
23357 fi
23358 if test "${HAVE_MENUS}" = "yes" ; then
23359
23360 cat >>confdefs.h <<\_ACEOF
23361 #define HAVE_MENUS 1
23362 _ACEOF
23363
23364 fi
23365 if test "${GNU_MALLOC}" = "yes" ; then
23366
23367 cat >>confdefs.h <<\_ACEOF
23368 #define GNU_MALLOC 1
23369 _ACEOF
23370
23371 fi
23372 if test "${REL_ALLOC}" = "yes" ; then
23373
23374 cat >>confdefs.h <<\_ACEOF
23375 #define REL_ALLOC 1
23376 _ACEOF
23377
23378 fi
23379
23380
23381
23382
23383
23384 #### Report on what we decided to do.
23385 #### Report GTK as a toolkit, even if it doesn't use Xt.
23386 #### It makes printing result more understandable as using GTK sets
23387 #### toolkit_scroll_bars to yes by default.
23388 if test "${HAVE_GTK}" = "yes"; then
23389 USE_X_TOOLKIT=GTK
23390 fi
23391
23392 echo "
23393 Configured for \`${canonical}'.
23394
23395 Where should the build process find the source code? ${srcdir}
23396 What operating system and machine description files should Emacs use?
23397 \`${opsysfile}' and \`${machfile}'
23398 What compiler should emacs be built with? ${CC} ${CFLAGS}
23399 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23400 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23401 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23402 What window system should Emacs use? ${window_system}
23403 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23404
23405 if test -n "${x_includes}"; then
23406 echo " Where do we find X Windows header files? ${x_includes}"
23407 else
23408 echo " Where do we find X Windows header files? Standard dirs"
23409 fi
23410 if test -n "${x_libraries}"; then
23411 echo " Where do we find X Windows libraries? ${x_libraries}"
23412 else
23413 echo " Where do we find X Windows libraries? Standard dirs"
23414 fi
23415
23416 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23417 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23418 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23419 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23420 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23421 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23422 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23423 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23424 echo
23425
23426 if test $USE_XASSERTS = yes; then
23427 echo " Compiling with asserts turned on."
23428 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23429 echo
23430 fi
23431
23432 if test "$USE_X_TOOLKIT" = GTK; then
23433 case "$canonical" in
23434 *cygwin*)
23435 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23436 will probably get a crash on startup. If this happens, please use another
23437 toolkit for Emacs. See etc/PROBLEMS for more information."
23438 ;;
23439 esac
23440 fi
23441
23442
23443
23444 # Remove any trailing slashes in these variables.
23445 test "${prefix}" != NONE &&
23446 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23447 test "${exec_prefix}" != NONE &&
23448 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23449
23450 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23451 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23452 ## from Makefile.c can correctly provide the arg `-traditional' to the
23453 ## C preprocessor.
23454
23455 cat >conftest.$ac_ext <<_ACEOF
23456 /* confdefs.h. */
23457 _ACEOF
23458 cat confdefs.h >>conftest.$ac_ext
23459 cat >>conftest.$ac_ext <<_ACEOF
23460 /* end confdefs.h. */
23461 yes..yes
23462 _ACEOF
23463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23464 $EGREP "yes..yes" >/dev/null 2>&1; then
23465 CPP_NEED_TRADITIONAL=no
23466 else
23467 CPP_NEED_TRADITIONAL=yes
23468 fi
23469 rm -f conftest*
23470
23471
23472 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"
23473
23474 ac_config_commands="$ac_config_commands default"
23475
23476 cat >confcache <<\_ACEOF
23477 # This file is a shell script that caches the results of configure
23478 # tests run on this system so they can be shared between configure
23479 # scripts and configure runs, see configure's option --config-cache.
23480 # It is not useful on other systems. If it contains results you don't
23481 # want to keep, you may remove or edit it.
23482 #
23483 # config.status only pays attention to the cache file if you give it
23484 # the --recheck option to rerun configure.
23485 #
23486 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23487 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23488 # following values.
23489
23490 _ACEOF
23491
23492 # The following way of writing the cache mishandles newlines in values,
23493 # but we know of no workaround that is simple, portable, and efficient.
23494 # So, we kill variables containing newlines.
23495 # Ultrix sh set writes to stderr and can't be redirected directly,
23496 # and sets the high bit in the cache file unless we assign to the vars.
23497 (
23498 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23499 eval ac_val=\$$ac_var
23500 case $ac_val in #(
23501 *${as_nl}*)
23502 case $ac_var in #(
23503 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23504 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23505 esac
23506 case $ac_var in #(
23507 _ | IFS | as_nl) ;; #(
23508 *) $as_unset $ac_var ;;
23509 esac ;;
23510 esac
23511 done
23512
23513 (set) 2>&1 |
23514 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23515 *${as_nl}ac_space=\ *)
23516 # `set' does not quote correctly, so add quotes (double-quote
23517 # substitution turns \\\\ into \\, and sed turns \\ into \).
23518 sed -n \
23519 "s/'/'\\\\''/g;
23520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23521 ;; #(
23522 *)
23523 # `set' quotes correctly as required by POSIX, so do not add quotes.
23524 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23525 ;;
23526 esac |
23527 sort
23528 ) |
23529 sed '
23530 /^ac_cv_env_/b end
23531 t clear
23532 :clear
23533 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23534 t end
23535 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23536 :end' >>confcache
23537 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23538 if test -w "$cache_file"; then
23539 test "x$cache_file" != "x/dev/null" &&
23540 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23541 echo "$as_me: updating cache $cache_file" >&6;}
23542 cat confcache >$cache_file
23543 else
23544 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23545 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23546 fi
23547 fi
23548 rm -f confcache
23549
23550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23551 # Let make expand exec_prefix.
23552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23553
23554 DEFS=-DHAVE_CONFIG_H
23555
23556 ac_libobjs=
23557 ac_ltlibobjs=
23558 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23559 # 1. Remove the extension, and $U if already installed.
23560 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23561 ac_i=`echo "$ac_i" | sed "$ac_script"`
23562 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23563 # will be set to the directory where LIBOBJS objects are built.
23564 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23565 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23566 done
23567 LIBOBJS=$ac_libobjs
23568
23569 LTLIBOBJS=$ac_ltlibobjs
23570
23571
23572
23573 : ${CONFIG_STATUS=./config.status}
23574 ac_clean_files_save=$ac_clean_files
23575 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23576 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23577 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23578 cat >$CONFIG_STATUS <<_ACEOF
23579 #! $SHELL
23580 # Generated by $as_me.
23581 # Run this file to recreate the current configuration.
23582 # Compiler output produced by configure, useful for debugging
23583 # configure, is in config.log if it exists.
23584
23585 debug=false
23586 ac_cs_recheck=false
23587 ac_cs_silent=false
23588 SHELL=\${CONFIG_SHELL-$SHELL}
23589 _ACEOF
23590
23591 cat >>$CONFIG_STATUS <<\_ACEOF
23592 ## --------------------- ##
23593 ## M4sh Initialization. ##
23594 ## --------------------- ##
23595
23596 # Be more Bourne compatible
23597 DUALCASE=1; export DUALCASE # for MKS sh
23598 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23599 emulate sh
23600 NULLCMD=:
23601 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23602 # is contrary to our usage. Disable this feature.
23603 alias -g '${1+"$@"}'='"$@"'
23604 setopt NO_GLOB_SUBST
23605 else
23606 case `(set -o) 2>/dev/null` in
23607 *posix*) set -o posix ;;
23608 esac
23609
23610 fi
23611
23612
23613
23614
23615 # PATH needs CR
23616 # Avoid depending upon Character Ranges.
23617 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23618 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23619 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23620 as_cr_digits='0123456789'
23621 as_cr_alnum=$as_cr_Letters$as_cr_digits
23622
23623 # The user is always right.
23624 if test "${PATH_SEPARATOR+set}" != set; then
23625 echo "#! /bin/sh" >conf$$.sh
23626 echo "exit 0" >>conf$$.sh
23627 chmod +x conf$$.sh
23628 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23629 PATH_SEPARATOR=';'
23630 else
23631 PATH_SEPARATOR=:
23632 fi
23633 rm -f conf$$.sh
23634 fi
23635
23636 # Support unset when possible.
23637 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23638 as_unset=unset
23639 else
23640 as_unset=false
23641 fi
23642
23643
23644 # IFS
23645 # We need space, tab and new line, in precisely that order. Quoting is
23646 # there to prevent editors from complaining about space-tab.
23647 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23648 # splitting by setting IFS to empty value.)
23649 as_nl='
23650 '
23651 IFS=" "" $as_nl"
23652
23653 # Find who we are. Look in the path if we contain no directory separator.
23654 case $0 in
23655 *[\\/]* ) as_myself=$0 ;;
23656 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23657 for as_dir in $PATH
23658 do
23659 IFS=$as_save_IFS
23660 test -z "$as_dir" && as_dir=.
23661 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23662 done
23663 IFS=$as_save_IFS
23664
23665 ;;
23666 esac
23667 # We did not find ourselves, most probably we were run as `sh COMMAND'
23668 # in which case we are not to be found in the path.
23669 if test "x$as_myself" = x; then
23670 as_myself=$0
23671 fi
23672 if test ! -f "$as_myself"; then
23673 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23674 { (exit 1); exit 1; }
23675 fi
23676
23677 # Work around bugs in pre-3.0 UWIN ksh.
23678 for as_var in ENV MAIL MAILPATH
23679 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23680 done
23681 PS1='$ '
23682 PS2='> '
23683 PS4='+ '
23684
23685 # NLS nuisances.
23686 for as_var in \
23687 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23688 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23689 LC_TELEPHONE LC_TIME
23690 do
23691 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23692 eval $as_var=C; export $as_var
23693 else
23694 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23695 fi
23696 done
23697
23698 # Required to use basename.
23699 if expr a : '\(a\)' >/dev/null 2>&1 &&
23700 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23701 as_expr=expr
23702 else
23703 as_expr=false
23704 fi
23705
23706 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23707 as_basename=basename
23708 else
23709 as_basename=false
23710 fi
23711
23712
23713 # Name of the executable.
23714 as_me=`$as_basename -- "$0" ||
23715 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23716 X"$0" : 'X\(//\)$' \| \
23717 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23718 echo X/"$0" |
23719 sed '/^.*\/\([^/][^/]*\)\/*$/{
23720 s//\1/
23721 q
23722 }
23723 /^X\/\(\/\/\)$/{
23724 s//\1/
23725 q
23726 }
23727 /^X\/\(\/\).*/{
23728 s//\1/
23729 q
23730 }
23731 s/.*/./; q'`
23732
23733 # CDPATH.
23734 $as_unset CDPATH
23735
23736
23737
23738 as_lineno_1=$LINENO
23739 as_lineno_2=$LINENO
23740 test "x$as_lineno_1" != "x$as_lineno_2" &&
23741 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23742
23743 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23744 # uniformly replaced by the line number. The first 'sed' inserts a
23745 # line-number line after each line using $LINENO; the second 'sed'
23746 # does the real work. The second script uses 'N' to pair each
23747 # line-number line with the line containing $LINENO, and appends
23748 # trailing '-' during substitution so that $LINENO is not a special
23749 # case at line end.
23750 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23751 # scripts with optimization help from Paolo Bonzini. Blame Lee
23752 # E. McMahon (1931-1989) for sed's syntax. :-)
23753 sed -n '
23754 p
23755 /[$]LINENO/=
23756 ' <$as_myself |
23757 sed '
23758 s/[$]LINENO.*/&-/
23759 t lineno
23760 b
23761 :lineno
23762 N
23763 :loop
23764 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23765 t loop
23766 s/-\n.*//
23767 ' >$as_me.lineno &&
23768 chmod +x "$as_me.lineno" ||
23769 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23770 { (exit 1); exit 1; }; }
23771
23772 # Don't try to exec as it changes $[0], causing all sort of problems
23773 # (the dirname of $[0] is not the place where we might find the
23774 # original and so on. Autoconf is especially sensitive to this).
23775 . "./$as_me.lineno"
23776 # Exit status is that of the last command.
23777 exit
23778 }
23779
23780
23781 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23782 as_dirname=dirname
23783 else
23784 as_dirname=false
23785 fi
23786
23787 ECHO_C= ECHO_N= ECHO_T=
23788 case `echo -n x` in
23789 -n*)
23790 case `echo 'x\c'` in
23791 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23792 *) ECHO_C='\c';;
23793 esac;;
23794 *)
23795 ECHO_N='-n';;
23796 esac
23797
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 rm -f conf$$ conf$$.exe conf$$.file
23806 if test -d conf$$.dir; then
23807 rm -f conf$$.dir/conf$$.file
23808 else
23809 rm -f conf$$.dir
23810 mkdir conf$$.dir
23811 fi
23812 echo >conf$$.file
23813 if ln -s conf$$.file conf$$ 2>/dev/null; then
23814 as_ln_s='ln -s'
23815 # ... but there are two gotchas:
23816 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23817 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23818 # In both cases, we have to default to `cp -p'.
23819 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23820 as_ln_s='cp -p'
23821 elif ln conf$$.file conf$$ 2>/dev/null; then
23822 as_ln_s=ln
23823 else
23824 as_ln_s='cp -p'
23825 fi
23826 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23827 rmdir conf$$.dir 2>/dev/null
23828
23829 if mkdir -p . 2>/dev/null; then
23830 as_mkdir_p=:
23831 else
23832 test -d ./-p && rmdir ./-p
23833 as_mkdir_p=false
23834 fi
23835
23836 if test -x / >/dev/null 2>&1; then
23837 as_test_x='test -x'
23838 else
23839 if ls -dL / >/dev/null 2>&1; then
23840 as_ls_L_option=L
23841 else
23842 as_ls_L_option=
23843 fi
23844 as_test_x='
23845 eval sh -c '\''
23846 if test -d "$1"; then
23847 test -d "$1/.";
23848 else
23849 case $1 in
23850 -*)set "./$1";;
23851 esac;
23852 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23853 ???[sx]*):;;*)false;;esac;fi
23854 '\'' sh
23855 '
23856 fi
23857 as_executable_p=$as_test_x
23858
23859 # Sed expression to map a string onto a valid CPP name.
23860 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23861
23862 # Sed expression to map a string onto a valid variable name.
23863 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23864
23865
23866 exec 6>&1
23867
23868 # Save the log message, to keep $[0] and so on meaningful, and to
23869 # report actual input values of CONFIG_FILES etc. instead of their
23870 # values after options handling.
23871 ac_log="
23872 This file was extended by $as_me, which was
23873 generated by GNU Autoconf 2.61. Invocation command line was
23874
23875 CONFIG_FILES = $CONFIG_FILES
23876 CONFIG_HEADERS = $CONFIG_HEADERS
23877 CONFIG_LINKS = $CONFIG_LINKS
23878 CONFIG_COMMANDS = $CONFIG_COMMANDS
23879 $ $0 $@
23880
23881 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23882 "
23883
23884 _ACEOF
23885
23886 cat >>$CONFIG_STATUS <<_ACEOF
23887 # Files that config.status was made for.
23888 config_files="$ac_config_files"
23889 config_headers="$ac_config_headers"
23890 config_commands="$ac_config_commands"
23891
23892 _ACEOF
23893
23894 cat >>$CONFIG_STATUS <<\_ACEOF
23895 ac_cs_usage="\
23896 \`$as_me' instantiates files from templates according to the
23897 current configuration.
23898
23899 Usage: $0 [OPTIONS] [FILE]...
23900
23901 -h, --help print this help, then exit
23902 -V, --version print version number and configuration settings, then exit
23903 -q, --quiet do not print progress messages
23904 -d, --debug don't remove temporary files
23905 --recheck update $as_me by reconfiguring in the same conditions
23906 --file=FILE[:TEMPLATE]
23907 instantiate the configuration file FILE
23908 --header=FILE[:TEMPLATE]
23909 instantiate the configuration header FILE
23910
23911 Configuration files:
23912 $config_files
23913
23914 Configuration headers:
23915 $config_headers
23916
23917 Configuration commands:
23918 $config_commands
23919
23920 Report bugs to <bug-autoconf@gnu.org>."
23921
23922 _ACEOF
23923 cat >>$CONFIG_STATUS <<_ACEOF
23924 ac_cs_version="\\
23925 config.status
23926 configured by $0, generated by GNU Autoconf 2.61,
23927 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23928
23929 Copyright (C) 2006 Free Software Foundation, Inc.
23930 This config.status script is free software; the Free Software Foundation
23931 gives unlimited permission to copy, distribute and modify it."
23932
23933 ac_pwd='$ac_pwd'
23934 srcdir='$srcdir'
23935 INSTALL='$INSTALL'
23936 _ACEOF
23937
23938 cat >>$CONFIG_STATUS <<\_ACEOF
23939 # If no file are specified by the user, then we need to provide default
23940 # value. By we need to know if files were specified by the user.
23941 ac_need_defaults=:
23942 while test $# != 0
23943 do
23944 case $1 in
23945 --*=*)
23946 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23947 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23948 ac_shift=:
23949 ;;
23950 *)
23951 ac_option=$1
23952 ac_optarg=$2
23953 ac_shift=shift
23954 ;;
23955 esac
23956
23957 case $ac_option in
23958 # Handling of the options.
23959 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23960 ac_cs_recheck=: ;;
23961 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23962 echo "$ac_cs_version"; exit ;;
23963 --debug | --debu | --deb | --de | --d | -d )
23964 debug=: ;;
23965 --file | --fil | --fi | --f )
23966 $ac_shift
23967 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23968 ac_need_defaults=false;;
23969 --header | --heade | --head | --hea )
23970 $ac_shift
23971 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23972 ac_need_defaults=false;;
23973 --he | --h)
23974 # Conflict between --help and --header
23975 { echo "$as_me: error: ambiguous option: $1
23976 Try \`$0 --help' for more information." >&2
23977 { (exit 1); exit 1; }; };;
23978 --help | --hel | -h )
23979 echo "$ac_cs_usage"; exit ;;
23980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23981 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23982 ac_cs_silent=: ;;
23983
23984 # This is an error.
23985 -*) { echo "$as_me: error: unrecognized option: $1
23986 Try \`$0 --help' for more information." >&2
23987 { (exit 1); exit 1; }; } ;;
23988
23989 *) ac_config_targets="$ac_config_targets $1"
23990 ac_need_defaults=false ;;
23991
23992 esac
23993 shift
23994 done
23995
23996 ac_configure_extra_args=
23997
23998 if $ac_cs_silent; then
23999 exec 6>/dev/null
24000 ac_configure_extra_args="$ac_configure_extra_args --silent"
24001 fi
24002
24003 _ACEOF
24004 cat >>$CONFIG_STATUS <<_ACEOF
24005 if \$ac_cs_recheck; then
24006 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24007 CONFIG_SHELL=$SHELL
24008 export CONFIG_SHELL
24009 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24010 fi
24011
24012 _ACEOF
24013 cat >>$CONFIG_STATUS <<\_ACEOF
24014 exec 5>>config.log
24015 {
24016 echo
24017 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24018 ## Running $as_me. ##
24019 _ASBOX
24020 echo "$ac_log"
24021 } >&5
24022
24023 _ACEOF
24024 cat >>$CONFIG_STATUS <<_ACEOF
24025 #
24026 # INIT-COMMANDS
24027 #
24028 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24029
24030 _ACEOF
24031
24032 cat >>$CONFIG_STATUS <<\_ACEOF
24033
24034 # Handling of arguments.
24035 for ac_config_target in $ac_config_targets
24036 do
24037 case $ac_config_target in
24038 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24039 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24040 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24041 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24042 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24043 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24044 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24045 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24046 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
24047 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
24048 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24049 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24050
24051 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24052 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24053 { (exit 1); exit 1; }; };;
24054 esac
24055 done
24056
24057
24058 # If the user did not use the arguments to specify the items to instantiate,
24059 # then the envvar interface is used. Set only those that are not.
24060 # We use the long form for the default assignment because of an extremely
24061 # bizarre bug on SunOS 4.1.3.
24062 if $ac_need_defaults; then
24063 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24064 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24065 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24066 fi
24067
24068 # Have a temporary directory for convenience. Make it in the build tree
24069 # simply because there is no reason against having it here, and in addition,
24070 # creating and moving files from /tmp can sometimes cause problems.
24071 # Hook for its removal unless debugging.
24072 # Note that there is a small window in which the directory will not be cleaned:
24073 # after its creation but before its name has been assigned to `$tmp'.
24074 $debug ||
24075 {
24076 tmp=
24077 trap 'exit_status=$?
24078 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24079 ' 0
24080 trap '{ (exit 1); exit 1; }' 1 2 13 15
24081 }
24082 # Create a (secure) tmp directory for tmp files.
24083
24084 {
24085 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24086 test -n "$tmp" && test -d "$tmp"
24087 } ||
24088 {
24089 tmp=./conf$$-$RANDOM
24090 (umask 077 && mkdir "$tmp")
24091 } ||
24092 {
24093 echo "$me: cannot create a temporary directory in ." >&2
24094 { (exit 1); exit 1; }
24095 }
24096
24097 #
24098 # Set up the sed scripts for CONFIG_FILES section.
24099 #
24100
24101 # No need to generate the scripts if there are no CONFIG_FILES.
24102 # This happens for instance when ./config.status config.h
24103 if test -n "$CONFIG_FILES"; then
24104
24105 _ACEOF
24106
24107
24108
24109 ac_delim='%!_!# '
24110 for ac_last_try in false false false false false :; do
24111 cat >conf$$subs.sed <<_ACEOF
24112 SHELL!$SHELL$ac_delim
24113 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24114 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24115 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24116 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24117 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24118 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24119 exec_prefix!$exec_prefix$ac_delim
24120 prefix!$prefix$ac_delim
24121 program_transform_name!$program_transform_name$ac_delim
24122 bindir!$bindir$ac_delim
24123 sbindir!$sbindir$ac_delim
24124 libexecdir!$libexecdir$ac_delim
24125 datarootdir!$datarootdir$ac_delim
24126 datadir!$datadir$ac_delim
24127 sysconfdir!$sysconfdir$ac_delim
24128 sharedstatedir!$sharedstatedir$ac_delim
24129 localstatedir!$localstatedir$ac_delim
24130 includedir!$includedir$ac_delim
24131 oldincludedir!$oldincludedir$ac_delim
24132 docdir!$docdir$ac_delim
24133 infodir!$infodir$ac_delim
24134 htmldir!$htmldir$ac_delim
24135 dvidir!$dvidir$ac_delim
24136 pdfdir!$pdfdir$ac_delim
24137 psdir!$psdir$ac_delim
24138 libdir!$libdir$ac_delim
24139 localedir!$localedir$ac_delim
24140 mandir!$mandir$ac_delim
24141 DEFS!$DEFS$ac_delim
24142 ECHO_C!$ECHO_C$ac_delim
24143 ECHO_N!$ECHO_N$ac_delim
24144 ECHO_T!$ECHO_T$ac_delim
24145 LIBS!$LIBS$ac_delim
24146 build_alias!$build_alias$ac_delim
24147 host_alias!$host_alias$ac_delim
24148 target_alias!$target_alias$ac_delim
24149 MAINT!$MAINT$ac_delim
24150 build!$build$ac_delim
24151 build_cpu!$build_cpu$ac_delim
24152 build_vendor!$build_vendor$ac_delim
24153 build_os!$build_os$ac_delim
24154 host!$host$ac_delim
24155 host_cpu!$host_cpu$ac_delim
24156 host_vendor!$host_vendor$ac_delim
24157 host_os!$host_os$ac_delim
24158 CC!$CC$ac_delim
24159 CFLAGS!$CFLAGS$ac_delim
24160 LDFLAGS!$LDFLAGS$ac_delim
24161 CPPFLAGS!$CPPFLAGS$ac_delim
24162 ac_ct_CC!$ac_ct_CC$ac_delim
24163 EXEEXT!$EXEEXT$ac_delim
24164 OBJEXT!$OBJEXT$ac_delim
24165 CPP!$CPP$ac_delim
24166 GREP!$GREP$ac_delim
24167 EGREP!$EGREP$ac_delim
24168 LN_S!$LN_S$ac_delim
24169 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24170 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24171 INSTALL_DATA!$INSTALL_DATA$ac_delim
24172 RANLIB!$RANLIB$ac_delim
24173 INSTALL_INFO!$INSTALL_INFO$ac_delim
24174 GZIP_PROG!$GZIP_PROG$ac_delim
24175 LIBSOUND!$LIBSOUND$ac_delim
24176 PKG_CONFIG!$PKG_CONFIG$ac_delim
24177 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24178 ALSA_LIBS!$ALSA_LIBS$ac_delim
24179 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24180 SET_MAKE!$SET_MAKE$ac_delim
24181 XMKMF!$XMKMF$ac_delim
24182 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24183 GTK_LIBS!$GTK_LIBS$ac_delim
24184 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24185 XFT_LIBS!$XFT_LIBS$ac_delim
24186 ALLOCA!$ALLOCA$ac_delim
24187 liblockfile!$liblockfile$ac_delim
24188 LIBOBJS!$LIBOBJS$ac_delim
24189 NEED_SETGID!$NEED_SETGID$ac_delim
24190 KMEM_GROUP!$KMEM_GROUP$ac_delim
24191 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24192 GETOPT_H!$GETOPT_H$ac_delim
24193 GETOPTOBJS!$GETOPTOBJS$ac_delim
24194 version!$version$ac_delim
24195 configuration!$configuration$ac_delim
24196 canonical!$canonical$ac_delim
24197 srcdir!$srcdir$ac_delim
24198 lispdir!$lispdir$ac_delim
24199 locallisppath!$locallisppath$ac_delim
24200 lisppath!$lisppath$ac_delim
24201 x_default_search_path!$x_default_search_path$ac_delim
24202 etcdir!$etcdir$ac_delim
24203 archlibdir!$archlibdir$ac_delim
24204 bitmapdir!$bitmapdir$ac_delim
24205 gamedir!$gamedir$ac_delim
24206 gameuser!$gameuser$ac_delim
24207 c_switch_system!$c_switch_system$ac_delim
24208 c_switch_machine!$c_switch_machine$ac_delim
24209 _ACEOF
24210
24211 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24212 break
24213 elif $ac_last_try; then
24214 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24215 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24216 { (exit 1); exit 1; }; }
24217 else
24218 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24219 fi
24220 done
24221
24222 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24223 if test -n "$ac_eof"; then
24224 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24225 ac_eof=`expr $ac_eof + 1`
24226 fi
24227
24228 cat >>$CONFIG_STATUS <<_ACEOF
24229 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24230 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24231 _ACEOF
24232 sed '
24233 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24234 s/^/s,@/; s/!/@,|#_!!_#|/
24235 :n
24236 t n
24237 s/'"$ac_delim"'$/,g/; t
24238 s/$/\\/; p
24239 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24240 ' >>$CONFIG_STATUS <conf$$subs.sed
24241 rm -f conf$$subs.sed
24242 cat >>$CONFIG_STATUS <<_ACEOF
24243 CEOF$ac_eof
24244 _ACEOF
24245
24246
24247 ac_delim='%!_!# '
24248 for ac_last_try in false false false false false :; do
24249 cat >conf$$subs.sed <<_ACEOF
24250 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24251 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24252 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24253 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24254 machfile!$machfile$ac_delim
24255 opsysfile!$opsysfile$ac_delim
24256 carbon_appdir!$carbon_appdir$ac_delim
24257 LTLIBOBJS!$LTLIBOBJS$ac_delim
24258 _ACEOF
24259
24260 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
24261 break
24262 elif $ac_last_try; then
24263 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24264 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24265 { (exit 1); exit 1; }; }
24266 else
24267 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24268 fi
24269 done
24270
24271 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24272 if test -n "$ac_eof"; then
24273 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24274 ac_eof=`expr $ac_eof + 1`
24275 fi
24276
24277 cat >>$CONFIG_STATUS <<_ACEOF
24278 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24280 _ACEOF
24281 sed '
24282 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24283 s/^/s,@/; s/!/@,|#_!!_#|/
24284 :n
24285 t n
24286 s/'"$ac_delim"'$/,g/; t
24287 s/$/\\/; p
24288 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24289 ' >>$CONFIG_STATUS <conf$$subs.sed
24290 rm -f conf$$subs.sed
24291 cat >>$CONFIG_STATUS <<_ACEOF
24292 :end
24293 s/|#_!!_#|//g
24294 CEOF$ac_eof
24295 _ACEOF
24296
24297
24298 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24299 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24300 # trailing colons and then remove the whole line if VPATH becomes empty
24301 # (actually we leave an empty line to preserve line numbers).
24302 if test "x$srcdir" = x.; then
24303 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24304 s/:*\$(srcdir):*/:/
24305 s/:*\${srcdir}:*/:/
24306 s/:*@srcdir@:*/:/
24307 s/^\([^=]*=[ ]*\):*/\1/
24308 s/:*$//
24309 s/^[^=]*=[ ]*$//
24310 }'
24311 fi
24312
24313 cat >>$CONFIG_STATUS <<\_ACEOF
24314 fi # test -n "$CONFIG_FILES"
24315
24316
24317 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24318 do
24319 case $ac_tag in
24320 :[FHLC]) ac_mode=$ac_tag; continue;;
24321 esac
24322 case $ac_mode$ac_tag in
24323 :[FHL]*:*);;
24324 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24325 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24326 { (exit 1); exit 1; }; };;
24327 :[FH]-) ac_tag=-:-;;
24328 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24329 esac
24330 ac_save_IFS=$IFS
24331 IFS=:
24332 set x $ac_tag
24333 IFS=$ac_save_IFS
24334 shift
24335 ac_file=$1
24336 shift
24337
24338 case $ac_mode in
24339 :L) ac_source=$1;;
24340 :[FH])
24341 ac_file_inputs=
24342 for ac_f
24343 do
24344 case $ac_f in
24345 -) ac_f="$tmp/stdin";;
24346 *) # Look for the file first in the build tree, then in the source tree
24347 # (if the path is not absolute). The absolute path cannot be DOS-style,
24348 # because $ac_f cannot contain `:'.
24349 test -f "$ac_f" ||
24350 case $ac_f in
24351 [\\/$]*) false;;
24352 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24353 esac ||
24354 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24355 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24356 { (exit 1); exit 1; }; };;
24357 esac
24358 ac_file_inputs="$ac_file_inputs $ac_f"
24359 done
24360
24361 # Let's still pretend it is `configure' which instantiates (i.e., don't
24362 # use $as_me), people would be surprised to read:
24363 # /* config.h. Generated by config.status. */
24364 configure_input="Generated from "`IFS=:
24365 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24366 if test x"$ac_file" != x-; then
24367 configure_input="$ac_file. $configure_input"
24368 { echo "$as_me:$LINENO: creating $ac_file" >&5
24369 echo "$as_me: creating $ac_file" >&6;}
24370 fi
24371
24372 case $ac_tag in
24373 *:-:* | *:-) cat >"$tmp/stdin";;
24374 esac
24375 ;;
24376 esac
24377
24378 ac_dir=`$as_dirname -- "$ac_file" ||
24379 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24380 X"$ac_file" : 'X\(//\)[^/]' \| \
24381 X"$ac_file" : 'X\(//\)$' \| \
24382 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24383 echo X"$ac_file" |
24384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24385 s//\1/
24386 q
24387 }
24388 /^X\(\/\/\)[^/].*/{
24389 s//\1/
24390 q
24391 }
24392 /^X\(\/\/\)$/{
24393 s//\1/
24394 q
24395 }
24396 /^X\(\/\).*/{
24397 s//\1/
24398 q
24399 }
24400 s/.*/./; q'`
24401 { as_dir="$ac_dir"
24402 case $as_dir in #(
24403 -*) as_dir=./$as_dir;;
24404 esac
24405 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24406 as_dirs=
24407 while :; do
24408 case $as_dir in #(
24409 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24410 *) as_qdir=$as_dir;;
24411 esac
24412 as_dirs="'$as_qdir' $as_dirs"
24413 as_dir=`$as_dirname -- "$as_dir" ||
24414 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24415 X"$as_dir" : 'X\(//\)[^/]' \| \
24416 X"$as_dir" : 'X\(//\)$' \| \
24417 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24418 echo X"$as_dir" |
24419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24420 s//\1/
24421 q
24422 }
24423 /^X\(\/\/\)[^/].*/{
24424 s//\1/
24425 q
24426 }
24427 /^X\(\/\/\)$/{
24428 s//\1/
24429 q
24430 }
24431 /^X\(\/\).*/{
24432 s//\1/
24433 q
24434 }
24435 s/.*/./; q'`
24436 test -d "$as_dir" && break
24437 done
24438 test -z "$as_dirs" || eval "mkdir $as_dirs"
24439 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24440 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24441 { (exit 1); exit 1; }; }; }
24442 ac_builddir=.
24443
24444 case "$ac_dir" in
24445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24446 *)
24447 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24448 # A ".." for each directory in $ac_dir_suffix.
24449 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24450 case $ac_top_builddir_sub in
24451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24453 esac ;;
24454 esac
24455 ac_abs_top_builddir=$ac_pwd
24456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24457 # for backward compatibility:
24458 ac_top_builddir=$ac_top_build_prefix
24459
24460 case $srcdir in
24461 .) # We are building in place.
24462 ac_srcdir=.
24463 ac_top_srcdir=$ac_top_builddir_sub
24464 ac_abs_top_srcdir=$ac_pwd ;;
24465 [\\/]* | ?:[\\/]* ) # Absolute name.
24466 ac_srcdir=$srcdir$ac_dir_suffix;
24467 ac_top_srcdir=$srcdir
24468 ac_abs_top_srcdir=$srcdir ;;
24469 *) # Relative name.
24470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24471 ac_top_srcdir=$ac_top_build_prefix$srcdir
24472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24473 esac
24474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24475
24476
24477 case $ac_mode in
24478 :F)
24479 #
24480 # CONFIG_FILE
24481 #
24482
24483 case $INSTALL in
24484 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24485 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24486 esac
24487 _ACEOF
24488
24489 cat >>$CONFIG_STATUS <<\_ACEOF
24490 # If the template does not know about datarootdir, expand it.
24491 # FIXME: This hack should be removed a few years after 2.60.
24492 ac_datarootdir_hack=; ac_datarootdir_seen=
24493
24494 case `sed -n '/datarootdir/ {
24495 p
24496 q
24497 }
24498 /@datadir@/p
24499 /@docdir@/p
24500 /@infodir@/p
24501 /@localedir@/p
24502 /@mandir@/p
24503 ' $ac_file_inputs` in
24504 *datarootdir*) ac_datarootdir_seen=yes;;
24505 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24506 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24507 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24508 _ACEOF
24509 cat >>$CONFIG_STATUS <<_ACEOF
24510 ac_datarootdir_hack='
24511 s&@datadir@&$datadir&g
24512 s&@docdir@&$docdir&g
24513 s&@infodir@&$infodir&g
24514 s&@localedir@&$localedir&g
24515 s&@mandir@&$mandir&g
24516 s&\\\${datarootdir}&$datarootdir&g' ;;
24517 esac
24518 _ACEOF
24519
24520 # Neutralize VPATH when `$srcdir' = `.'.
24521 # Shell code in configure.ac might set extrasub.
24522 # FIXME: do we really want to maintain this feature?
24523 cat >>$CONFIG_STATUS <<_ACEOF
24524 sed "$ac_vpsub
24525 $extrasub
24526 _ACEOF
24527 cat >>$CONFIG_STATUS <<\_ACEOF
24528 :t
24529 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24530 s&@configure_input@&$configure_input&;t t
24531 s&@top_builddir@&$ac_top_builddir_sub&;t t
24532 s&@srcdir@&$ac_srcdir&;t t
24533 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24534 s&@top_srcdir@&$ac_top_srcdir&;t t
24535 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24536 s&@builddir@&$ac_builddir&;t t
24537 s&@abs_builddir@&$ac_abs_builddir&;t t
24538 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24539 s&@INSTALL@&$ac_INSTALL&;t t
24540 $ac_datarootdir_hack
24541 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24542
24543 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24544 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24545 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24546 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24547 which seems to be undefined. Please make sure it is defined." >&5
24548 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24549 which seems to be undefined. Please make sure it is defined." >&2;}
24550
24551 rm -f "$tmp/stdin"
24552 case $ac_file in
24553 -) cat "$tmp/out"; rm -f "$tmp/out";;
24554 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24555 esac
24556 ;;
24557 :H)
24558 #
24559 # CONFIG_HEADER
24560 #
24561 _ACEOF
24562
24563 # Transform confdefs.h into a sed script `conftest.defines', that
24564 # substitutes the proper values into config.h.in to produce config.h.
24565 rm -f conftest.defines conftest.tail
24566 # First, append a space to every undef/define line, to ease matching.
24567 echo 's/$/ /' >conftest.defines
24568 # Then, protect against being on the right side of a sed subst, or in
24569 # an unquoted here document, in config.status. If some macros were
24570 # called several times there might be several #defines for the same
24571 # symbol, which is useless. But do not sort them, since the last
24572 # AC_DEFINE must be honored.
24573 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24574 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24575 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24576 # PARAMS is the parameter list in the macro definition--in most cases, it's
24577 # just an empty string.
24578 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24579 ac_dB='\\)[ (].*,\\1define\\2'
24580 ac_dC=' '
24581 ac_dD=' ,'
24582
24583 uniq confdefs.h |
24584 sed -n '
24585 t rset
24586 :rset
24587 s/^[ ]*#[ ]*define[ ][ ]*//
24588 t ok
24589 d
24590 :ok
24591 s/[\\&,]/\\&/g
24592 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24593 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24594 ' >>conftest.defines
24595
24596 # Remove the space that was appended to ease matching.
24597 # Then replace #undef with comments. This is necessary, for
24598 # example, in the case of _POSIX_SOURCE, which is predefined and required
24599 # on some systems where configure will not decide to define it.
24600 # (The regexp can be short, since the line contains either #define or #undef.)
24601 echo 's/ $//
24602 s,^[ #]*u.*,/* & */,' >>conftest.defines
24603
24604 # Break up conftest.defines:
24605 ac_max_sed_lines=50
24606
24607 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24608 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24609 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24610 # et cetera.
24611 ac_in='$ac_file_inputs'
24612 ac_out='"$tmp/out1"'
24613 ac_nxt='"$tmp/out2"'
24614
24615 while :
24616 do
24617 # Write a here document:
24618 cat >>$CONFIG_STATUS <<_ACEOF
24619 # First, check the format of the line:
24620 cat >"\$tmp/defines.sed" <<\\CEOF
24621 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24622 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24623 b
24624 :def
24625 _ACEOF
24626 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24627 echo 'CEOF
24628 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24629 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24630 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24631 grep . conftest.tail >/dev/null || break
24632 rm -f conftest.defines
24633 mv conftest.tail conftest.defines
24634 done
24635 rm -f conftest.defines conftest.tail
24636
24637 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24638 cat >>$CONFIG_STATUS <<\_ACEOF
24639 if test x"$ac_file" != x-; then
24640 echo "/* $configure_input */" >"$tmp/config.h"
24641 cat "$ac_result" >>"$tmp/config.h"
24642 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24643 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24644 echo "$as_me: $ac_file is unchanged" >&6;}
24645 else
24646 rm -f $ac_file
24647 mv "$tmp/config.h" $ac_file
24648 fi
24649 else
24650 echo "/* $configure_input */"
24651 cat "$ac_result"
24652 fi
24653 rm -f "$tmp/out12"
24654 ;;
24655
24656 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24657 echo "$as_me: executing $ac_file commands" >&6;}
24658 ;;
24659 esac
24660
24661
24662 case $ac_file$ac_mode in
24663 "default":C)
24664
24665 ### Make the necessary directories, if they don't exist.
24666 for dir in etc lisp ; do
24667 test -d ${dir} || mkdir ${dir}
24668 done
24669
24670 # Build src/Makefile from ${srcdir}/src/Makefile.c
24671 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24672 # This must be done after src/config.h is built, since we rely on that file.
24673
24674 # Now get this: Some word that is part of the ${srcdir} directory name
24675 # or the ${configuration} value might, just might, happen to be an
24676 # identifier like `sun4' or `i386' or something, and be predefined by
24677 # the C preprocessor to some helpful value like 1, or maybe the empty
24678 # string. Needless to say consequent macro substitutions are less
24679 # than conducive to the makefile finding the correct directory.
24680 undefs="`echo $top_srcdir $configuration $canonical |
24681 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24682 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24683 `"
24684
24685 echo creating src/epaths.h
24686 ${MAKE-make} epaths-force
24687
24688 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24689 # `..' to `. .' unless invoked with -traditional
24690
24691 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24692 CPPFLAGS="$CPPFLAGS -traditional"
24693 fi
24694
24695 echo creating lib-src/Makefile
24696 ( cd lib-src
24697 rm -f junk.c junk1.c junk2.c
24698 sed -e '/start of cpp stuff/q' \
24699 < Makefile.c > junk1.c
24700 sed -e '1,/start of cpp stuff/d'\
24701 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24702 < Makefile.c > junk.c
24703 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24704 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24705 cat junk1.c junk2.c > Makefile.new
24706 rm -f junk.c junk1.c junk2.c
24707 chmod 444 Makefile.new
24708 mv -f Makefile.new Makefile
24709 )
24710
24711 echo creating src/Makefile
24712 ( cd src
24713 rm -f junk.c junk1.c junk2.c
24714 sed -e '/start of cpp stuff/q' \
24715 < Makefile.c > junk1.c
24716 sed -e '1,/start of cpp stuff/d'\
24717 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24718 < Makefile.c > junk.c
24719 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24720 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24721 cat junk1.c junk2.c > Makefile.new
24722 rm -f junk.c junk1.c junk2.c
24723 chmod 444 Makefile.new
24724 mv -f Makefile.new Makefile
24725 )
24726
24727 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24728 echo creating src/.gdbinit
24729 echo source $srcdir/src/.gdbinit > src/.gdbinit
24730 fi
24731
24732 # This is how we know whether to re-run configure in certain cases.
24733 touch src/config.stamp
24734
24735 ;;
24736
24737 esac
24738 done # for ac_tag
24739
24740
24741 { (exit 0); exit 0; }
24742 _ACEOF
24743 chmod +x $CONFIG_STATUS
24744 ac_clean_files=$ac_clean_files_save
24745
24746
24747 # configure is writing to config.log, and then calls config.status.
24748 # config.status does its own redirection, appending to config.log.
24749 # Unfortunately, on DOS this fails, as config.log is still kept open
24750 # by configure, so config.status won't be able to write to it; its
24751 # output is simply discarded. So we exec the FD to /dev/null,
24752 # effectively closing config.log, so it can be properly (re)opened and
24753 # appended to by config.status. When coming back to configure, we
24754 # need to make the FD available again.
24755 if test "$no_create" != yes; then
24756 ac_cs_success=:
24757 ac_config_status_args=
24758 test "$silent" = yes &&
24759 ac_config_status_args="$ac_config_status_args --quiet"
24760 exec 5>/dev/null
24761 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24762 exec 5>>config.log
24763 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24764 # would make configure fail if this is the last instruction.
24765 $ac_cs_success || { (exit 1); exit 1; }
24766 fi
24767
24768