Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for Numdiff 5.8.
4 #
5 # Report bugs to <<ivprimi at libero dot it>>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$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 # Pre-4.2 versions of Zsh do 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 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell [email protected] about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576 exec 7<&0 </dev/null 6>&1
577
578 # Name of the host.
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583 #
584 # Initializations.
585 #
586 ac_default_prefix=/usr/local
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594 SHELL=${CONFIG_SHELL-/bin/sh}
595
596 # Identity of this package.
597 PACKAGE_NAME='Numdiff'
598 PACKAGE_TARNAME='numdiff'
599 PACKAGE_VERSION='5.8'
600 PACKAGE_STRING='Numdiff 5.8'
601 PACKAGE_BUGREPORT='<ivprimi at libero dot it>'
602
603 ac_unique_file="numdiff.h"
604 # Factoring default headers for most tests.
605 ac_includes_default="\
606 #include <stdio.h>
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
609 #endif
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
612 #endif
613 #ifdef STDC_HEADERS
614 # include <stdlib.h>
615 # include <stddef.h>
616 #else
617 # ifdef HAVE_STDLIB_H
618 # include <stdlib.h>
619 # endif
620 #endif
621 #ifdef HAVE_STRING_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 # include <memory.h>
624 # endif
625 # include <string.h>
626 #endif
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
629 #endif
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
632 #endif
633 #ifdef HAVE_STDINT_H
634 # include <stdint.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 # include <unistd.h>
638 #endif"
639
640 ac_subst_vars='LTLIBOBJS
641 LIBOBJS
642 SET_MAKE
643 LIB_CLOCK_GETTIME
644 INSTINFO
645 FIND
646 EGREP
647 GREP
648 CPP
649 OBJEXT
650 EXEEXT
651 ac_ct_CC
652 CPPFLAGS
653 LDFLAGS
654 CFLAGS
655 CC
656 target_alias
657 host_alias
658 build_alias
659 LIBS
660 ECHO_T
661 ECHO_N
662 ECHO_C
663 DEFS
664 mandir
665 localedir
666 libdir
667 psdir
668 pdfdir
669 dvidir
670 htmldir
671 infodir
672 docdir
673 oldincludedir
674 includedir
675 localstatedir
676 sharedstatedir
677 sysconfdir
678 datadir
679 datarootdir
680 libexecdir
681 sbindir
682 bindir
683 program_transform_name
684 prefix
685 exec_prefix
686 PACKAGE_BUGREPORT
687 PACKAGE_STRING
688 PACKAGE_VERSION
689 PACKAGE_TARNAME
690 PACKAGE_NAME
691 PATH_SEPARATOR
692 SHELL'
693 ac_subst_files=''
694 ac_user_opts='
695 enable_option_checking
696 enable_debug
697 enable_optimization
698 enable_nls
699 enable_gmp
700 enable_largefile
701 '
702 ac_precious_vars='build_alias
703 host_alias
704 target_alias
705 CC
706 CFLAGS
707 LDFLAGS
708 LIBS
709 CPPFLAGS
710 CPP'
711
712
713 # Initialize some variables set by options.
714 ac_init_help=
715 ac_init_version=false
716 ac_unrecognized_opts=
717 ac_unrecognized_sep=
718 # The variables have the same names as the options, with
719 # dashes changed to underlines.
720 cache_file=/dev/null
721 exec_prefix=NONE
722 no_create=
723 no_recursion=
724 prefix=NONE
725 program_prefix=NONE
726 program_suffix=NONE
727 program_transform_name=s,x,x,
728 silent=
729 site=
730 srcdir=
731 verbose=
732 x_includes=NONE
733 x_libraries=NONE
734
735 # Installation directory options.
736 # These are left unexpanded so users can "make install exec_prefix=/foo"
737 # and all the variables that are supposed to be based on exec_prefix
738 # by default will actually change.
739 # Use braces instead of parens because sh, perl, etc. also accept them.
740 # (The list follows the same order as the GNU Coding Standards.)
741 bindir='${exec_prefix}/bin'
742 sbindir='${exec_prefix}/sbin'
743 libexecdir='${exec_prefix}/libexec'
744 datarootdir='${prefix}/share'
745 datadir='${datarootdir}'
746 sysconfdir='${prefix}/etc'
747 sharedstatedir='${prefix}/com'
748 localstatedir='${prefix}/var'
749 includedir='${prefix}/include'
750 oldincludedir='/usr/include'
751 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
752 infodir='${datarootdir}/info'
753 htmldir='${docdir}'
754 dvidir='${docdir}'
755 pdfdir='${docdir}'
756 psdir='${docdir}'
757 libdir='${exec_prefix}/lib'
758 localedir='${datarootdir}/locale'
759 mandir='${datarootdir}/man'
760
761 ac_prev=
762 ac_dashdash=
763 for ac_option
764 do
765 # If the previous option needs an argument, assign it.
766 if test -n "$ac_prev"; then
767 eval $ac_prev=\$ac_option
768 ac_prev=
769 continue
770 fi
771
772 case $ac_option in
773 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
774 *) ac_optarg=yes ;;
775 esac
776
777 # Accept the important Cygnus configure options, so we can diagnose typos.
778
779 case $ac_dashdash$ac_option in
780 --)
781 ac_dashdash=yes ;;
782
783 -bindir | --bindir | --bindi | --bind | --bin | --bi)
784 ac_prev=bindir ;;
785 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
786 bindir=$ac_optarg ;;
787
788 -build | --build | --buil | --bui | --bu)
789 ac_prev=build_alias ;;
790 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
791 build_alias=$ac_optarg ;;
792
793 -cache-file | --cache-file | --cache-fil | --cache-fi \
794 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
795 ac_prev=cache_file ;;
796 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
797 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
798 cache_file=$ac_optarg ;;
799
800 --config-cache | -C)
801 cache_file=config.cache ;;
802
803 -datadir | --datadir | --datadi | --datad)
804 ac_prev=datadir ;;
805 -datadir=* | --datadir=* | --datadi=* | --datad=*)
806 datadir=$ac_optarg ;;
807
808 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
809 | --dataroo | --dataro | --datar)
810 ac_prev=datarootdir ;;
811 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
812 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
813 datarootdir=$ac_optarg ;;
814
815 -disable-* | --disable-*)
816 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
817 # Reject names that are not valid shell variable names.
818 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
819 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
820 { (exit 1); exit 1; }; }
821 ac_useropt_orig=$ac_useropt
822 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
823 case $ac_user_opts in
824 *"
825 "enable_$ac_useropt"
826 "*) ;;
827 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
828 ac_unrecognized_sep=', ';;
829 esac
830 eval enable_$ac_useropt=no ;;
831
832 -docdir | --docdir | --docdi | --doc | --do)
833 ac_prev=docdir ;;
834 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
835 docdir=$ac_optarg ;;
836
837 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
838 ac_prev=dvidir ;;
839 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
840 dvidir=$ac_optarg ;;
841
842 -enable-* | --enable-*)
843 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
844 # Reject names that are not valid shell variable names.
845 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
846 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
847 { (exit 1); exit 1; }; }
848 ac_useropt_orig=$ac_useropt
849 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
850 case $ac_user_opts in
851 *"
852 "enable_$ac_useropt"
853 "*) ;;
854 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
855 ac_unrecognized_sep=', ';;
856 esac
857 eval enable_$ac_useropt=\$ac_optarg ;;
858
859 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
860 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
861 | --exec | --exe | --ex)
862 ac_prev=exec_prefix ;;
863 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
864 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
865 | --exec=* | --exe=* | --ex=*)
866 exec_prefix=$ac_optarg ;;
867
868 -gas | --gas | --ga | --g)
869 # Obsolete; use --with-gas.
870 with_gas=yes ;;
871
872 -help | --help | --hel | --he | -h)
873 ac_init_help=long ;;
874 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
875 ac_init_help=recursive ;;
876 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
877 ac_init_help=short ;;
878
879 -host | --host | --hos | --ho)
880 ac_prev=host_alias ;;
881 -host=* | --host=* | --hos=* | --ho=*)
882 host_alias=$ac_optarg ;;
883
884 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
885 ac_prev=htmldir ;;
886 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
887 | --ht=*)
888 htmldir=$ac_optarg ;;
889
890 -includedir | --includedir | --includedi | --included | --include \
891 | --includ | --inclu | --incl | --inc)
892 ac_prev=includedir ;;
893 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
894 | --includ=* | --inclu=* | --incl=* | --inc=*)
895 includedir=$ac_optarg ;;
896
897 -infodir | --infodir | --infodi | --infod | --info | --inf)
898 ac_prev=infodir ;;
899 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
900 infodir=$ac_optarg ;;
901
902 -libdir | --libdir | --libdi | --libd)
903 ac_prev=libdir ;;
904 -libdir=* | --libdir=* | --libdi=* | --libd=*)
905 libdir=$ac_optarg ;;
906
907 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
908 | --libexe | --libex | --libe)
909 ac_prev=libexecdir ;;
910 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
911 | --libexe=* | --libex=* | --libe=*)
912 libexecdir=$ac_optarg ;;
913
914 -localedir | --localedir | --localedi | --localed | --locale)
915 ac_prev=localedir ;;
916 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
917 localedir=$ac_optarg ;;
918
919 -localstatedir | --localstatedir | --localstatedi | --localstated \
920 | --localstate | --localstat | --localsta | --localst | --locals)
921 ac_prev=localstatedir ;;
922 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
923 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
924 localstatedir=$ac_optarg ;;
925
926 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
927 ac_prev=mandir ;;
928 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
929 mandir=$ac_optarg ;;
930
931 -nfp | --nfp | --nf)
932 # Obsolete; use --without-fp.
933 with_fp=no ;;
934
935 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
936 | --no-cr | --no-c | -n)
937 no_create=yes ;;
938
939 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
940 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
941 no_recursion=yes ;;
942
943 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
944 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
945 | --oldin | --oldi | --old | --ol | --o)
946 ac_prev=oldincludedir ;;
947 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
948 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
949 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
950 oldincludedir=$ac_optarg ;;
951
952 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
953 ac_prev=prefix ;;
954 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
955 prefix=$ac_optarg ;;
956
957 -program-prefix | --program-prefix | --program-prefi | --program-pref \
958 | --program-pre | --program-pr | --program-p)
959 ac_prev=program_prefix ;;
960 -program-prefix=* | --program-prefix=* | --program-prefi=* \
961 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
962 program_prefix=$ac_optarg ;;
963
964 -program-suffix | --program-suffix | --program-suffi | --program-suff \
965 | --program-suf | --program-su | --program-s)
966 ac_prev=program_suffix ;;
967 -program-suffix=* | --program-suffix=* | --program-suffi=* \
968 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
969 program_suffix=$ac_optarg ;;
970
971 -program-transform-name | --program-transform-name \
972 | --program-transform-nam | --program-transform-na \
973 | --program-transform-n | --program-transform- \
974 | --program-transform | --program-transfor \
975 | --program-transfo | --program-transf \
976 | --program-trans | --program-tran \
977 | --progr-tra | --program-tr | --program-t)
978 ac_prev=program_transform_name ;;
979 -program-transform-name=* | --program-transform-name=* \
980 | --program-transform-nam=* | --program-transform-na=* \
981 | --program-transform-n=* | --program-transform-=* \
982 | --program-transform=* | --program-transfor=* \
983 | --program-transfo=* | --program-transf=* \
984 | --program-trans=* | --program-tran=* \
985 | --progr-tra=* | --program-tr=* | --program-t=*)
986 program_transform_name=$ac_optarg ;;
987
988 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
989 ac_prev=pdfdir ;;
990 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
991 pdfdir=$ac_optarg ;;
992
993 -psdir | --psdir | --psdi | --psd | --ps)
994 ac_prev=psdir ;;
995 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
996 psdir=$ac_optarg ;;
997
998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
999 | -silent | --silent | --silen | --sile | --sil)
1000 silent=yes ;;
1001
1002 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1003 ac_prev=sbindir ;;
1004 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1005 | --sbi=* | --sb=*)
1006 sbindir=$ac_optarg ;;
1007
1008 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1009 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1010 | --sharedst | --shareds | --shared | --share | --shar \
1011 | --sha | --sh)
1012 ac_prev=sharedstatedir ;;
1013 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1014 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1015 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1016 | --sha=* | --sh=*)
1017 sharedstatedir=$ac_optarg ;;
1018
1019 -site | --site | --sit)
1020 ac_prev=site ;;
1021 -site=* | --site=* | --sit=*)
1022 site=$ac_optarg ;;
1023
1024 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1025 ac_prev=srcdir ;;
1026 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1027 srcdir=$ac_optarg ;;
1028
1029 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1030 | --syscon | --sysco | --sysc | --sys | --sy)
1031 ac_prev=sysconfdir ;;
1032 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1033 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1034 sysconfdir=$ac_optarg ;;
1035
1036 -target | --target | --targe | --targ | --tar | --ta | --t)
1037 ac_prev=target_alias ;;
1038 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1039 target_alias=$ac_optarg ;;
1040
1041 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1042 verbose=yes ;;
1043
1044 -version | --version | --versio | --versi | --vers | -V)
1045 ac_init_version=: ;;
1046
1047 -with-* | --with-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1056 *"
1057 "with_$ac_useropt"
1058 "*) ;;
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1061 esac
1062 eval with_$ac_useropt=\$ac_optarg ;;
1063
1064 -without-* | --without-*)
1065 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1073 *"
1074 "with_$ac_useropt"
1075 "*) ;;
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval with_$ac_useropt=no ;;
1080
1081 --x)
1082 # Obsolete; use --with-x.
1083 with_x=yes ;;
1084
1085 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1086 | --x-incl | --x-inc | --x-in | --x-i)
1087 ac_prev=x_includes ;;
1088 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1089 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1090 x_includes=$ac_optarg ;;
1091
1092 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1093 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1094 ac_prev=x_libraries ;;
1095 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1096 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1097 x_libraries=$ac_optarg ;;
1098
1099 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1100 Try \`$0 --help' for more information." >&2
1101 { (exit 1); exit 1; }; }
1102 ;;
1103
1104 *=*)
1105 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1108 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1109 { (exit 1); exit 1; }; }
1110 eval $ac_envvar=\$ac_optarg
1111 export $ac_envvar ;;
1112
1113 *)
1114 # FIXME: should be removed in autoconf 3.0.
1115 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1116 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1117 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1118 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1119 ;;
1120
1121 esac
1122 done
1123
1124 if test -n "$ac_prev"; then
1125 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1126 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1127 { (exit 1); exit 1; }; }
1128 fi
1129
1130 if test -n "$ac_unrecognized_opts"; then
1131 case $enable_option_checking in
1132 no) ;;
1133 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1134 { (exit 1); exit 1; }; } ;;
1135 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1136 esac
1137 fi
1138
1139 # Check all directory arguments for consistency.
1140 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1141 datadir sysconfdir sharedstatedir localstatedir includedir \
1142 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1143 libdir localedir mandir
1144 do
1145 eval ac_val=\$$ac_var
1146 # Remove trailing slashes.
1147 case $ac_val in
1148 */ )
1149 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1150 eval $ac_var=\$ac_val;;
1151 esac
1152 # Be sure to have absolute directory names.
1153 case $ac_val in
1154 [\\/$]* | ?:[\\/]* ) continue;;
1155 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1156 esac
1157 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1158 { (exit 1); exit 1; }; }
1159 done
1160
1161 # There might be people who depend on the old broken behavior: `$host'
1162 # used to hold the argument of --host etc.
1163 # FIXME: To remove some day.
1164 build=$build_alias
1165 host=$host_alias
1166 target=$target_alias
1167
1168 # FIXME: To remove some day.
1169 if test "x$host_alias" != x; then
1170 if test "x$build_alias" = x; then
1171 cross_compiling=maybe
1172 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1173 If a cross compiler is detected then cross compile mode will be used." >&2
1174 elif test "x$build_alias" != "x$host_alias"; then
1175 cross_compiling=yes
1176 fi
1177 fi
1178
1179 ac_tool_prefix=
1180 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1181
1182 test "$silent" = yes && exec 6>/dev/null
1183
1184
1185 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1186 ac_ls_di=`ls -di .` &&
1187 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1188 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1189 { (exit 1); exit 1; }; }
1190 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1191 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1192 { (exit 1); exit 1; }; }
1193
1194
1195 # Find the source files, if location was not specified.
1196 if test -z "$srcdir"; then
1197 ac_srcdir_defaulted=yes
1198 # Try the directory containing this script, then the parent directory.
1199 ac_confdir=`$as_dirname -- "$as_myself" ||
1200 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1201 X"$as_myself" : 'X\(//\)[^/]' \| \
1202 X"$as_myself" : 'X\(//\)$' \| \
1203 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1204 $as_echo X"$as_myself" |
1205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1206 s//\1/
1207 q
1208 }
1209 /^X\(\/\/\)[^/].*/{
1210 s//\1/
1211 q
1212 }
1213 /^X\(\/\/\)$/{
1214 s//\1/
1215 q
1216 }
1217 /^X\(\/\).*/{
1218 s//\1/
1219 q
1220 }
1221 s/.*/./; q'`
1222 srcdir=$ac_confdir
1223 if test ! -r "$srcdir/$ac_unique_file"; then
1224 srcdir=..
1225 fi
1226 else
1227 ac_srcdir_defaulted=no
1228 fi
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1230 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1231 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1232 { (exit 1); exit 1; }; }
1233 fi
1234 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1235 ac_abs_confdir=`(
1236 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1237 { (exit 1); exit 1; }; }
1238 pwd)`
1239 # When building in place, set srcdir=.
1240 if test "$ac_abs_confdir" = "$ac_pwd"; then
1241 srcdir=.
1242 fi
1243 # Remove unnecessary trailing slashes from srcdir.
1244 # Double slashes in file names in object file debugging info
1245 # mess up M-x gdb in Emacs.
1246 case $srcdir in
1247 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1248 esac
1249 for ac_var in $ac_precious_vars; do
1250 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1251 eval ac_env_${ac_var}_value=\$${ac_var}
1252 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1253 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1254 done
1255
1256 #
1257 # Report the --help message.
1258 #
1259 if test "$ac_init_help" = "long"; then
1260 # Omit some internal or obsolete options to make the list less imposing.
1261 # This message is too long to be a string in the A/UX 3.1 sh.
1262 cat <<_ACEOF
1263 \`configure' configures Numdiff 5.8 to adapt to many kinds of systems.
1264
1265 Usage: $0 [OPTION]... [VAR=VALUE]...
1266
1267 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1268 VAR=VALUE. See below for descriptions of some of the useful variables.
1269
1270 Defaults for the options are specified in brackets.
1271
1272 Configuration:
1273 -h, --help display this help and exit
1274 --help=short display options specific to this package
1275 --help=recursive display the short help of all the included packages
1276 -V, --version display version information and exit
1277 -q, --quiet, --silent do not print \`checking...' messages
1278 --cache-file=FILE cache test results in FILE [disabled]
1279 -C, --config-cache alias for \`--cache-file=config.cache'
1280 -n, --no-create do not create output files
1281 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1282
1283 Installation directories:
1284 --prefix=PREFIX install architecture-independent files in PREFIX
1285 [$ac_default_prefix]
1286 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1287 [PREFIX]
1288
1289 By default, \`make install' will install all the files in
1290 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1291 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1292 for instance \`--prefix=\$HOME'.
1293
1294 For better control, use the options below.
1295
1296 Fine tuning of the installation directories:
1297 --bindir=DIR user executables [EPREFIX/bin]
1298 --sbindir=DIR system admin executables [EPREFIX/sbin]
1299 --libexecdir=DIR program executables [EPREFIX/libexec]
1300 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1301 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1302 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1303 --libdir=DIR object code libraries [EPREFIX/lib]
1304 --includedir=DIR C header files [PREFIX/include]
1305 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1306 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1307 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1308 --infodir=DIR info documentation [DATAROOTDIR/info]
1309 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1310 --mandir=DIR man documentation [DATAROOTDIR/man]
1311 --docdir=DIR documentation root [DATAROOTDIR/doc/numdiff]
1312 --htmldir=DIR html documentation [DOCDIR]
1313 --dvidir=DIR dvi documentation [DOCDIR]
1314 --pdfdir=DIR pdf documentation [DOCDIR]
1315 --psdir=DIR ps documentation [DOCDIR]
1316 _ACEOF
1317
1318 cat <<\_ACEOF
1319 _ACEOF
1320 fi
1321
1322 if test -n "$ac_init_help"; then
1323 case $ac_init_help in
1324 short | recursive ) echo "Configuration of Numdiff 5.8:";;
1325 esac
1326 cat <<\_ACEOF
1327
1328 Optional Features:
1329 --disable-option-checking ignore unrecognized --enable/--with options
1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1332 --enable-debug turn on debugging default=no
1333 --enable-optimization turn on basic optimization default=no
1334 --enable-nls turn on Natural Language Support default=yes
1335 --enable-gmp turn on use of GNU MP default=yes
1336 --disable-largefile omit support for large files
1337
1338 Some influential environment variables:
1339 CC C compiler command
1340 CFLAGS C compiler flags
1341 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1342 nonstandard directory <lib dir>
1343 LIBS libraries to pass to the linker, e.g. -l<library>
1344 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1345 you have headers in a nonstandard directory <include dir>
1346 CPP C preprocessor
1347
1348 Use these variables to override the choices made by `configure' or to help
1349 it to find libraries and programs with nonstandard names/locations.
1350
1351 Report bugs to <<ivprimi at libero dot it>>.
1352 _ACEOF
1353 ac_status=$?
1354 fi
1355
1356 if test "$ac_init_help" = "recursive"; then
1357 # If there are subdirs, report their specific --help.
1358 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1359 test -d "$ac_dir" ||
1360 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1361 continue
1362 ac_builddir=.
1363
1364 case "$ac_dir" in
1365 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1366 *)
1367 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1368 # A ".." for each directory in $ac_dir_suffix.
1369 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1370 case $ac_top_builddir_sub in
1371 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1372 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1373 esac ;;
1374 esac
1375 ac_abs_top_builddir=$ac_pwd
1376 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1377 # for backward compatibility:
1378 ac_top_builddir=$ac_top_build_prefix
1379
1380 case $srcdir in
1381 .) # We are building in place.
1382 ac_srcdir=.
1383 ac_top_srcdir=$ac_top_builddir_sub
1384 ac_abs_top_srcdir=$ac_pwd ;;
1385 [\\/]* | ?:[\\/]* ) # Absolute name.
1386 ac_srcdir=$srcdir$ac_dir_suffix;
1387 ac_top_srcdir=$srcdir
1388 ac_abs_top_srcdir=$srcdir ;;
1389 *) # Relative name.
1390 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1391 ac_top_srcdir=$ac_top_build_prefix$srcdir
1392 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1393 esac
1394 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1395
1396 cd "$ac_dir" || { ac_status=$?; continue; }
1397 # Check for guested configure.
1398 if test -f "$ac_srcdir/configure.gnu"; then
1399 echo &&
1400 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1401 elif test -f "$ac_srcdir/configure"; then
1402 echo &&
1403 $SHELL "$ac_srcdir/configure" --help=recursive
1404 else
1405 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1406 fi || ac_status=$?
1407 cd "$ac_pwd" || { ac_status=$?; break; }
1408 done
1409 fi
1410
1411 test -n "$ac_init_help" && exit $ac_status
1412 if $ac_init_version; then
1413 cat <<\_ACEOF
1414 Numdiff configure 5.8
1415 generated by GNU Autoconf 2.63
1416
1417 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1418 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1419 This configure script is free software; the Free Software Foundation
1420 gives unlimited permission to copy, distribute and modify it.
1421 _ACEOF
1422 exit
1423 fi
1424 cat >config.log <<_ACEOF
1425 This file contains any messages produced by compilers while
1426 running configure, to aid debugging if configure makes a mistake.
1427
1428 It was created by Numdiff $as_me 5.8, which was
1429 generated by GNU Autoconf 2.63. Invocation command line was
1430
1431 $ $0 $@
1432
1433 _ACEOF
1434 exec 5>>config.log
1435 {
1436 cat <<_ASUNAME
1437 ## --------- ##
1438 ## Platform. ##
1439 ## --------- ##
1440
1441 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1442 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1443 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1444 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1445 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1446
1447 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1448 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1449
1450 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1451 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1452 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1453 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1454 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1455 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1456 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1457
1458 _ASUNAME
1459
1460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1461 for as_dir in $PATH
1462 do
1463 IFS=$as_save_IFS
1464 test -z "$as_dir" && as_dir=.
1465 $as_echo "PATH: $as_dir"
1466 done
1467 IFS=$as_save_IFS
1468
1469 } >&5
1470
1471 cat >&5 <<_ACEOF
1472
1473
1474 ## ----------- ##
1475 ## Core tests. ##
1476 ## ----------- ##
1477
1478 _ACEOF
1479
1480
1481 # Keep a trace of the command line.
1482 # Strip out --no-create and --no-recursion so they do not pile up.
1483 # Strip out --silent because we don't want to record it for future runs.
1484 # Also quote any args containing shell meta-characters.
1485 # Make two passes to allow for proper duplicate-argument suppression.
1486 ac_configure_args=
1487 ac_configure_args0=
1488 ac_configure_args1=
1489 ac_must_keep_next=false
1490 for ac_pass in 1 2
1491 do
1492 for ac_arg
1493 do
1494 case $ac_arg in
1495 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1497 | -silent | --silent | --silen | --sile | --sil)
1498 continue ;;
1499 *\'*)
1500 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1501 esac
1502 case $ac_pass in
1503 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1504 2)
1505 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1506 if test $ac_must_keep_next = true; then
1507 ac_must_keep_next=false # Got value, back to normal.
1508 else
1509 case $ac_arg in
1510 *=* | --config-cache | -C | -disable-* | --disable-* \
1511 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1512 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1513 | -with-* | --with-* | -without-* | --without-* | --x)
1514 case "$ac_configure_args0 " in
1515 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1516 esac
1517 ;;
1518 -* ) ac_must_keep_next=true ;;
1519 esac
1520 fi
1521 ac_configure_args="$ac_configure_args '$ac_arg'"
1522 ;;
1523 esac
1524 done
1525 done
1526 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1527 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1528
1529 # When interrupted or exit'd, cleanup temporary files, and complete
1530 # config.log. We remove comments because anyway the quotes in there
1531 # would cause problems or look ugly.
1532 # WARNING: Use '\'' to represent an apostrophe within the trap.
1533 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1534 trap 'exit_status=$?
1535 # Save into config.log some information that might help in debugging.
1536 {
1537 echo
1538
1539 cat <<\_ASBOX
1540 ## ---------------- ##
1541 ## Cache variables. ##
1542 ## ---------------- ##
1543 _ASBOX
1544 echo
1545 # The following way of writing the cache mishandles newlines in values,
1546 (
1547 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1548 eval ac_val=\$$ac_var
1549 case $ac_val in #(
1550 *${as_nl}*)
1551 case $ac_var in #(
1552 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1553 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1554 esac
1555 case $ac_var in #(
1556 _ | IFS | as_nl) ;; #(
1557 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1558 *) $as_unset $ac_var ;;
1559 esac ;;
1560 esac
1561 done
1562 (set) 2>&1 |
1563 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1564 *${as_nl}ac_space=\ *)
1565 sed -n \
1566 "s/'\''/'\''\\\\'\'''\''/g;
1567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1568 ;; #(
1569 *)
1570 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1571 ;;
1572 esac |
1573 sort
1574 )
1575 echo
1576
1577 cat <<\_ASBOX
1578 ## ----------------- ##
1579 ## Output variables. ##
1580 ## ----------------- ##
1581 _ASBOX
1582 echo
1583 for ac_var in $ac_subst_vars
1584 do
1585 eval ac_val=\$$ac_var
1586 case $ac_val in
1587 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1588 esac
1589 $as_echo "$ac_var='\''$ac_val'\''"
1590 done | sort
1591 echo
1592
1593 if test -n "$ac_subst_files"; then
1594 cat <<\_ASBOX
1595 ## ------------------- ##
1596 ## File substitutions. ##
1597 ## ------------------- ##
1598 _ASBOX
1599 echo
1600 for ac_var in $ac_subst_files
1601 do
1602 eval ac_val=\$$ac_var
1603 case $ac_val in
1604 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1605 esac
1606 $as_echo "$ac_var='\''$ac_val'\''"
1607 done | sort
1608 echo
1609 fi
1610
1611 if test -s confdefs.h; then
1612 cat <<\_ASBOX
1613 ## ----------- ##
1614 ## confdefs.h. ##
1615 ## ----------- ##
1616 _ASBOX
1617 echo
1618 cat confdefs.h
1619 echo
1620 fi
1621 test "$ac_signal" != 0 &&
1622 $as_echo "$as_me: caught signal $ac_signal"
1623 $as_echo "$as_me: exit $exit_status"
1624 } >&5
1625 rm -f core *.core core.conftest.* &&
1626 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1627 exit $exit_status
1628 ' 0
1629 for ac_signal in 1 2 13 15; do
1630 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1631 done
1632 ac_signal=0
1633
1634 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1635 rm -f -r conftest* confdefs.h
1636
1637 # Predefined preprocessor variables.
1638
1639 cat >>confdefs.h <<_ACEOF
1640 #define PACKAGE_NAME "$PACKAGE_NAME"
1641 _ACEOF
1642
1643
1644 cat >>confdefs.h <<_ACEOF
1645 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1646 _ACEOF
1647
1648
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1651 _ACEOF
1652
1653
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_STRING "$PACKAGE_STRING"
1656 _ACEOF
1657
1658
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1661 _ACEOF
1662
1663
1664 # Let the site file select an alternate cache file if it wants to.
1665 # Prefer an explicitly selected file to automatically selected ones.
1666 ac_site_file1=NONE
1667 ac_site_file2=NONE
1668 if test -n "$CONFIG_SITE"; then
1669 ac_site_file1=$CONFIG_SITE
1670 elif test "x$prefix" != xNONE; then
1671 ac_site_file1=$prefix/share/config.site
1672 ac_site_file2=$prefix/etc/config.site
1673 else
1674 ac_site_file1=$ac_default_prefix/share/config.site
1675 ac_site_file2=$ac_default_prefix/etc/config.site
1676 fi
1677 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1678 do
1679 test "x$ac_site_file" = xNONE && continue
1680 if test -r "$ac_site_file"; then
1681 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1682 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1683 sed 's/^/| /' "$ac_site_file" >&5
1684 . "$ac_site_file"
1685 fi
1686 done
1687
1688 if test -r "$cache_file"; then
1689 # Some versions of bash will fail to source /dev/null (special
1690 # files actually), so we avoid doing that.
1691 if test -f "$cache_file"; then
1692 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1693 $as_echo "$as_me: loading cache $cache_file" >&6;}
1694 case $cache_file in
1695 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1696 *) . "./$cache_file";;
1697 esac
1698 fi
1699 else
1700 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1701 $as_echo "$as_me: creating cache $cache_file" >&6;}
1702 >$cache_file
1703 fi
1704
1705 # Check that the precious variables saved in the cache have kept the same
1706 # value.
1707 ac_cache_corrupted=false
1708 for ac_var in $ac_precious_vars; do
1709 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1710 eval ac_new_set=\$ac_env_${ac_var}_set
1711 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1712 eval ac_new_val=\$ac_env_${ac_var}_value
1713 case $ac_old_set,$ac_new_set in
1714 set,)
1715 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1716 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1717 ac_cache_corrupted=: ;;
1718 ,set)
1719 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1720 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1721 ac_cache_corrupted=: ;;
1722 ,);;
1723 *)
1724 if test "x$ac_old_val" != "x$ac_new_val"; then
1725 # differences in whitespace do not lead to failure.
1726 ac_old_val_w=`echo x $ac_old_val`
1727 ac_new_val_w=`echo x $ac_new_val`
1728 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1729 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1730 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1731 ac_cache_corrupted=:
1732 else
1733 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1734 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1735 eval $ac_var=\$ac_old_val
1736 fi
1737 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1738 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1739 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1740 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1741 fi;;
1742 esac
1743 # Pass precious variables to config.status.
1744 if test "$ac_new_set" = set; then
1745 case $ac_new_val in
1746 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1747 *) ac_arg=$ac_var=$ac_new_val ;;
1748 esac
1749 case " $ac_configure_args " in
1750 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1751 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1752 esac
1753 fi
1754 done
1755 if $ac_cache_corrupted; then
1756 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1758 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1759 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1760 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1761 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1762 { (exit 1); exit 1; }; }
1763 fi
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789 ac_ext=c
1790 ac_cpp='$CPP $CPPFLAGS'
1791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1794
1795
1796
1797 ac_config_headers="$ac_config_headers config.h"
1798
1799
1800 if test "x$DBGFLAGS" = "x"; then
1801 DBGFLAGS="-g"
1802 fi
1803
1804 if test "x$OPTFLAGS" = "x"; then
1805 OPTFLAGS="-O"
1806 fi
1807
1808 CPPFLAGS="${CPPFLAGS:=}"
1809 CFLAGS="${CFLAGS:=}"
1810 LDFLAGS="${LDFLAGS:=}"
1811 LIBS="${LIBS:=}"
1812 CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H"
1813
1814 if test "`$CPP -v < /dev/null 2>&1 | grep '/usr/local/include' 2>&1`" = ""; then
1815 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
1816 LDFLAGS="$LDFLAGS -L/usr/local/lib"
1817 fi
1818
1819
1820 ac_ext=c
1821 ac_cpp='$CPP $CPPFLAGS'
1822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1825 if test -n "$ac_tool_prefix"; then
1826 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1827 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 $as_echo_n "checking for $ac_word... " >&6; }
1830 if test "${ac_cv_prog_CC+set}" = set; then
1831 $as_echo_n "(cached) " >&6
1832 else
1833 if test -n "$CC"; then
1834 ac_cv_prog_CC="$CC" # Let the user override the test.
1835 else
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1838 do
1839 IFS=$as_save_IFS
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1843 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1844 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845 break 2
1846 fi
1847 done
1848 done
1849 IFS=$as_save_IFS
1850
1851 fi
1852 fi
1853 CC=$ac_cv_prog_CC
1854 if test -n "$CC"; then
1855 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1856 $as_echo "$CC" >&6; }
1857 else
1858 { $as_echo "$as_me:$LINENO: result: no" >&5
1859 $as_echo "no" >&6; }
1860 fi
1861
1862
1863 fi
1864 if test -z "$ac_cv_prog_CC"; then
1865 ac_ct_CC=$CC
1866 # Extract the first word of "gcc", so it can be a program name with args.
1867 set dummy gcc; ac_word=$2
1868 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1869 $as_echo_n "checking for $ac_word... " >&6; }
1870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1871 $as_echo_n "(cached) " >&6
1872 else
1873 if test -n "$ac_ct_CC"; then
1874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1875 else
1876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 for as_dir in $PATH
1878 do
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
1881 for ac_exec_ext in '' $ac_executable_extensions; do
1882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1883 ac_cv_prog_ac_ct_CC="gcc"
1884 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885 break 2
1886 fi
1887 done
1888 done
1889 IFS=$as_save_IFS
1890
1891 fi
1892 fi
1893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894 if test -n "$ac_ct_CC"; then
1895 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896 $as_echo "$ac_ct_CC" >&6; }
1897 else
1898 { $as_echo "$as_me:$LINENO: result: no" >&5
1899 $as_echo "no" >&6; }
1900 fi
1901
1902 if test "x$ac_ct_CC" = x; then
1903 CC=""
1904 else
1905 case $cross_compiling:$ac_tool_warned in
1906 yes:)
1907 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1909 ac_tool_warned=yes ;;
1910 esac
1911 CC=$ac_ct_CC
1912 fi
1913 else
1914 CC="$ac_cv_prog_CC"
1915 fi
1916
1917 if test -z "$CC"; then
1918 if test -n "$ac_tool_prefix"; then
1919 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1920 set dummy ${ac_tool_prefix}cc; ac_word=$2
1921 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 $as_echo_n "checking for $ac_word... " >&6; }
1923 if test "${ac_cv_prog_CC+set}" = set; then
1924 $as_echo_n "(cached) " >&6
1925 else
1926 if test -n "$CC"; then
1927 ac_cv_prog_CC="$CC" # Let the user override the test.
1928 else
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
1931 do
1932 IFS=$as_save_IFS
1933 test -z "$as_dir" && as_dir=.
1934 for ac_exec_ext in '' $ac_executable_extensions; do
1935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1936 ac_cv_prog_CC="${ac_tool_prefix}cc"
1937 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 break 2
1939 fi
1940 done
1941 done
1942 IFS=$as_save_IFS
1943
1944 fi
1945 fi
1946 CC=$ac_cv_prog_CC
1947 if test -n "$CC"; then
1948 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1949 $as_echo "$CC" >&6; }
1950 else
1951 { $as_echo "$as_me:$LINENO: result: no" >&5
1952 $as_echo "no" >&6; }
1953 fi
1954
1955
1956 fi
1957 fi
1958 if test -z "$CC"; then
1959 # Extract the first word of "cc", so it can be a program name with args.
1960 set dummy cc; ac_word=$2
1961 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1962 $as_echo_n "checking for $ac_word... " >&6; }
1963 if test "${ac_cv_prog_CC+set}" = set; then
1964 $as_echo_n "(cached) " >&6
1965 else
1966 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
1968 else
1969 ac_prog_rejected=no
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1972 do
1973 IFS=$as_save_IFS
1974 test -z "$as_dir" && as_dir=.
1975 for ac_exec_ext in '' $ac_executable_extensions; do
1976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1977 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1978 ac_prog_rejected=yes
1979 continue
1980 fi
1981 ac_cv_prog_CC="cc"
1982 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983 break 2
1984 fi
1985 done
1986 done
1987 IFS=$as_save_IFS
1988
1989 if test $ac_prog_rejected = yes; then
1990 # We found a bogon in the path, so make sure we never use it.
1991 set dummy $ac_cv_prog_CC
1992 shift
1993 if test $# != 0; then
1994 # We chose a different compiler from the bogus one.
1995 # However, it has the same basename, so the bogon will be chosen
1996 # first if we set CC to just the basename; use the full file name.
1997 shift
1998 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1999 fi
2000 fi
2001 fi
2002 fi
2003 CC=$ac_cv_prog_CC
2004 if test -n "$CC"; then
2005 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2006 $as_echo "$CC" >&6; }
2007 else
2008 { $as_echo "$as_me:$LINENO: result: no" >&5
2009 $as_echo "no" >&6; }
2010 fi
2011
2012
2013 fi
2014 if test -z "$CC"; then
2015 if test -n "$ac_tool_prefix"; then
2016 for ac_prog in cl.exe
2017 do
2018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2021 $as_echo_n "checking for $ac_word... " >&6; }
2022 if test "${ac_cv_prog_CC+set}" = set; then
2023 $as_echo_n "(cached) " >&6
2024 else
2025 if test -n "$CC"; then
2026 ac_cv_prog_CC="$CC" # Let the user override the test.
2027 else
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 for as_dir in $PATH
2030 do
2031 IFS=$as_save_IFS
2032 test -z "$as_dir" && as_dir=.
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2035 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 break 2
2038 fi
2039 done
2040 done
2041 IFS=$as_save_IFS
2042
2043 fi
2044 fi
2045 CC=$ac_cv_prog_CC
2046 if test -n "$CC"; then
2047 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2048 $as_echo "$CC" >&6; }
2049 else
2050 { $as_echo "$as_me:$LINENO: result: no" >&5
2051 $as_echo "no" >&6; }
2052 fi
2053
2054
2055 test -n "$CC" && break
2056 done
2057 fi
2058 if test -z "$CC"; then
2059 ac_ct_CC=$CC
2060 for ac_prog in cl.exe
2061 do
2062 # Extract the first word of "$ac_prog", so it can be a program name with args.
2063 set dummy $ac_prog; ac_word=$2
2064 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 $as_echo_n "checking for $ac_word... " >&6; }
2066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2067 $as_echo_n "(cached) " >&6
2068 else
2069 if test -n "$ac_ct_CC"; then
2070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2071 else
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 for as_dir in $PATH
2074 do
2075 IFS=$as_save_IFS
2076 test -z "$as_dir" && as_dir=.
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2079 ac_cv_prog_ac_ct_CC="$ac_prog"
2080 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 break 2
2082 fi
2083 done
2084 done
2085 IFS=$as_save_IFS
2086
2087 fi
2088 fi
2089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2090 if test -n "$ac_ct_CC"; then
2091 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2092 $as_echo "$ac_ct_CC" >&6; }
2093 else
2094 { $as_echo "$as_me:$LINENO: result: no" >&5
2095 $as_echo "no" >&6; }
2096 fi
2097
2098
2099 test -n "$ac_ct_CC" && break
2100 done
2101
2102 if test "x$ac_ct_CC" = x; then
2103 CC=""
2104 else
2105 case $cross_compiling:$ac_tool_warned in
2106 yes:)
2107 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2109 ac_tool_warned=yes ;;
2110 esac
2111 CC=$ac_ct_CC
2112 fi
2113 fi
2114
2115 fi
2116
2117
2118 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2120 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2121 See \`config.log' for more details." >&5
2122 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2123 See \`config.log' for more details." >&2;}
2124 { (exit 1); exit 1; }; }; }
2125
2126 # Provide some information about the compiler.
2127 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2128 set X $ac_compile
2129 ac_compiler=$2
2130 { (ac_try="$ac_compiler --version >&5"
2131 case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2134 esac
2135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2136 $as_echo "$ac_try_echo") >&5
2137 (eval "$ac_compiler --version >&5") 2>&5
2138 ac_status=$?
2139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }
2141 { (ac_try="$ac_compiler -v >&5"
2142 case "(($ac_try" in
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2145 esac
2146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2147 $as_echo "$ac_try_echo") >&5
2148 (eval "$ac_compiler -v >&5") 2>&5
2149 ac_status=$?
2150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }
2152 { (ac_try="$ac_compiler -V >&5"
2153 case "(($ac_try" in
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2156 esac
2157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2158 $as_echo "$ac_try_echo") >&5
2159 (eval "$ac_compiler -V >&5") 2>&5
2160 ac_status=$?
2161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }
2163
2164 cat >conftest.$ac_ext <<_ACEOF
2165 /* confdefs.h. */
2166 _ACEOF
2167 cat confdefs.h >>conftest.$ac_ext
2168 cat >>conftest.$ac_ext <<_ACEOF
2169 /* end confdefs.h. */
2170
2171 int
2172 main ()
2173 {
2174
2175 ;
2176 return 0;
2177 }
2178 _ACEOF
2179 ac_clean_files_save=$ac_clean_files
2180 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2181 # Try to create an executable without -o first, disregard a.out.
2182 # It will help us diagnose broken compilers, and finding out an intuition
2183 # of exeext.
2184 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2185 $as_echo_n "checking for C compiler default output file name... " >&6; }
2186 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2187
2188 # The possible output files:
2189 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2190
2191 ac_rmfiles=
2192 for ac_file in $ac_files
2193 do
2194 case $ac_file in
2195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2196 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2197 esac
2198 done
2199 rm -f $ac_rmfiles
2200
2201 if { (ac_try="$ac_link_default"
2202 case "(($ac_try" in
2203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2204 *) ac_try_echo=$ac_try;;
2205 esac
2206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2207 $as_echo "$ac_try_echo") >&5
2208 (eval "$ac_link_default") 2>&5
2209 ac_status=$?
2210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; then
2212 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2213 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2214 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2215 # so that the user can short-circuit this test for compilers unknown to
2216 # Autoconf.
2217 for ac_file in $ac_files ''
2218 do
2219 test -f "$ac_file" || continue
2220 case $ac_file in
2221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2222 ;;
2223 [ab].out )
2224 # We found the default executable, but exeext='' is most
2225 # certainly right.
2226 break;;
2227 *.* )
2228 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2229 then :; else
2230 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2231 fi
2232 # We set ac_cv_exeext here because the later test for it is not
2233 # safe: cross compilers may not add the suffix if given an `-o'
2234 # argument, so we may need to know it at that point already.
2235 # Even if this section looks crufty: it has the advantage of
2236 # actually working.
2237 break;;
2238 * )
2239 break;;
2240 esac
2241 done
2242 test "$ac_cv_exeext" = no && ac_cv_exeext=
2243
2244 else
2245 ac_file=''
2246 fi
2247
2248 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2249 $as_echo "$ac_file" >&6; }
2250 if test -z "$ac_file"; then
2251 $as_echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2253
2254 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2256 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2257 See \`config.log' for more details." >&5
2258 $as_echo "$as_me: error: C compiler cannot create executables
2259 See \`config.log' for more details." >&2;}
2260 { (exit 77); exit 77; }; }; }
2261 fi
2262
2263 ac_exeext=$ac_cv_exeext
2264
2265 # Check that the compiler produces executables we can run. If not, either
2266 # the compiler is broken, or we cross compile.
2267 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2268 $as_echo_n "checking whether the C compiler works... " >&6; }
2269 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2270 # If not cross compiling, check that we can run a simple program.
2271 if test "$cross_compiling" != yes; then
2272 if { ac_try='./$ac_file'
2273 { (case "(($ac_try" in
2274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2275 *) ac_try_echo=$ac_try;;
2276 esac
2277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2278 $as_echo "$ac_try_echo") >&5
2279 (eval "$ac_try") 2>&5
2280 ac_status=$?
2281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2283 cross_compiling=no
2284 else
2285 if test "$cross_compiling" = maybe; then
2286 cross_compiling=yes
2287 else
2288 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2291 If you meant to cross compile, use \`--host'.
2292 See \`config.log' for more details." >&5
2293 $as_echo "$as_me: error: cannot run C compiled programs.
2294 If you meant to cross compile, use \`--host'.
2295 See \`config.log' for more details." >&2;}
2296 { (exit 1); exit 1; }; }; }
2297 fi
2298 fi
2299 fi
2300 { $as_echo "$as_me:$LINENO: result: yes" >&5
2301 $as_echo "yes" >&6; }
2302
2303 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2304 ac_clean_files=$ac_clean_files_save
2305 # Check that the compiler produces executables we can run. If not, either
2306 # the compiler is broken, or we cross compile.
2307 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2308 $as_echo_n "checking whether we are cross compiling... " >&6; }
2309 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2310 $as_echo "$cross_compiling" >&6; }
2311
2312 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2313 $as_echo_n "checking for suffix of executables... " >&6; }
2314 if { (ac_try="$ac_link"
2315 case "(($ac_try" in
2316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317 *) ac_try_echo=$ac_try;;
2318 esac
2319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2320 $as_echo "$ac_try_echo") >&5
2321 (eval "$ac_link") 2>&5
2322 ac_status=$?
2323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; then
2325 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2326 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2327 # work properly (i.e., refer to `conftest.exe'), while it won't with
2328 # `rm'.
2329 for ac_file in conftest.exe conftest conftest.*; do
2330 test -f "$ac_file" || continue
2331 case $ac_file in
2332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2333 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2334 break;;
2335 * ) break;;
2336 esac
2337 done
2338 else
2339 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2341 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2342 See \`config.log' for more details." >&5
2343 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2344 See \`config.log' for more details." >&2;}
2345 { (exit 1); exit 1; }; }; }
2346 fi
2347
2348 rm -f conftest$ac_cv_exeext
2349 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2350 $as_echo "$ac_cv_exeext" >&6; }
2351
2352 rm -f conftest.$ac_ext
2353 EXEEXT=$ac_cv_exeext
2354 ac_exeext=$EXEEXT
2355 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2356 $as_echo_n "checking for suffix of object files... " >&6; }
2357 if test "${ac_cv_objext+set}" = set; then
2358 $as_echo_n "(cached) " >&6
2359 else
2360 cat >conftest.$ac_ext <<_ACEOF
2361 /* confdefs.h. */
2362 _ACEOF
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h. */
2366
2367 int
2368 main ()
2369 {
2370
2371 ;
2372 return 0;
2373 }
2374 _ACEOF
2375 rm -f conftest.o conftest.obj
2376 if { (ac_try="$ac_compile"
2377 case "(($ac_try" in
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2380 esac
2381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2382 $as_echo "$ac_try_echo") >&5
2383 (eval "$ac_compile") 2>&5
2384 ac_status=$?
2385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; then
2387 for ac_file in conftest.o conftest.obj conftest.*; do
2388 test -f "$ac_file" || continue;
2389 case $ac_file in
2390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2391 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2392 break;;
2393 esac
2394 done
2395 else
2396 $as_echo "$as_me: failed program was:" >&5
2397 sed 's/^/| /' conftest.$ac_ext >&5
2398
2399 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2401 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2402 See \`config.log' for more details." >&5
2403 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2404 See \`config.log' for more details." >&2;}
2405 { (exit 1); exit 1; }; }; }
2406 fi
2407
2408 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2409 fi
2410 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2411 $as_echo "$ac_cv_objext" >&6; }
2412 OBJEXT=$ac_cv_objext
2413 ac_objext=$OBJEXT
2414 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2415 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2416 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2417 $as_echo_n "(cached) " >&6
2418 else
2419 cat >conftest.$ac_ext <<_ACEOF
2420 /* confdefs.h. */
2421 _ACEOF
2422 cat confdefs.h >>conftest.$ac_ext
2423 cat >>conftest.$ac_ext <<_ACEOF
2424 /* end confdefs.h. */
2425
2426 int
2427 main ()
2428 {
2429 #ifndef __GNUC__
2430 choke me
2431 #endif
2432
2433 ;
2434 return 0;
2435 }
2436 _ACEOF
2437 rm -f conftest.$ac_objext
2438 if { (ac_try="$ac_compile"
2439 case "(($ac_try" in
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;;
2442 esac
2443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2444 $as_echo "$ac_try_echo") >&5
2445 (eval "$ac_compile") 2>conftest.er1
2446 ac_status=$?
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
2450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } && {
2452 test -z "$ac_c_werror_flag" ||
2453 test ! -s conftest.err
2454 } && test -s conftest.$ac_objext; then
2455 ac_compiler_gnu=yes
2456 else
2457 $as_echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2459
2460 ac_compiler_gnu=no
2461 fi
2462
2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2464 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2465
2466 fi
2467 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2468 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2469 if test $ac_compiler_gnu = yes; then
2470 GCC=yes
2471 else
2472 GCC=
2473 fi
2474 ac_test_CFLAGS=${CFLAGS+set}
2475 ac_save_CFLAGS=$CFLAGS
2476 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2477 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2478 if test "${ac_cv_prog_cc_g+set}" = set; then
2479 $as_echo_n "(cached) " >&6
2480 else
2481 ac_save_c_werror_flag=$ac_c_werror_flag
2482 ac_c_werror_flag=yes
2483 ac_cv_prog_cc_g=no
2484 CFLAGS="-g"
2485 cat >conftest.$ac_ext <<_ACEOF
2486 /* confdefs.h. */
2487 _ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2491
2492 int
2493 main ()
2494 {
2495
2496 ;
2497 return 0;
2498 }
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (ac_try="$ac_compile"
2502 case "(($ac_try" in
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2505 esac
2506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2507 $as_echo "$ac_try_echo") >&5
2508 (eval "$ac_compile") 2>conftest.er1
2509 ac_status=$?
2510 grep -v '^ *+' conftest.er1 >conftest.err
2511 rm -f conftest.er1
2512 cat conftest.err >&5
2513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } && {
2515 test -z "$ac_c_werror_flag" ||
2516 test ! -s conftest.err
2517 } && test -s conftest.$ac_objext; then
2518 ac_cv_prog_cc_g=yes
2519 else
2520 $as_echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2522
2523 CFLAGS=""
2524 cat >conftest.$ac_ext <<_ACEOF
2525 /* confdefs.h. */
2526 _ACEOF
2527 cat confdefs.h >>conftest.$ac_ext
2528 cat >>conftest.$ac_ext <<_ACEOF
2529 /* end confdefs.h. */
2530
2531 int
2532 main ()
2533 {
2534
2535 ;
2536 return 0;
2537 }
2538 _ACEOF
2539 rm -f conftest.$ac_objext
2540 if { (ac_try="$ac_compile"
2541 case "(($ac_try" in
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2544 esac
2545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2546 $as_echo "$ac_try_echo") >&5
2547 (eval "$ac_compile") 2>conftest.er1
2548 ac_status=$?
2549 grep -v '^ *+' conftest.er1 >conftest.err
2550 rm -f conftest.er1
2551 cat conftest.err >&5
2552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } && {
2554 test -z "$ac_c_werror_flag" ||
2555 test ! -s conftest.err
2556 } && test -s conftest.$ac_objext; then
2557 :
2558 else
2559 $as_echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2561
2562 ac_c_werror_flag=$ac_save_c_werror_flag
2563 CFLAGS="-g"
2564 cat >conftest.$ac_ext <<_ACEOF
2565 /* confdefs.h. */
2566 _ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h. */
2570
2571 int
2572 main ()
2573 {
2574
2575 ;
2576 return 0;
2577 }
2578 _ACEOF
2579 rm -f conftest.$ac_objext
2580 if { (ac_try="$ac_compile"
2581 case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584 esac
2585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2586 $as_echo "$ac_try_echo") >&5
2587 (eval "$ac_compile") 2>conftest.er1
2588 ac_status=$?
2589 grep -v '^ *+' conftest.er1 >conftest.err
2590 rm -f conftest.er1
2591 cat conftest.err >&5
2592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } && {
2594 test -z "$ac_c_werror_flag" ||
2595 test ! -s conftest.err
2596 } && test -s conftest.$ac_objext; then
2597 ac_cv_prog_cc_g=yes
2598 else
2599 $as_echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2601
2602
2603 fi
2604
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 fi
2607
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 fi
2610
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 ac_c_werror_flag=$ac_save_c_werror_flag
2613 fi
2614 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2615 $as_echo "$ac_cv_prog_cc_g" >&6; }
2616 if test "$ac_test_CFLAGS" = set; then
2617 CFLAGS=$ac_save_CFLAGS
2618 elif test $ac_cv_prog_cc_g = yes; then
2619 if test "$GCC" = yes; then
2620 CFLAGS="-g -O2"
2621 else
2622 CFLAGS="-g"
2623 fi
2624 else
2625 if test "$GCC" = yes; then
2626 CFLAGS="-O2"
2627 else
2628 CFLAGS=
2629 fi
2630 fi
2631 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2632 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2633 if test "${ac_cv_prog_cc_c89+set}" = set; then
2634 $as_echo_n "(cached) " >&6
2635 else
2636 ac_cv_prog_cc_c89=no
2637 ac_save_CC=$CC
2638 cat >conftest.$ac_ext <<_ACEOF
2639 /* confdefs.h. */
2640 _ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2644 #include <stdarg.h>
2645 #include <stdio.h>
2646 #include <sys/types.h>
2647 #include <sys/stat.h>
2648 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2649 struct buf { int x; };
2650 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2651 static char *e (p, i)
2652 char **p;
2653 int i;
2654 {
2655 return p[i];
2656 }
2657 static char *f (char * (*g) (char **, int), char **p, ...)
2658 {
2659 char *s;
2660 va_list v;
2661 va_start (v,p);
2662 s = g (p, va_arg (v,int));
2663 va_end (v);
2664 return s;
2665 }
2666
2667 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2668 function prototypes and stuff, but not '\xHH' hex character constants.
2669 These don't provoke an error unfortunately, instead are silently treated
2670 as 'x'. The following induces an error, until -std is added to get
2671 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2672 array size at least. It's necessary to write '\x00'==0 to get something
2673 that's true only with -std. */
2674 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2675
2676 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2677 inside strings and character constants. */
2678 #define FOO(x) 'x'
2679 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2680
2681 int test (int i, double x);
2682 struct s1 {int (*f) (int a);};
2683 struct s2 {int (*f) (double a);};
2684 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2685 int argc;
2686 char **argv;
2687 int
2688 main ()
2689 {
2690 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2691 ;
2692 return 0;
2693 }
2694 _ACEOF
2695 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2696 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2697 do
2698 CC="$ac_save_CC $ac_arg"
2699 rm -f conftest.$ac_objext
2700 if { (ac_try="$ac_compile"
2701 case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704 esac
2705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2706 $as_echo "$ac_try_echo") >&5
2707 (eval "$ac_compile") 2>conftest.er1
2708 ac_status=$?
2709 grep -v '^ *+' conftest.er1 >conftest.err
2710 rm -f conftest.er1
2711 cat conftest.err >&5
2712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } && {
2714 test -z "$ac_c_werror_flag" ||
2715 test ! -s conftest.err
2716 } && test -s conftest.$ac_objext; then
2717 ac_cv_prog_cc_c89=$ac_arg
2718 else
2719 $as_echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722
2723 fi
2724
2725 rm -f core conftest.err conftest.$ac_objext
2726 test "x$ac_cv_prog_cc_c89" != "xno" && break
2727 done
2728 rm -f conftest.$ac_ext
2729 CC=$ac_save_CC
2730
2731 fi
2732 # AC_CACHE_VAL
2733 case "x$ac_cv_prog_cc_c89" in
2734 x)
2735 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2736 $as_echo "none needed" >&6; } ;;
2737 xno)
2738 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2739 $as_echo "unsupported" >&6; } ;;
2740 *)
2741 CC="$CC $ac_cv_prog_cc_c89"
2742 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2743 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2744 esac
2745
2746
2747 ac_ext=c
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752
2753
2754 ac_ext=c
2755 ac_cpp='$CPP $CPPFLAGS'
2756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2760 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2761 # On Suns, sometimes $CPP names a directory.
2762 if test -n "$CPP" && test -d "$CPP"; then
2763 CPP=
2764 fi
2765 if test -z "$CPP"; then
2766 if test "${ac_cv_prog_CPP+set}" = set; then
2767 $as_echo_n "(cached) " >&6
2768 else
2769 # Double quotes because CPP needs to be expanded
2770 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2771 do
2772 ac_preproc_ok=false
2773 for ac_c_preproc_warn_flag in '' yes
2774 do
2775 # Use a header file that comes with gcc, so configuring glibc
2776 # with a fresh cross-compiler works.
2777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2778 # <limits.h> exists even on freestanding compilers.
2779 # On the NeXT, cc -E runs the code through the compiler's parser,
2780 # not just through cpp. "Syntax error" is here to catch this case.
2781 cat >conftest.$ac_ext <<_ACEOF
2782 /* confdefs.h. */
2783 _ACEOF
2784 cat confdefs.h >>conftest.$ac_ext
2785 cat >>conftest.$ac_ext <<_ACEOF
2786 /* end confdefs.h. */
2787 #ifdef __STDC__
2788 # include <limits.h>
2789 #else
2790 # include <assert.h>
2791 #endif
2792 Syntax error
2793 _ACEOF
2794 if { (ac_try="$ac_cpp conftest.$ac_ext"
2795 case "(($ac_try" in
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2798 esac
2799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2800 $as_echo "$ac_try_echo") >&5
2801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2802 ac_status=$?
2803 grep -v '^ *+' conftest.er1 >conftest.err
2804 rm -f conftest.er1
2805 cat conftest.err >&5
2806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } >/dev/null && {
2808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2809 test ! -s conftest.err
2810 }; then
2811 :
2812 else
2813 $as_echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2815
2816 # Broken: fails on valid input.
2817 continue
2818 fi
2819
2820 rm -f conftest.err conftest.$ac_ext
2821
2822 # OK, works on sane cases. Now check whether nonexistent headers
2823 # can be detected and how.
2824 cat >conftest.$ac_ext <<_ACEOF
2825 /* confdefs.h. */
2826 _ACEOF
2827 cat confdefs.h >>conftest.$ac_ext
2828 cat >>conftest.$ac_ext <<_ACEOF
2829 /* end confdefs.h. */
2830 #include <ac_nonexistent.h>
2831 _ACEOF
2832 if { (ac_try="$ac_cpp conftest.$ac_ext"
2833 case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836 esac
2837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2838 $as_echo "$ac_try_echo") >&5
2839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2840 ac_status=$?
2841 grep -v '^ *+' conftest.er1 >conftest.err
2842 rm -f conftest.er1
2843 cat conftest.err >&5
2844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } >/dev/null && {
2846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2847 test ! -s conftest.err
2848 }; then
2849 # Broken: success on invalid input.
2850 continue
2851 else
2852 $as_echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2854
2855 # Passes both tests.
2856 ac_preproc_ok=:
2857 break
2858 fi
2859
2860 rm -f conftest.err conftest.$ac_ext
2861
2862 done
2863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2864 rm -f conftest.err conftest.$ac_ext
2865 if $ac_preproc_ok; then
2866 break
2867 fi
2868
2869 done
2870 ac_cv_prog_CPP=$CPP
2871
2872 fi
2873 CPP=$ac_cv_prog_CPP
2874 else
2875 ac_cv_prog_CPP=$CPP
2876 fi
2877 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2878 $as_echo "$CPP" >&6; }
2879 ac_preproc_ok=false
2880 for ac_c_preproc_warn_flag in '' yes
2881 do
2882 # Use a header file that comes with gcc, so configuring glibc
2883 # with a fresh cross-compiler works.
2884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2885 # <limits.h> exists even on freestanding compilers.
2886 # On the NeXT, cc -E runs the code through the compiler's parser,
2887 # not just through cpp. "Syntax error" is here to catch this case.
2888 cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h. */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2894 #ifdef __STDC__
2895 # include <limits.h>
2896 #else
2897 # include <assert.h>
2898 #endif
2899 Syntax error
2900 _ACEOF
2901 if { (ac_try="$ac_cpp conftest.$ac_ext"
2902 case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905 esac
2906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2907 $as_echo "$ac_try_echo") >&5
2908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2909 ac_status=$?
2910 grep -v '^ *+' conftest.er1 >conftest.err
2911 rm -f conftest.er1
2912 cat conftest.err >&5
2913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } >/dev/null && {
2915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2916 test ! -s conftest.err
2917 }; then
2918 :
2919 else
2920 $as_echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2922
2923 # Broken: fails on valid input.
2924 continue
2925 fi
2926
2927 rm -f conftest.err conftest.$ac_ext
2928
2929 # OK, works on sane cases. Now check whether nonexistent headers
2930 # can be detected and how.
2931 cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h. */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2937 #include <ac_nonexistent.h>
2938 _ACEOF
2939 if { (ac_try="$ac_cpp conftest.$ac_ext"
2940 case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943 esac
2944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2945 $as_echo "$ac_try_echo") >&5
2946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2947 ac_status=$?
2948 grep -v '^ *+' conftest.er1 >conftest.err
2949 rm -f conftest.er1
2950 cat conftest.err >&5
2951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } >/dev/null && {
2953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2954 test ! -s conftest.err
2955 }; then
2956 # Broken: success on invalid input.
2957 continue
2958 else
2959 $as_echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2961
2962 # Passes both tests.
2963 ac_preproc_ok=:
2964 break
2965 fi
2966
2967 rm -f conftest.err conftest.$ac_ext
2968
2969 done
2970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2971 rm -f conftest.err conftest.$ac_ext
2972 if $ac_preproc_ok; then
2973 :
2974 else
2975 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2977 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2978 See \`config.log' for more details." >&5
2979 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2980 See \`config.log' for more details." >&2;}
2981 { (exit 1); exit 1; }; }; }
2982 fi
2983
2984 ac_ext=c
2985 ac_cpp='$CPP $CPPFLAGS'
2986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989
2990
2991 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2992 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
2993 if test "${ac_cv_path_GREP+set}" = set; then
2994 $as_echo_n "(cached) " >&6
2995 else
2996 if test -z "$GREP"; then
2997 ac_path_GREP_found=false
2998 # Loop through the user's path and test for each of PROGNAME-LIST
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3001 do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_prog in grep ggrep; do
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3007 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3008 # Check for GNU ac_path_GREP and select it if it is found.
3009 # Check for GNU $ac_path_GREP
3010 case `"$ac_path_GREP" --version 2>&1` in
3011 *GNU*)
3012 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3013 *)
3014 ac_count=0
3015 $as_echo_n 0123456789 >"conftest.in"
3016 while :
3017 do
3018 cat "conftest.in" "conftest.in" >"conftest.tmp"
3019 mv "conftest.tmp" "conftest.in"
3020 cp "conftest.in" "conftest.nl"
3021 $as_echo 'GREP' >> "conftest.nl"
3022 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3023 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3024 ac_count=`expr $ac_count + 1`
3025 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3026 # Best one so far, save it but keep looking for a better one
3027 ac_cv_path_GREP="$ac_path_GREP"
3028 ac_path_GREP_max=$ac_count
3029 fi
3030 # 10*(2^10) chars as input seems more than enough
3031 test $ac_count -gt 10 && break
3032 done
3033 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3034 esac
3035
3036 $ac_path_GREP_found && break 3
3037 done
3038 done
3039 done
3040 IFS=$as_save_IFS
3041 if test -z "$ac_cv_path_GREP"; then
3042 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3043 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3044 { (exit 1); exit 1; }; }
3045 fi
3046 else
3047 ac_cv_path_GREP=$GREP
3048 fi
3049
3050 fi
3051 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3052 $as_echo "$ac_cv_path_GREP" >&6; }
3053 GREP="$ac_cv_path_GREP"
3054
3055
3056 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3057 $as_echo_n "checking for egrep... " >&6; }
3058 if test "${ac_cv_path_EGREP+set}" = set; then
3059 $as_echo_n "(cached) " >&6
3060 else
3061 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3062 then ac_cv_path_EGREP="$GREP -E"
3063 else
3064 if test -z "$EGREP"; then
3065 ac_path_EGREP_found=false
3066 # Loop through the user's path and test for each of PROGNAME-LIST
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3069 do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_prog in egrep; do
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3075 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3076 # Check for GNU ac_path_EGREP and select it if it is found.
3077 # Check for GNU $ac_path_EGREP
3078 case `"$ac_path_EGREP" --version 2>&1` in
3079 *GNU*)
3080 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3081 *)
3082 ac_count=0
3083 $as_echo_n 0123456789 >"conftest.in"
3084 while :
3085 do
3086 cat "conftest.in" "conftest.in" >"conftest.tmp"
3087 mv "conftest.tmp" "conftest.in"
3088 cp "conftest.in" "conftest.nl"
3089 $as_echo 'EGREP' >> "conftest.nl"
3090 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3091 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3092 ac_count=`expr $ac_count + 1`
3093 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3094 # Best one so far, save it but keep looking for a better one
3095 ac_cv_path_EGREP="$ac_path_EGREP"
3096 ac_path_EGREP_max=$ac_count
3097 fi
3098 # 10*(2^10) chars as input seems more than enough
3099 test $ac_count -gt 10 && break
3100 done
3101 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3102 esac
3103
3104 $ac_path_EGREP_found && break 3
3105 done
3106 done
3107 done
3108 IFS=$as_save_IFS
3109 if test -z "$ac_cv_path_EGREP"; then
3110 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3111 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3112 { (exit 1); exit 1; }; }
3113 fi
3114 else
3115 ac_cv_path_EGREP=$EGREP
3116 fi
3117
3118 fi
3119 fi
3120 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3121 $as_echo "$ac_cv_path_EGREP" >&6; }
3122 EGREP="$ac_cv_path_EGREP"
3123
3124
3125 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3126 $as_echo_n "checking for ANSI C header files... " >&6; }
3127 if test "${ac_cv_header_stdc+set}" = set; then
3128 $as_echo_n "(cached) " >&6
3129 else
3130 cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h. */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3136 #include <stdlib.h>
3137 #include <stdarg.h>
3138 #include <string.h>
3139 #include <float.h>
3140
3141 int
3142 main ()
3143 {
3144
3145 ;
3146 return 0;
3147 }
3148 _ACEOF
3149 rm -f conftest.$ac_objext
3150 if { (ac_try="$ac_compile"
3151 case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154 esac
3155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3156 $as_echo "$ac_try_echo") >&5
3157 (eval "$ac_compile") 2>conftest.er1
3158 ac_status=$?
3159 grep -v '^ *+' conftest.er1 >conftest.err
3160 rm -f conftest.er1
3161 cat conftest.err >&5
3162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } && {
3164 test -z "$ac_c_werror_flag" ||
3165 test ! -s conftest.err
3166 } && test -s conftest.$ac_objext; then
3167 ac_cv_header_stdc=yes
3168 else
3169 $as_echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3171
3172 ac_cv_header_stdc=no
3173 fi
3174
3175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176
3177 if test $ac_cv_header_stdc = yes; then
3178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3179 cat >conftest.$ac_ext <<_ACEOF
3180 /* confdefs.h. */
3181 _ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3185 #include <string.h>
3186
3187 _ACEOF
3188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3189 $EGREP "memchr" >/dev/null 2>&1; then
3190 :
3191 else
3192 ac_cv_header_stdc=no
3193 fi
3194 rm -f conftest*
3195
3196 fi
3197
3198 if test $ac_cv_header_stdc = yes; then
3199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3200 cat >conftest.$ac_ext <<_ACEOF
3201 /* confdefs.h. */
3202 _ACEOF
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h. */
3206 #include <stdlib.h>
3207
3208 _ACEOF
3209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3210 $EGREP "free" >/dev/null 2>&1; then
3211 :
3212 else
3213 ac_cv_header_stdc=no
3214 fi
3215 rm -f conftest*
3216
3217 fi
3218
3219 if test $ac_cv_header_stdc = yes; then
3220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3221 if test "$cross_compiling" = yes; then
3222 :
3223 else
3224 cat >conftest.$ac_ext <<_ACEOF
3225 /* confdefs.h. */
3226 _ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3230 #include <ctype.h>
3231 #include <stdlib.h>
3232 #if ((' ' & 0x0FF) == 0x020)
3233 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3234 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3235 #else
3236 # define ISLOWER(c) \
3237 (('a' <= (c) && (c) <= 'i') \
3238 || ('j' <= (c) && (c) <= 'r') \
3239 || ('s' <= (c) && (c) <= 'z'))
3240 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3241 #endif
3242
3243 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3244 int
3245 main ()
3246 {
3247 int i;
3248 for (i = 0; i < 256; i++)
3249 if (XOR (islower (i), ISLOWER (i))
3250 || toupper (i) != TOUPPER (i))
3251 return 2;
3252 return 0;
3253 }
3254 _ACEOF
3255 rm -f conftest$ac_exeext
3256 if { (ac_try="$ac_link"
3257 case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3262 $as_echo "$ac_try_echo") >&5
3263 (eval "$ac_link") 2>&5
3264 ac_status=$?
3265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3267 { (case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3272 $as_echo "$ac_try_echo") >&5
3273 (eval "$ac_try") 2>&5
3274 ac_status=$?
3275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; }; then
3277 :
3278 else
3279 $as_echo "$as_me: program exited with status $ac_status" >&5
3280 $as_echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3282
3283 ( exit $ac_status )
3284 ac_cv_header_stdc=no
3285 fi
3286 rm -rf conftest.dSYM
3287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3288 fi
3289
3290
3291 fi
3292 fi
3293 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3294 $as_echo "$ac_cv_header_stdc" >&6; }
3295 if test $ac_cv_header_stdc = yes; then
3296
3297 cat >>confdefs.h <<\_ACEOF
3298 #define STDC_HEADERS 1
3299 _ACEOF
3300
3301 fi
3302
3303 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3314 inttypes.h stdint.h unistd.h
3315 do
3316 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3317 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3318 $as_echo_n "checking for $ac_header... " >&6; }
3319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3320 $as_echo_n "(cached) " >&6
3321 else
3322 cat >conftest.$ac_ext <<_ACEOF
3323 /* confdefs.h. */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3328 $ac_includes_default
3329
3330 #include <$ac_header>
3331 _ACEOF
3332 rm -f conftest.$ac_objext
3333 if { (ac_try="$ac_compile"
3334 case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337 esac
3338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3339 $as_echo "$ac_try_echo") >&5
3340 (eval "$ac_compile") 2>conftest.er1
3341 ac_status=$?
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
3345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } && {
3347 test -z "$ac_c_werror_flag" ||
3348 test ! -s conftest.err
3349 } && test -s conftest.$ac_objext; then
3350 eval "$as_ac_Header=yes"
3351 else
3352 $as_echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355 eval "$as_ac_Header=no"
3356 fi
3357
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 fi
3360 ac_res=`eval 'as_val=${'$as_ac_Header'}
3361 $as_echo "$as_val"'`
3362 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3363 $as_echo "$ac_res" >&6; }
3364 as_val=`eval 'as_val=${'$as_ac_Header'}
3365 $as_echo "$as_val"'`
3366 if test "x$as_val" = x""yes; then
3367 cat >>confdefs.h <<_ACEOF
3368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3369 _ACEOF
3370
3371 fi
3372
3373 done
3374
3375
3376
3377 if test "${ac_cv_header_minix_config_h+set}" = set; then
3378 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3379 $as_echo_n "checking for minix/config.h... " >&6; }
3380 if test "${ac_cv_header_minix_config_h+set}" = set; then
3381 $as_echo_n "(cached) " >&6
3382 fi
3383 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3384 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3385 else
3386 # Is the header compilable?
3387 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3388 $as_echo_n "checking minix/config.h usability... " >&6; }
3389 cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h. */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3395 $ac_includes_default
3396 #include <minix/config.h>
3397 _ACEOF
3398 rm -f conftest.$ac_objext
3399 if { (ac_try="$ac_compile"
3400 case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3405 $as_echo "$ac_try_echo") >&5
3406 (eval "$ac_compile") 2>conftest.er1
3407 ac_status=$?
3408 grep -v '^ *+' conftest.er1 >conftest.err
3409 rm -f conftest.er1
3410 cat conftest.err >&5
3411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } && {
3413 test -z "$ac_c_werror_flag" ||
3414 test ! -s conftest.err
3415 } && test -s conftest.$ac_objext; then
3416 ac_header_compiler=yes
3417 else
3418 $as_echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3420
3421 ac_header_compiler=no
3422 fi
3423
3424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3426 $as_echo "$ac_header_compiler" >&6; }
3427
3428 # Is the header present?
3429 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3430 $as_echo_n "checking minix/config.h presence... " >&6; }
3431 cat >conftest.$ac_ext <<_ACEOF
3432 /* confdefs.h. */
3433 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3437 #include <minix/config.h>
3438 _ACEOF
3439 if { (ac_try="$ac_cpp conftest.$ac_ext"
3440 case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443 esac
3444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3445 $as_echo "$ac_try_echo") >&5
3446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3447 ac_status=$?
3448 grep -v '^ *+' conftest.er1 >conftest.err
3449 rm -f conftest.er1
3450 cat conftest.err >&5
3451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } >/dev/null && {
3453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3454 test ! -s conftest.err
3455 }; then
3456 ac_header_preproc=yes
3457 else
3458 $as_echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461 ac_header_preproc=no
3462 fi
3463
3464 rm -f conftest.err conftest.$ac_ext
3465 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3466 $as_echo "$ac_header_preproc" >&6; }
3467
3468 # So? What about this header?
3469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3470 yes:no: )
3471 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3472 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3473 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3474 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3475 ac_header_preproc=yes
3476 ;;
3477 no:yes:* )
3478 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3479 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3480 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3481 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3482 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3483 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3484 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3485 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3486 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3487 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3488 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3489 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3490 ( cat <<\_ASBOX
3491 ## ----------------------------------------- ##
3492 ## Report this to <ivprimi at libero dot it> ##
3493 ## ----------------------------------------- ##
3494 _ASBOX
3495 ) | sed "s/^/$as_me: WARNING: /" >&2
3496 ;;
3497 esac
3498 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3499 $as_echo_n "checking for minix/config.h... " >&6; }
3500 if test "${ac_cv_header_minix_config_h+set}" = set; then
3501 $as_echo_n "(cached) " >&6
3502 else
3503 ac_cv_header_minix_config_h=$ac_header_preproc
3504 fi
3505 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3506 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3507
3508 fi
3509 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3510 MINIX=yes
3511 else
3512 MINIX=
3513 fi
3514
3515
3516 if test "$MINIX" = yes; then
3517
3518 cat >>confdefs.h <<\_ACEOF
3519 #define _POSIX_SOURCE 1
3520 _ACEOF
3521
3522
3523 cat >>confdefs.h <<\_ACEOF
3524 #define _POSIX_1_SOURCE 2
3525 _ACEOF
3526
3527
3528 cat >>confdefs.h <<\_ACEOF
3529 #define _MINIX 1
3530 _ACEOF
3531
3532 fi
3533
3534
3535
3536 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3537 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3538 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3539 $as_echo_n "(cached) " >&6
3540 else
3541 cat >conftest.$ac_ext <<_ACEOF
3542 /* confdefs.h. */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3547
3548 # define __EXTENSIONS__ 1
3549 $ac_includes_default
3550 int
3551 main ()
3552 {
3553
3554 ;
3555 return 0;
3556 }
3557 _ACEOF
3558 rm -f conftest.$ac_objext
3559 if { (ac_try="$ac_compile"
3560 case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563 esac
3564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3565 $as_echo "$ac_try_echo") >&5
3566 (eval "$ac_compile") 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } && {
3573 test -z "$ac_c_werror_flag" ||
3574 test ! -s conftest.err
3575 } && test -s conftest.$ac_objext; then
3576 ac_cv_safe_to_define___extensions__=yes
3577 else
3578 $as_echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3580
3581 ac_cv_safe_to_define___extensions__=no
3582 fi
3583
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 fi
3586 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3587 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3588 test $ac_cv_safe_to_define___extensions__ = yes &&
3589 cat >>confdefs.h <<\_ACEOF
3590 #define __EXTENSIONS__ 1
3591 _ACEOF
3592
3593 cat >>confdefs.h <<\_ACEOF
3594 #define _ALL_SOURCE 1
3595 _ACEOF
3596
3597 cat >>confdefs.h <<\_ACEOF
3598 #define _GNU_SOURCE 1
3599 _ACEOF
3600
3601 cat >>confdefs.h <<\_ACEOF
3602 #define _POSIX_PTHREAD_SEMANTICS 1
3603 _ACEOF
3604
3605 cat >>confdefs.h <<\_ACEOF
3606 #define _TANDEM_SOURCE 1
3607 _ACEOF
3608
3609
3610
3611 # Check whether --enable-debug was given.
3612 if test "${enable_debug+set}" = set; then
3613 enableval=$enable_debug;
3614 else
3615 enable_debug=no
3616 fi
3617
3618
3619 # Check whether --enable-optimization was given.
3620 if test "${enable_optimization+set}" = set; then
3621 enableval=$enable_optimization;
3622 else
3623 enable_optimization=no
3624 fi
3625
3626
3627 # Check whether --enable-nls was given.
3628 if test "${enable_nls+set}" = set; then
3629 enableval=$enable_nls;
3630 else
3631 enable_nls=yes
3632 fi
3633
3634
3635 # Check whether --enable-gmp was given.
3636 if test "${enable_gmp+set}" = set; then
3637 enableval=$enable_gmp;
3638 else
3639 enable_gmp=yes
3640 fi
3641
3642
3643 ac_ext=c
3644 ac_cpp='$CPP $CPPFLAGS'
3645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3648 if test -n "$ac_tool_prefix"; then
3649 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3650 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3651 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 $as_echo_n "checking for $ac_word... " >&6; }
3653 if test "${ac_cv_prog_CC+set}" = set; then
3654 $as_echo_n "(cached) " >&6
3655 else
3656 if test -n "$CC"; then
3657 ac_cv_prog_CC="$CC" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3667 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3669 fi
3670 done
3671 done
3672 IFS=$as_save_IFS
3673
3674 fi
3675 fi
3676 CC=$ac_cv_prog_CC
3677 if test -n "$CC"; then
3678 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3679 $as_echo "$CC" >&6; }
3680 else
3681 { $as_echo "$as_me:$LINENO: result: no" >&5
3682 $as_echo "no" >&6; }
3683 fi
3684
3685
3686 fi
3687 if test -z "$ac_cv_prog_CC"; then
3688 ac_ct_CC=$CC
3689 # Extract the first word of "gcc", so it can be a program name with args.
3690 set dummy gcc; ac_word=$2
3691 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3694 $as_echo_n "(cached) " >&6
3695 else
3696 if test -n "$ac_ct_CC"; then
3697 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3706 ac_cv_prog_ac_ct_CC="gcc"
3707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3709 fi
3710 done
3711 done
3712 IFS=$as_save_IFS
3713
3714 fi
3715 fi
3716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3717 if test -n "$ac_ct_CC"; then
3718 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3719 $as_echo "$ac_ct_CC" >&6; }
3720 else
3721 { $as_echo "$as_me:$LINENO: result: no" >&5
3722 $as_echo "no" >&6; }
3723 fi
3724
3725 if test "x$ac_ct_CC" = x; then
3726 CC=""
3727 else
3728 case $cross_compiling:$ac_tool_warned in
3729 yes:)
3730 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3732 ac_tool_warned=yes ;;
3733 esac
3734 CC=$ac_ct_CC
3735 fi
3736 else
3737 CC="$ac_cv_prog_CC"
3738 fi
3739
3740 if test -z "$CC"; then
3741 if test -n "$ac_tool_prefix"; then
3742 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3743 set dummy ${ac_tool_prefix}cc; ac_word=$2
3744 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if test "${ac_cv_prog_CC+set}" = set; then
3747 $as_echo_n "(cached) " >&6
3748 else
3749 if test -n "$CC"; then
3750 ac_cv_prog_CC="$CC" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3754 do
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759 ac_cv_prog_CC="${ac_tool_prefix}cc"
3760 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 break 2
3762 fi
3763 done
3764 done
3765 IFS=$as_save_IFS
3766
3767 fi
3768 fi
3769 CC=$ac_cv_prog_CC
3770 if test -n "$CC"; then
3771 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3772 $as_echo "$CC" >&6; }
3773 else
3774 { $as_echo "$as_me:$LINENO: result: no" >&5
3775 $as_echo "no" >&6; }
3776 fi
3777
3778
3779 fi
3780 fi
3781 if test -z "$CC"; then
3782 # Extract the first word of "cc", so it can be a program name with args.
3783 set dummy cc; ac_word=$2
3784 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3785 $as_echo_n "checking for $ac_word... " >&6; }
3786 if test "${ac_cv_prog_CC+set}" = set; then
3787 $as_echo_n "(cached) " >&6
3788 else
3789 if test -n "$CC"; then
3790 ac_cv_prog_CC="$CC" # Let the user override the test.
3791 else
3792 ac_prog_rejected=no
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3795 do
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3800 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3801 ac_prog_rejected=yes
3802 continue
3803 fi
3804 ac_cv_prog_CC="cc"
3805 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3807 fi
3808 done
3809 done
3810 IFS=$as_save_IFS
3811
3812 if test $ac_prog_rejected = yes; then
3813 # We found a bogon in the path, so make sure we never use it.
3814 set dummy $ac_cv_prog_CC
3815 shift
3816 if test $# != 0; then
3817 # We chose a different compiler from the bogus one.
3818 # However, it has the same basename, so the bogon will be chosen
3819 # first if we set CC to just the basename; use the full file name.
3820 shift
3821 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3822 fi
3823 fi
3824 fi
3825 fi
3826 CC=$ac_cv_prog_CC
3827 if test -n "$CC"; then
3828 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3829 $as_echo "$CC" >&6; }
3830 else
3831 { $as_echo "$as_me:$LINENO: result: no" >&5
3832 $as_echo "no" >&6; }
3833 fi
3834
3835
3836 fi
3837 if test -z "$CC"; then
3838 if test -n "$ac_tool_prefix"; then
3839 for ac_prog in cl.exe
3840 do
3841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3842 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3843 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 $as_echo_n "checking for $ac_word... " >&6; }
3845 if test "${ac_cv_prog_CC+set}" = set; then
3846 $as_echo_n "(cached) " >&6
3847 else
3848 if test -n "$CC"; then
3849 ac_cv_prog_CC="$CC" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3858 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3859 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3861 fi
3862 done
3863 done
3864 IFS=$as_save_IFS
3865
3866 fi
3867 fi
3868 CC=$ac_cv_prog_CC
3869 if test -n "$CC"; then
3870 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3871 $as_echo "$CC" >&6; }
3872 else
3873 { $as_echo "$as_me:$LINENO: result: no" >&5
3874 $as_echo "no" >&6; }
3875 fi
3876
3877
3878 test -n "$CC" && break
3879 done
3880 fi
3881 if test -z "$CC"; then
3882 ac_ct_CC=$CC
3883 for ac_prog in cl.exe
3884 do
3885 # Extract the first word of "$ac_prog", so it can be a program name with args.
3886 set dummy $ac_prog; ac_word=$2
3887 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3888 $as_echo_n "checking for $ac_word... " >&6; }
3889 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3890 $as_echo_n "(cached) " >&6
3891 else
3892 if test -n "$ac_ct_CC"; then
3893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3894 else
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3897 do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3902 ac_cv_prog_ac_ct_CC="$ac_prog"
3903 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906 done
3907 done
3908 IFS=$as_save_IFS
3909
3910 fi
3911 fi
3912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3913 if test -n "$ac_ct_CC"; then
3914 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3915 $as_echo "$ac_ct_CC" >&6; }
3916 else
3917 { $as_echo "$as_me:$LINENO: result: no" >&5
3918 $as_echo "no" >&6; }
3919 fi
3920
3921
3922 test -n "$ac_ct_CC" && break
3923 done
3924
3925 if test "x$ac_ct_CC" = x; then
3926 CC=""
3927 else
3928 case $cross_compiling:$ac_tool_warned in
3929 yes:)
3930 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3932 ac_tool_warned=yes ;;
3933 esac
3934 CC=$ac_ct_CC
3935 fi
3936 fi
3937
3938 fi
3939
3940
3941 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3944 See \`config.log' for more details." >&5
3945 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3946 See \`config.log' for more details." >&2;}
3947 { (exit 1); exit 1; }; }; }
3948
3949 # Provide some information about the compiler.
3950 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3951 set X $ac_compile
3952 ac_compiler=$2
3953 { (ac_try="$ac_compiler --version >&5"
3954 case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957 esac
3958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3959 $as_echo "$ac_try_echo") >&5
3960 (eval "$ac_compiler --version >&5") 2>&5
3961 ac_status=$?
3962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }
3964 { (ac_try="$ac_compiler -v >&5"
3965 case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968 esac
3969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3970 $as_echo "$ac_try_echo") >&5
3971 (eval "$ac_compiler -v >&5") 2>&5
3972 ac_status=$?
3973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }
3975 { (ac_try="$ac_compiler -V >&5"
3976 case "(($ac_try" in
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3979 esac
3980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3981 $as_echo "$ac_try_echo") >&5
3982 (eval "$ac_compiler -V >&5") 2>&5
3983 ac_status=$?
3984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }
3986
3987 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3988 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3989 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3990 $as_echo_n "(cached) " >&6
3991 else
3992 cat >conftest.$ac_ext <<_ACEOF
3993 /* confdefs.h. */
3994 _ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
3998
3999 int
4000 main ()
4001 {
4002 #ifndef __GNUC__
4003 choke me
4004 #endif
4005
4006 ;
4007 return 0;
4008 }
4009 _ACEOF
4010 rm -f conftest.$ac_objext
4011 if { (ac_try="$ac_compile"
4012 case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4015 esac
4016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4017 $as_echo "$ac_try_echo") >&5
4018 (eval "$ac_compile") 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } && {
4025 test -z "$ac_c_werror_flag" ||
4026 test ! -s conftest.err
4027 } && test -s conftest.$ac_objext; then
4028 ac_compiler_gnu=yes
4029 else
4030 $as_echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4032
4033 ac_compiler_gnu=no
4034 fi
4035
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4038
4039 fi
4040 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4041 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4042 if test $ac_compiler_gnu = yes; then
4043 GCC=yes
4044 else
4045 GCC=
4046 fi
4047 ac_test_CFLAGS=${CFLAGS+set}
4048 ac_save_CFLAGS=$CFLAGS
4049 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4050 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4051 if test "${ac_cv_prog_cc_g+set}" = set; then
4052 $as_echo_n "(cached) " >&6
4053 else
4054 ac_save_c_werror_flag=$ac_c_werror_flag
4055 ac_c_werror_flag=yes
4056 ac_cv_prog_cc_g=no
4057 CFLAGS="-g"
4058 cat >conftest.$ac_ext <<_ACEOF
4059 /* confdefs.h. */
4060 _ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4064
4065 int
4066 main ()
4067 {
4068
4069 ;
4070 return 0;
4071 }
4072 _ACEOF
4073 rm -f conftest.$ac_objext
4074 if { (ac_try="$ac_compile"
4075 case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078 esac
4079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4080 $as_echo "$ac_try_echo") >&5
4081 (eval "$ac_compile") 2>conftest.er1
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
4086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } && {
4088 test -z "$ac_c_werror_flag" ||
4089 test ! -s conftest.err
4090 } && test -s conftest.$ac_objext; then
4091 ac_cv_prog_cc_g=yes
4092 else
4093 $as_echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4095
4096 CFLAGS=""
4097 cat >conftest.$ac_ext <<_ACEOF
4098 /* confdefs.h. */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103
4104 int
4105 main ()
4106 {
4107
4108 ;
4109 return 0;
4110 }
4111 _ACEOF
4112 rm -f conftest.$ac_objext
4113 if { (ac_try="$ac_compile"
4114 case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117 esac
4118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4119 $as_echo "$ac_try_echo") >&5
4120 (eval "$ac_compile") 2>conftest.er1
4121 ac_status=$?
4122 grep -v '^ *+' conftest.er1 >conftest.err
4123 rm -f conftest.er1
4124 cat conftest.err >&5
4125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } && {
4127 test -z "$ac_c_werror_flag" ||
4128 test ! -s conftest.err
4129 } && test -s conftest.$ac_objext; then
4130 :
4131 else
4132 $as_echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 ac_c_werror_flag=$ac_save_c_werror_flag
4136 CFLAGS="-g"
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143
4144 int
4145 main ()
4146 {
4147
4148 ;
4149 return 0;
4150 }
4151 _ACEOF
4152 rm -f conftest.$ac_objext
4153 if { (ac_try="$ac_compile"
4154 case "(($ac_try" in
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4157 esac
4158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4159 $as_echo "$ac_try_echo") >&5
4160 (eval "$ac_compile") 2>conftest.er1
4161 ac_status=$?
4162 grep -v '^ *+' conftest.er1 >conftest.err
4163 rm -f conftest.er1
4164 cat conftest.err >&5
4165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } && {
4167 test -z "$ac_c_werror_flag" ||
4168 test ! -s conftest.err
4169 } && test -s conftest.$ac_objext; then
4170 ac_cv_prog_cc_g=yes
4171 else
4172 $as_echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4174
4175
4176 fi
4177
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 fi
4180
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 fi
4183
4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185 ac_c_werror_flag=$ac_save_c_werror_flag
4186 fi
4187 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4188 $as_echo "$ac_cv_prog_cc_g" >&6; }
4189 if test "$ac_test_CFLAGS" = set; then
4190 CFLAGS=$ac_save_CFLAGS
4191 elif test $ac_cv_prog_cc_g = yes; then
4192 if test "$GCC" = yes; then
4193 CFLAGS="-g -O2"
4194 else
4195 CFLAGS="-g"
4196 fi
4197 else
4198 if test "$GCC" = yes; then
4199 CFLAGS="-O2"
4200 else
4201 CFLAGS=
4202 fi
4203 fi
4204 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4205 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4206 if test "${ac_cv_prog_cc_c89+set}" = set; then
4207 $as_echo_n "(cached) " >&6
4208 else
4209 ac_cv_prog_cc_c89=no
4210 ac_save_CC=$CC
4211 cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h. */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4217 #include <stdarg.h>
4218 #include <stdio.h>
4219 #include <sys/types.h>
4220 #include <sys/stat.h>
4221 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4222 struct buf { int x; };
4223 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4224 static char *e (p, i)
4225 char **p;
4226 int i;
4227 {
4228 return p[i];
4229 }
4230 static char *f (char * (*g) (char **, int), char **p, ...)
4231 {
4232 char *s;
4233 va_list v;
4234 va_start (v,p);
4235 s = g (p, va_arg (v,int));
4236 va_end (v);
4237 return s;
4238 }
4239
4240 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4241 function prototypes and stuff, but not '\xHH' hex character constants.
4242 These don't provoke an error unfortunately, instead are silently treated
4243 as 'x'. The following induces an error, until -std is added to get
4244 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4245 array size at least. It's necessary to write '\x00'==0 to get something
4246 that's true only with -std. */
4247 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4248
4249 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4250 inside strings and character constants. */
4251 #define FOO(x) 'x'
4252 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4253
4254 int test (int i, double x);
4255 struct s1 {int (*f) (int a);};
4256 struct s2 {int (*f) (double a);};
4257 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4258 int argc;
4259 char **argv;
4260 int
4261 main ()
4262 {
4263 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4264 ;
4265 return 0;
4266 }
4267 _ACEOF
4268 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4269 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4270 do
4271 CC="$ac_save_CC $ac_arg"
4272 rm -f conftest.$ac_objext
4273 if { (ac_try="$ac_compile"
4274 case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277 esac
4278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4279 $as_echo "$ac_try_echo") >&5
4280 (eval "$ac_compile") 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
4285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && {
4287 test -z "$ac_c_werror_flag" ||
4288 test ! -s conftest.err
4289 } && test -s conftest.$ac_objext; then
4290 ac_cv_prog_cc_c89=$ac_arg
4291 else
4292 $as_echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295
4296 fi
4297
4298 rm -f core conftest.err conftest.$ac_objext
4299 test "x$ac_cv_prog_cc_c89" != "xno" && break
4300 done
4301 rm -f conftest.$ac_ext
4302 CC=$ac_save_CC
4303
4304 fi
4305 # AC_CACHE_VAL
4306 case "x$ac_cv_prog_cc_c89" in
4307 x)
4308 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4309 $as_echo "none needed" >&6; } ;;
4310 xno)
4311 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4312 $as_echo "unsupported" >&6; } ;;
4313 *)
4314 CC="$CC $ac_cv_prog_cc_c89"
4315 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4316 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4317 esac
4318
4319
4320 ac_ext=c
4321 ac_cpp='$CPP $CPPFLAGS'
4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325
4326 if test "x$CC" != xcc; then
4327 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4328 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4329 else
4330 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4331 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4332 fi
4333 set dummy $CC; ac_cc=`$as_echo "$2" |
4334 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4335 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4336 $as_echo_n "(cached) " >&6
4337 else
4338 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h. */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344
4345 int
4346 main ()
4347 {
4348
4349 ;
4350 return 0;
4351 }
4352 _ACEOF
4353 # Make sure it works both with $CC and with simple cc.
4354 # We do the test twice because some compilers refuse to overwrite an
4355 # existing .o file with -o, though they will create one.
4356 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4357 rm -f conftest2.*
4358 if { (case "(($ac_try" in
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4361 esac
4362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4363 $as_echo "$ac_try_echo") >&5
4364 (eval "$ac_try") 2>&5
4365 ac_status=$?
4366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4371 esac
4372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4373 $as_echo "$ac_try_echo") >&5
4374 (eval "$ac_try") 2>&5
4375 ac_status=$?
4376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); };
4378 then
4379 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4380 if test "x$CC" != xcc; then
4381 # Test first that cc exists at all.
4382 if { ac_try='cc -c conftest.$ac_ext >&5'
4383 { (case "(($ac_try" in
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4386 esac
4387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4388 $as_echo "$ac_try_echo") >&5
4389 (eval "$ac_try") 2>&5
4390 ac_status=$?
4391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
4393 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4394 rm -f conftest2.*
4395 if { (case "(($ac_try" in
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4398 esac
4399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4400 $as_echo "$ac_try_echo") >&5
4401 (eval "$ac_try") 2>&5
4402 ac_status=$?
4403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } &&
4405 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4408 esac
4409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4410 $as_echo "$ac_try_echo") >&5
4411 (eval "$ac_try") 2>&5
4412 ac_status=$?
4413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); };
4415 then
4416 # cc works too.
4417 :
4418 else
4419 # cc exists but doesn't like -o.
4420 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4421 fi
4422 fi
4423 fi
4424 else
4425 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4426 fi
4427 rm -f core conftest*
4428
4429 fi
4430 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4431 { $as_echo "$as_me:$LINENO: result: yes" >&5
4432 $as_echo "yes" >&6; }
4433 else
4434 { $as_echo "$as_me:$LINENO: result: no" >&5
4435 $as_echo "no" >&6; }
4436
4437 cat >>confdefs.h <<\_ACEOF
4438 #define NO_MINUS_C_MINUS_O 1
4439 _ACEOF
4440
4441 fi
4442
4443 ac_ext=c
4444 ac_cpp='$CPP $CPPFLAGS'
4445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4449 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4450 # On Suns, sometimes $CPP names a directory.
4451 if test -n "$CPP" && test -d "$CPP"; then
4452 CPP=
4453 fi
4454 if test -z "$CPP"; then
4455 if test "${ac_cv_prog_CPP+set}" = set; then
4456 $as_echo_n "(cached) " >&6
4457 else
4458 # Double quotes because CPP needs to be expanded
4459 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4460 do
4461 ac_preproc_ok=false
4462 for ac_c_preproc_warn_flag in '' yes
4463 do
4464 # Use a header file that comes with gcc, so configuring glibc
4465 # with a fresh cross-compiler works.
4466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4467 # <limits.h> exists even on freestanding compilers.
4468 # On the NeXT, cc -E runs the code through the compiler's parser,
4469 # not just through cpp. "Syntax error" is here to catch this case.
4470 cat >conftest.$ac_ext <<_ACEOF
4471 /* confdefs.h. */
4472 _ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4476 #ifdef __STDC__
4477 # include <limits.h>
4478 #else
4479 # include <assert.h>
4480 #endif
4481 Syntax error
4482 _ACEOF
4483 if { (ac_try="$ac_cpp conftest.$ac_ext"
4484 case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487 esac
4488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4489 $as_echo "$ac_try_echo") >&5
4490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4491 ac_status=$?
4492 grep -v '^ *+' conftest.er1 >conftest.err
4493 rm -f conftest.er1
4494 cat conftest.err >&5
4495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } >/dev/null && {
4497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4498 test ! -s conftest.err
4499 }; then
4500 :
4501 else
4502 $as_echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4504
4505 # Broken: fails on valid input.
4506 continue
4507 fi
4508
4509 rm -f conftest.err conftest.$ac_ext
4510
4511 # OK, works on sane cases. Now check whether nonexistent headers
4512 # can be detected and how.
4513 cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h. */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4519 #include <ac_nonexistent.h>
4520 _ACEOF
4521 if { (ac_try="$ac_cpp conftest.$ac_ext"
4522 case "(($ac_try" in
4523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524 *) ac_try_echo=$ac_try;;
4525 esac
4526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4527 $as_echo "$ac_try_echo") >&5
4528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4529 ac_status=$?
4530 grep -v '^ *+' conftest.er1 >conftest.err
4531 rm -f conftest.er1
4532 cat conftest.err >&5
4533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } >/dev/null && {
4535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4536 test ! -s conftest.err
4537 }; then
4538 # Broken: success on invalid input.
4539 continue
4540 else
4541 $as_echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4543
4544 # Passes both tests.
4545 ac_preproc_ok=:
4546 break
4547 fi
4548
4549 rm -f conftest.err conftest.$ac_ext
4550
4551 done
4552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4553 rm -f conftest.err conftest.$ac_ext
4554 if $ac_preproc_ok; then
4555 break
4556 fi
4557
4558 done
4559 ac_cv_prog_CPP=$CPP
4560
4561 fi
4562 CPP=$ac_cv_prog_CPP
4563 else
4564 ac_cv_prog_CPP=$CPP
4565 fi
4566 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4567 $as_echo "$CPP" >&6; }
4568 ac_preproc_ok=false
4569 for ac_c_preproc_warn_flag in '' yes
4570 do
4571 # Use a header file that comes with gcc, so configuring glibc
4572 # with a fresh cross-compiler works.
4573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4574 # <limits.h> exists even on freestanding compilers.
4575 # On the NeXT, cc -E runs the code through the compiler's parser,
4576 # not just through cpp. "Syntax error" is here to catch this case.
4577 cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h. */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 #ifdef __STDC__
4584 # include <limits.h>
4585 #else
4586 # include <assert.h>
4587 #endif
4588 Syntax error
4589 _ACEOF
4590 if { (ac_try="$ac_cpp conftest.$ac_ext"
4591 case "(($ac_try" in
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4594 esac
4595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4596 $as_echo "$ac_try_echo") >&5
4597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4598 ac_status=$?
4599 grep -v '^ *+' conftest.er1 >conftest.err
4600 rm -f conftest.er1
4601 cat conftest.err >&5
4602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } >/dev/null && {
4604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4605 test ! -s conftest.err
4606 }; then
4607 :
4608 else
4609 $as_echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4611
4612 # Broken: fails on valid input.
4613 continue
4614 fi
4615
4616 rm -f conftest.err conftest.$ac_ext
4617
4618 # OK, works on sane cases. Now check whether nonexistent headers
4619 # can be detected and how.
4620 cat >conftest.$ac_ext <<_ACEOF
4621 /* confdefs.h. */
4622 _ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h. */
4626 #include <ac_nonexistent.h>
4627 _ACEOF
4628 if { (ac_try="$ac_cpp conftest.$ac_ext"
4629 case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4632 esac
4633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4634 $as_echo "$ac_try_echo") >&5
4635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4636 ac_status=$?
4637 grep -v '^ *+' conftest.er1 >conftest.err
4638 rm -f conftest.er1
4639 cat conftest.err >&5
4640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } >/dev/null && {
4642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4643 test ! -s conftest.err
4644 }; then
4645 # Broken: success on invalid input.
4646 continue
4647 else
4648 $as_echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4650
4651 # Passes both tests.
4652 ac_preproc_ok=:
4653 break
4654 fi
4655
4656 rm -f conftest.err conftest.$ac_ext
4657
4658 done
4659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4660 rm -f conftest.err conftest.$ac_ext
4661 if $ac_preproc_ok; then
4662 :
4663 else
4664 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4666 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4667 See \`config.log' for more details." >&5
4668 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4669 See \`config.log' for more details." >&2;}
4670 { (exit 1); exit 1; }; }; }
4671 fi
4672
4673 ac_ext=c
4674 ac_cpp='$CPP $CPPFLAGS'
4675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4678
4679 # Extract the first word of "find", so it can be a program name with args.
4680 set dummy find; ac_word=$2
4681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if test "${ac_cv_path_FIND+set}" = set; then
4684 $as_echo_n "(cached) " >&6
4685 else
4686 case $FIND in
4687 [\\/]* | ?:[\\/]*)
4688 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4689 ;;
4690 *)
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4693 do
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4698 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 break 2
4701 fi
4702 done
4703 done
4704 IFS=$as_save_IFS
4705
4706 ;;
4707 esac
4708 fi
4709 FIND=$ac_cv_path_FIND
4710 if test -n "$FIND"; then
4711 { $as_echo "$as_me:$LINENO: result: $FIND" >&5
4712 $as_echo "$FIND" >&6; }
4713 else
4714 { $as_echo "$as_me:$LINENO: result: no" >&5
4715 $as_echo "no" >&6; }
4716 fi
4717
4718
4719 for ac_prog in install-info ginstall-info
4720 do
4721 # Extract the first word of "$ac_prog", so it can be a program name with args.
4722 set dummy $ac_prog; ac_word=$2
4723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if test "${ac_cv_path_INSTINFO+set}" = set; then
4726 $as_echo_n "(cached) " >&6
4727 else
4728 case $INSTINFO in
4729 [\\/]* | ?:[\\/]*)
4730 ac_cv_path_INSTINFO="$INSTINFO" # Let the user override the test with a path.
4731 ;;
4732 *)
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4735 do
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4740 ac_cv_path_INSTINFO="$as_dir/$ac_word$ac_exec_ext"
4741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 break 2
4743 fi
4744 done
4745 done
4746 IFS=$as_save_IFS
4747
4748 ;;
4749 esac
4750 fi
4751 INSTINFO=$ac_cv_path_INSTINFO
4752 if test -n "$INSTINFO"; then
4753 { $as_echo "$as_me:$LINENO: result: $INSTINFO" >&5
4754 $as_echo "$INSTINFO" >&6; }
4755 else
4756 { $as_echo "$as_me:$LINENO: result: no" >&5
4757 $as_echo "no" >&6; }
4758 fi
4759
4760
4761 test -n "$INSTINFO" && break
4762 done
4763
4764
4765 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4766 $as_echo_n "checking for ANSI C header files... " >&6; }
4767 if test "${ac_cv_header_stdc+set}" = set; then
4768 $as_echo_n "(cached) " >&6
4769 else
4770 cat >conftest.$ac_ext <<_ACEOF
4771 /* confdefs.h. */
4772 _ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h. */
4776 #include <stdlib.h>
4777 #include <stdarg.h>
4778 #include <string.h>
4779 #include <float.h>
4780
4781 int
4782 main ()
4783 {
4784
4785 ;
4786 return 0;
4787 }
4788 _ACEOF
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4791 case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794 esac
4795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4796 $as_echo "$ac_try_echo") >&5
4797 (eval "$ac_compile") 2>conftest.er1
4798 ac_status=$?
4799 grep -v '^ *+' conftest.er1 >conftest.err
4800 rm -f conftest.er1
4801 cat conftest.err >&5
4802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } && {
4804 test -z "$ac_c_werror_flag" ||
4805 test ! -s conftest.err
4806 } && test -s conftest.$ac_objext; then
4807 ac_cv_header_stdc=yes
4808 else
4809 $as_echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4811
4812 ac_cv_header_stdc=no
4813 fi
4814
4815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816
4817 if test $ac_cv_header_stdc = yes; then
4818 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4819 cat >conftest.$ac_ext <<_ACEOF
4820 /* confdefs.h. */
4821 _ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4825 #include <string.h>
4826
4827 _ACEOF
4828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4829 $EGREP "memchr" >/dev/null 2>&1; then
4830 :
4831 else
4832 ac_cv_header_stdc=no
4833 fi
4834 rm -f conftest*
4835
4836 fi
4837
4838 if test $ac_cv_header_stdc = yes; then
4839 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4840 cat >conftest.$ac_ext <<_ACEOF
4841 /* confdefs.h. */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4846 #include <stdlib.h>
4847
4848 _ACEOF
4849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4850 $EGREP "free" >/dev/null 2>&1; then
4851 :
4852 else
4853 ac_cv_header_stdc=no
4854 fi
4855 rm -f conftest*
4856
4857 fi
4858
4859 if test $ac_cv_header_stdc = yes; then
4860 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4861 if test "$cross_compiling" = yes; then
4862 :
4863 else
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 #include <ctype.h>
4871 #include <stdlib.h>
4872 #if ((' ' & 0x0FF) == 0x020)
4873 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4874 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4875 #else
4876 # define ISLOWER(c) \
4877 (('a' <= (c) && (c) <= 'i') \
4878 || ('j' <= (c) && (c) <= 'r') \
4879 || ('s' <= (c) && (c) <= 'z'))
4880 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4881 #endif
4882
4883 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4884 int
4885 main ()
4886 {
4887 int i;
4888 for (i = 0; i < 256; i++)
4889 if (XOR (islower (i), ISLOWER (i))
4890 || toupper (i) != TOUPPER (i))
4891 return 2;
4892 return 0;
4893 }
4894 _ACEOF
4895 rm -f conftest$ac_exeext
4896 if { (ac_try="$ac_link"
4897 case "(($ac_try" in
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4900 esac
4901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4902 $as_echo "$ac_try_echo") >&5
4903 (eval "$ac_link") 2>&5
4904 ac_status=$?
4905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4907 { (case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910 esac
4911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4912 $as_echo "$ac_try_echo") >&5
4913 (eval "$ac_try") 2>&5
4914 ac_status=$?
4915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 :
4918 else
4919 $as_echo "$as_me: program exited with status $ac_status" >&5
4920 $as_echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4922
4923 ( exit $ac_status )
4924 ac_cv_header_stdc=no
4925 fi
4926 rm -rf conftest.dSYM
4927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4928 fi
4929
4930
4931 fi
4932 fi
4933 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4934 $as_echo "$ac_cv_header_stdc" >&6; }
4935 if test $ac_cv_header_stdc = yes; then
4936
4937 cat >>confdefs.h <<\_ACEOF
4938 #define STDC_HEADERS 1
4939 _ACEOF
4940
4941 fi
4942
4943 if test $ac_cv_header_stdc = yes; then
4944 { $as_echo "$as_me:$LINENO: result: Ok! I have just found them." >&5
4945 $as_echo "Ok! I have just found them." >&6; }
4946 else
4947 { { $as_echo "$as_me:$LINENO: error: Cannot find ANSI C header files!" >&5
4948 $as_echo "$as_me: error: Cannot find ANSI C header files!" >&2;}
4949 { (exit 1); exit 1; }; }
4950 fi
4951
4952 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4953 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4954 if test "${ac_cv_header_stdbool_h+set}" = set; then
4955 $as_echo_n "(cached) " >&6
4956 else
4957 cat >conftest.$ac_ext <<_ACEOF
4958 /* confdefs.h. */
4959 _ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4963
4964 #include <stdbool.h>
4965 #ifndef bool
4966 "error: bool is not defined"
4967 #endif
4968 #ifndef false
4969 "error: false is not defined"
4970 #endif
4971 #if false
4972 "error: false is not 0"
4973 #endif
4974 #ifndef true
4975 "error: true is not defined"
4976 #endif
4977 #if true != 1
4978 "error: true is not 1"
4979 #endif
4980 #ifndef __bool_true_false_are_defined
4981 "error: __bool_true_false_are_defined is not defined"
4982 #endif
4983
4984 struct s { _Bool s: 1; _Bool t; } s;
4985
4986 char a[true == 1 ? 1 : -1];
4987 char b[false == 0 ? 1 : -1];
4988 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4989 char d[(bool) 0.5 == true ? 1 : -1];
4990 bool e = &s;
4991 char f[(_Bool) 0.0 == false ? 1 : -1];
4992 char g[true];
4993 char h[sizeof (_Bool)];
4994 char i[sizeof s.t];
4995 enum { j = false, k = true, l = false * true, m = true * 256 };
4996 /* The following fails for
4997 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4998 _Bool n[m];
4999 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5000 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
5001 # if defined __xlc__ || defined __GNUC__
5002 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
5003 reported by James Lemley on 2005-10-05; see
5004 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
5005 This test is not quite right, since xlc is allowed to
5006 reject this program, as the initializer for xlcbug is
5007 not one of the forms that C requires support for.
5008 However, doing the test right would require a runtime
5009 test, and that would make cross-compilation harder.
5010 Let us hope that IBM fixes the xlc bug, and also adds
5011 support for this kind of constant expression. In the
5012 meantime, this test will reject xlc, which is OK, since
5013 our stdbool.h substitute should suffice. We also test
5014 this with GCC, where it should work, to detect more
5015 quickly whether someone messes up the test in the
5016 future. */
5017 char digs[] = "0123456789";
5018 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
5019 # endif
5020 /* Catch a bug in an HP-UX C compiler. See
5021 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5022 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5023 */
5024 _Bool q = true;
5025 _Bool *pq = &q;
5026
5027 int
5028 main ()
5029 {
5030
5031 *pq |= q;
5032 *pq |= ! q;
5033 /* Refer to every declared value, to avoid compiler optimizations. */
5034 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5035 + !m + !n + !o + !p + !q + !pq);
5036
5037 ;
5038 return 0;
5039 }
5040 _ACEOF
5041 rm -f conftest.$ac_objext
5042 if { (ac_try="$ac_compile"
5043 case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5046 esac
5047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5048 $as_echo "$ac_try_echo") >&5
5049 (eval "$ac_compile") 2>conftest.er1
5050 ac_status=$?
5051 grep -v '^ *+' conftest.er1 >conftest.err
5052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } && {
5056 test -z "$ac_c_werror_flag" ||
5057 test ! -s conftest.err
5058 } && test -s conftest.$ac_objext; then
5059 ac_cv_header_stdbool_h=yes
5060 else
5061 $as_echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5063
5064 ac_cv_header_stdbool_h=no
5065 fi
5066
5067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068 fi
5069 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5070 $as_echo "$ac_cv_header_stdbool_h" >&6; }
5071 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
5072 $as_echo_n "checking for _Bool... " >&6; }
5073 if test "${ac_cv_type__Bool+set}" = set; then
5074 $as_echo_n "(cached) " >&6
5075 else
5076 ac_cv_type__Bool=no
5077 cat >conftest.$ac_ext <<_ACEOF
5078 /* confdefs.h. */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5083 $ac_includes_default
5084 int
5085 main ()
5086 {
5087 if (sizeof (_Bool))
5088 return 0;
5089 ;
5090 return 0;
5091 }
5092 _ACEOF
5093 rm -f conftest.$ac_objext
5094 if { (ac_try="$ac_compile"
5095 case "(($ac_try" in
5096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5098 esac
5099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5100 $as_echo "$ac_try_echo") >&5
5101 (eval "$ac_compile") 2>conftest.er1
5102 ac_status=$?
5103 grep -v '^ *+' conftest.er1 >conftest.err
5104 rm -f conftest.er1
5105 cat conftest.err >&5
5106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } && {
5108 test -z "$ac_c_werror_flag" ||
5109 test ! -s conftest.err
5110 } && test -s conftest.$ac_objext; then
5111 cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h. */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5117 $ac_includes_default
5118 int
5119 main ()
5120 {
5121 if (sizeof ((_Bool)))
5122 return 0;
5123 ;
5124 return 0;
5125 }
5126 _ACEOF
5127 rm -f conftest.$ac_objext
5128 if { (ac_try="$ac_compile"
5129 case "(($ac_try" in
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5132 esac
5133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5134 $as_echo "$ac_try_echo") >&5
5135 (eval "$ac_compile") 2>conftest.er1
5136 ac_status=$?
5137 grep -v '^ *+' conftest.er1 >conftest.err
5138 rm -f conftest.er1
5139 cat conftest.err >&5
5140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } && {
5142 test -z "$ac_c_werror_flag" ||
5143 test ! -s conftest.err
5144 } && test -s conftest.$ac_objext; then
5145 :
5146 else
5147 $as_echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5149
5150 ac_cv_type__Bool=yes
5151 fi
5152
5153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5154 else
5155 $as_echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5157
5158
5159 fi
5160
5161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5162 fi
5163 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
5164 $as_echo "$ac_cv_type__Bool" >&6; }
5165 if test "x$ac_cv_type__Bool" = x""yes; then
5166
5167 cat >>confdefs.h <<_ACEOF
5168 #define HAVE__BOOL 1
5169 _ACEOF
5170
5171
5172 fi
5173
5174 if test $ac_cv_header_stdbool_h = yes; then
5175
5176 cat >>confdefs.h <<\_ACEOF
5177 #define HAVE_STDBOOL_H 1
5178 _ACEOF
5179
5180 fi
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192 for ac_header in fcntl.h locale.h stddef.h \
5193 stdlib.h string.h sys/file.h time.h unistd.h wchar.h wctype.h
5194 do
5195 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5197 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5198 $as_echo_n "checking for $ac_header... " >&6; }
5199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5200 $as_echo_n "(cached) " >&6
5201 fi
5202 ac_res=`eval 'as_val=${'$as_ac_Header'}
5203 $as_echo "$as_val"'`
5204 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5205 $as_echo "$ac_res" >&6; }
5206 else
5207 # Is the header compilable?
5208 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5209 $as_echo_n "checking $ac_header usability... " >&6; }
5210 cat >conftest.$ac_ext <<_ACEOF
5211 /* confdefs.h. */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5216 $ac_includes_default
5217 #include <$ac_header>
5218 _ACEOF
5219 rm -f conftest.$ac_objext
5220 if { (ac_try="$ac_compile"
5221 case "(($ac_try" in
5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5224 esac
5225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5226 $as_echo "$ac_try_echo") >&5
5227 (eval "$ac_compile") 2>conftest.er1
5228 ac_status=$?
5229 grep -v '^ *+' conftest.er1 >conftest.err
5230 rm -f conftest.er1
5231 cat conftest.err >&5
5232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } && {
5234 test -z "$ac_c_werror_flag" ||
5235 test ! -s conftest.err
5236 } && test -s conftest.$ac_objext; then
5237 ac_header_compiler=yes
5238 else
5239 $as_echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5241
5242 ac_header_compiler=no
5243 fi
5244
5245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5247 $as_echo "$ac_header_compiler" >&6; }
5248
5249 # Is the header present?
5250 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5251 $as_echo_n "checking $ac_header presence... " >&6; }
5252 cat >conftest.$ac_ext <<_ACEOF
5253 /* confdefs.h. */
5254 _ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5258 #include <$ac_header>
5259 _ACEOF
5260 if { (ac_try="$ac_cpp conftest.$ac_ext"
5261 case "(($ac_try" in
5262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5263 *) ac_try_echo=$ac_try;;
5264 esac
5265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5266 $as_echo "$ac_try_echo") >&5
5267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5268 ac_status=$?
5269 grep -v '^ *+' conftest.er1 >conftest.err
5270 rm -f conftest.er1
5271 cat conftest.err >&5
5272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } >/dev/null && {
5274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5275 test ! -s conftest.err
5276 }; then
5277 ac_header_preproc=yes
5278 else
5279 $as_echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.$ac_ext >&5
5281
5282 ac_header_preproc=no
5283 fi
5284
5285 rm -f conftest.err conftest.$ac_ext
5286 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5287 $as_echo "$ac_header_preproc" >&6; }
5288
5289 # So? What about this header?
5290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5291 yes:no: )
5292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5293 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5295 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5296 ac_header_preproc=yes
5297 ;;
5298 no:yes:* )
5299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5300 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5302 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5304 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5306 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5308 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5310 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5311 ( cat <<\_ASBOX
5312 ## ----------------------------------------- ##
5313 ## Report this to <ivprimi at libero dot it> ##
5314 ## ----------------------------------------- ##
5315 _ASBOX
5316 ) | sed "s/^/$as_me: WARNING: /" >&2
5317 ;;
5318 esac
5319 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5320 $as_echo_n "checking for $ac_header... " >&6; }
5321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5322 $as_echo_n "(cached) " >&6
5323 else
5324 eval "$as_ac_Header=\$ac_header_preproc"
5325 fi
5326 ac_res=`eval 'as_val=${'$as_ac_Header'}
5327 $as_echo "$as_val"'`
5328 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5329 $as_echo "$ac_res" >&6; }
5330
5331 fi
5332 as_val=`eval 'as_val=${'$as_ac_Header'}
5333 $as_echo "$as_val"'`
5334 if test "x$as_val" = x""yes; then
5335 cat >>confdefs.h <<_ACEOF
5336 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5337 _ACEOF
5338
5339 fi
5340
5341 done
5342
5343
5344
5345
5346
5347
5348 ac_header_dirent=no
5349 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5350 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5351 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5352 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5354 $as_echo_n "(cached) " >&6
5355 else
5356 cat >conftest.$ac_ext <<_ACEOF
5357 /* confdefs.h. */
5358 _ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5362 #include <sys/types.h>
5363 #include <$ac_hdr>
5364
5365 int
5366 main ()
5367 {
5368 if ((DIR *) 0)
5369 return 0;
5370 ;
5371 return 0;
5372 }
5373 _ACEOF
5374 rm -f conftest.$ac_objext
5375 if { (ac_try="$ac_compile"
5376 case "(($ac_try" in
5377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378 *) ac_try_echo=$ac_try;;
5379 esac
5380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5381 $as_echo "$ac_try_echo") >&5
5382 (eval "$ac_compile") 2>conftest.er1
5383 ac_status=$?
5384 grep -v '^ *+' conftest.er1 >conftest.err
5385 rm -f conftest.er1
5386 cat conftest.err >&5
5387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } && {
5389 test -z "$ac_c_werror_flag" ||
5390 test ! -s conftest.err
5391 } && test -s conftest.$ac_objext; then
5392 eval "$as_ac_Header=yes"
5393 else
5394 $as_echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5396
5397 eval "$as_ac_Header=no"
5398 fi
5399
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 fi
5402 ac_res=`eval 'as_val=${'$as_ac_Header'}
5403 $as_echo "$as_val"'`
5404 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5405 $as_echo "$ac_res" >&6; }
5406 as_val=`eval 'as_val=${'$as_ac_Header'}
5407 $as_echo "$as_val"'`
5408 if test "x$as_val" = x""yes; then
5409 cat >>confdefs.h <<_ACEOF
5410 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5411 _ACEOF
5412
5413 ac_header_dirent=$ac_hdr; break
5414 fi
5415
5416 done
5417 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5418 if test $ac_header_dirent = dirent.h; then
5419 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5420 $as_echo_n "checking for library containing opendir... " >&6; }
5421 if test "${ac_cv_search_opendir+set}" = set; then
5422 $as_echo_n "(cached) " >&6
5423 else
5424 ac_func_search_save_LIBS=$LIBS
5425 cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h. */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431
5432 /* Override any GCC internal prototype to avoid an error.
5433 Use char because int might match the return type of a GCC
5434 builtin and then its argument prototype would still apply. */
5435 #ifdef __cplusplus
5436 extern "C"
5437 #endif
5438 char opendir ();
5439 int
5440 main ()
5441 {
5442 return opendir ();
5443 ;
5444 return 0;
5445 }
5446 _ACEOF
5447 for ac_lib in '' dir; do
5448 if test -z "$ac_lib"; then
5449 ac_res="none required"
5450 else
5451 ac_res=-l$ac_lib
5452 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5453 fi
5454 rm -f conftest.$ac_objext conftest$ac_exeext
5455 if { (ac_try="$ac_link"
5456 case "(($ac_try" in
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5459 esac
5460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5461 $as_echo "$ac_try_echo") >&5
5462 (eval "$ac_link") 2>conftest.er1
5463 ac_status=$?
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
5467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && {
5469 test -z "$ac_c_werror_flag" ||
5470 test ! -s conftest.err
5471 } && test -s conftest$ac_exeext && {
5472 test "$cross_compiling" = yes ||
5473 $as_test_x conftest$ac_exeext
5474 }; then
5475 ac_cv_search_opendir=$ac_res
5476 else
5477 $as_echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5479
5480
5481 fi
5482
5483 rm -rf conftest.dSYM
5484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5485 conftest$ac_exeext
5486 if test "${ac_cv_search_opendir+set}" = set; then
5487 break
5488 fi
5489 done
5490 if test "${ac_cv_search_opendir+set}" = set; then
5491 :
5492 else
5493 ac_cv_search_opendir=no
5494 fi
5495 rm conftest.$ac_ext
5496 LIBS=$ac_func_search_save_LIBS
5497 fi
5498 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5499 $as_echo "$ac_cv_search_opendir" >&6; }
5500 ac_res=$ac_cv_search_opendir
5501 if test "$ac_res" != no; then
5502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5503
5504 fi
5505
5506 else
5507 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5508 $as_echo_n "checking for library containing opendir... " >&6; }
5509 if test "${ac_cv_search_opendir+set}" = set; then
5510 $as_echo_n "(cached) " >&6
5511 else
5512 ac_func_search_save_LIBS=$LIBS
5513 cat >conftest.$ac_ext <<_ACEOF
5514 /* confdefs.h. */
5515 _ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5519
5520 /* Override any GCC internal prototype to avoid an error.
5521 Use char because int might match the return type of a GCC
5522 builtin and then its argument prototype would still apply. */
5523 #ifdef __cplusplus
5524 extern "C"
5525 #endif
5526 char opendir ();
5527 int
5528 main ()
5529 {
5530 return opendir ();
5531 ;
5532 return 0;
5533 }
5534 _ACEOF
5535 for ac_lib in '' x; do
5536 if test -z "$ac_lib"; then
5537 ac_res="none required"
5538 else
5539 ac_res=-l$ac_lib
5540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5541 fi
5542 rm -f conftest.$ac_objext conftest$ac_exeext
5543 if { (ac_try="$ac_link"
5544 case "(($ac_try" in
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5547 esac
5548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5549 $as_echo "$ac_try_echo") >&5
5550 (eval "$ac_link") 2>conftest.er1
5551 ac_status=$?
5552 grep -v '^ *+' conftest.er1 >conftest.err
5553 rm -f conftest.er1
5554 cat conftest.err >&5
5555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } && {
5557 test -z "$ac_c_werror_flag" ||
5558 test ! -s conftest.err
5559 } && test -s conftest$ac_exeext && {
5560 test "$cross_compiling" = yes ||
5561 $as_test_x conftest$ac_exeext
5562 }; then
5563 ac_cv_search_opendir=$ac_res
5564 else
5565 $as_echo "$as_me: failed program was:" >&5
5566 sed 's/^/| /' conftest.$ac_ext >&5
5567
5568
5569 fi
5570
5571 rm -rf conftest.dSYM
5572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5573 conftest$ac_exeext
5574 if test "${ac_cv_search_opendir+set}" = set; then
5575 break
5576 fi
5577 done
5578 if test "${ac_cv_search_opendir+set}" = set; then
5579 :
5580 else
5581 ac_cv_search_opendir=no
5582 fi
5583 rm conftest.$ac_ext
5584 LIBS=$ac_func_search_save_LIBS
5585 fi
5586 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5587 $as_echo "$ac_cv_search_opendir" >&6; }
5588 ac_res=$ac_cv_search_opendir
5589 if test "$ac_res" != no; then
5590 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5591
5592 fi
5593
5594 fi
5595
5596 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5597 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5598 if test "${ac_cv_header_stat_broken+set}" = set; then
5599 $as_echo_n "(cached) " >&6
5600 else
5601 cat >conftest.$ac_ext <<_ACEOF
5602 /* confdefs.h. */
5603 _ACEOF
5604 cat confdefs.h >>conftest.$ac_ext
5605 cat >>conftest.$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5607 #include <sys/types.h>
5608 #include <sys/stat.h>
5609
5610 #if defined S_ISBLK && defined S_IFDIR
5611 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5612 #endif
5613
5614 #if defined S_ISBLK && defined S_IFCHR
5615 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5616 #endif
5617
5618 #if defined S_ISLNK && defined S_IFREG
5619 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5620 #endif
5621
5622 #if defined S_ISSOCK && defined S_IFREG
5623 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5624 #endif
5625
5626 _ACEOF
5627 rm -f conftest.$ac_objext
5628 if { (ac_try="$ac_compile"
5629 case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5632 esac
5633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5634 $as_echo "$ac_try_echo") >&5
5635 (eval "$ac_compile") 2>conftest.er1
5636 ac_status=$?
5637 grep -v '^ *+' conftest.er1 >conftest.err
5638 rm -f conftest.er1
5639 cat conftest.err >&5
5640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } && {
5642 test -z "$ac_c_werror_flag" ||
5643 test ! -s conftest.err
5644 } && test -s conftest.$ac_objext; then
5645 ac_cv_header_stat_broken=no
5646 else
5647 $as_echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5649
5650 ac_cv_header_stat_broken=yes
5651 fi
5652
5653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5654 fi
5655 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5656 $as_echo "$ac_cv_header_stat_broken" >&6; }
5657 if test $ac_cv_header_stat_broken = yes; then
5658
5659 cat >>confdefs.h <<\_ACEOF
5660 #define STAT_MACROS_BROKEN 1
5661 _ACEOF
5662
5663 fi
5664
5665 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5666 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5667 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5668 $as_echo_n "(cached) " >&6
5669 else
5670 cat >conftest.$ac_ext <<_ACEOF
5671 /* confdefs.h. */
5672 _ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5676 #include <sys/types.h>
5677 #include <sys/wait.h>
5678 #ifndef WEXITSTATUS
5679 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5680 #endif
5681 #ifndef WIFEXITED
5682 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5683 #endif
5684
5685 int
5686 main ()
5687 {
5688 int s;
5689 wait (&s);
5690 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5691 ;
5692 return 0;
5693 }
5694 _ACEOF
5695 rm -f conftest.$ac_objext
5696 if { (ac_try="$ac_compile"
5697 case "(($ac_try" in
5698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699 *) ac_try_echo=$ac_try;;
5700 esac
5701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5702 $as_echo "$ac_try_echo") >&5
5703 (eval "$ac_compile") 2>conftest.er1
5704 ac_status=$?
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } && {
5710 test -z "$ac_c_werror_flag" ||
5711 test ! -s conftest.err
5712 } && test -s conftest.$ac_objext; then
5713 ac_cv_header_sys_wait_h=yes
5714 else
5715 $as_echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5717
5718 ac_cv_header_sys_wait_h=no
5719 fi
5720
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 fi
5723 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5724 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5725 if test $ac_cv_header_sys_wait_h = yes; then
5726
5727 cat >>confdefs.h <<\_ACEOF
5728 #define HAVE_SYS_WAIT_H 1
5729 _ACEOF
5730
5731 fi
5732
5733
5734 # Check whether --enable-largefile was given.
5735 if test "${enable_largefile+set}" = set; then
5736 enableval=$enable_largefile;
5737 fi
5738
5739 if test "$enable_largefile" != no; then
5740
5741 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5742 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5743 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5744 $as_echo_n "(cached) " >&6
5745 else
5746 ac_cv_sys_largefile_CC=no
5747 if test "$GCC" != yes; then
5748 ac_save_CC=$CC
5749 while :; do
5750 # IRIX 6.2 and later do not support large files by default,
5751 # so use the C compiler's -n32 option if that helps.
5752 cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h. */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 #include <sys/types.h>
5759 /* Check that off_t can represent 2**63 - 1 correctly.
5760 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5761 since some C++ compilers masquerading as C compilers
5762 incorrectly reject 9223372036854775807. */
5763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5764 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5765 && LARGE_OFF_T % 2147483647 == 1)
5766 ? 1 : -1];
5767 int
5768 main ()
5769 {
5770
5771 ;
5772 return 0;
5773 }
5774 _ACEOF
5775 rm -f conftest.$ac_objext
5776 if { (ac_try="$ac_compile"
5777 case "(($ac_try" in
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5780 esac
5781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5782 $as_echo "$ac_try_echo") >&5
5783 (eval "$ac_compile") 2>conftest.er1
5784 ac_status=$?
5785 grep -v '^ *+' conftest.er1 >conftest.err
5786 rm -f conftest.er1
5787 cat conftest.err >&5
5788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } && {
5790 test -z "$ac_c_werror_flag" ||
5791 test ! -s conftest.err
5792 } && test -s conftest.$ac_objext; then
5793 break
5794 else
5795 $as_echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5797
5798
5799 fi
5800
5801 rm -f core conftest.err conftest.$ac_objext
5802 CC="$CC -n32"
5803 rm -f conftest.$ac_objext
5804 if { (ac_try="$ac_compile"
5805 case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808 esac
5809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5810 $as_echo "$ac_try_echo") >&5
5811 (eval "$ac_compile") 2>conftest.er1
5812 ac_status=$?
5813 grep -v '^ *+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
5816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } && {
5818 test -z "$ac_c_werror_flag" ||
5819 test ! -s conftest.err
5820 } && test -s conftest.$ac_objext; then
5821 ac_cv_sys_largefile_CC=' -n32'; break
5822 else
5823 $as_echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5825
5826
5827 fi
5828
5829 rm -f core conftest.err conftest.$ac_objext
5830 break
5831 done
5832 CC=$ac_save_CC
5833 rm -f conftest.$ac_ext
5834 fi
5835 fi
5836 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5837 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5838 if test "$ac_cv_sys_largefile_CC" != no; then
5839 CC=$CC$ac_cv_sys_largefile_CC
5840 fi
5841
5842 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5843 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5844 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5845 $as_echo_n "(cached) " >&6
5846 else
5847 while :; do
5848 cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h. */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 #include <sys/types.h>
5855 /* Check that off_t can represent 2**63 - 1 correctly.
5856 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5857 since some C++ compilers masquerading as C compilers
5858 incorrectly reject 9223372036854775807. */
5859 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5860 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5861 && LARGE_OFF_T % 2147483647 == 1)
5862 ? 1 : -1];
5863 int
5864 main ()
5865 {
5866
5867 ;
5868 return 0;
5869 }
5870 _ACEOF
5871 rm -f conftest.$ac_objext
5872 if { (ac_try="$ac_compile"
5873 case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876 esac
5877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5878 $as_echo "$ac_try_echo") >&5
5879 (eval "$ac_compile") 2>conftest.er1
5880 ac_status=$?
5881 grep -v '^ *+' conftest.er1 >conftest.err
5882 rm -f conftest.er1
5883 cat conftest.err >&5
5884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } && {
5886 test -z "$ac_c_werror_flag" ||
5887 test ! -s conftest.err
5888 } && test -s conftest.$ac_objext; then
5889 ac_cv_sys_file_offset_bits=no; break
5890 else
5891 $as_echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5893
5894
5895 fi
5896
5897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5898 cat >conftest.$ac_ext <<_ACEOF
5899 /* confdefs.h. */
5900 _ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5904 #define _FILE_OFFSET_BITS 64
5905 #include <sys/types.h>
5906 /* Check that off_t can represent 2**63 - 1 correctly.
5907 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5908 since some C++ compilers masquerading as C compilers
5909 incorrectly reject 9223372036854775807. */
5910 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5911 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5912 && LARGE_OFF_T % 2147483647 == 1)
5913 ? 1 : -1];
5914 int
5915 main ()
5916 {
5917
5918 ;
5919 return 0;
5920 }
5921 _ACEOF
5922 rm -f conftest.$ac_objext
5923 if { (ac_try="$ac_compile"
5924 case "(($ac_try" in
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5927 esac
5928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5929 $as_echo "$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 $as_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_sys_file_offset_bits=64; break
5941 else
5942 $as_echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5944
5945
5946 fi
5947
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949 ac_cv_sys_file_offset_bits=unknown
5950 break
5951 done
5952 fi
5953 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5954 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5955 case $ac_cv_sys_file_offset_bits in #(
5956 no | unknown) ;;
5957 *)
5958 cat >>confdefs.h <<_ACEOF
5959 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5960 _ACEOF
5961 ;;
5962 esac
5963 rm -rf conftest*
5964 if test $ac_cv_sys_file_offset_bits = unknown; then
5965 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5966 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5967 if test "${ac_cv_sys_large_files+set}" = set; then
5968 $as_echo_n "(cached) " >&6
5969 else
5970 while :; do
5971 cat >conftest.$ac_ext <<_ACEOF
5972 /* confdefs.h. */
5973 _ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5977 #include <sys/types.h>
5978 /* Check that off_t can represent 2**63 - 1 correctly.
5979 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5980 since some C++ compilers masquerading as C compilers
5981 incorrectly reject 9223372036854775807. */
5982 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5983 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5984 && LARGE_OFF_T % 2147483647 == 1)
5985 ? 1 : -1];
5986 int
5987 main ()
5988 {
5989
5990 ;
5991 return 0;
5992 }
5993 _ACEOF
5994 rm -f conftest.$ac_objext
5995 if { (ac_try="$ac_compile"
5996 case "(($ac_try" in
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
5999 esac
6000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6001 $as_echo "$ac_try_echo") >&5
6002 (eval "$ac_compile") 2>conftest.er1
6003 ac_status=$?
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
6007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } && {
6009 test -z "$ac_c_werror_flag" ||
6010 test ! -s conftest.err
6011 } && test -s conftest.$ac_objext; then
6012 ac_cv_sys_large_files=no; break
6013 else
6014 $as_echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6016
6017
6018 fi
6019
6020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021 cat >conftest.$ac_ext <<_ACEOF
6022 /* confdefs.h. */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 #define _LARGE_FILES 1
6028 #include <sys/types.h>
6029 /* Check that off_t can represent 2**63 - 1 correctly.
6030 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6031 since some C++ compilers masquerading as C compilers
6032 incorrectly reject 9223372036854775807. */
6033 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6034 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6035 && LARGE_OFF_T % 2147483647 == 1)
6036 ? 1 : -1];
6037 int
6038 main ()
6039 {
6040
6041 ;
6042 return 0;
6043 }
6044 _ACEOF
6045 rm -f conftest.$ac_objext
6046 if { (ac_try="$ac_compile"
6047 case "(($ac_try" in
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6050 esac
6051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6052 $as_echo "$ac_try_echo") >&5
6053 (eval "$ac_compile") 2>conftest.er1
6054 ac_status=$?
6055 grep -v '^ *+' conftest.er1 >conftest.err
6056 rm -f conftest.er1
6057 cat conftest.err >&5
6058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } && {
6060 test -z "$ac_c_werror_flag" ||
6061 test ! -s conftest.err
6062 } && test -s conftest.$ac_objext; then
6063 ac_cv_sys_large_files=1; break
6064 else
6065 $as_echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6067
6068
6069 fi
6070
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072 ac_cv_sys_large_files=unknown
6073 break
6074 done
6075 fi
6076 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6077 $as_echo "$ac_cv_sys_large_files" >&6; }
6078 case $ac_cv_sys_large_files in #(
6079 no | unknown) ;;
6080 *)
6081 cat >>confdefs.h <<_ACEOF
6082 #define _LARGE_FILES $ac_cv_sys_large_files
6083 _ACEOF
6084 ;;
6085 esac
6086 rm -rf conftest*
6087 fi
6088 fi
6089
6090
6091 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6092 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6093 if test "${ac_cv_c_const+set}" = set; then
6094 $as_echo_n "(cached) " >&6
6095 else
6096 cat >conftest.$ac_ext <<_ACEOF
6097 /* confdefs.h. */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6102
6103 int
6104 main ()
6105 {
6106 /* FIXME: Include the comments suggested by Paul. */
6107 #ifndef __cplusplus
6108 /* Ultrix mips cc rejects this. */
6109 typedef int charset[2];
6110 const charset cs;
6111 /* SunOS 4.1.1 cc rejects this. */
6112 char const *const *pcpcc;
6113 char **ppc;
6114 /* NEC SVR4.0.2 mips cc rejects this. */
6115 struct point {int x, y;};
6116 static struct point const zero = {0,0};
6117 /* AIX XL C 1.02.0.0 rejects this.
6118 It does not let you subtract one const X* pointer from another in
6119 an arm of an if-expression whose if-part is not a constant
6120 expression */
6121 const char *g = "string";
6122 pcpcc = &g + (g ? g-g : 0);
6123 /* HPUX 7.0 cc rejects these. */
6124 ++pcpcc;
6125 ppc = (char**) pcpcc;
6126 pcpcc = (char const *const *) ppc;
6127 { /* SCO 3.2v4 cc rejects this. */
6128 char *t;
6129 char const *s = 0 ? (char *) 0 : (char const *) 0;
6130
6131 *t++ = 0;
6132 if (s) return 0;
6133 }
6134 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6135 int x[] = {25, 17};
6136 const int *foo = &x[0];
6137 ++foo;
6138 }
6139 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6140 typedef const int *iptr;
6141 iptr p = 0;
6142 ++p;
6143 }
6144 { /* AIX XL C 1.02.0.0 rejects this saying
6145 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6146 struct s { int j; const int *ap[3]; };
6147 struct s *b; b->j = 5;
6148 }
6149 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6150 const int foo = 10;
6151 if (!foo) return 0;
6152 }
6153 return !cs[0] && !zero.x;
6154 #endif
6155
6156 ;
6157 return 0;
6158 }
6159 _ACEOF
6160 rm -f conftest.$ac_objext
6161 if { (ac_try="$ac_compile"
6162 case "(($ac_try" in
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6165 esac
6166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6167 $as_echo "$ac_try_echo") >&5
6168 (eval "$ac_compile") 2>conftest.er1
6169 ac_status=$?
6170 grep -v '^ *+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } && {
6175 test -z "$ac_c_werror_flag" ||
6176 test ! -s conftest.err
6177 } && test -s conftest.$ac_objext; then
6178 ac_cv_c_const=yes
6179 else
6180 $as_echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6182
6183 ac_cv_c_const=no
6184 fi
6185
6186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 fi
6188 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6189 $as_echo "$ac_cv_c_const" >&6; }
6190 if test $ac_cv_c_const = no; then
6191
6192 cat >>confdefs.h <<\_ACEOF
6193 #define const /**/
6194 _ACEOF
6195
6196 fi
6197
6198 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6199 $as_echo_n "checking for inline... " >&6; }
6200 if test "${ac_cv_c_inline+set}" = set; then
6201 $as_echo_n "(cached) " >&6
6202 else
6203 ac_cv_c_inline=no
6204 for ac_kw in inline __inline__ __inline; do
6205 cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 #ifndef __cplusplus
6212 typedef int foo_t;
6213 static $ac_kw foo_t static_foo () {return 0; }
6214 $ac_kw foo_t foo () {return 0; }
6215 #endif
6216
6217 _ACEOF
6218 rm -f conftest.$ac_objext
6219 if { (ac_try="$ac_compile"
6220 case "(($ac_try" in
6221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6222 *) ac_try_echo=$ac_try;;
6223 esac
6224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6225 $as_echo "$ac_try_echo") >&5
6226 (eval "$ac_compile") 2>conftest.er1
6227 ac_status=$?
6228 grep -v '^ *+' conftest.er1 >conftest.err
6229 rm -f conftest.er1
6230 cat conftest.err >&5
6231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } && {
6233 test -z "$ac_c_werror_flag" ||
6234 test ! -s conftest.err
6235 } && test -s conftest.$ac_objext; then
6236 ac_cv_c_inline=$ac_kw
6237 else
6238 $as_echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6240
6241
6242 fi
6243
6244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6245 test "$ac_cv_c_inline" != no && break
6246 done
6247
6248 fi
6249 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6250 $as_echo "$ac_cv_c_inline" >&6; }
6251
6252
6253 case $ac_cv_c_inline in
6254 inline | yes) ;;
6255 *)
6256 case $ac_cv_c_inline in
6257 no) ac_val=;;
6258 *) ac_val=$ac_cv_c_inline;;
6259 esac
6260 cat >>confdefs.h <<_ACEOF
6261 #ifndef __cplusplus
6262 #define inline $ac_val
6263 #endif
6264 _ACEOF
6265 ;;
6266 esac
6267
6268
6269 { $as_echo "$as_me:$LINENO: checking for variable-length arrays" >&5
6270 $as_echo_n "checking for variable-length arrays... " >&6; }
6271 if test "${ac_cv_c_vararrays+set}" = set; then
6272 $as_echo_n "(cached) " >&6
6273 else
6274 cat >conftest.$ac_ext <<_ACEOF
6275 /* confdefs.h. */
6276 _ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6280
6281 int
6282 main ()
6283 {
6284 static int x; char a[++x]; a[sizeof a - 1] = 0; return a[0];
6285 ;
6286 return 0;
6287 }
6288 _ACEOF
6289 rm -f conftest.$ac_objext
6290 if { (ac_try="$ac_compile"
6291 case "(($ac_try" in
6292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293 *) ac_try_echo=$ac_try;;
6294 esac
6295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6296 $as_echo "$ac_try_echo") >&5
6297 (eval "$ac_compile") 2>conftest.er1
6298 ac_status=$?
6299 grep -v '^ *+' conftest.er1 >conftest.err
6300 rm -f conftest.er1
6301 cat conftest.err >&5
6302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); } && {
6304 test -z "$ac_c_werror_flag" ||
6305 test ! -s conftest.err
6306 } && test -s conftest.$ac_objext; then
6307 ac_cv_c_vararrays=yes
6308 else
6309 $as_echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6311
6312 ac_cv_c_vararrays=no
6313 fi
6314
6315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316 fi
6317 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_vararrays" >&5
6318 $as_echo "$ac_cv_c_vararrays" >&6; }
6319 if test $ac_cv_c_vararrays = yes; then
6320
6321 cat >>confdefs.h <<\_ACEOF
6322 #define HAVE_C_VARARRAYS 1
6323 _ACEOF
6324
6325 fi
6326
6327
6328 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6329 $as_echo_n "checking for size_t... " >&6; }
6330 if test "${ac_cv_type_size_t+set}" = set; then
6331 $as_echo_n "(cached) " >&6
6332 else
6333 ac_cv_type_size_t=no
6334 cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h. */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6340 $ac_includes_default
6341 int
6342 main ()
6343 {
6344 if (sizeof (size_t))
6345 return 0;
6346 ;
6347 return 0;
6348 }
6349 _ACEOF
6350 rm -f conftest.$ac_objext
6351 if { (ac_try="$ac_compile"
6352 case "(($ac_try" in
6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354 *) ac_try_echo=$ac_try;;
6355 esac
6356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6357 $as_echo "$ac_try_echo") >&5
6358 (eval "$ac_compile") 2>conftest.er1
6359 ac_status=$?
6360 grep -v '^ *+' conftest.er1 >conftest.err
6361 rm -f conftest.er1
6362 cat conftest.err >&5
6363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } && {
6365 test -z "$ac_c_werror_flag" ||
6366 test ! -s conftest.err
6367 } && test -s conftest.$ac_objext; then
6368 cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h. */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6374 $ac_includes_default
6375 int
6376 main ()
6377 {
6378 if (sizeof ((size_t)))
6379 return 0;
6380 ;
6381 return 0;
6382 }
6383 _ACEOF
6384 rm -f conftest.$ac_objext
6385 if { (ac_try="$ac_compile"
6386 case "(($ac_try" in
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6389 esac
6390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6391 $as_echo "$ac_try_echo") >&5
6392 (eval "$ac_compile") 2>conftest.er1
6393 ac_status=$?
6394 grep -v '^ *+' conftest.er1 >conftest.err
6395 rm -f conftest.er1
6396 cat conftest.err >&5
6397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } && {
6399 test -z "$ac_c_werror_flag" ||
6400 test ! -s conftest.err
6401 } && test -s conftest.$ac_objext; then
6402 :
6403 else
6404 $as_echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6406
6407 ac_cv_type_size_t=yes
6408 fi
6409
6410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6411 else
6412 $as_echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6414
6415
6416 fi
6417
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419 fi
6420 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6421 $as_echo "$ac_cv_type_size_t" >&6; }
6422 if test "x$ac_cv_type_size_t" = x""yes; then
6423 :
6424 else
6425
6426 cat >>confdefs.h <<_ACEOF
6427 #define size_t unsigned int
6428 _ACEOF
6429
6430 fi
6431
6432 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
6433 $as_echo_n "checking for pid_t... " >&6; }
6434 if test "${ac_cv_type_pid_t+set}" = set; then
6435 $as_echo_n "(cached) " >&6
6436 else
6437 ac_cv_type_pid_t=no
6438 cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h. */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444 $ac_includes_default
6445 int
6446 main ()
6447 {
6448 if (sizeof (pid_t))
6449 return 0;
6450 ;
6451 return 0;
6452 }
6453 _ACEOF
6454 rm -f conftest.$ac_objext
6455 if { (ac_try="$ac_compile"
6456 case "(($ac_try" in
6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6459 esac
6460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6461 $as_echo "$ac_try_echo") >&5
6462 (eval "$ac_compile") 2>conftest.er1
6463 ac_status=$?
6464 grep -v '^ *+' conftest.er1 >conftest.err
6465 rm -f conftest.er1
6466 cat conftest.err >&5
6467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } && {
6469 test -z "$ac_c_werror_flag" ||
6470 test ! -s conftest.err
6471 } && test -s conftest.$ac_objext; then
6472 cat >conftest.$ac_ext <<_ACEOF
6473 /* confdefs.h. */
6474 _ACEOF
6475 cat confdefs.h >>conftest.$ac_ext
6476 cat >>conftest.$ac_ext <<_ACEOF
6477 /* end confdefs.h. */
6478 $ac_includes_default
6479 int
6480 main ()
6481 {
6482 if (sizeof ((pid_t)))
6483 return 0;
6484 ;
6485 return 0;
6486 }
6487 _ACEOF
6488 rm -f conftest.$ac_objext
6489 if { (ac_try="$ac_compile"
6490 case "(($ac_try" in
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6493 esac
6494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6495 $as_echo "$ac_try_echo") >&5
6496 (eval "$ac_compile") 2>conftest.er1
6497 ac_status=$?
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } && {
6503 test -z "$ac_c_werror_flag" ||
6504 test ! -s conftest.err
6505 } && test -s conftest.$ac_objext; then
6506 :
6507 else
6508 $as_echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6510
6511 ac_cv_type_pid_t=yes
6512 fi
6513
6514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6515 else
6516 $as_echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.$ac_ext >&5
6518
6519
6520 fi
6521
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 fi
6524 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6525 $as_echo "$ac_cv_type_pid_t" >&6; }
6526 if test "x$ac_cv_type_pid_t" = x""yes; then
6527 :
6528 else
6529
6530 cat >>confdefs.h <<_ACEOF
6531 #define pid_t int
6532 _ACEOF
6533
6534 fi
6535
6536 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
6537 $as_echo_n "checking for ptrdiff_t... " >&6; }
6538 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
6539 $as_echo_n "(cached) " >&6
6540 else
6541 ac_cv_type_ptrdiff_t=no
6542 cat >conftest.$ac_ext <<_ACEOF
6543 /* confdefs.h. */
6544 _ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6548 $ac_includes_default
6549 int
6550 main ()
6551 {
6552 if (sizeof (ptrdiff_t))
6553 return 0;
6554 ;
6555 return 0;
6556 }
6557 _ACEOF
6558 rm -f conftest.$ac_objext
6559 if { (ac_try="$ac_compile"
6560 case "(($ac_try" in
6561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6562 *) ac_try_echo=$ac_try;;
6563 esac
6564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6565 $as_echo "$ac_try_echo") >&5
6566 (eval "$ac_compile") 2>conftest.er1
6567 ac_status=$?
6568 grep -v '^ *+' conftest.er1 >conftest.err
6569 rm -f conftest.er1
6570 cat conftest.err >&5
6571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } && {
6573 test -z "$ac_c_werror_flag" ||
6574 test ! -s conftest.err
6575 } && test -s conftest.$ac_objext; then
6576 cat >conftest.$ac_ext <<_ACEOF
6577 /* confdefs.h. */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6582 $ac_includes_default
6583 int
6584 main ()
6585 {
6586 if (sizeof ((ptrdiff_t)))
6587 return 0;
6588 ;
6589 return 0;
6590 }
6591 _ACEOF
6592 rm -f conftest.$ac_objext
6593 if { (ac_try="$ac_compile"
6594 case "(($ac_try" in
6595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6597 esac
6598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6599 $as_echo "$ac_try_echo") >&5
6600 (eval "$ac_compile") 2>conftest.er1
6601 ac_status=$?
6602 grep -v '^ *+' conftest.er1 >conftest.err
6603 rm -f conftest.er1
6604 cat conftest.err >&5
6605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } && {
6607 test -z "$ac_c_werror_flag" ||
6608 test ! -s conftest.err
6609 } && test -s conftest.$ac_objext; then
6610 :
6611 else
6612 $as_echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6614
6615 ac_cv_type_ptrdiff_t=yes
6616 fi
6617
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 else
6620 $as_echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6622
6623
6624 fi
6625
6626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 fi
6628 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
6629 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
6630 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
6631 :
6632 else
6633
6634 cat >>confdefs.h <<_ACEOF
6635 #define ptrdiff_t int
6636 _ACEOF
6637
6638 fi
6639
6640 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
6641 $as_echo_n "checking for ssize_t... " >&6; }
6642 if test "${ac_cv_type_ssize_t+set}" = set; then
6643 $as_echo_n "(cached) " >&6
6644 else
6645 ac_cv_type_ssize_t=no
6646 cat >conftest.$ac_ext <<_ACEOF
6647 /* confdefs.h. */
6648 _ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6652 $ac_includes_default
6653 int
6654 main ()
6655 {
6656 if (sizeof (ssize_t))
6657 return 0;
6658 ;
6659 return 0;
6660 }
6661 _ACEOF
6662 rm -f conftest.$ac_objext
6663 if { (ac_try="$ac_compile"
6664 case "(($ac_try" in
6665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6666 *) ac_try_echo=$ac_try;;
6667 esac
6668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6669 $as_echo "$ac_try_echo") >&5
6670 (eval "$ac_compile") 2>conftest.er1
6671 ac_status=$?
6672 grep -v '^ *+' conftest.er1 >conftest.err
6673 rm -f conftest.er1
6674 cat conftest.err >&5
6675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } && {
6677 test -z "$ac_c_werror_flag" ||
6678 test ! -s conftest.err
6679 } && test -s conftest.$ac_objext; then
6680 cat >conftest.$ac_ext <<_ACEOF
6681 /* confdefs.h. */
6682 _ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6686 $ac_includes_default
6687 int
6688 main ()
6689 {
6690 if (sizeof ((ssize_t)))
6691 return 0;
6692 ;
6693 return 0;
6694 }
6695 _ACEOF
6696 rm -f conftest.$ac_objext
6697 if { (ac_try="$ac_compile"
6698 case "(($ac_try" in
6699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700 *) ac_try_echo=$ac_try;;
6701 esac
6702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6703 $as_echo "$ac_try_echo") >&5
6704 (eval "$ac_compile") 2>conftest.er1
6705 ac_status=$?
6706 grep -v '^ *+' conftest.er1 >conftest.err
6707 rm -f conftest.er1
6708 cat conftest.err >&5
6709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } && {
6711 test -z "$ac_c_werror_flag" ||
6712 test ! -s conftest.err
6713 } && test -s conftest.$ac_objext; then
6714 :
6715 else
6716 $as_echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6718
6719 ac_cv_type_ssize_t=yes
6720 fi
6721
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6723 else
6724 $as_echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.$ac_ext >&5
6726
6727
6728 fi
6729
6730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 fi
6732 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6733 $as_echo "$ac_cv_type_ssize_t" >&6; }
6734 if test "x$ac_cv_type_ssize_t" = x""yes; then
6735 :
6736 else
6737
6738 cat >>confdefs.h <<_ACEOF
6739 #define ssize_t int
6740 _ACEOF
6741
6742 fi
6743
6744 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6745 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
6746 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6747 $as_echo_n "(cached) " >&6
6748 else
6749 cat >conftest.$ac_ext <<_ACEOF
6750 /* confdefs.h. */
6751 _ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6755 $ac_includes_default
6756 int
6757 main ()
6758 {
6759 static struct stat ac_aggr;
6760 if (ac_aggr.st_blksize)
6761 return 0;
6762 ;
6763 return 0;
6764 }
6765 _ACEOF
6766 rm -f conftest.$ac_objext
6767 if { (ac_try="$ac_compile"
6768 case "(($ac_try" in
6769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6770 *) ac_try_echo=$ac_try;;
6771 esac
6772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6773 $as_echo "$ac_try_echo") >&5
6774 (eval "$ac_compile") 2>conftest.er1
6775 ac_status=$?
6776 grep -v '^ *+' conftest.er1 >conftest.err
6777 rm -f conftest.er1
6778 cat conftest.err >&5
6779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } && {
6781 test -z "$ac_c_werror_flag" ||
6782 test ! -s conftest.err
6783 } && test -s conftest.$ac_objext; then
6784 ac_cv_member_struct_stat_st_blksize=yes
6785 else
6786 $as_echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6788
6789 cat >conftest.$ac_ext <<_ACEOF
6790 /* confdefs.h. */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6795 $ac_includes_default
6796 int
6797 main ()
6798 {
6799 static struct stat ac_aggr;
6800 if (sizeof ac_aggr.st_blksize)
6801 return 0;
6802 ;
6803 return 0;
6804 }
6805 _ACEOF
6806 rm -f conftest.$ac_objext
6807 if { (ac_try="$ac_compile"
6808 case "(($ac_try" in
6809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6810 *) ac_try_echo=$ac_try;;
6811 esac
6812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6813 $as_echo "$ac_try_echo") >&5
6814 (eval "$ac_compile") 2>conftest.er1
6815 ac_status=$?
6816 grep -v '^ *+' conftest.er1 >conftest.err
6817 rm -f conftest.er1
6818 cat conftest.err >&5
6819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } && {
6821 test -z "$ac_c_werror_flag" ||
6822 test ! -s conftest.err
6823 } && test -s conftest.$ac_objext; then
6824 ac_cv_member_struct_stat_st_blksize=yes
6825 else
6826 $as_echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6828
6829 ac_cv_member_struct_stat_st_blksize=no
6830 fi
6831
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833 fi
6834
6835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 fi
6837 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6838 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
6839 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
6840
6841 cat >>confdefs.h <<_ACEOF
6842 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6843 _ACEOF
6844
6845
6846 cat >>confdefs.h <<\_ACEOF
6847 #define HAVE_ST_BLKSIZE 1
6848 _ACEOF
6849
6850 fi
6851
6852
6853 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6854 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6855 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6856 $as_echo_n "(cached) " >&6
6857 else
6858 cat >conftest.$ac_ext <<_ACEOF
6859 /* confdefs.h. */
6860 _ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6864 $ac_includes_default
6865 int
6866 main ()
6867 {
6868 static struct stat ac_aggr;
6869 if (ac_aggr.st_rdev)
6870 return 0;
6871 ;
6872 return 0;
6873 }
6874 _ACEOF
6875 rm -f conftest.$ac_objext
6876 if { (ac_try="$ac_compile"
6877 case "(($ac_try" in
6878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6879 *) ac_try_echo=$ac_try;;
6880 esac
6881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6882 $as_echo "$ac_try_echo") >&5
6883 (eval "$ac_compile") 2>conftest.er1
6884 ac_status=$?
6885 grep -v '^ *+' conftest.er1 >conftest.err
6886 rm -f conftest.er1
6887 cat conftest.err >&5
6888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } && {
6890 test -z "$ac_c_werror_flag" ||
6891 test ! -s conftest.err
6892 } && test -s conftest.$ac_objext; then
6893 ac_cv_member_struct_stat_st_rdev=yes
6894 else
6895 $as_echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6897
6898 cat >conftest.$ac_ext <<_ACEOF
6899 /* confdefs.h. */
6900 _ACEOF
6901 cat confdefs.h >>conftest.$ac_ext
6902 cat >>conftest.$ac_ext <<_ACEOF
6903 /* end confdefs.h. */
6904 $ac_includes_default
6905 int
6906 main ()
6907 {
6908 static struct stat ac_aggr;
6909 if (sizeof ac_aggr.st_rdev)
6910 return 0;
6911 ;
6912 return 0;
6913 }
6914 _ACEOF
6915 rm -f conftest.$ac_objext
6916 if { (ac_try="$ac_compile"
6917 case "(($ac_try" in
6918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919 *) ac_try_echo=$ac_try;;
6920 esac
6921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6922 $as_echo "$ac_try_echo") >&5
6923 (eval "$ac_compile") 2>conftest.er1
6924 ac_status=$?
6925 grep -v '^ *+' conftest.er1 >conftest.err
6926 rm -f conftest.er1
6927 cat conftest.err >&5
6928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } && {
6930 test -z "$ac_c_werror_flag" ||
6931 test ! -s conftest.err
6932 } && test -s conftest.$ac_objext; then
6933 ac_cv_member_struct_stat_st_rdev=yes
6934 else
6935 $as_echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6937
6938 ac_cv_member_struct_stat_st_rdev=no
6939 fi
6940
6941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6942 fi
6943
6944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6945 fi
6946 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6947 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6948 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6949
6950 cat >>confdefs.h <<_ACEOF
6951 #define HAVE_STRUCT_STAT_ST_RDEV 1
6952 _ACEOF
6953
6954
6955 cat >>confdefs.h <<\_ACEOF
6956 #define HAVE_ST_RDEV 1
6957 _ACEOF
6958
6959 fi
6960
6961
6962 { $as_echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
6963 $as_echo_n "checking for nanoseconds member of struct stat.st_mtim... " >&6; }
6964 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
6965 $as_echo_n "(cached) " >&6
6966 else
6967 ac_save_CPPFLAGS="$CPPFLAGS"
6968 ac_cv_struct_st_mtim_nsec=no
6969 # tv_nsec -- the usual case
6970 # _tv_nsec -- Solaris 2.6, if
6971 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
6972 # && !defined __EXTENSIONS__)
6973 # st__tim.tv_nsec -- UnixWare 2.1.2
6974 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
6975 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
6976 cat >conftest.$ac_ext <<_ACEOF
6977 /* confdefs.h. */
6978 _ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h. */
6982 #include <sys/types.h>
6983 #include <sys/stat.h>
6984 int
6985 main ()
6986 {
6987 struct stat s; s.st_mtim.ST_MTIM_NSEC;
6988 ;
6989 return 0;
6990 }
6991 _ACEOF
6992 rm -f conftest.$ac_objext
6993 if { (ac_try="$ac_compile"
6994 case "(($ac_try" in
6995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6996 *) ac_try_echo=$ac_try;;
6997 esac
6998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6999 $as_echo "$ac_try_echo") >&5
7000 (eval "$ac_compile") 2>conftest.er1
7001 ac_status=$?
7002 grep -v '^ *+' conftest.er1 >conftest.err
7003 rm -f conftest.er1
7004 cat conftest.err >&5
7005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } && {
7007 test -z "$ac_c_werror_flag" ||
7008 test ! -s conftest.err
7009 } && test -s conftest.$ac_objext; then
7010 ac_cv_struct_st_mtim_nsec=$ac_val; break
7011 else
7012 $as_echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7014
7015
7016 fi
7017
7018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7019 done
7020 CPPFLAGS="$ac_save_CPPFLAGS"
7021 fi
7022 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
7023 $as_echo "$ac_cv_struct_st_mtim_nsec" >&6; }
7024
7025 if test $ac_cv_struct_st_mtim_nsec != no; then
7026
7027 cat >>confdefs.h <<_ACEOF
7028 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
7029 _ACEOF
7030
7031 fi
7032
7033
7034
7035 if test "x$enable_gmp" = "xyes"; then
7036
7037 { $as_echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
7038 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
7039 if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
7040 $as_echo_n "(cached) " >&6
7041 else
7042 ac_check_lib_save_LIBS=$LIBS
7043 LIBS="-lgmp $LIBS"
7044 cat >conftest.$ac_ext <<_ACEOF
7045 /* confdefs.h. */
7046 _ACEOF
7047 cat confdefs.h >>conftest.$ac_ext
7048 cat >>conftest.$ac_ext <<_ACEOF
7049 /* end confdefs.h. */
7050
7051 /* Override any GCC internal prototype to avoid an error.
7052 Use char because int might match the return type of a GCC
7053 builtin and then its argument prototype would still apply. */
7054 #ifdef __cplusplus
7055 extern "C"
7056 #endif
7057 char __gmpz_init ();
7058 int
7059 main ()
7060 {
7061 return __gmpz_init ();
7062 ;
7063 return 0;
7064 }
7065 _ACEOF
7066 rm -f conftest.$ac_objext conftest$ac_exeext
7067 if { (ac_try="$ac_link"
7068 case "(($ac_try" in
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7071 esac
7072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7073 $as_echo "$ac_try_echo") >&5
7074 (eval "$ac_link") 2>conftest.er1
7075 ac_status=$?
7076 grep -v '^ *+' conftest.er1 >conftest.err
7077 rm -f conftest.er1
7078 cat conftest.err >&5
7079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && {
7081 test -z "$ac_c_werror_flag" ||
7082 test ! -s conftest.err
7083 } && test -s conftest$ac_exeext && {
7084 test "$cross_compiling" = yes ||
7085 $as_test_x conftest$ac_exeext
7086 }; then
7087 ac_cv_lib_gmp___gmpz_init=yes
7088 else
7089 $as_echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7091
7092 ac_cv_lib_gmp___gmpz_init=no
7093 fi
7094
7095 rm -rf conftest.dSYM
7096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7097 conftest$ac_exeext conftest.$ac_ext
7098 LIBS=$ac_check_lib_save_LIBS
7099 fi
7100 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
7101 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
7102 if test "x$ac_cv_lib_gmp___gmpz_init" = x""yes; then
7103 cat >>confdefs.h <<_ACEOF
7104 #define HAVE_LIBGMP 1
7105 _ACEOF
7106
7107 LIBS="-lgmp $LIBS"
7108
7109 fi
7110
7111 fi
7112
7113 if test "x$enable_nls" = "xyes"; then
7114
7115 { $as_echo "$as_me:$LINENO: checking for setlocale in -lintl" >&5
7116 $as_echo_n "checking for setlocale in -lintl... " >&6; }
7117 if test "${ac_cv_lib_intl_setlocale+set}" = set; then
7118 $as_echo_n "(cached) " >&6
7119 else
7120 ac_check_lib_save_LIBS=$LIBS
7121 LIBS="-lintl $LIBS"
7122 cat >conftest.$ac_ext <<_ACEOF
7123 /* confdefs.h. */
7124 _ACEOF
7125 cat confdefs.h >>conftest.$ac_ext
7126 cat >>conftest.$ac_ext <<_ACEOF
7127 /* end confdefs.h. */
7128
7129 /* Override any GCC internal prototype to avoid an error.
7130 Use char because int might match the return type of a GCC
7131 builtin and then its argument prototype would still apply. */
7132 #ifdef __cplusplus
7133 extern "C"
7134 #endif
7135 char setlocale ();
7136 int
7137 main ()
7138 {
7139 return setlocale ();
7140 ;
7141 return 0;
7142 }
7143 _ACEOF
7144 rm -f conftest.$ac_objext conftest$ac_exeext
7145 if { (ac_try="$ac_link"
7146 case "(($ac_try" in
7147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148 *) ac_try_echo=$ac_try;;
7149 esac
7150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7151 $as_echo "$ac_try_echo") >&5
7152 (eval "$ac_link") 2>conftest.er1
7153 ac_status=$?
7154 grep -v '^ *+' conftest.er1 >conftest.err
7155 rm -f conftest.er1
7156 cat conftest.err >&5
7157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); } && {
7159 test -z "$ac_c_werror_flag" ||
7160 test ! -s conftest.err
7161 } && test -s conftest$ac_exeext && {
7162 test "$cross_compiling" = yes ||
7163 $as_test_x conftest$ac_exeext
7164 }; then
7165 ac_cv_lib_intl_setlocale=yes
7166 else
7167 $as_echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7169
7170 ac_cv_lib_intl_setlocale=no
7171 fi
7172
7173 rm -rf conftest.dSYM
7174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7175 conftest$ac_exeext conftest.$ac_ext
7176 LIBS=$ac_check_lib_save_LIBS
7177 fi
7178 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_setlocale" >&5
7179 $as_echo "$ac_cv_lib_intl_setlocale" >&6; }
7180 if test "x$ac_cv_lib_intl_setlocale" = x""yes; then
7181 cat >>confdefs.h <<_ACEOF
7182 #define HAVE_LIBINTL 1
7183 _ACEOF
7184
7185 LIBS="-lintl $LIBS"
7186
7187 fi
7188
7189 fi
7190
7191
7192 HAVE_VSPRINTF=0
7193 { $as_echo "$as_me:$LINENO: checking for vsprintf" >&5
7194 $as_echo_n "checking for vsprintf... " >&6; }
7195 if test "${ac_cv_func_vsprintf+set}" = set; then
7196 $as_echo_n "(cached) " >&6
7197 else
7198 cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h. */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7204 /* Define vsprintf to an innocuous variant, in case <limits.h> declares vsprintf.
7205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7206 #define vsprintf innocuous_vsprintf
7207
7208 /* System header to define __stub macros and hopefully few prototypes,
7209 which can conflict with char vsprintf (); below.
7210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7211 <limits.h> exists even on freestanding compilers. */
7212
7213 #ifdef __STDC__
7214 # include <limits.h>
7215 #else
7216 # include <assert.h>
7217 #endif
7218
7219 #undef vsprintf
7220
7221 /* Override any GCC internal prototype to avoid an error.
7222 Use char because int might match the return type of a GCC
7223 builtin and then its argument prototype would still apply. */
7224 #ifdef __cplusplus
7225 extern "C"
7226 #endif
7227 char vsprintf ();
7228 /* The GNU C library defines this for functions which it implements
7229 to always fail with ENOSYS. Some functions are actually named
7230 something starting with __ and the normal name is an alias. */
7231 #if defined __stub_vsprintf || defined __stub___vsprintf
7232 choke me
7233 #endif
7234
7235 int
7236 main ()
7237 {
7238 return vsprintf ();
7239 ;
7240 return 0;
7241 }
7242 _ACEOF
7243 rm -f conftest.$ac_objext conftest$ac_exeext
7244 if { (ac_try="$ac_link"
7245 case "(($ac_try" in
7246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7247 *) ac_try_echo=$ac_try;;
7248 esac
7249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7250 $as_echo "$ac_try_echo") >&5
7251 (eval "$ac_link") 2>conftest.er1
7252 ac_status=$?
7253 grep -v '^ *+' conftest.er1 >conftest.err
7254 rm -f conftest.er1
7255 cat conftest.err >&5
7256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } && {
7258 test -z "$ac_c_werror_flag" ||
7259 test ! -s conftest.err
7260 } && test -s conftest$ac_exeext && {
7261 test "$cross_compiling" = yes ||
7262 $as_test_x conftest$ac_exeext
7263 }; then
7264 ac_cv_func_vsprintf=yes
7265 else
7266 $as_echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269 ac_cv_func_vsprintf=no
7270 fi
7271
7272 rm -rf conftest.dSYM
7273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7274 conftest$ac_exeext conftest.$ac_ext
7275 fi
7276 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vsprintf" >&5
7277 $as_echo "$ac_cv_func_vsprintf" >&6; }
7278 if test "x$ac_cv_func_vsprintf" = x""yes; then
7279 HAVE_VSPRINTF=1
7280 fi
7281
7282 if test $HAVE_VSPRINTF = 0; then
7283 { { $as_echo "$as_me:$LINENO: error: Declaration of vsprintf() not present!" >&5
7284 $as_echo "$as_me: error: Declaration of vsprintf() not present!" >&2;}
7285 { (exit 1); exit 1; }; }
7286 else
7287 { $as_echo "$as_me:$LINENO: result: Ok! vsprintf() is declared." >&5
7288 $as_echo "Ok! vsprintf() is declared." >&6; }
7289 fi
7290
7291 HAVE_MEMSET=0
7292 { $as_echo "$as_me:$LINENO: checking for memset" >&5
7293 $as_echo_n "checking for memset... " >&6; }
7294 if test "${ac_cv_func_memset+set}" = set; then
7295 $as_echo_n "(cached) " >&6
7296 else
7297 cat >conftest.$ac_ext <<_ACEOF
7298 /* confdefs.h. */
7299 _ACEOF
7300 cat confdefs.h >>conftest.$ac_ext
7301 cat >>conftest.$ac_ext <<_ACEOF
7302 /* end confdefs.h. */
7303 /* Define memset to an innocuous variant, in case <limits.h> declares memset.
7304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7305 #define memset innocuous_memset
7306
7307 /* System header to define __stub macros and hopefully few prototypes,
7308 which can conflict with char memset (); below.
7309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7310 <limits.h> exists even on freestanding compilers. */
7311
7312 #ifdef __STDC__
7313 # include <limits.h>
7314 #else
7315 # include <assert.h>
7316 #endif
7317
7318 #undef memset
7319
7320 /* Override any GCC internal prototype to avoid an error.
7321 Use char because int might match the return type of a GCC
7322 builtin and then its argument prototype would still apply. */
7323 #ifdef __cplusplus
7324 extern "C"
7325 #endif
7326 char memset ();
7327 /* The GNU C library defines this for functions which it implements
7328 to always fail with ENOSYS. Some functions are actually named
7329 something starting with __ and the normal name is an alias. */
7330 #if defined __stub_memset || defined __stub___memset
7331 choke me
7332 #endif
7333
7334 int
7335 main ()
7336 {
7337 return memset ();
7338 ;
7339 return 0;
7340 }
7341 _ACEOF
7342 rm -f conftest.$ac_objext conftest$ac_exeext
7343 if { (ac_try="$ac_link"
7344 case "(($ac_try" in
7345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346 *) ac_try_echo=$ac_try;;
7347 esac
7348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7349 $as_echo "$ac_try_echo") >&5
7350 (eval "$ac_link") 2>conftest.er1
7351 ac_status=$?
7352 grep -v '^ *+' conftest.er1 >conftest.err
7353 rm -f conftest.er1
7354 cat conftest.err >&5
7355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } && {
7357 test -z "$ac_c_werror_flag" ||
7358 test ! -s conftest.err
7359 } && test -s conftest$ac_exeext && {
7360 test "$cross_compiling" = yes ||
7361 $as_test_x conftest$ac_exeext
7362 }; then
7363 ac_cv_func_memset=yes
7364 else
7365 $as_echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7367
7368 ac_cv_func_memset=no
7369 fi
7370
7371 rm -rf conftest.dSYM
7372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7373 conftest$ac_exeext conftest.$ac_ext
7374 fi
7375 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memset" >&5
7376 $as_echo "$ac_cv_func_memset" >&6; }
7377 if test "x$ac_cv_func_memset" = x""yes; then
7378 HAVE_MEMSET=1
7379 fi
7380
7381 if test $HAVE_MEMSET = 0; then
7382 { { $as_echo "$as_me:$LINENO: error: Declaration of memset() not present!" >&5
7383 $as_echo "$as_me: error: Declaration of memset() not present!" >&2;}
7384 { (exit 1); exit 1; }; }
7385 else
7386 { $as_echo "$as_me:$LINENO: result: Ok! memset() is declared." >&5
7387 $as_echo "Ok! memset() is declared." >&6; }
7388 fi
7389
7390 HAVE_MEMCHR=0
7391 { $as_echo "$as_me:$LINENO: checking for memchr" >&5
7392 $as_echo_n "checking for memchr... " >&6; }
7393 if test "${ac_cv_func_memchr+set}" = set; then
7394 $as_echo_n "(cached) " >&6
7395 else
7396 cat >conftest.$ac_ext <<_ACEOF
7397 /* confdefs.h. */
7398 _ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7402 /* Define memchr to an innocuous variant, in case <limits.h> declares memchr.
7403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7404 #define memchr innocuous_memchr
7405
7406 /* System header to define __stub macros and hopefully few prototypes,
7407 which can conflict with char memchr (); below.
7408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7409 <limits.h> exists even on freestanding compilers. */
7410
7411 #ifdef __STDC__
7412 # include <limits.h>
7413 #else
7414 # include <assert.h>
7415 #endif
7416
7417 #undef memchr
7418
7419 /* Override any GCC internal prototype to avoid an error.
7420 Use char because int might match the return type of a GCC
7421 builtin and then its argument prototype would still apply. */
7422 #ifdef __cplusplus
7423 extern "C"
7424 #endif
7425 char memchr ();
7426 /* The GNU C library defines this for functions which it implements
7427 to always fail with ENOSYS. Some functions are actually named
7428 something starting with __ and the normal name is an alias. */
7429 #if defined __stub_memchr || defined __stub___memchr
7430 choke me
7431 #endif
7432
7433 int
7434 main ()
7435 {
7436 return memchr ();
7437 ;
7438 return 0;
7439 }
7440 _ACEOF
7441 rm -f conftest.$ac_objext conftest$ac_exeext
7442 if { (ac_try="$ac_link"
7443 case "(($ac_try" in
7444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7445 *) ac_try_echo=$ac_try;;
7446 esac
7447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7448 $as_echo "$ac_try_echo") >&5
7449 (eval "$ac_link") 2>conftest.er1
7450 ac_status=$?
7451 grep -v '^ *+' conftest.er1 >conftest.err
7452 rm -f conftest.er1
7453 cat conftest.err >&5
7454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } && {
7456 test -z "$ac_c_werror_flag" ||
7457 test ! -s conftest.err
7458 } && test -s conftest$ac_exeext && {
7459 test "$cross_compiling" = yes ||
7460 $as_test_x conftest$ac_exeext
7461 }; then
7462 ac_cv_func_memchr=yes
7463 else
7464 $as_echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7466
7467 ac_cv_func_memchr=no
7468 fi
7469
7470 rm -rf conftest.dSYM
7471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7472 conftest$ac_exeext conftest.$ac_ext
7473 fi
7474 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memchr" >&5
7475 $as_echo "$ac_cv_func_memchr" >&6; }
7476 if test "x$ac_cv_func_memchr" = x""yes; then
7477 HAVE_MEMCHR=1
7478 fi
7479
7480 if test $HAVE_MEMCHR = 0; then
7481 { { $as_echo "$as_me:$LINENO: error: Declaration of memchr() not present!" >&5
7482 $as_echo "$as_me: error: Declaration of memchr() not present!" >&2;}
7483 { (exit 1); exit 1; }; }
7484 else
7485 { $as_echo "$as_me:$LINENO: result: Ok! memchr() is declared." >&5
7486 $as_echo "Ok! memchr() is declared." >&6; }
7487 fi
7488
7489 HAVE_STRERROR=0
7490 { $as_echo "$as_me:$LINENO: checking for strerror" >&5
7491 $as_echo_n "checking for strerror... " >&6; }
7492 if test "${ac_cv_func_strerror+set}" = set; then
7493 $as_echo_n "(cached) " >&6
7494 else
7495 cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h. */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7501 /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
7502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7503 #define strerror innocuous_strerror
7504
7505 /* System header to define __stub macros and hopefully few prototypes,
7506 which can conflict with char strerror (); below.
7507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7508 <limits.h> exists even on freestanding compilers. */
7509
7510 #ifdef __STDC__
7511 # include <limits.h>
7512 #else
7513 # include <assert.h>
7514 #endif
7515
7516 #undef strerror
7517
7518 /* Override any GCC internal prototype to avoid an error.
7519 Use char because int might match the return type of a GCC
7520 builtin and then its argument prototype would still apply. */
7521 #ifdef __cplusplus
7522 extern "C"
7523 #endif
7524 char strerror ();
7525 /* The GNU C library defines this for functions which it implements
7526 to always fail with ENOSYS. Some functions are actually named
7527 something starting with __ and the normal name is an alias. */
7528 #if defined __stub_strerror || defined __stub___strerror
7529 choke me
7530 #endif
7531
7532 int
7533 main ()
7534 {
7535 return strerror ();
7536 ;
7537 return 0;
7538 }
7539 _ACEOF
7540 rm -f conftest.$ac_objext conftest$ac_exeext
7541 if { (ac_try="$ac_link"
7542 case "(($ac_try" in
7543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544 *) ac_try_echo=$ac_try;;
7545 esac
7546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7547 $as_echo "$ac_try_echo") >&5
7548 (eval "$ac_link") 2>conftest.er1
7549 ac_status=$?
7550 grep -v '^ *+' conftest.er1 >conftest.err
7551 rm -f conftest.er1
7552 cat conftest.err >&5
7553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } && {
7555 test -z "$ac_c_werror_flag" ||
7556 test ! -s conftest.err
7557 } && test -s conftest$ac_exeext && {
7558 test "$cross_compiling" = yes ||
7559 $as_test_x conftest$ac_exeext
7560 }; then
7561 ac_cv_func_strerror=yes
7562 else
7563 $as_echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7565
7566 ac_cv_func_strerror=no
7567 fi
7568
7569 rm -rf conftest.dSYM
7570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7571 conftest$ac_exeext conftest.$ac_ext
7572 fi
7573 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
7574 $as_echo "$ac_cv_func_strerror" >&6; }
7575 if test "x$ac_cv_func_strerror" = x""yes; then
7576 HAVE_STRERROR=1
7577 fi
7578
7579 if test $HAVE_STRERROR = 0; then
7580 { { $as_echo "$as_me:$LINENO: error: Declaration of strerror() not present!" >&5
7581 $as_echo "$as_me: error: Declaration of strerror() not present!" >&2;}
7582 { (exit 1); exit 1; }; }
7583 else
7584 { $as_echo "$as_me:$LINENO: result: Ok! strerror() is declared." >&5
7585 $as_echo "Ok! strerror() is declared." >&6; }
7586 fi
7587
7588 HAVE_STRSPN=0
7589 { $as_echo "$as_me:$LINENO: checking for strspn" >&5
7590 $as_echo_n "checking for strspn... " >&6; }
7591 if test "${ac_cv_func_strspn+set}" = set; then
7592 $as_echo_n "(cached) " >&6
7593 else
7594 cat >conftest.$ac_ext <<_ACEOF
7595 /* confdefs.h. */
7596 _ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7600 /* Define strspn to an innocuous variant, in case <limits.h> declares strspn.
7601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7602 #define strspn innocuous_strspn
7603
7604 /* System header to define __stub macros and hopefully few prototypes,
7605 which can conflict with char strspn (); below.
7606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7607 <limits.h> exists even on freestanding compilers. */
7608
7609 #ifdef __STDC__
7610 # include <limits.h>
7611 #else
7612 # include <assert.h>
7613 #endif
7614
7615 #undef strspn
7616
7617 /* Override any GCC internal prototype to avoid an error.
7618 Use char because int might match the return type of a GCC
7619 builtin and then its argument prototype would still apply. */
7620 #ifdef __cplusplus
7621 extern "C"
7622 #endif
7623 char strspn ();
7624 /* The GNU C library defines this for functions which it implements
7625 to always fail with ENOSYS. Some functions are actually named
7626 something starting with __ and the normal name is an alias. */
7627 #if defined __stub_strspn || defined __stub___strspn
7628 choke me
7629 #endif
7630
7631 int
7632 main ()
7633 {
7634 return strspn ();
7635 ;
7636 return 0;
7637 }
7638 _ACEOF
7639 rm -f conftest.$ac_objext conftest$ac_exeext
7640 if { (ac_try="$ac_link"
7641 case "(($ac_try" in
7642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643 *) ac_try_echo=$ac_try;;
7644 esac
7645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7646 $as_echo "$ac_try_echo") >&5
7647 (eval "$ac_link") 2>conftest.er1
7648 ac_status=$?
7649 grep -v '^ *+' conftest.er1 >conftest.err
7650 rm -f conftest.er1
7651 cat conftest.err >&5
7652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } && {
7654 test -z "$ac_c_werror_flag" ||
7655 test ! -s conftest.err
7656 } && test -s conftest$ac_exeext && {
7657 test "$cross_compiling" = yes ||
7658 $as_test_x conftest$ac_exeext
7659 }; then
7660 ac_cv_func_strspn=yes
7661 else
7662 $as_echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7664
7665 ac_cv_func_strspn=no
7666 fi
7667
7668 rm -rf conftest.dSYM
7669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7670 conftest$ac_exeext conftest.$ac_ext
7671 fi
7672 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strspn" >&5
7673 $as_echo "$ac_cv_func_strspn" >&6; }
7674 if test "x$ac_cv_func_strspn" = x""yes; then
7675 HAVE_STRSPN=1
7676 fi
7677
7678 if test $HAVE_STRSPN = 0; then
7679 { { $as_echo "$as_me:$LINENO: error: Declaration of strspn() not present!" >&5
7680 $as_echo "$as_me: error: Declaration of strspn() not present!" >&2;}
7681 { (exit 1); exit 1; }; }
7682 else
7683 { $as_echo "$as_me:$LINENO: result: Ok! strspn() is declared." >&5
7684 $as_echo "Ok! strspn() is declared." >&6; }
7685 fi
7686
7687 HAVE_STRCSPN=0
7688 { $as_echo "$as_me:$LINENO: checking for strcspn" >&5
7689 $as_echo_n "checking for strcspn... " >&6; }
7690 if test "${ac_cv_func_strcspn+set}" = set; then
7691 $as_echo_n "(cached) " >&6
7692 else
7693 cat >conftest.$ac_ext <<_ACEOF
7694 /* confdefs.h. */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7699 /* Define strcspn to an innocuous variant, in case <limits.h> declares strcspn.
7700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7701 #define strcspn innocuous_strcspn
7702
7703 /* System header to define __stub macros and hopefully few prototypes,
7704 which can conflict with char strcspn (); below.
7705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7706 <limits.h> exists even on freestanding compilers. */
7707
7708 #ifdef __STDC__
7709 # include <limits.h>
7710 #else
7711 # include <assert.h>
7712 #endif
7713
7714 #undef strcspn
7715
7716 /* Override any GCC internal prototype to avoid an error.
7717 Use char because int might match the return type of a GCC
7718 builtin and then its argument prototype would still apply. */
7719 #ifdef __cplusplus
7720 extern "C"
7721 #endif
7722 char strcspn ();
7723 /* The GNU C library defines this for functions which it implements
7724 to always fail with ENOSYS. Some functions are actually named
7725 something starting with __ and the normal name is an alias. */
7726 #if defined __stub_strcspn || defined __stub___strcspn
7727 choke me
7728 #endif
7729
7730 int
7731 main ()
7732 {
7733 return strcspn ();
7734 ;
7735 return 0;
7736 }
7737 _ACEOF
7738 rm -f conftest.$ac_objext conftest$ac_exeext
7739 if { (ac_try="$ac_link"
7740 case "(($ac_try" in
7741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7742 *) ac_try_echo=$ac_try;;
7743 esac
7744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7745 $as_echo "$ac_try_echo") >&5
7746 (eval "$ac_link") 2>conftest.er1
7747 ac_status=$?
7748 grep -v '^ *+' conftest.er1 >conftest.err
7749 rm -f conftest.er1
7750 cat conftest.err >&5
7751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } && {
7753 test -z "$ac_c_werror_flag" ||
7754 test ! -s conftest.err
7755 } && test -s conftest$ac_exeext && {
7756 test "$cross_compiling" = yes ||
7757 $as_test_x conftest$ac_exeext
7758 }; then
7759 ac_cv_func_strcspn=yes
7760 else
7761 $as_echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7763
7764 ac_cv_func_strcspn=no
7765 fi
7766
7767 rm -rf conftest.dSYM
7768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7769 conftest$ac_exeext conftest.$ac_ext
7770 fi
7771 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcspn" >&5
7772 $as_echo "$ac_cv_func_strcspn" >&6; }
7773 if test "x$ac_cv_func_strcspn" = x""yes; then
7774 HAVE_STRCSPN=1
7775 fi
7776
7777 if test $HAVE_STRCSPN = 0; then
7778 { { $as_echo "$as_me:$LINENO: error: Declaration of strcspn() not present!" >&5
7779 $as_echo "$as_me: error: Declaration of strcspn() not present!" >&2;}
7780 { (exit 1); exit 1; }; }
7781 else
7782 { $as_echo "$as_me:$LINENO: result: Ok! strcspn() is declared." >&5
7783 $as_echo "Ok! strcspn() is declared." >&6; }
7784 fi
7785
7786 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
7787 $as_echo_n "checking whether strerror_r is declared... " >&6; }
7788 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
7789 $as_echo_n "(cached) " >&6
7790 else
7791 cat >conftest.$ac_ext <<_ACEOF
7792 /* confdefs.h. */
7793 _ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7797 $ac_includes_default
7798 int
7799 main ()
7800 {
7801 #ifndef strerror_r
7802 (void) strerror_r;
7803 #endif
7804
7805 ;
7806 return 0;
7807 }
7808 _ACEOF
7809 rm -f conftest.$ac_objext
7810 if { (ac_try="$ac_compile"
7811 case "(($ac_try" in
7812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7813 *) ac_try_echo=$ac_try;;
7814 esac
7815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7816 $as_echo "$ac_try_echo") >&5
7817 (eval "$ac_compile") 2>conftest.er1
7818 ac_status=$?
7819 grep -v '^ *+' conftest.er1 >conftest.err
7820 rm -f conftest.er1
7821 cat conftest.err >&5
7822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } && {
7824 test -z "$ac_c_werror_flag" ||
7825 test ! -s conftest.err
7826 } && test -s conftest.$ac_objext; then
7827 ac_cv_have_decl_strerror_r=yes
7828 else
7829 $as_echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.$ac_ext >&5
7831
7832 ac_cv_have_decl_strerror_r=no
7833 fi
7834
7835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836 fi
7837 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
7838 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
7839 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
7840
7841 cat >>confdefs.h <<_ACEOF
7842 #define HAVE_DECL_STRERROR_R 1
7843 _ACEOF
7844
7845
7846 else
7847 cat >>confdefs.h <<_ACEOF
7848 #define HAVE_DECL_STRERROR_R 0
7849 _ACEOF
7850
7851
7852 fi
7853
7854
7855
7856 for ac_func in strerror_r
7857 do
7858 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7859 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7860 $as_echo_n "checking for $ac_func... " >&6; }
7861 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7862 $as_echo_n "(cached) " >&6
7863 else
7864 cat >conftest.$ac_ext <<_ACEOF
7865 /* confdefs.h. */
7866 _ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7872 #define $ac_func innocuous_$ac_func
7873
7874 /* System header to define __stub macros and hopefully few prototypes,
7875 which can conflict with char $ac_func (); below.
7876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7877 <limits.h> exists even on freestanding compilers. */
7878
7879 #ifdef __STDC__
7880 # include <limits.h>
7881 #else
7882 # include <assert.h>
7883 #endif
7884
7885 #undef $ac_func
7886
7887 /* Override any GCC internal prototype to avoid an error.
7888 Use char because int might match the return type of a GCC
7889 builtin and then its argument prototype would still apply. */
7890 #ifdef __cplusplus
7891 extern "C"
7892 #endif
7893 char $ac_func ();
7894 /* The GNU C library defines this for functions which it implements
7895 to always fail with ENOSYS. Some functions are actually named
7896 something starting with __ and the normal name is an alias. */
7897 #if defined __stub_$ac_func || defined __stub___$ac_func
7898 choke me
7899 #endif
7900
7901 int
7902 main ()
7903 {
7904 return $ac_func ();
7905 ;
7906 return 0;
7907 }
7908 _ACEOF
7909 rm -f conftest.$ac_objext conftest$ac_exeext
7910 if { (ac_try="$ac_link"
7911 case "(($ac_try" in
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7914 esac
7915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7916 $as_echo "$ac_try_echo") >&5
7917 (eval "$ac_link") 2>conftest.er1
7918 ac_status=$?
7919 grep -v '^ *+' conftest.er1 >conftest.err
7920 rm -f conftest.er1
7921 cat conftest.err >&5
7922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } && {
7924 test -z "$ac_c_werror_flag" ||
7925 test ! -s conftest.err
7926 } && test -s conftest$ac_exeext && {
7927 test "$cross_compiling" = yes ||
7928 $as_test_x conftest$ac_exeext
7929 }; then
7930 eval "$as_ac_var=yes"
7931 else
7932 $as_echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7934
7935 eval "$as_ac_var=no"
7936 fi
7937
7938 rm -rf conftest.dSYM
7939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7940 conftest$ac_exeext conftest.$ac_ext
7941 fi
7942 ac_res=`eval 'as_val=${'$as_ac_var'}
7943 $as_echo "$as_val"'`
7944 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7945 $as_echo "$ac_res" >&6; }
7946 as_val=`eval 'as_val=${'$as_ac_var'}
7947 $as_echo "$as_val"'`
7948 if test "x$as_val" = x""yes; then
7949 cat >>confdefs.h <<_ACEOF
7950 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7951 _ACEOF
7952
7953 fi
7954 done
7955
7956 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
7957 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
7958 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
7959 $as_echo_n "(cached) " >&6
7960 else
7961
7962 ac_cv_func_strerror_r_char_p=no
7963 if test $ac_cv_have_decl_strerror_r = yes; then
7964 cat >conftest.$ac_ext <<_ACEOF
7965 /* confdefs.h. */
7966 _ACEOF
7967 cat confdefs.h >>conftest.$ac_ext
7968 cat >>conftest.$ac_ext <<_ACEOF
7969 /* end confdefs.h. */
7970 $ac_includes_default
7971 int
7972 main ()
7973 {
7974
7975 char buf[100];
7976 char x = *strerror_r (0, buf, sizeof buf);
7977 char *p = strerror_r (0, buf, sizeof buf);
7978 return !p || x;
7979
7980 ;
7981 return 0;
7982 }
7983 _ACEOF
7984 rm -f conftest.$ac_objext
7985 if { (ac_try="$ac_compile"
7986 case "(($ac_try" in
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7989 esac
7990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7991 $as_echo "$ac_try_echo") >&5
7992 (eval "$ac_compile") 2>conftest.er1
7993 ac_status=$?
7994 grep -v '^ *+' conftest.er1 >conftest.err
7995 rm -f conftest.er1
7996 cat conftest.err >&5
7997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } && {
7999 test -z "$ac_c_werror_flag" ||
8000 test ! -s conftest.err
8001 } && test -s conftest.$ac_objext; then
8002 ac_cv_func_strerror_r_char_p=yes
8003 else
8004 $as_echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8006
8007
8008 fi
8009
8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011 else
8012 # strerror_r is not declared. Choose between
8013 # systems that have relatively inaccessible declarations for the
8014 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8015 # former has a strerror_r that returns char*, while the latter
8016 # has a strerror_r that returns `int'.
8017 # This test should segfault on the DEC system.
8018 if test "$cross_compiling" = yes; then
8019 :
8020 else
8021 cat >conftest.$ac_ext <<_ACEOF
8022 /* confdefs.h. */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8027 $ac_includes_default
8028 extern char *strerror_r ();
8029 int
8030 main ()
8031 {
8032 char buf[100];
8033 char x = *strerror_r (0, buf, sizeof buf);
8034 return ! isalpha (x);
8035 ;
8036 return 0;
8037 }
8038 _ACEOF
8039 rm -f conftest$ac_exeext
8040 if { (ac_try="$ac_link"
8041 case "(($ac_try" in
8042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8044 esac
8045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8046 $as_echo "$ac_try_echo") >&5
8047 (eval "$ac_link") 2>&5
8048 ac_status=$?
8049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8051 { (case "(($ac_try" in
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8054 esac
8055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8056 $as_echo "$ac_try_echo") >&5
8057 (eval "$ac_try") 2>&5
8058 ac_status=$?
8059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; }; then
8061 ac_cv_func_strerror_r_char_p=yes
8062 else
8063 $as_echo "$as_me: program exited with status $ac_status" >&5
8064 $as_echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8066
8067 fi
8068 rm -rf conftest.dSYM
8069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8070 fi
8071
8072
8073 fi
8074
8075 fi
8076 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
8077 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8078 if test $ac_cv_func_strerror_r_char_p = yes; then
8079
8080 cat >>confdefs.h <<\_ACEOF
8081 #define STRERROR_R_CHAR_P 1
8082 _ACEOF
8083
8084 fi
8085
8086
8087 for ac_header in vfork.h
8088 do
8089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8091 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8092 $as_echo_n "checking for $ac_header... " >&6; }
8093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8094 $as_echo_n "(cached) " >&6
8095 fi
8096 ac_res=`eval 'as_val=${'$as_ac_Header'}
8097 $as_echo "$as_val"'`
8098 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8099 $as_echo "$ac_res" >&6; }
8100 else
8101 # Is the header compilable?
8102 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8103 $as_echo_n "checking $ac_header usability... " >&6; }
8104 cat >conftest.$ac_ext <<_ACEOF
8105 /* confdefs.h. */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h. */
8110 $ac_includes_default
8111 #include <$ac_header>
8112 _ACEOF
8113 rm -f conftest.$ac_objext
8114 if { (ac_try="$ac_compile"
8115 case "(($ac_try" in
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8118 esac
8119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8120 $as_echo "$ac_try_echo") >&5
8121 (eval "$ac_compile") 2>conftest.er1
8122 ac_status=$?
8123 grep -v '^ *+' conftest.er1 >conftest.err
8124 rm -f conftest.er1
8125 cat conftest.err >&5
8126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } && {
8128 test -z "$ac_c_werror_flag" ||
8129 test ! -s conftest.err
8130 } && test -s conftest.$ac_objext; then
8131 ac_header_compiler=yes
8132 else
8133 $as_echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8135
8136 ac_header_compiler=no
8137 fi
8138
8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8140 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8141 $as_echo "$ac_header_compiler" >&6; }
8142
8143 # Is the header present?
8144 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8145 $as_echo_n "checking $ac_header presence... " >&6; }
8146 cat >conftest.$ac_ext <<_ACEOF
8147 /* confdefs.h. */
8148 _ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8152 #include <$ac_header>
8153 _ACEOF
8154 if { (ac_try="$ac_cpp conftest.$ac_ext"
8155 case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8158 esac
8159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8160 $as_echo "$ac_try_echo") >&5
8161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8162 ac_status=$?
8163 grep -v '^ *+' conftest.er1 >conftest.err
8164 rm -f conftest.er1
8165 cat conftest.err >&5
8166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } >/dev/null && {
8168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8169 test ! -s conftest.err
8170 }; then
8171 ac_header_preproc=yes
8172 else
8173 $as_echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8175
8176 ac_header_preproc=no
8177 fi
8178
8179 rm -f conftest.err conftest.$ac_ext
8180 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8181 $as_echo "$ac_header_preproc" >&6; }
8182
8183 # So? What about this header?
8184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8185 yes:no: )
8186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8187 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8189 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8190 ac_header_preproc=yes
8191 ;;
8192 no:yes:* )
8193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8194 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8196 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8198 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8200 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8202 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8204 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8205 ( cat <<\_ASBOX
8206 ## ----------------------------------------- ##
8207 ## Report this to <ivprimi at libero dot it> ##
8208 ## ----------------------------------------- ##
8209 _ASBOX
8210 ) | sed "s/^/$as_me: WARNING: /" >&2
8211 ;;
8212 esac
8213 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8214 $as_echo_n "checking for $ac_header... " >&6; }
8215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8216 $as_echo_n "(cached) " >&6
8217 else
8218 eval "$as_ac_Header=\$ac_header_preproc"
8219 fi
8220 ac_res=`eval 'as_val=${'$as_ac_Header'}
8221 $as_echo "$as_val"'`
8222 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8223 $as_echo "$ac_res" >&6; }
8224
8225 fi
8226 as_val=`eval 'as_val=${'$as_ac_Header'}
8227 $as_echo "$as_val"'`
8228 if test "x$as_val" = x""yes; then
8229 cat >>confdefs.h <<_ACEOF
8230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8231 _ACEOF
8232
8233 fi
8234
8235 done
8236
8237
8238
8239 for ac_func in fork vfork
8240 do
8241 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8242 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8243 $as_echo_n "checking for $ac_func... " >&6; }
8244 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8245 $as_echo_n "(cached) " >&6
8246 else
8247 cat >conftest.$ac_ext <<_ACEOF
8248 /* confdefs.h. */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8255 #define $ac_func innocuous_$ac_func
8256
8257 /* System header to define __stub macros and hopefully few prototypes,
8258 which can conflict with char $ac_func (); below.
8259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8260 <limits.h> exists even on freestanding compilers. */
8261
8262 #ifdef __STDC__
8263 # include <limits.h>
8264 #else
8265 # include <assert.h>
8266 #endif
8267
8268 #undef $ac_func
8269
8270 /* Override any GCC internal prototype to avoid an error.
8271 Use char because int might match the return type of a GCC
8272 builtin and then its argument prototype would still apply. */
8273 #ifdef __cplusplus
8274 extern "C"
8275 #endif
8276 char $ac_func ();
8277 /* The GNU C library defines this for functions which it implements
8278 to always fail with ENOSYS. Some functions are actually named
8279 something starting with __ and the normal name is an alias. */
8280 #if defined __stub_$ac_func || defined __stub___$ac_func
8281 choke me
8282 #endif
8283
8284 int
8285 main ()
8286 {
8287 return $ac_func ();
8288 ;
8289 return 0;
8290 }
8291 _ACEOF
8292 rm -f conftest.$ac_objext conftest$ac_exeext
8293 if { (ac_try="$ac_link"
8294 case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8297 esac
8298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8299 $as_echo "$ac_try_echo") >&5
8300 (eval "$ac_link") 2>conftest.er1
8301 ac_status=$?
8302 grep -v '^ *+' conftest.er1 >conftest.err
8303 rm -f conftest.er1
8304 cat conftest.err >&5
8305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } && {
8307 test -z "$ac_c_werror_flag" ||
8308 test ! -s conftest.err
8309 } && test -s conftest$ac_exeext && {
8310 test "$cross_compiling" = yes ||
8311 $as_test_x conftest$ac_exeext
8312 }; then
8313 eval "$as_ac_var=yes"
8314 else
8315 $as_echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8317
8318 eval "$as_ac_var=no"
8319 fi
8320
8321 rm -rf conftest.dSYM
8322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8323 conftest$ac_exeext conftest.$ac_ext
8324 fi
8325 ac_res=`eval 'as_val=${'$as_ac_var'}
8326 $as_echo "$as_val"'`
8327 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8328 $as_echo "$ac_res" >&6; }
8329 as_val=`eval 'as_val=${'$as_ac_var'}
8330 $as_echo "$as_val"'`
8331 if test "x$as_val" = x""yes; then
8332 cat >>confdefs.h <<_ACEOF
8333 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8334 _ACEOF
8335
8336 fi
8337 done
8338
8339 if test "x$ac_cv_func_fork" = xyes; then
8340 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
8341 $as_echo_n "checking for working fork... " >&6; }
8342 if test "${ac_cv_func_fork_works+set}" = set; then
8343 $as_echo_n "(cached) " >&6
8344 else
8345 if test "$cross_compiling" = yes; then
8346 ac_cv_func_fork_works=cross
8347 else
8348 cat >conftest.$ac_ext <<_ACEOF
8349 /* confdefs.h. */
8350 _ACEOF
8351 cat confdefs.h >>conftest.$ac_ext
8352 cat >>conftest.$ac_ext <<_ACEOF
8353 /* end confdefs.h. */
8354 $ac_includes_default
8355 int
8356 main ()
8357 {
8358
8359 /* By Ruediger Kuhlmann. */
8360 return fork () < 0;
8361
8362 ;
8363 return 0;
8364 }
8365 _ACEOF
8366 rm -f conftest$ac_exeext
8367 if { (ac_try="$ac_link"
8368 case "(($ac_try" in
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8371 esac
8372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8373 $as_echo "$ac_try_echo") >&5
8374 (eval "$ac_link") 2>&5
8375 ac_status=$?
8376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8378 { (case "(($ac_try" in
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8381 esac
8382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8383 $as_echo "$ac_try_echo") >&5
8384 (eval "$ac_try") 2>&5
8385 ac_status=$?
8386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 ac_cv_func_fork_works=yes
8389 else
8390 $as_echo "$as_me: program exited with status $ac_status" >&5
8391 $as_echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8393
8394 ( exit $ac_status )
8395 ac_cv_func_fork_works=no
8396 fi
8397 rm -rf conftest.dSYM
8398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8399 fi
8400
8401
8402 fi
8403 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8404 $as_echo "$ac_cv_func_fork_works" >&6; }
8405
8406 else
8407 ac_cv_func_fork_works=$ac_cv_func_fork
8408 fi
8409 if test "x$ac_cv_func_fork_works" = xcross; then
8410 case $host in
8411 *-*-amigaos* | *-*-msdosdjgpp*)
8412 # Override, as these systems have only a dummy fork() stub
8413 ac_cv_func_fork_works=no
8414 ;;
8415 *)
8416 ac_cv_func_fork_works=yes
8417 ;;
8418 esac
8419 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8420 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8421 fi
8422 ac_cv_func_vfork_works=$ac_cv_func_vfork
8423 if test "x$ac_cv_func_vfork" = xyes; then
8424 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
8425 $as_echo_n "checking for working vfork... " >&6; }
8426 if test "${ac_cv_func_vfork_works+set}" = set; then
8427 $as_echo_n "(cached) " >&6
8428 else
8429 if test "$cross_compiling" = yes; then
8430 ac_cv_func_vfork_works=cross
8431 else
8432 cat >conftest.$ac_ext <<_ACEOF
8433 /* confdefs.h. */
8434 _ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8438 /* Thanks to Paul Eggert for this test. */
8439 $ac_includes_default
8440 #include <sys/wait.h>
8441 #ifdef HAVE_VFORK_H
8442 # include <vfork.h>
8443 #endif
8444 /* On some sparc systems, changes by the child to local and incoming
8445 argument registers are propagated back to the parent. The compiler
8446 is told about this with #include <vfork.h>, but some compilers
8447 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8448 static variable whose address is put into a register that is
8449 clobbered by the vfork. */
8450 static void
8451 #ifdef __cplusplus
8452 sparc_address_test (int arg)
8453 # else
8454 sparc_address_test (arg) int arg;
8455 #endif
8456 {
8457 static pid_t child;
8458 if (!child) {
8459 child = vfork ();
8460 if (child < 0) {
8461 perror ("vfork");
8462 _exit(2);
8463 }
8464 if (!child) {
8465 arg = getpid();
8466 write(-1, "", 0);
8467 _exit (arg);
8468 }
8469 }
8470 }
8471
8472 int
8473 main ()
8474 {
8475 pid_t parent = getpid ();
8476 pid_t child;
8477
8478 sparc_address_test (0);
8479
8480 child = vfork ();
8481
8482 if (child == 0) {
8483 /* Here is another test for sparc vfork register problems. This
8484 test uses lots of local variables, at least as many local
8485 variables as main has allocated so far including compiler
8486 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8487 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8488 reuse the register of parent for one of the local variables,
8489 since it will think that parent can't possibly be used any more
8490 in this routine. Assigning to the local variable will thus
8491 munge parent in the parent process. */
8492 pid_t
8493 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8494 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8495 /* Convince the compiler that p..p7 are live; otherwise, it might
8496 use the same hardware register for all 8 local variables. */
8497 if (p != p1 || p != p2 || p != p3 || p != p4
8498 || p != p5 || p != p6 || p != p7)
8499 _exit(1);
8500
8501 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8502 from child file descriptors. If the child closes a descriptor
8503 before it execs or exits, this munges the parent's descriptor
8504 as well. Test for this by closing stdout in the child. */
8505 _exit(close(fileno(stdout)) != 0);
8506 } else {
8507 int status;
8508 struct stat st;
8509
8510 while (wait(&status) != child)
8511 ;
8512 return (
8513 /* Was there some problem with vforking? */
8514 child < 0
8515
8516 /* Did the child fail? (This shouldn't happen.) */
8517 || status
8518
8519 /* Did the vfork/compiler bug occur? */
8520 || parent != getpid()
8521
8522 /* Did the file descriptor bug occur? */
8523 || fstat(fileno(stdout), &st) != 0
8524 );
8525 }
8526 }
8527 _ACEOF
8528 rm -f conftest$ac_exeext
8529 if { (ac_try="$ac_link"
8530 case "(($ac_try" in
8531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532 *) ac_try_echo=$ac_try;;
8533 esac
8534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8535 $as_echo "$ac_try_echo") >&5
8536 (eval "$ac_link") 2>&5
8537 ac_status=$?
8538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8540 { (case "(($ac_try" in
8541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542 *) ac_try_echo=$ac_try;;
8543 esac
8544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8545 $as_echo "$ac_try_echo") >&5
8546 (eval "$ac_try") 2>&5
8547 ac_status=$?
8548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
8550 ac_cv_func_vfork_works=yes
8551 else
8552 $as_echo "$as_me: program exited with status $ac_status" >&5
8553 $as_echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8555
8556 ( exit $ac_status )
8557 ac_cv_func_vfork_works=no
8558 fi
8559 rm -rf conftest.dSYM
8560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8561 fi
8562
8563
8564 fi
8565 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8566 $as_echo "$ac_cv_func_vfork_works" >&6; }
8567
8568 fi;
8569 if test "x$ac_cv_func_fork_works" = xcross; then
8570 ac_cv_func_vfork_works=$ac_cv_func_vfork
8571 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8572 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8573 fi
8574
8575 if test "x$ac_cv_func_vfork_works" = xyes; then
8576
8577 cat >>confdefs.h <<\_ACEOF
8578 #define HAVE_WORKING_VFORK 1
8579 _ACEOF
8580
8581 else
8582
8583 cat >>confdefs.h <<\_ACEOF
8584 #define vfork fork
8585 _ACEOF
8586
8587 fi
8588 if test "x$ac_cv_func_fork_works" = xyes; then
8589
8590 cat >>confdefs.h <<\_ACEOF
8591 #define HAVE_WORKING_FORK 1
8592 _ACEOF
8593
8594 fi
8595
8596
8597
8598
8599
8600
8601
8602
8603 for ac_func in localeconv gettimeofday isascii setlocale strchr strftime waitpid
8604 do
8605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8606 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8607 $as_echo_n "checking for $ac_func... " >&6; }
8608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8609 $as_echo_n "(cached) " >&6
8610 else
8611 cat >conftest.$ac_ext <<_ACEOF
8612 /* confdefs.h. */
8613 _ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8619 #define $ac_func innocuous_$ac_func
8620
8621 /* System header to define __stub macros and hopefully few prototypes,
8622 which can conflict with char $ac_func (); below.
8623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8624 <limits.h> exists even on freestanding compilers. */
8625
8626 #ifdef __STDC__
8627 # include <limits.h>
8628 #else
8629 # include <assert.h>
8630 #endif
8631
8632 #undef $ac_func
8633
8634 /* Override any GCC internal prototype to avoid an error.
8635 Use char because int might match the return type of a GCC
8636 builtin and then its argument prototype would still apply. */
8637 #ifdef __cplusplus
8638 extern "C"
8639 #endif
8640 char $ac_func ();
8641 /* The GNU C library defines this for functions which it implements
8642 to always fail with ENOSYS. Some functions are actually named
8643 something starting with __ and the normal name is an alias. */
8644 #if defined __stub_$ac_func || defined __stub___$ac_func
8645 choke me
8646 #endif
8647
8648 int
8649 main ()
8650 {
8651 return $ac_func ();
8652 ;
8653 return 0;
8654 }
8655 _ACEOF
8656 rm -f conftest.$ac_objext conftest$ac_exeext
8657 if { (ac_try="$ac_link"
8658 case "(($ac_try" in
8659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8660 *) ac_try_echo=$ac_try;;
8661 esac
8662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8663 $as_echo "$ac_try_echo") >&5
8664 (eval "$ac_link") 2>conftest.er1
8665 ac_status=$?
8666 grep -v '^ *+' conftest.er1 >conftest.err
8667 rm -f conftest.er1
8668 cat conftest.err >&5
8669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } && {
8671 test -z "$ac_c_werror_flag" ||
8672 test ! -s conftest.err
8673 } && test -s conftest$ac_exeext && {
8674 test "$cross_compiling" = yes ||
8675 $as_test_x conftest$ac_exeext
8676 }; then
8677 eval "$as_ac_var=yes"
8678 else
8679 $as_echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8681
8682 eval "$as_ac_var=no"
8683 fi
8684
8685 rm -rf conftest.dSYM
8686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8687 conftest$ac_exeext conftest.$ac_ext
8688 fi
8689 ac_res=`eval 'as_val=${'$as_ac_var'}
8690 $as_echo "$as_val"'`
8691 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8692 $as_echo "$ac_res" >&6; }
8693 as_val=`eval 'as_val=${'$as_ac_var'}
8694 $as_echo "$as_val"'`
8695 if test "x$as_val" = x""yes; then
8696 cat >>confdefs.h <<_ACEOF
8697 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8698 _ACEOF
8699
8700 fi
8701 done
8702
8703
8704 # setmode DOS ?
8705
8706
8707 for ac_header in fcntl.h unistd.h
8708 do
8709 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8711 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8712 $as_echo_n "checking for $ac_header... " >&6; }
8713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8714 $as_echo_n "(cached) " >&6
8715 fi
8716 ac_res=`eval 'as_val=${'$as_ac_Header'}
8717 $as_echo "$as_val"'`
8718 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8719 $as_echo "$ac_res" >&6; }
8720 else
8721 # Is the header compilable?
8722 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8723 $as_echo_n "checking $ac_header usability... " >&6; }
8724 cat >conftest.$ac_ext <<_ACEOF
8725 /* confdefs.h. */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8730 $ac_includes_default
8731 #include <$ac_header>
8732 _ACEOF
8733 rm -f conftest.$ac_objext
8734 if { (ac_try="$ac_compile"
8735 case "(($ac_try" in
8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8738 esac
8739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8740 $as_echo "$ac_try_echo") >&5
8741 (eval "$ac_compile") 2>conftest.er1
8742 ac_status=$?
8743 grep -v '^ *+' conftest.er1 >conftest.err
8744 rm -f conftest.er1
8745 cat conftest.err >&5
8746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } && {
8748 test -z "$ac_c_werror_flag" ||
8749 test ! -s conftest.err
8750 } && test -s conftest.$ac_objext; then
8751 ac_header_compiler=yes
8752 else
8753 $as_echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8755
8756 ac_header_compiler=no
8757 fi
8758
8759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8760 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8761 $as_echo "$ac_header_compiler" >&6; }
8762
8763 # Is the header present?
8764 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8765 $as_echo_n "checking $ac_header presence... " >&6; }
8766 cat >conftest.$ac_ext <<_ACEOF
8767 /* confdefs.h. */
8768 _ACEOF
8769 cat confdefs.h >>conftest.$ac_ext
8770 cat >>conftest.$ac_ext <<_ACEOF
8771 /* end confdefs.h. */
8772 #include <$ac_header>
8773 _ACEOF
8774 if { (ac_try="$ac_cpp conftest.$ac_ext"
8775 case "(($ac_try" in
8776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8777 *) ac_try_echo=$ac_try;;
8778 esac
8779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8780 $as_echo "$ac_try_echo") >&5
8781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8782 ac_status=$?
8783 grep -v '^ *+' conftest.er1 >conftest.err
8784 rm -f conftest.er1
8785 cat conftest.err >&5
8786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } >/dev/null && {
8788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8789 test ! -s conftest.err
8790 }; then
8791 ac_header_preproc=yes
8792 else
8793 $as_echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8795
8796 ac_header_preproc=no
8797 fi
8798
8799 rm -f conftest.err conftest.$ac_ext
8800 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8801 $as_echo "$ac_header_preproc" >&6; }
8802
8803 # So? What about this header?
8804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8805 yes:no: )
8806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8807 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8809 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8810 ac_header_preproc=yes
8811 ;;
8812 no:yes:* )
8813 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8814 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8816 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8818 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8820 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8822 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8824 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8825 ( cat <<\_ASBOX
8826 ## ----------------------------------------- ##
8827 ## Report this to <ivprimi at libero dot it> ##
8828 ## ----------------------------------------- ##
8829 _ASBOX
8830 ) | sed "s/^/$as_me: WARNING: /" >&2
8831 ;;
8832 esac
8833 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8834 $as_echo_n "checking for $ac_header... " >&6; }
8835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8836 $as_echo_n "(cached) " >&6
8837 else
8838 eval "$as_ac_Header=\$ac_header_preproc"
8839 fi
8840 ac_res=`eval 'as_val=${'$as_ac_Header'}
8841 $as_echo "$as_val"'`
8842 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8843 $as_echo "$ac_res" >&6; }
8844
8845 fi
8846 as_val=`eval 'as_val=${'$as_ac_Header'}
8847 $as_echo "$as_val"'`
8848 if test "x$as_val" = x""yes; then
8849 cat >>confdefs.h <<_ACEOF
8850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8851 _ACEOF
8852
8853 fi
8854
8855 done
8856
8857 { $as_echo "$as_me:$LINENO: checking for DOS-style setmode" >&5
8858 $as_echo_n "checking for DOS-style setmode... " >&6; }
8859 if test "${ac_cv_func_setmode_dos+set}" = set; then
8860 $as_echo_n "(cached) " >&6
8861 else
8862 cat >conftest.$ac_ext <<_ACEOF
8863 /* confdefs.h. */
8864 _ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8868 #include <io.h>
8869 #if HAVE_FCNTL_H
8870 # include <fcntl.h>
8871 #endif
8872 #if HAVE_UNISTD_H
8873 # include <unistd.h>
8874 #endif
8875 int
8876 main ()
8877 {
8878 int ret = setmode && setmode (1, O_BINARY);
8879 ;
8880 return 0;
8881 }
8882 _ACEOF
8883 rm -f conftest.$ac_objext conftest$ac_exeext
8884 if { (ac_try="$ac_link"
8885 case "(($ac_try" in
8886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887 *) ac_try_echo=$ac_try;;
8888 esac
8889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8890 $as_echo "$ac_try_echo") >&5
8891 (eval "$ac_link") 2>conftest.er1
8892 ac_status=$?
8893 grep -v '^ *+' conftest.er1 >conftest.err
8894 rm -f conftest.er1
8895 cat conftest.err >&5
8896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest$ac_exeext && {
8901 test "$cross_compiling" = yes ||
8902 $as_test_x conftest$ac_exeext
8903 }; then
8904 ac_cv_func_setmode_dos=yes
8905 else
8906 $as_echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909 ac_cv_func_setmode_dos=no
8910 fi
8911
8912 rm -rf conftest.dSYM
8913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8914 conftest$ac_exeext conftest.$ac_ext
8915 fi
8916 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setmode_dos" >&5
8917 $as_echo "$ac_cv_func_setmode_dos" >&6; }
8918 if test $ac_cv_func_setmode_dos = yes; then
8919
8920 cat >>confdefs.h <<\_ACEOF
8921 #define HAVE_SETMODE_DOS 1
8922 _ACEOF
8923
8924 fi
8925
8926 # Check for clock_gettime and its library. Solaris puts it in -lrt or
8927 # -lposix4, but we don't want to link that library unless we have to.
8928 diff_saved_libs=$LIBS
8929 { $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8930 $as_echo_n "checking for library containing clock_gettime... " >&6; }
8931 if test "${ac_cv_search_clock_gettime+set}" = set; then
8932 $as_echo_n "(cached) " >&6
8933 else
8934 ac_func_search_save_LIBS=$LIBS
8935 cat >conftest.$ac_ext <<_ACEOF
8936 /* confdefs.h. */
8937 _ACEOF
8938 cat confdefs.h >>conftest.$ac_ext
8939 cat >>conftest.$ac_ext <<_ACEOF
8940 /* end confdefs.h. */
8941
8942 /* Override any GCC internal prototype to avoid an error.
8943 Use char because int might match the return type of a GCC
8944 builtin and then its argument prototype would still apply. */
8945 #ifdef __cplusplus
8946 extern "C"
8947 #endif
8948 char clock_gettime ();
8949 int
8950 main ()
8951 {
8952 return clock_gettime ();
8953 ;
8954 return 0;
8955 }
8956 _ACEOF
8957 for ac_lib in '' rt posix4; do
8958 if test -z "$ac_lib"; then
8959 ac_res="none required"
8960 else
8961 ac_res=-l$ac_lib
8962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8963 fi
8964 rm -f conftest.$ac_objext conftest$ac_exeext
8965 if { (ac_try="$ac_link"
8966 case "(($ac_try" in
8967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8969 esac
8970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8971 $as_echo "$ac_try_echo") >&5
8972 (eval "$ac_link") 2>conftest.er1
8973 ac_status=$?
8974 grep -v '^ *+' conftest.er1 >conftest.err
8975 rm -f conftest.er1
8976 cat conftest.err >&5
8977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } && {
8979 test -z "$ac_c_werror_flag" ||
8980 test ! -s conftest.err
8981 } && test -s conftest$ac_exeext && {
8982 test "$cross_compiling" = yes ||
8983 $as_test_x conftest$ac_exeext
8984 }; then
8985 ac_cv_search_clock_gettime=$ac_res
8986 else
8987 $as_echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8989
8990
8991 fi
8992
8993 rm -rf conftest.dSYM
8994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8995 conftest$ac_exeext
8996 if test "${ac_cv_search_clock_gettime+set}" = set; then
8997 break
8998 fi
8999 done
9000 if test "${ac_cv_search_clock_gettime+set}" = set; then
9001 :
9002 else
9003 ac_cv_search_clock_gettime=no
9004 fi
9005 rm conftest.$ac_ext
9006 LIBS=$ac_func_search_save_LIBS
9007 fi
9008 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9009 $as_echo "$ac_cv_search_clock_gettime" >&6; }
9010 ac_res=$ac_cv_search_clock_gettime
9011 if test "$ac_res" != no; then
9012 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9013
9014 fi
9015
9016 case $ac_cv_search_clock_gettime in
9017 no | 'none required')
9018 LIB_CLOCK_GETTIME=;;
9019 *)
9020 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime;;
9021 esac
9022
9023
9024 for ac_func in clock_gettime
9025 do
9026 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9027 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9028 $as_echo_n "checking for $ac_func... " >&6; }
9029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9030 $as_echo_n "(cached) " >&6
9031 else
9032 cat >conftest.$ac_ext <<_ACEOF
9033 /* confdefs.h. */
9034 _ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h. */
9038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9040 #define $ac_func innocuous_$ac_func
9041
9042 /* System header to define __stub macros and hopefully few prototypes,
9043 which can conflict with char $ac_func (); below.
9044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9045 <limits.h> exists even on freestanding compilers. */
9046
9047 #ifdef __STDC__
9048 # include <limits.h>
9049 #else
9050 # include <assert.h>
9051 #endif
9052
9053 #undef $ac_func
9054
9055 /* Override any GCC internal prototype to avoid an error.
9056 Use char because int might match the return type of a GCC
9057 builtin and then its argument prototype would still apply. */
9058 #ifdef __cplusplus
9059 extern "C"
9060 #endif
9061 char $ac_func ();
9062 /* The GNU C library defines this for functions which it implements
9063 to always fail with ENOSYS. Some functions are actually named
9064 something starting with __ and the normal name is an alias. */
9065 #if defined __stub_$ac_func || defined __stub___$ac_func
9066 choke me
9067 #endif
9068
9069 int
9070 main ()
9071 {
9072 return $ac_func ();
9073 ;
9074 return 0;
9075 }
9076 _ACEOF
9077 rm -f conftest.$ac_objext conftest$ac_exeext
9078 if { (ac_try="$ac_link"
9079 case "(($ac_try" in
9080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081 *) ac_try_echo=$ac_try;;
9082 esac
9083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9084 $as_echo "$ac_try_echo") >&5
9085 (eval "$ac_link") 2>conftest.er1
9086 ac_status=$?
9087 grep -v '^ *+' conftest.er1 >conftest.err
9088 rm -f conftest.er1
9089 cat conftest.err >&5
9090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } && {
9092 test -z "$ac_c_werror_flag" ||
9093 test ! -s conftest.err
9094 } && test -s conftest$ac_exeext && {
9095 test "$cross_compiling" = yes ||
9096 $as_test_x conftest$ac_exeext
9097 }; then
9098 eval "$as_ac_var=yes"
9099 else
9100 $as_echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9102
9103 eval "$as_ac_var=no"
9104 fi
9105
9106 rm -rf conftest.dSYM
9107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9108 conftest$ac_exeext conftest.$ac_ext
9109 fi
9110 ac_res=`eval 'as_val=${'$as_ac_var'}
9111 $as_echo "$as_val"'`
9112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9113 $as_echo "$ac_res" >&6; }
9114 as_val=`eval 'as_val=${'$as_ac_var'}
9115 $as_echo "$as_val"'`
9116 if test "x$as_val" = x""yes; then
9117 cat >>confdefs.h <<_ACEOF
9118 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9119 _ACEOF
9120
9121 fi
9122 done
9123
9124 LIBS=$diff_saved_libs
9125
9126
9127 cat >>confdefs.h <<\_ACEOF
9128 #define USE_UNLOCKED_IO 1
9129 _ACEOF
9130
9131
9132 { $as_echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
9133 $as_echo_n "checking whether clearerr_unlocked is declared... " >&6; }
9134 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
9135 $as_echo_n "(cached) " >&6
9136 else
9137 cat >conftest.$ac_ext <<_ACEOF
9138 /* confdefs.h. */
9139 _ACEOF
9140 cat confdefs.h >>conftest.$ac_ext
9141 cat >>conftest.$ac_ext <<_ACEOF
9142 /* end confdefs.h. */
9143 $ac_includes_default
9144 int
9145 main ()
9146 {
9147 #ifndef clearerr_unlocked
9148 (void) clearerr_unlocked;
9149 #endif
9150
9151 ;
9152 return 0;
9153 }
9154 _ACEOF
9155 rm -f conftest.$ac_objext
9156 if { (ac_try="$ac_compile"
9157 case "(($ac_try" in
9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9160 esac
9161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9162 $as_echo "$ac_try_echo") >&5
9163 (eval "$ac_compile") 2>conftest.er1
9164 ac_status=$?
9165 grep -v '^ *+' conftest.er1 >conftest.err
9166 rm -f conftest.er1
9167 cat conftest.err >&5
9168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } && {
9170 test -z "$ac_c_werror_flag" ||
9171 test ! -s conftest.err
9172 } && test -s conftest.$ac_objext; then
9173 ac_cv_have_decl_clearerr_unlocked=yes
9174 else
9175 $as_echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9177
9178 ac_cv_have_decl_clearerr_unlocked=no
9179 fi
9180
9181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182 fi
9183 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
9184 $as_echo "$ac_cv_have_decl_clearerr_unlocked" >&6; }
9185 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then
9186
9187 cat >>confdefs.h <<_ACEOF
9188 #define HAVE_DECL_CLEARERR_UNLOCKED 1
9189 _ACEOF
9190
9191
9192 else
9193 cat >>confdefs.h <<_ACEOF
9194 #define HAVE_DECL_CLEARERR_UNLOCKED 0
9195 _ACEOF
9196
9197
9198 fi
9199 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9200 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
9201 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9202 $as_echo_n "(cached) " >&6
9203 else
9204 cat >conftest.$ac_ext <<_ACEOF
9205 /* confdefs.h. */
9206 _ACEOF
9207 cat confdefs.h >>conftest.$ac_ext
9208 cat >>conftest.$ac_ext <<_ACEOF
9209 /* end confdefs.h. */
9210 $ac_includes_default
9211 int
9212 main ()
9213 {
9214 #ifndef feof_unlocked
9215 (void) feof_unlocked;
9216 #endif
9217
9218 ;
9219 return 0;
9220 }
9221 _ACEOF
9222 rm -f conftest.$ac_objext
9223 if { (ac_try="$ac_compile"
9224 case "(($ac_try" in
9225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9226 *) ac_try_echo=$ac_try;;
9227 esac
9228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9229 $as_echo "$ac_try_echo") >&5
9230 (eval "$ac_compile") 2>conftest.er1
9231 ac_status=$?
9232 grep -v '^ *+' conftest.er1 >conftest.err
9233 rm -f conftest.er1
9234 cat conftest.err >&5
9235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } && {
9237 test -z "$ac_c_werror_flag" ||
9238 test ! -s conftest.err
9239 } && test -s conftest.$ac_objext; then
9240 ac_cv_have_decl_feof_unlocked=yes
9241 else
9242 $as_echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9244
9245 ac_cv_have_decl_feof_unlocked=no
9246 fi
9247
9248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9249 fi
9250 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9251 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
9252 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then
9253
9254 cat >>confdefs.h <<_ACEOF
9255 #define HAVE_DECL_FEOF_UNLOCKED 1
9256 _ACEOF
9257
9258
9259 else
9260 cat >>confdefs.h <<_ACEOF
9261 #define HAVE_DECL_FEOF_UNLOCKED 0
9262 _ACEOF
9263
9264
9265 fi
9266 { $as_echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
9267 $as_echo_n "checking whether ferror_unlocked is declared... " >&6; }
9268 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
9269 $as_echo_n "(cached) " >&6
9270 else
9271 cat >conftest.$ac_ext <<_ACEOF
9272 /* confdefs.h. */
9273 _ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h. */
9277 $ac_includes_default
9278 int
9279 main ()
9280 {
9281 #ifndef ferror_unlocked
9282 (void) ferror_unlocked;
9283 #endif
9284
9285 ;
9286 return 0;
9287 }
9288 _ACEOF
9289 rm -f conftest.$ac_objext
9290 if { (ac_try="$ac_compile"
9291 case "(($ac_try" in
9292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9293 *) ac_try_echo=$ac_try;;
9294 esac
9295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9296 $as_echo "$ac_try_echo") >&5
9297 (eval "$ac_compile") 2>conftest.er1
9298 ac_status=$?
9299 grep -v '^ *+' conftest.er1 >conftest.err
9300 rm -f conftest.er1
9301 cat conftest.err >&5
9302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } && {
9304 test -z "$ac_c_werror_flag" ||
9305 test ! -s conftest.err
9306 } && test -s conftest.$ac_objext; then
9307 ac_cv_have_decl_ferror_unlocked=yes
9308 else
9309 $as_echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.$ac_ext >&5
9311
9312 ac_cv_have_decl_ferror_unlocked=no
9313 fi
9314
9315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9316 fi
9317 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
9318 $as_echo "$ac_cv_have_decl_ferror_unlocked" >&6; }
9319 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then
9320
9321 cat >>confdefs.h <<_ACEOF
9322 #define HAVE_DECL_FERROR_UNLOCKED 1
9323 _ACEOF
9324
9325
9326 else
9327 cat >>confdefs.h <<_ACEOF
9328 #define HAVE_DECL_FERROR_UNLOCKED 0
9329 _ACEOF
9330
9331
9332 fi
9333 { $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
9334 $as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
9335 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
9336 $as_echo_n "(cached) " >&6
9337 else
9338 cat >conftest.$ac_ext <<_ACEOF
9339 /* confdefs.h. */
9340 _ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 $ac_includes_default
9345 int
9346 main ()
9347 {
9348 #ifndef fflush_unlocked
9349 (void) fflush_unlocked;
9350 #endif
9351
9352 ;
9353 return 0;
9354 }
9355 _ACEOF
9356 rm -f conftest.$ac_objext
9357 if { (ac_try="$ac_compile"
9358 case "(($ac_try" in
9359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9360 *) ac_try_echo=$ac_try;;
9361 esac
9362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9363 $as_echo "$ac_try_echo") >&5
9364 (eval "$ac_compile") 2>conftest.er1
9365 ac_status=$?
9366 grep -v '^ *+' conftest.er1 >conftest.err
9367 rm -f conftest.er1
9368 cat conftest.err >&5
9369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } && {
9371 test -z "$ac_c_werror_flag" ||
9372 test ! -s conftest.err
9373 } && test -s conftest.$ac_objext; then
9374 ac_cv_have_decl_fflush_unlocked=yes
9375 else
9376 $as_echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9378
9379 ac_cv_have_decl_fflush_unlocked=no
9380 fi
9381
9382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9383 fi
9384 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
9385 $as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
9386 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then
9387
9388 cat >>confdefs.h <<_ACEOF
9389 #define HAVE_DECL_FFLUSH_UNLOCKED 1
9390 _ACEOF
9391
9392
9393 else
9394 cat >>confdefs.h <<_ACEOF
9395 #define HAVE_DECL_FFLUSH_UNLOCKED 0
9396 _ACEOF
9397
9398
9399 fi
9400 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9401 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
9402 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9403 $as_echo_n "(cached) " >&6
9404 else
9405 cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h. */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9411 $ac_includes_default
9412 int
9413 main ()
9414 {
9415 #ifndef fgets_unlocked
9416 (void) fgets_unlocked;
9417 #endif
9418
9419 ;
9420 return 0;
9421 }
9422 _ACEOF
9423 rm -f conftest.$ac_objext
9424 if { (ac_try="$ac_compile"
9425 case "(($ac_try" in
9426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9427 *) ac_try_echo=$ac_try;;
9428 esac
9429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9430 $as_echo "$ac_try_echo") >&5
9431 (eval "$ac_compile") 2>conftest.er1
9432 ac_status=$?
9433 grep -v '^ *+' conftest.er1 >conftest.err
9434 rm -f conftest.er1
9435 cat conftest.err >&5
9436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } && {
9438 test -z "$ac_c_werror_flag" ||
9439 test ! -s conftest.err
9440 } && test -s conftest.$ac_objext; then
9441 ac_cv_have_decl_fgets_unlocked=yes
9442 else
9443 $as_echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9445
9446 ac_cv_have_decl_fgets_unlocked=no
9447 fi
9448
9449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9450 fi
9451 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9452 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
9453 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then
9454
9455 cat >>confdefs.h <<_ACEOF
9456 #define HAVE_DECL_FGETS_UNLOCKED 1
9457 _ACEOF
9458
9459
9460 else
9461 cat >>confdefs.h <<_ACEOF
9462 #define HAVE_DECL_FGETS_UNLOCKED 0
9463 _ACEOF
9464
9465
9466 fi
9467 { $as_echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
9468 $as_echo_n "checking whether fputc_unlocked is declared... " >&6; }
9469 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
9470 $as_echo_n "(cached) " >&6
9471 else
9472 cat >conftest.$ac_ext <<_ACEOF
9473 /* confdefs.h. */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9478 $ac_includes_default
9479 int
9480 main ()
9481 {
9482 #ifndef fputc_unlocked
9483 (void) fputc_unlocked;
9484 #endif
9485
9486 ;
9487 return 0;
9488 }
9489 _ACEOF
9490 rm -f conftest.$ac_objext
9491 if { (ac_try="$ac_compile"
9492 case "(($ac_try" in
9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494 *) ac_try_echo=$ac_try;;
9495 esac
9496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9497 $as_echo "$ac_try_echo") >&5
9498 (eval "$ac_compile") 2>conftest.er1
9499 ac_status=$?
9500 grep -v '^ *+' conftest.er1 >conftest.err
9501 rm -f conftest.er1
9502 cat conftest.err >&5
9503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } && {
9505 test -z "$ac_c_werror_flag" ||
9506 test ! -s conftest.err
9507 } && test -s conftest.$ac_objext; then
9508 ac_cv_have_decl_fputc_unlocked=yes
9509 else
9510 $as_echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9512
9513 ac_cv_have_decl_fputc_unlocked=no
9514 fi
9515
9516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9517 fi
9518 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
9519 $as_echo "$ac_cv_have_decl_fputc_unlocked" >&6; }
9520 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then
9521
9522 cat >>confdefs.h <<_ACEOF
9523 #define HAVE_DECL_FPUTC_UNLOCKED 1
9524 _ACEOF
9525
9526
9527 else
9528 cat >>confdefs.h <<_ACEOF
9529 #define HAVE_DECL_FPUTC_UNLOCKED 0
9530 _ACEOF
9531
9532
9533 fi
9534 { $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
9535 $as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
9536 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
9537 $as_echo_n "(cached) " >&6
9538 else
9539 cat >conftest.$ac_ext <<_ACEOF
9540 /* confdefs.h. */
9541 _ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h. */
9545 $ac_includes_default
9546 int
9547 main ()
9548 {
9549 #ifndef fputs_unlocked
9550 (void) fputs_unlocked;
9551 #endif
9552
9553 ;
9554 return 0;
9555 }
9556 _ACEOF
9557 rm -f conftest.$ac_objext
9558 if { (ac_try="$ac_compile"
9559 case "(($ac_try" in
9560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561 *) ac_try_echo=$ac_try;;
9562 esac
9563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9564 $as_echo "$ac_try_echo") >&5
9565 (eval "$ac_compile") 2>conftest.er1
9566 ac_status=$?
9567 grep -v '^ *+' conftest.er1 >conftest.err
9568 rm -f conftest.er1
9569 cat conftest.err >&5
9570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } && {
9572 test -z "$ac_c_werror_flag" ||
9573 test ! -s conftest.err
9574 } && test -s conftest.$ac_objext; then
9575 ac_cv_have_decl_fputs_unlocked=yes
9576 else
9577 $as_echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9579
9580 ac_cv_have_decl_fputs_unlocked=no
9581 fi
9582
9583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9584 fi
9585 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
9586 $as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
9587 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then
9588
9589 cat >>confdefs.h <<_ACEOF
9590 #define HAVE_DECL_FPUTS_UNLOCKED 1
9591 _ACEOF
9592
9593
9594 else
9595 cat >>confdefs.h <<_ACEOF
9596 #define HAVE_DECL_FPUTS_UNLOCKED 0
9597 _ACEOF
9598
9599
9600 fi
9601 { $as_echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
9602 $as_echo_n "checking whether fread_unlocked is declared... " >&6; }
9603 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
9604 $as_echo_n "(cached) " >&6
9605 else
9606 cat >conftest.$ac_ext <<_ACEOF
9607 /* confdefs.h. */
9608 _ACEOF
9609 cat confdefs.h >>conftest.$ac_ext
9610 cat >>conftest.$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9612 $ac_includes_default
9613 int
9614 main ()
9615 {
9616 #ifndef fread_unlocked
9617 (void) fread_unlocked;
9618 #endif
9619
9620 ;
9621 return 0;
9622 }
9623 _ACEOF
9624 rm -f conftest.$ac_objext
9625 if { (ac_try="$ac_compile"
9626 case "(($ac_try" in
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9629 esac
9630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9631 $as_echo "$ac_try_echo") >&5
9632 (eval "$ac_compile") 2>conftest.er1
9633 ac_status=$?
9634 grep -v '^ *+' conftest.er1 >conftest.err
9635 rm -f conftest.er1
9636 cat conftest.err >&5
9637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } && {
9639 test -z "$ac_c_werror_flag" ||
9640 test ! -s conftest.err
9641 } && test -s conftest.$ac_objext; then
9642 ac_cv_have_decl_fread_unlocked=yes
9643 else
9644 $as_echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9646
9647 ac_cv_have_decl_fread_unlocked=no
9648 fi
9649
9650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9651 fi
9652 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
9653 $as_echo "$ac_cv_have_decl_fread_unlocked" >&6; }
9654 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then
9655
9656 cat >>confdefs.h <<_ACEOF
9657 #define HAVE_DECL_FREAD_UNLOCKED 1
9658 _ACEOF
9659
9660
9661 else
9662 cat >>confdefs.h <<_ACEOF
9663 #define HAVE_DECL_FREAD_UNLOCKED 0
9664 _ACEOF
9665
9666
9667 fi
9668 { $as_echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
9669 $as_echo_n "checking whether fwrite_unlocked is declared... " >&6; }
9670 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
9671 $as_echo_n "(cached) " >&6
9672 else
9673 cat >conftest.$ac_ext <<_ACEOF
9674 /* confdefs.h. */
9675 _ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9679 $ac_includes_default
9680 int
9681 main ()
9682 {
9683 #ifndef fwrite_unlocked
9684 (void) fwrite_unlocked;
9685 #endif
9686
9687 ;
9688 return 0;
9689 }
9690 _ACEOF
9691 rm -f conftest.$ac_objext
9692 if { (ac_try="$ac_compile"
9693 case "(($ac_try" in
9694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9695 *) ac_try_echo=$ac_try;;
9696 esac
9697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9698 $as_echo "$ac_try_echo") >&5
9699 (eval "$ac_compile") 2>conftest.er1
9700 ac_status=$?
9701 grep -v '^ *+' conftest.er1 >conftest.err
9702 rm -f conftest.er1
9703 cat conftest.err >&5
9704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } && {
9706 test -z "$ac_c_werror_flag" ||
9707 test ! -s conftest.err
9708 } && test -s conftest.$ac_objext; then
9709 ac_cv_have_decl_fwrite_unlocked=yes
9710 else
9711 $as_echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9713
9714 ac_cv_have_decl_fwrite_unlocked=no
9715 fi
9716
9717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9718 fi
9719 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
9720 $as_echo "$ac_cv_have_decl_fwrite_unlocked" >&6; }
9721 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then
9722
9723 cat >>confdefs.h <<_ACEOF
9724 #define HAVE_DECL_FWRITE_UNLOCKED 1
9725 _ACEOF
9726
9727
9728 else
9729 cat >>confdefs.h <<_ACEOF
9730 #define HAVE_DECL_FWRITE_UNLOCKED 0
9731 _ACEOF
9732
9733
9734 fi
9735 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9736 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
9737 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9738 $as_echo_n "(cached) " >&6
9739 else
9740 cat >conftest.$ac_ext <<_ACEOF
9741 /* confdefs.h. */
9742 _ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h. */
9746 $ac_includes_default
9747 int
9748 main ()
9749 {
9750 #ifndef getc_unlocked
9751 (void) getc_unlocked;
9752 #endif
9753
9754 ;
9755 return 0;
9756 }
9757 _ACEOF
9758 rm -f conftest.$ac_objext
9759 if { (ac_try="$ac_compile"
9760 case "(($ac_try" in
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9763 esac
9764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9765 $as_echo "$ac_try_echo") >&5
9766 (eval "$ac_compile") 2>conftest.er1
9767 ac_status=$?
9768 grep -v '^ *+' conftest.er1 >conftest.err
9769 rm -f conftest.er1
9770 cat conftest.err >&5
9771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } && {
9773 test -z "$ac_c_werror_flag" ||
9774 test ! -s conftest.err
9775 } && test -s conftest.$ac_objext; then
9776 ac_cv_have_decl_getc_unlocked=yes
9777 else
9778 $as_echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9780
9781 ac_cv_have_decl_getc_unlocked=no
9782 fi
9783
9784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785 fi
9786 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9787 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
9788 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
9789
9790 cat >>confdefs.h <<_ACEOF
9791 #define HAVE_DECL_GETC_UNLOCKED 1
9792 _ACEOF
9793
9794
9795 else
9796 cat >>confdefs.h <<_ACEOF
9797 #define HAVE_DECL_GETC_UNLOCKED 0
9798 _ACEOF
9799
9800
9801 fi
9802 { $as_echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
9803 $as_echo_n "checking whether getchar_unlocked is declared... " >&6; }
9804 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
9805 $as_echo_n "(cached) " >&6
9806 else
9807 cat >conftest.$ac_ext <<_ACEOF
9808 /* confdefs.h. */
9809 _ACEOF
9810 cat confdefs.h >>conftest.$ac_ext
9811 cat >>conftest.$ac_ext <<_ACEOF
9812 /* end confdefs.h. */
9813 $ac_includes_default
9814 int
9815 main ()
9816 {
9817 #ifndef getchar_unlocked
9818 (void) getchar_unlocked;
9819 #endif
9820
9821 ;
9822 return 0;
9823 }
9824 _ACEOF
9825 rm -f conftest.$ac_objext
9826 if { (ac_try="$ac_compile"
9827 case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9830 esac
9831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9832 $as_echo "$ac_try_echo") >&5
9833 (eval "$ac_compile") 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } && {
9840 test -z "$ac_c_werror_flag" ||
9841 test ! -s conftest.err
9842 } && test -s conftest.$ac_objext; then
9843 ac_cv_have_decl_getchar_unlocked=yes
9844 else
9845 $as_echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9847
9848 ac_cv_have_decl_getchar_unlocked=no
9849 fi
9850
9851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852 fi
9853 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
9854 $as_echo "$ac_cv_have_decl_getchar_unlocked" >&6; }
9855 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then
9856
9857 cat >>confdefs.h <<_ACEOF
9858 #define HAVE_DECL_GETCHAR_UNLOCKED 1
9859 _ACEOF
9860
9861
9862 else
9863 cat >>confdefs.h <<_ACEOF
9864 #define HAVE_DECL_GETCHAR_UNLOCKED 0
9865 _ACEOF
9866
9867
9868 fi
9869 { $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
9870 $as_echo_n "checking whether putc_unlocked is declared... " >&6; }
9871 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
9872 $as_echo_n "(cached) " >&6
9873 else
9874 cat >conftest.$ac_ext <<_ACEOF
9875 /* confdefs.h. */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9880 $ac_includes_default
9881 int
9882 main ()
9883 {
9884 #ifndef putc_unlocked
9885 (void) putc_unlocked;
9886 #endif
9887
9888 ;
9889 return 0;
9890 }
9891 _ACEOF
9892 rm -f conftest.$ac_objext
9893 if { (ac_try="$ac_compile"
9894 case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9897 esac
9898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9899 $as_echo "$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 $as_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_cv_have_decl_putc_unlocked=yes
9911 else
9912 $as_echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9914
9915 ac_cv_have_decl_putc_unlocked=no
9916 fi
9917
9918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9919 fi
9920 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
9921 $as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
9922 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then
9923
9924 cat >>confdefs.h <<_ACEOF
9925 #define HAVE_DECL_PUTC_UNLOCKED 1
9926 _ACEOF
9927
9928
9929 else
9930 cat >>confdefs.h <<_ACEOF
9931 #define HAVE_DECL_PUTC_UNLOCKED 0
9932 _ACEOF
9933
9934
9935 fi
9936 { $as_echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
9937 $as_echo_n "checking whether putchar_unlocked is declared... " >&6; }
9938 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
9939 $as_echo_n "(cached) " >&6
9940 else
9941 cat >conftest.$ac_ext <<_ACEOF
9942 /* confdefs.h. */
9943 _ACEOF
9944 cat confdefs.h >>conftest.$ac_ext
9945 cat >>conftest.$ac_ext <<_ACEOF
9946 /* end confdefs.h. */
9947 $ac_includes_default
9948 int
9949 main ()
9950 {
9951 #ifndef putchar_unlocked
9952 (void) putchar_unlocked;
9953 #endif
9954
9955 ;
9956 return 0;
9957 }
9958 _ACEOF
9959 rm -f conftest.$ac_objext
9960 if { (ac_try="$ac_compile"
9961 case "(($ac_try" in
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9964 esac
9965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9966 $as_echo "$ac_try_echo") >&5
9967 (eval "$ac_compile") 2>conftest.er1
9968 ac_status=$?
9969 grep -v '^ *+' conftest.er1 >conftest.err
9970 rm -f conftest.er1
9971 cat conftest.err >&5
9972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } && {
9974 test -z "$ac_c_werror_flag" ||
9975 test ! -s conftest.err
9976 } && test -s conftest.$ac_objext; then
9977 ac_cv_have_decl_putchar_unlocked=yes
9978 else
9979 $as_echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9981
9982 ac_cv_have_decl_putchar_unlocked=no
9983 fi
9984
9985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9986 fi
9987 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
9988 $as_echo "$ac_cv_have_decl_putchar_unlocked" >&6; }
9989 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then
9990
9991 cat >>confdefs.h <<_ACEOF
9992 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
9993 _ACEOF
9994
9995
9996 else
9997 cat >>confdefs.h <<_ACEOF
9998 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
9999 _ACEOF
10000
10001
10002 fi
10003 { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
10004 $as_echo_n "checking whether strerror is declared... " >&6; }
10005 if test "${ac_cv_have_decl_strerror+set}" = set; then
10006 $as_echo_n "(cached) " >&6
10007 else
10008 cat >conftest.$ac_ext <<_ACEOF
10009 /* confdefs.h. */
10010 _ACEOF
10011 cat confdefs.h >>conftest.$ac_ext
10012 cat >>conftest.$ac_ext <<_ACEOF
10013 /* end confdefs.h. */
10014 $ac_includes_default
10015 int
10016 main ()
10017 {
10018 #ifndef strerror
10019 (void) strerror;
10020 #endif
10021
10022 ;
10023 return 0;
10024 }
10025 _ACEOF
10026 rm -f conftest.$ac_objext
10027 if { (ac_try="$ac_compile"
10028 case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10031 esac
10032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10033 $as_echo "$ac_try_echo") >&5
10034 (eval "$ac_compile") 2>conftest.er1
10035 ac_status=$?
10036 grep -v '^ *+' conftest.er1 >conftest.err
10037 rm -f conftest.er1
10038 cat conftest.err >&5
10039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } && {
10041 test -z "$ac_c_werror_flag" ||
10042 test ! -s conftest.err
10043 } && test -s conftest.$ac_objext; then
10044 ac_cv_have_decl_strerror=yes
10045 else
10046 $as_echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10048
10049 ac_cv_have_decl_strerror=no
10050 fi
10051
10052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10053 fi
10054 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
10055 $as_echo "$ac_cv_have_decl_strerror" >&6; }
10056 if test "x$ac_cv_have_decl_strerror" = x""yes; then
10057
10058 cat >>confdefs.h <<_ACEOF
10059 #define HAVE_DECL_STRERROR 1
10060 _ACEOF
10061
10062
10063 else
10064 cat >>confdefs.h <<_ACEOF
10065 #define HAVE_DECL_STRERROR 0
10066 _ACEOF
10067
10068
10069 fi
10070
10071
10072
10073
10074 if test "x$enable_gmp" = "xno"; then
10075 CPPFLAGS="$CPPFLAGS -DDISABLE_GMP "
10076 fi
10077
10078 if test "x$enable_nls" = "xyes"; then
10079 CPPFLAGS="$CPPFLAGS -DENABLE_NLS "
10080 fi
10081
10082 if test "x$enable_debug" = "xyes"; then
10083 CFLAGS="$CFLAGS $DBGFLAGS "
10084 fi
10085
10086 if test "x$enable_optimization" = "xyes"; then
10087 CFLAGS="$CFLAGS $OPTFLAGS "
10088 fi
10089
10090
10091 { $as_echo "$as_me:$LINENO: result: Configuration terminated with success:" >&5
10092 $as_echo "Configuration terminated with success:" >&6; }
10093 { $as_echo "$as_me:$LINENO: result: Preprocessor flags = \"$CPPFLAGS\"" >&5
10094 $as_echo "Preprocessor flags = \"$CPPFLAGS\"" >&6; }
10095 { $as_echo "$as_me:$LINENO: result: Compiler flags = \"$CFLAGS\"" >&5
10096 $as_echo "Compiler flags = \"$CFLAGS\"" >&6; }
10097 { $as_echo "$as_me:$LINENO: result: Linker flags = \"$LDFLAGS\"" >&5
10098 $as_echo "Linker flags = \"$LDFLAGS\"" >&6; }
10099 { $as_echo "$as_me:$LINENO: result: Libraries = \"$LIBS\"" >&5
10100 $as_echo "Libraries = \"$LIBS\"" >&6; }
10101 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10102 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10103 set x ${MAKE-make}
10104 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10105 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10106 $as_echo_n "(cached) " >&6
10107 else
10108 cat >conftest.make <<\_ACEOF
10109 SHELL = /bin/sh
10110 all:
10111 @echo '@@@%%%=$(MAKE)=@@@%%%'
10112 _ACEOF
10113 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10114 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10115 *@@@%%%=?*=@@@%%%*)
10116 eval ac_cv_prog_make_${ac_make}_set=yes;;
10117 *)
10118 eval ac_cv_prog_make_${ac_make}_set=no;;
10119 esac
10120 rm -f conftest.make
10121 fi
10122 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10123 { $as_echo "$as_me:$LINENO: result: yes" >&5
10124 $as_echo "yes" >&6; }
10125 SET_MAKE=
10126 else
10127 { $as_echo "$as_me:$LINENO: result: no" >&5
10128 $as_echo "no" >&6; }
10129 SET_MAKE="MAKE=${MAKE-make}"
10130 fi
10131
10132 ac_config_files="$ac_config_files Makefile"
10133
10134 cat >confcache <<\_ACEOF
10135 # This file is a shell script that caches the results of configure
10136 # tests run on this system so they can be shared between configure
10137 # scripts and configure runs, see configure's option --config-cache.
10138 # It is not useful on other systems. If it contains results you don't
10139 # want to keep, you may remove or edit it.
10140 #
10141 # config.status only pays attention to the cache file if you give it
10142 # the --recheck option to rerun configure.
10143 #
10144 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10145 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10146 # following values.
10147
10148 _ACEOF
10149
10150 # The following way of writing the cache mishandles newlines in values,
10151 # but we know of no workaround that is simple, portable, and efficient.
10152 # So, we kill variables containing newlines.
10153 # Ultrix sh set writes to stderr and can't be redirected directly,
10154 # and sets the high bit in the cache file unless we assign to the vars.
10155 (
10156 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10157 eval ac_val=\$$ac_var
10158 case $ac_val in #(
10159 *${as_nl}*)
10160 case $ac_var in #(
10161 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10162 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10163 esac
10164 case $ac_var in #(
10165 _ | IFS | as_nl) ;; #(
10166 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10167 *) $as_unset $ac_var ;;
10168 esac ;;
10169 esac
10170 done
10171
10172 (set) 2>&1 |
10173 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10174 *${as_nl}ac_space=\ *)
10175 # `set' does not quote correctly, so add quotes (double-quote
10176 # substitution turns \\\\ into \\, and sed turns \\ into \).
10177 sed -n \
10178 "s/'/'\\\\''/g;
10179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10180 ;; #(
10181 *)
10182 # `set' quotes correctly as required by POSIX, so do not add quotes.
10183 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10184 ;;
10185 esac |
10186 sort
10187 ) |
10188 sed '
10189 /^ac_cv_env_/b end
10190 t clear
10191 :clear
10192 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10193 t end
10194 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10195 :end' >>confcache
10196 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10197 if test -w "$cache_file"; then
10198 test "x$cache_file" != "x/dev/null" &&
10199 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10200 $as_echo "$as_me: updating cache $cache_file" >&6;}
10201 cat confcache >$cache_file
10202 else
10203 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10204 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10205 fi
10206 fi
10207 rm -f confcache
10208
10209 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10210 # Let make expand exec_prefix.
10211 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10212
10213 DEFS=-DHAVE_CONFIG_H
10214
10215 ac_libobjs=
10216 ac_ltlibobjs=
10217 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10218 # 1. Remove the extension, and $U if already installed.
10219 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10220 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10221 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10222 # will be set to the directory where LIBOBJS objects are built.
10223 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10224 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10225 done
10226 LIBOBJS=$ac_libobjs
10227
10228 LTLIBOBJS=$ac_ltlibobjs
10229
10230
10231
10232 : ${CONFIG_STATUS=./config.status}
10233 ac_write_fail=0
10234 ac_clean_files_save=$ac_clean_files
10235 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10236 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10237 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10238 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10239 #! $SHELL
10240 # Generated by $as_me.
10241 # Run this file to recreate the current configuration.
10242 # Compiler output produced by configure, useful for debugging
10243 # configure, is in config.log if it exists.
10244
10245 debug=false
10246 ac_cs_recheck=false
10247 ac_cs_silent=false
10248 SHELL=\${CONFIG_SHELL-$SHELL}
10249 _ACEOF
10250
10251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10252 ## --------------------- ##
10253 ## M4sh Initialization. ##
10254 ## --------------------- ##
10255
10256 # Be more Bourne compatible
10257 DUALCASE=1; export DUALCASE # for MKS sh
10258 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10259 emulate sh
10260 NULLCMD=:
10261 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10262 # is contrary to our usage. Disable this feature.
10263 alias -g '${1+"$@"}'='"$@"'
10264 setopt NO_GLOB_SUBST
10265 else
10266 case `(set -o) 2>/dev/null` in
10267 *posix*) set -o posix ;;
10268 esac
10269
10270 fi
10271
10272
10273
10274
10275 # PATH needs CR
10276 # Avoid depending upon Character Ranges.
10277 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10278 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10279 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10280 as_cr_digits='0123456789'
10281 as_cr_alnum=$as_cr_Letters$as_cr_digits
10282
10283 as_nl='
10284 '
10285 export as_nl
10286 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10287 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10289 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10290 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10291 as_echo='printf %s\n'
10292 as_echo_n='printf %s'
10293 else
10294 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10295 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10296 as_echo_n='/usr/ucb/echo -n'
10297 else
10298 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10299 as_echo_n_body='eval
10300 arg=$1;
10301 case $arg in
10302 *"$as_nl"*)
10303 expr "X$arg" : "X\\(.*\\)$as_nl";
10304 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10305 esac;
10306 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10307 '
10308 export as_echo_n_body
10309 as_echo_n='sh -c $as_echo_n_body as_echo'
10310 fi
10311 export as_echo_body
10312 as_echo='sh -c $as_echo_body as_echo'
10313 fi
10314
10315 # The user is always right.
10316 if test "${PATH_SEPARATOR+set}" != set; then
10317 PATH_SEPARATOR=:
10318 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10319 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10320 PATH_SEPARATOR=';'
10321 }
10322 fi
10323
10324 # Support unset when possible.
10325 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10326 as_unset=unset
10327 else
10328 as_unset=false
10329 fi
10330
10331
10332 # IFS
10333 # We need space, tab and new line, in precisely that order. Quoting is
10334 # there to prevent editors from complaining about space-tab.
10335 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10336 # splitting by setting IFS to empty value.)
10337 IFS=" "" $as_nl"
10338
10339 # Find who we are. Look in the path if we contain no directory separator.
10340 case $0 in
10341 *[\\/]* ) as_myself=$0 ;;
10342 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10343 for as_dir in $PATH
10344 do
10345 IFS=$as_save_IFS
10346 test -z "$as_dir" && as_dir=.
10347 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10348 done
10349 IFS=$as_save_IFS
10350
10351 ;;
10352 esac
10353 # We did not find ourselves, most probably we were run as `sh COMMAND'
10354 # in which case we are not to be found in the path.
10355 if test "x$as_myself" = x; then
10356 as_myself=$0
10357 fi
10358 if test ! -f "$as_myself"; then
10359 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10360 { (exit 1); exit 1; }
10361 fi
10362
10363 # Work around bugs in pre-3.0 UWIN ksh.
10364 for as_var in ENV MAIL MAILPATH
10365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10366 done
10367 PS1='$ '
10368 PS2='> '
10369 PS4='+ '
10370
10371 # NLS nuisances.
10372 LC_ALL=C
10373 export LC_ALL
10374 LANGUAGE=C
10375 export LANGUAGE
10376
10377 # Required to use basename.
10378 if expr a : '\(a\)' >/dev/null 2>&1 &&
10379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10380 as_expr=expr
10381 else
10382 as_expr=false
10383 fi
10384
10385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10386 as_basename=basename
10387 else
10388 as_basename=false
10389 fi
10390
10391
10392 # Name of the executable.
10393 as_me=`$as_basename -- "$0" ||
10394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10395 X"$0" : 'X\(//\)$' \| \
10396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10397 $as_echo X/"$0" |
10398 sed '/^.*\/\([^/][^/]*\)\/*$/{
10399 s//\1/
10400 q
10401 }
10402 /^X\/\(\/\/\)$/{
10403 s//\1/
10404 q
10405 }
10406 /^X\/\(\/\).*/{
10407 s//\1/
10408 q
10409 }
10410 s/.*/./; q'`
10411
10412 # CDPATH.
10413 $as_unset CDPATH
10414
10415
10416
10417 as_lineno_1=$LINENO
10418 as_lineno_2=$LINENO
10419 test "x$as_lineno_1" != "x$as_lineno_2" &&
10420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10421
10422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10423 # uniformly replaced by the line number. The first 'sed' inserts a
10424 # line-number line after each line using $LINENO; the second 'sed'
10425 # does the real work. The second script uses 'N' to pair each
10426 # line-number line with the line containing $LINENO, and appends
10427 # trailing '-' during substitution so that $LINENO is not a special
10428 # case at line end.
10429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10430 # scripts with optimization help from Paolo Bonzini. Blame Lee
10431 # E. McMahon (1931-1989) for sed's syntax. :-)
10432 sed -n '
10433 p
10434 /[$]LINENO/=
10435 ' <$as_myself |
10436 sed '
10437 s/[$]LINENO.*/&-/
10438 t lineno
10439 b
10440 :lineno
10441 N
10442 :loop
10443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10444 t loop
10445 s/-\n.*//
10446 ' >$as_me.lineno &&
10447 chmod +x "$as_me.lineno" ||
10448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10449 { (exit 1); exit 1; }; }
10450
10451 # Don't try to exec as it changes $[0], causing all sort of problems
10452 # (the dirname of $[0] is not the place where we might find the
10453 # original and so on. Autoconf is especially sensitive to this).
10454 . "./$as_me.lineno"
10455 # Exit status is that of the last command.
10456 exit
10457 }
10458
10459
10460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10461 as_dirname=dirname
10462 else
10463 as_dirname=false
10464 fi
10465
10466 ECHO_C= ECHO_N= ECHO_T=
10467 case `echo -n x` in
10468 -n*)
10469 case `echo 'x\c'` in
10470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10471 *) ECHO_C='\c';;
10472 esac;;
10473 *)
10474 ECHO_N='-n';;
10475 esac
10476 if expr a : '\(a\)' >/dev/null 2>&1 &&
10477 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10478 as_expr=expr
10479 else
10480 as_expr=false
10481 fi
10482
10483 rm -f conf$$ conf$$.exe conf$$.file
10484 if test -d conf$$.dir; then
10485 rm -f conf$$.dir/conf$$.file
10486 else
10487 rm -f conf$$.dir
10488 mkdir conf$$.dir 2>/dev/null
10489 fi
10490 if (echo >conf$$.file) 2>/dev/null; then
10491 if ln -s conf$$.file conf$$ 2>/dev/null; then
10492 as_ln_s='ln -s'
10493 # ... but there are two gotchas:
10494 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10495 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10496 # In both cases, we have to default to `cp -p'.
10497 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10498 as_ln_s='cp -p'
10499 elif ln conf$$.file conf$$ 2>/dev/null; then
10500 as_ln_s=ln
10501 else
10502 as_ln_s='cp -p'
10503 fi
10504 else
10505 as_ln_s='cp -p'
10506 fi
10507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10508 rmdir conf$$.dir 2>/dev/null
10509
10510 if mkdir -p . 2>/dev/null; then
10511 as_mkdir_p=:
10512 else
10513 test -d ./-p && rmdir ./-p
10514 as_mkdir_p=false
10515 fi
10516
10517 if test -x / >/dev/null 2>&1; then
10518 as_test_x='test -x'
10519 else
10520 if ls -dL / >/dev/null 2>&1; then
10521 as_ls_L_option=L
10522 else
10523 as_ls_L_option=
10524 fi
10525 as_test_x='
10526 eval sh -c '\''
10527 if test -d "$1"; then
10528 test -d "$1/.";
10529 else
10530 case $1 in
10531 -*)set "./$1";;
10532 esac;
10533 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10534 ???[sx]*):;;*)false;;esac;fi
10535 '\'' sh
10536 '
10537 fi
10538 as_executable_p=$as_test_x
10539
10540 # Sed expression to map a string onto a valid CPP name.
10541 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10542
10543 # Sed expression to map a string onto a valid variable name.
10544 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10545
10546
10547 exec 6>&1
10548
10549 # Save the log message, to keep $[0] and so on meaningful, and to
10550 # report actual input values of CONFIG_FILES etc. instead of their
10551 # values after options handling.
10552 ac_log="
10553 This file was extended by Numdiff $as_me 5.8, which was
10554 generated by GNU Autoconf 2.63. Invocation command line was
10555
10556 CONFIG_FILES = $CONFIG_FILES
10557 CONFIG_HEADERS = $CONFIG_HEADERS
10558 CONFIG_LINKS = $CONFIG_LINKS
10559 CONFIG_COMMANDS = $CONFIG_COMMANDS
10560 $ $0 $@
10561
10562 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10563 "
10564
10565 _ACEOF
10566
10567 case $ac_config_files in *"
10568 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10569 esac
10570
10571 case $ac_config_headers in *"
10572 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10573 esac
10574
10575
10576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10577 # Files that config.status was made for.
10578 config_files="$ac_config_files"
10579 config_headers="$ac_config_headers"
10580
10581 _ACEOF
10582
10583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10584 ac_cs_usage="\
10585 \`$as_me' instantiates files from templates according to the
10586 current configuration.
10587
10588 Usage: $0 [OPTION]... [FILE]...
10589
10590 -h, --help print this help, then exit
10591 -V, --version print version number and configuration settings, then exit
10592 -q, --quiet, --silent
10593 do not print progress messages
10594 -d, --debug don't remove temporary files
10595 --recheck update $as_me by reconfiguring in the same conditions
10596 --file=FILE[:TEMPLATE]
10597 instantiate the configuration file FILE
10598 --header=FILE[:TEMPLATE]
10599 instantiate the configuration header FILE
10600
10601 Configuration files:
10602 $config_files
10603
10604 Configuration headers:
10605 $config_headers
10606
10607 Report bugs to <[email protected]>."
10608
10609 _ACEOF
10610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10611 ac_cs_version="\\
10612 Numdiff config.status 5.8
10613 configured by $0, generated by GNU Autoconf 2.63,
10614 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10615
10616 Copyright (C) 2008 Free Software Foundation, Inc.
10617 This config.status script is free software; the Free Software Foundation
10618 gives unlimited permission to copy, distribute and modify it."
10619
10620 ac_pwd='$ac_pwd'
10621 srcdir='$srcdir'
10622 test -n "\$AWK" || AWK=awk
10623 _ACEOF
10624
10625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10626 # The default lists apply if the user does not specify any file.
10627 ac_need_defaults=:
10628 while test $# != 0
10629 do
10630 case $1 in
10631 --*=*)
10632 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10633 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10634 ac_shift=:
10635 ;;
10636 *)
10637 ac_option=$1
10638 ac_optarg=$2
10639 ac_shift=shift
10640 ;;
10641 esac
10642
10643 case $ac_option in
10644 # Handling of the options.
10645 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10646 ac_cs_recheck=: ;;
10647 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10648 $as_echo "$ac_cs_version"; exit ;;
10649 --debug | --debu | --deb | --de | --d | -d )
10650 debug=: ;;
10651 --file | --fil | --fi | --f )
10652 $ac_shift
10653 case $ac_optarg in
10654 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10655 esac
10656 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10657 ac_need_defaults=false;;
10658 --header | --heade | --head | --hea )
10659 $ac_shift
10660 case $ac_optarg in
10661 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10662 esac
10663 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10664 ac_need_defaults=false;;
10665 --he | --h)
10666 # Conflict between --help and --header
10667 { $as_echo "$as_me: error: ambiguous option: $1
10668 Try \`$0 --help' for more information." >&2
10669 { (exit 1); exit 1; }; };;
10670 --help | --hel | -h )
10671 $as_echo "$ac_cs_usage"; exit ;;
10672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10673 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10674 ac_cs_silent=: ;;
10675
10676 # This is an error.
10677 -*) { $as_echo "$as_me: error: unrecognized option: $1
10678 Try \`$0 --help' for more information." >&2
10679 { (exit 1); exit 1; }; } ;;
10680
10681 *) ac_config_targets="$ac_config_targets $1"
10682 ac_need_defaults=false ;;
10683
10684 esac
10685 shift
10686 done
10687
10688 ac_configure_extra_args=
10689
10690 if $ac_cs_silent; then
10691 exec 6>/dev/null
10692 ac_configure_extra_args="$ac_configure_extra_args --silent"
10693 fi
10694
10695 _ACEOF
10696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10697 if \$ac_cs_recheck; then
10698 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10699 shift
10700 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10701 CONFIG_SHELL='$SHELL'
10702 export CONFIG_SHELL
10703 exec "\$@"
10704 fi
10705
10706 _ACEOF
10707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10708 exec 5>>config.log
10709 {
10710 echo
10711 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10712 ## Running $as_me. ##
10713 _ASBOX
10714 $as_echo "$ac_log"
10715 } >&5
10716
10717 _ACEOF
10718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10719 _ACEOF
10720
10721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10722
10723 # Handling of arguments.
10724 for ac_config_target in $ac_config_targets
10725 do
10726 case $ac_config_target in
10727 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10728 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10729
10730 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10731 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10732 { (exit 1); exit 1; }; };;
10733 esac
10734 done
10735
10736
10737 # If the user did not use the arguments to specify the items to instantiate,
10738 # then the envvar interface is used. Set only those that are not.
10739 # We use the long form for the default assignment because of an extremely
10740 # bizarre bug on SunOS 4.1.3.
10741 if $ac_need_defaults; then
10742 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10743 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10744 fi
10745
10746 # Have a temporary directory for convenience. Make it in the build tree
10747 # simply because there is no reason against having it here, and in addition,
10748 # creating and moving files from /tmp can sometimes cause problems.
10749 # Hook for its removal unless debugging.
10750 # Note that there is a small window in which the directory will not be cleaned:
10751 # after its creation but before its name has been assigned to `$tmp'.
10752 $debug ||
10753 {
10754 tmp=
10755 trap 'exit_status=$?
10756 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10757 ' 0
10758 trap '{ (exit 1); exit 1; }' 1 2 13 15
10759 }
10760 # Create a (secure) tmp directory for tmp files.
10761
10762 {
10763 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10764 test -n "$tmp" && test -d "$tmp"
10765 } ||
10766 {
10767 tmp=./conf$$-$RANDOM
10768 (umask 077 && mkdir "$tmp")
10769 } ||
10770 {
10771 $as_echo "$as_me: cannot create a temporary directory in ." >&2
10772 { (exit 1); exit 1; }
10773 }
10774
10775 # Set up the scripts for CONFIG_FILES section.
10776 # No need to generate them if there are no CONFIG_FILES.
10777 # This happens for instance with `./config.status config.h'.
10778 if test -n "$CONFIG_FILES"; then
10779
10780
10781 ac_cr=' '
10782 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10783 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10784 ac_cs_awk_cr='\\r'
10785 else
10786 ac_cs_awk_cr=$ac_cr
10787 fi
10788
10789 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10790 _ACEOF
10791
10792
10793 {
10794 echo "cat >conf$$subs.awk <<_ACEOF" &&
10795 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10796 echo "_ACEOF"
10797 } >conf$$subs.sh ||
10798 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10799 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10800 { (exit 1); exit 1; }; }
10801 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10802 ac_delim='%!_!# '
10803 for ac_last_try in false false false false false :; do
10804 . ./conf$$subs.sh ||
10805 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10806 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10807 { (exit 1); exit 1; }; }
10808
10809 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10810 if test $ac_delim_n = $ac_delim_num; then
10811 break
10812 elif $ac_last_try; then
10813 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10814 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10815 { (exit 1); exit 1; }; }
10816 else
10817 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10818 fi
10819 done
10820 rm -f conf$$subs.sh
10821
10822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10823 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10824 _ACEOF
10825 sed -n '
10826 h
10827 s/^/S["/; s/!.*/"]=/
10828 p
10829 g
10830 s/^[^!]*!//
10831 :repl
10832 t repl
10833 s/'"$ac_delim"'$//
10834 t delim
10835 :nl
10836 h
10837 s/\(.\{148\}\).*/\1/
10838 t more1
10839 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10840 p
10841 n
10842 b repl
10843 :more1
10844 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10845 p
10846 g
10847 s/.\{148\}//
10848 t nl
10849 :delim
10850 h
10851 s/\(.\{148\}\).*/\1/
10852 t more2
10853 s/["\\]/\\&/g; s/^/"/; s/$/"/
10854 p
10855 b
10856 :more2
10857 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10858 p
10859 g
10860 s/.\{148\}//
10861 t delim
10862 ' <conf$$subs.awk | sed '
10863 /^[^""]/{
10864 N
10865 s/\n//
10866 }
10867 ' >>$CONFIG_STATUS || ac_write_fail=1
10868 rm -f conf$$subs.awk
10869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10870 _ACAWK
10871 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10872 for (key in S) S_is_set[key] = 1
10873 FS = ""
10874
10875 }
10876 {
10877 line = $ 0
10878 nfields = split(line, field, "@")
10879 substed = 0
10880 len = length(field[1])
10881 for (i = 2; i < nfields; i++) {
10882 key = field[i]
10883 keylen = length(key)
10884 if (S_is_set[key]) {
10885 value = S[key]
10886 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10887 len += length(value) + length(field[++i])
10888 substed = 1
10889 } else
10890 len += 1 + keylen
10891 }
10892
10893 print line
10894 }
10895
10896 _ACAWK
10897 _ACEOF
10898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10899 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10900 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10901 else
10902 cat
10903 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10904 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10905 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10906 { (exit 1); exit 1; }; }
10907 _ACEOF
10908
10909 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10910 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10911 # trailing colons and then remove the whole line if VPATH becomes empty
10912 # (actually we leave an empty line to preserve line numbers).
10913 if test "x$srcdir" = x.; then
10914 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10915 s/:*\$(srcdir):*/:/
10916 s/:*\${srcdir}:*/:/
10917 s/:*@srcdir@:*/:/
10918 s/^\([^=]*=[ ]*\):*/\1/
10919 s/:*$//
10920 s/^[^=]*=[ ]*$//
10921 }'
10922 fi
10923
10924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10925 fi # test -n "$CONFIG_FILES"
10926
10927 # Set up the scripts for CONFIG_HEADERS section.
10928 # No need to generate them if there are no CONFIG_HEADERS.
10929 # This happens for instance with `./config.status Makefile'.
10930 if test -n "$CONFIG_HEADERS"; then
10931 cat >"$tmp/defines.awk" <<\_ACAWK ||
10932 BEGIN {
10933 _ACEOF
10934
10935 # Transform confdefs.h into an awk script `defines.awk', embedded as
10936 # here-document in config.status, that substitutes the proper values into
10937 # config.h.in to produce config.h.
10938
10939 # Create a delimiter string that does not exist in confdefs.h, to ease
10940 # handling of long lines.
10941 ac_delim='%!_!# '
10942 for ac_last_try in false false :; do
10943 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10944 if test -z "$ac_t"; then
10945 break
10946 elif $ac_last_try; then
10947 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
10948 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
10949 { (exit 1); exit 1; }; }
10950 else
10951 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10952 fi
10953 done
10954
10955 # For the awk script, D is an array of macro values keyed by name,
10956 # likewise P contains macro parameters if any. Preserve backslash
10957 # newline sequences.
10958
10959 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10960 sed -n '
10961 s/.\{148\}/&'"$ac_delim"'/g
10962 t rset
10963 :rset
10964 s/^[ ]*#[ ]*define[ ][ ]*/ /
10965 t def
10966 d
10967 :def
10968 s/\\$//
10969 t bsnl
10970 s/["\\]/\\&/g
10971 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10972 D["\1"]=" \3"/p
10973 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10974 d
10975 :bsnl
10976 s/["\\]/\\&/g
10977 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10978 D["\1"]=" \3\\\\\\n"\\/p
10979 t cont
10980 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10981 t cont
10982 d
10983 :cont
10984 n
10985 s/.\{148\}/&'"$ac_delim"'/g
10986 t clear
10987 :clear
10988 s/\\$//
10989 t bsnlc
10990 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10991 d
10992 :bsnlc
10993 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10994 b cont
10995 ' <confdefs.h | sed '
10996 s/'"$ac_delim"'/"\\\
10997 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10998
10999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11000 for (key in D) D_is_set[key] = 1
11001 FS = ""
11002 }
11003 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11004 line = \$ 0
11005 split(line, arg, " ")
11006 if (arg[1] == "#") {
11007 defundef = arg[2]
11008 mac1 = arg[3]
11009 } else {
11010 defundef = substr(arg[1], 2)
11011 mac1 = arg[2]
11012 }
11013 split(mac1, mac2, "(") #)
11014 macro = mac2[1]
11015 prefix = substr(line, 1, index(line, defundef) - 1)
11016 if (D_is_set[macro]) {
11017 # Preserve the white space surrounding the "#".
11018 print prefix "define", macro P[macro] D[macro]
11019 next
11020 } else {
11021 # Replace #undef with comments. This is necessary, for example,
11022 # in the case of _POSIX_SOURCE, which is predefined and required
11023 # on some systems where configure will not decide to define it.
11024 if (defundef == "undef") {
11025 print "/*", prefix defundef, macro, "*/"
11026 next
11027 }
11028 }
11029 }
11030 { print }
11031 _ACAWK
11032 _ACEOF
11033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11034 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
11035 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
11036 { (exit 1); exit 1; }; }
11037 fi # test -n "$CONFIG_HEADERS"
11038
11039
11040 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11041 shift
11042 for ac_tag
11043 do
11044 case $ac_tag in
11045 :[FHLC]) ac_mode=$ac_tag; continue;;
11046 esac
11047 case $ac_mode$ac_tag in
11048 :[FHL]*:*);;
11049 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
11050 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
11051 { (exit 1); exit 1; }; };;
11052 :[FH]-) ac_tag=-:-;;
11053 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11054 esac
11055 ac_save_IFS=$IFS
11056 IFS=:
11057 set x $ac_tag
11058 IFS=$ac_save_IFS
11059 shift
11060 ac_file=$1
11061 shift
11062
11063 case $ac_mode in
11064 :L) ac_source=$1;;
11065 :[FH])
11066 ac_file_inputs=
11067 for ac_f
11068 do
11069 case $ac_f in
11070 -) ac_f="$tmp/stdin";;
11071 *) # Look for the file first in the build tree, then in the source tree
11072 # (if the path is not absolute). The absolute path cannot be DOS-style,
11073 # because $ac_f cannot contain `:'.
11074 test -f "$ac_f" ||
11075 case $ac_f in
11076 [\\/$]*) false;;
11077 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11078 esac ||
11079 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11080 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11081 { (exit 1); exit 1; }; };;
11082 esac
11083 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11084 ac_file_inputs="$ac_file_inputs '$ac_f'"
11085 done
11086
11087 # Let's still pretend it is `configure' which instantiates (i.e., don't
11088 # use $as_me), people would be surprised to read:
11089 # /* config.h. Generated by config.status. */
11090 configure_input='Generated from '`
11091 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11092 `' by configure.'
11093 if test x"$ac_file" != x-; then
11094 configure_input="$ac_file. $configure_input"
11095 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11096 $as_echo "$as_me: creating $ac_file" >&6;}
11097 fi
11098 # Neutralize special characters interpreted by sed in replacement strings.
11099 case $configure_input in #(
11100 *\&* | *\|* | *\\* )
11101 ac_sed_conf_input=`$as_echo "$configure_input" |
11102 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11103 *) ac_sed_conf_input=$configure_input;;
11104 esac
11105
11106 case $ac_tag in
11107 *:-:* | *:-) cat >"$tmp/stdin" \
11108 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11109 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11110 { (exit 1); exit 1; }; } ;;
11111 esac
11112 ;;
11113 esac
11114
11115 ac_dir=`$as_dirname -- "$ac_file" ||
11116 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11117 X"$ac_file" : 'X\(//\)[^/]' \| \
11118 X"$ac_file" : 'X\(//\)$' \| \
11119 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11120 $as_echo X"$ac_file" |
11121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11122 s//\1/
11123 q
11124 }
11125 /^X\(\/\/\)[^/].*/{
11126 s//\1/
11127 q
11128 }
11129 /^X\(\/\/\)$/{
11130 s//\1/
11131 q
11132 }
11133 /^X\(\/\).*/{
11134 s//\1/
11135 q
11136 }
11137 s/.*/./; q'`
11138 { as_dir="$ac_dir"
11139 case $as_dir in #(
11140 -*) as_dir=./$as_dir;;
11141 esac
11142 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11143 as_dirs=
11144 while :; do
11145 case $as_dir in #(
11146 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11147 *) as_qdir=$as_dir;;
11148 esac
11149 as_dirs="'$as_qdir' $as_dirs"
11150 as_dir=`$as_dirname -- "$as_dir" ||
11151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11152 X"$as_dir" : 'X\(//\)[^/]' \| \
11153 X"$as_dir" : 'X\(//\)$' \| \
11154 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11155 $as_echo X"$as_dir" |
11156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11157 s//\1/
11158 q
11159 }
11160 /^X\(\/\/\)[^/].*/{
11161 s//\1/
11162 q
11163 }
11164 /^X\(\/\/\)$/{
11165 s//\1/
11166 q
11167 }
11168 /^X\(\/\).*/{
11169 s//\1/
11170 q
11171 }
11172 s/.*/./; q'`
11173 test -d "$as_dir" && break
11174 done
11175 test -z "$as_dirs" || eval "mkdir $as_dirs"
11176 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11177 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11178 { (exit 1); exit 1; }; }; }
11179 ac_builddir=.
11180
11181 case "$ac_dir" in
11182 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11183 *)
11184 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11185 # A ".." for each directory in $ac_dir_suffix.
11186 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11187 case $ac_top_builddir_sub in
11188 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11189 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11190 esac ;;
11191 esac
11192 ac_abs_top_builddir=$ac_pwd
11193 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11194 # for backward compatibility:
11195 ac_top_builddir=$ac_top_build_prefix
11196
11197 case $srcdir in
11198 .) # We are building in place.
11199 ac_srcdir=.
11200 ac_top_srcdir=$ac_top_builddir_sub
11201 ac_abs_top_srcdir=$ac_pwd ;;
11202 [\\/]* | ?:[\\/]* ) # Absolute name.
11203 ac_srcdir=$srcdir$ac_dir_suffix;
11204 ac_top_srcdir=$srcdir
11205 ac_abs_top_srcdir=$srcdir ;;
11206 *) # Relative name.
11207 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11208 ac_top_srcdir=$ac_top_build_prefix$srcdir
11209 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11210 esac
11211 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11212
11213
11214 case $ac_mode in
11215 :F)
11216 #
11217 # CONFIG_FILE
11218 #
11219
11220 _ACEOF
11221
11222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11223 # If the template does not know about datarootdir, expand it.
11224 # FIXME: This hack should be removed a few years after 2.60.
11225 ac_datarootdir_hack=; ac_datarootdir_seen=
11226
11227 ac_sed_dataroot='
11228 /datarootdir/ {
11229 p
11230 q
11231 }
11232 /@datadir@/p
11233 /@docdir@/p
11234 /@infodir@/p
11235 /@localedir@/p
11236 /@mandir@/p
11237 '
11238 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11239 *datarootdir*) ac_datarootdir_seen=yes;;
11240 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11241 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11242 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11243 _ACEOF
11244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11245 ac_datarootdir_hack='
11246 s&@datadir@&$datadir&g
11247 s&@docdir@&$docdir&g
11248 s&@infodir@&$infodir&g
11249 s&@localedir@&$localedir&g
11250 s&@mandir@&$mandir&g
11251 s&\\\${datarootdir}&$datarootdir&g' ;;
11252 esac
11253 _ACEOF
11254
11255 # Neutralize VPATH when `$srcdir' = `.'.
11256 # Shell code in configure.ac might set extrasub.
11257 # FIXME: do we really want to maintain this feature?
11258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11259 ac_sed_extra="$ac_vpsub
11260 $extrasub
11261 _ACEOF
11262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11263 :t
11264 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11265 s|@configure_input@|$ac_sed_conf_input|;t t
11266 s&@top_builddir@&$ac_top_builddir_sub&;t t
11267 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11268 s&@srcdir@&$ac_srcdir&;t t
11269 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11270 s&@top_srcdir@&$ac_top_srcdir&;t t
11271 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11272 s&@builddir@&$ac_builddir&;t t
11273 s&@abs_builddir@&$ac_abs_builddir&;t t
11274 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11275 $ac_datarootdir_hack
11276 "
11277 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11278 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11279 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11280 { (exit 1); exit 1; }; }
11281
11282 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11283 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11284 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11285 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11286 which seems to be undefined. Please make sure it is defined." >&5
11287 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11288 which seems to be undefined. Please make sure it is defined." >&2;}
11289
11290 rm -f "$tmp/stdin"
11291 case $ac_file in
11292 -) cat "$tmp/out" && rm -f "$tmp/out";;
11293 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11294 esac \
11295 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11296 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11297 { (exit 1); exit 1; }; }
11298 ;;
11299 :H)
11300 #
11301 # CONFIG_HEADER
11302 #
11303 if test x"$ac_file" != x-; then
11304 {
11305 $as_echo "/* $configure_input */" \
11306 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11307 } >"$tmp/config.h" \
11308 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11309 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11310 { (exit 1); exit 1; }; }
11311 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11312 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11313 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11314 else
11315 rm -f "$ac_file"
11316 mv "$tmp/config.h" "$ac_file" \
11317 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11318 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11319 { (exit 1); exit 1; }; }
11320 fi
11321 else
11322 $as_echo "/* $configure_input */" \
11323 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11324 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
11325 $as_echo "$as_me: error: could not create -" >&2;}
11326 { (exit 1); exit 1; }; }
11327 fi
11328 ;;
11329
11330
11331 esac
11332
11333 done # for ac_tag
11334
11335
11336 { (exit 0); exit 0; }
11337 _ACEOF
11338 chmod +x $CONFIG_STATUS
11339 ac_clean_files=$ac_clean_files_save
11340
11341 test $ac_write_fail = 0 ||
11342 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11343 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11344 { (exit 1); exit 1; }; }
11345
11346
11347 # configure is writing to config.log, and then calls config.status.
11348 # config.status does its own redirection, appending to config.log.
11349 # Unfortunately, on DOS this fails, as config.log is still kept open
11350 # by configure, so config.status won't be able to write to it; its
11351 # output is simply discarded. So we exec the FD to /dev/null,
11352 # effectively closing config.log, so it can be properly (re)opened and
11353 # appended to by config.status. When coming back to configure, we
11354 # need to make the FD available again.
11355 if test "$no_create" != yes; then
11356 ac_cs_success=:
11357 ac_config_status_args=
11358 test "$silent" = yes &&
11359 ac_config_status_args="$ac_config_status_args --quiet"
11360 exec 5>/dev/null
11361 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11362 exec 5>>config.log
11363 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11364 # would make configure fail if this is the last instruction.
11365 $ac_cs_success || { (exit 1); exit 1; }
11366 fi
11367 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11368 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11369 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11370 fi
11371
11372