Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for Enhanced CTorrent dnh3.3.2.
4 #
5 # Report bugs to <http://sourceforge.net/projects/dtorrent/ or [email protected]>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell [email protected] about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='Enhanced CTorrent'
576 PACKAGE_TARNAME='ctorrent'
577 PACKAGE_VERSION='dnh3.3.2'
578 PACKAGE_STRING='Enhanced CTorrent dnh3.3.2'
579 PACKAGE_BUGREPORT='http://sourceforge.net/projects/dtorrent/ or [email protected]'
580
581 ac_unique_file="ctorrent.cpp"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 INSTALL_PROGRAM
656 INSTALL_SCRIPT
657 INSTALL_DATA
658 CYGPATH_W
659 PACKAGE
660 VERSION
661 ACLOCAL
662 AUTOCONF
663 AUTOMAKE
664 AUTOHEADER
665 MAKEINFO
666 install_sh
667 STRIP
668 INSTALL_STRIP_PROGRAM
669 mkdir_p
670 AWK
671 SET_MAKE
672 am__leading_dot
673 AMTAR
674 am__tar
675 am__untar
676 CXX
677 CXXFLAGS
678 LDFLAGS
679 CPPFLAGS
680 ac_ct_CXX
681 EXEEXT
682 OBJEXT
683 DEPDIR
684 am__include
685 am__quote
686 AMDEP_TRUE
687 AMDEP_FALSE
688 AMDEPBACKSLASH
689 CXXDEPMODE
690 am__fastdepCXX_TRUE
691 am__fastdepCXX_FALSE
692 CC
693 CFLAGS
694 ac_ct_CC
695 CCDEPMODE
696 am__fastdepCC_TRUE
697 am__fastdepCC_FALSE
698 CXXCPP
699 GREP
700 EGREP
701 LIBOBJS
702 POW_LIB
703 LTLIBOBJS'
704 ac_subst_files=''
705 ac_precious_vars='build_alias
706 host_alias
707 target_alias
708 CXX
709 CXXFLAGS
710 LDFLAGS
711 LIBS
712 CPPFLAGS
713 CCC
714 CC
715 CFLAGS
716 CXXCPP'
717
718
719 # Initialize some variables set by options.
720 ac_init_help=
721 ac_init_version=false
722 # The variables have the same names as the options, with
723 # dashes changed to underlines.
724 cache_file=/dev/null
725 exec_prefix=NONE
726 no_create=
727 no_recursion=
728 prefix=NONE
729 program_prefix=NONE
730 program_suffix=NONE
731 program_transform_name=s,x,x,
732 silent=
733 site=
734 srcdir=
735 verbose=
736 x_includes=NONE
737 x_libraries=NONE
738
739 # Installation directory options.
740 # These are left unexpanded so users can "make install exec_prefix=/foo"
741 # and all the variables that are supposed to be based on exec_prefix
742 # by default will actually change.
743 # Use braces instead of parens because sh, perl, etc. also accept them.
744 # (The list follows the same order as the GNU Coding Standards.)
745 bindir='${exec_prefix}/bin'
746 sbindir='${exec_prefix}/sbin'
747 libexecdir='${exec_prefix}/libexec'
748 datarootdir='${prefix}/share'
749 datadir='${datarootdir}'
750 sysconfdir='${prefix}/etc'
751 sharedstatedir='${prefix}/com'
752 localstatedir='${prefix}/var'
753 includedir='${prefix}/include'
754 oldincludedir='/usr/include'
755 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
756 infodir='${datarootdir}/info'
757 htmldir='${docdir}'
758 dvidir='${docdir}'
759 pdfdir='${docdir}'
760 psdir='${docdir}'
761 libdir='${exec_prefix}/lib'
762 localedir='${datarootdir}/locale'
763 mandir='${datarootdir}/man'
764
765 ac_prev=
766 ac_dashdash=
767 for ac_option
768 do
769 # If the previous option needs an argument, assign it.
770 if test -n "$ac_prev"; then
771 eval $ac_prev=\$ac_option
772 ac_prev=
773 continue
774 fi
775
776 case $ac_option in
777 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
778 *) ac_optarg=yes ;;
779 esac
780
781 # Accept the important Cygnus configure options, so we can diagnose typos.
782
783 case $ac_dashdash$ac_option in
784 --)
785 ac_dashdash=yes ;;
786
787 -bindir | --bindir | --bindi | --bind | --bin | --bi)
788 ac_prev=bindir ;;
789 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
790 bindir=$ac_optarg ;;
791
792 -build | --build | --buil | --bui | --bu)
793 ac_prev=build_alias ;;
794 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
795 build_alias=$ac_optarg ;;
796
797 -cache-file | --cache-file | --cache-fil | --cache-fi \
798 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
799 ac_prev=cache_file ;;
800 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
801 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
802 cache_file=$ac_optarg ;;
803
804 --config-cache | -C)
805 cache_file=config.cache ;;
806
807 -datadir | --datadir | --datadi | --datad)
808 ac_prev=datadir ;;
809 -datadir=* | --datadir=* | --datadi=* | --datad=*)
810 datadir=$ac_optarg ;;
811
812 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
813 | --dataroo | --dataro | --datar)
814 ac_prev=datarootdir ;;
815 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
816 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
817 datarootdir=$ac_optarg ;;
818
819 -disable-* | --disable-*)
820 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
821 # Reject names that are not valid shell variable names.
822 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824 { (exit 1); exit 1; }; }
825 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
826 eval enable_$ac_feature=no ;;
827
828 -docdir | --docdir | --docdi | --doc | --do)
829 ac_prev=docdir ;;
830 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
831 docdir=$ac_optarg ;;
832
833 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
834 ac_prev=dvidir ;;
835 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
836 dvidir=$ac_optarg ;;
837
838 -enable-* | --enable-*)
839 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_$ac_feature=\$ac_optarg ;;
846
847 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
849 | --exec | --exe | --ex)
850 ac_prev=exec_prefix ;;
851 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
852 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
853 | --exec=* | --exe=* | --ex=*)
854 exec_prefix=$ac_optarg ;;
855
856 -gas | --gas | --ga | --g)
857 # Obsolete; use --with-gas.
858 with_gas=yes ;;
859
860 -help | --help | --hel | --he | -h)
861 ac_init_help=long ;;
862 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
863 ac_init_help=recursive ;;
864 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
865 ac_init_help=short ;;
866
867 -host | --host | --hos | --ho)
868 ac_prev=host_alias ;;
869 -host=* | --host=* | --hos=* | --ho=*)
870 host_alias=$ac_optarg ;;
871
872 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
873 ac_prev=htmldir ;;
874 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
875 | --ht=*)
876 htmldir=$ac_optarg ;;
877
878 -includedir | --includedir | --includedi | --included | --include \
879 | --includ | --inclu | --incl | --inc)
880 ac_prev=includedir ;;
881 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
882 | --includ=* | --inclu=* | --incl=* | --inc=*)
883 includedir=$ac_optarg ;;
884
885 -infodir | --infodir | --infodi | --infod | --info | --inf)
886 ac_prev=infodir ;;
887 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
888 infodir=$ac_optarg ;;
889
890 -libdir | --libdir | --libdi | --libd)
891 ac_prev=libdir ;;
892 -libdir=* | --libdir=* | --libdi=* | --libd=*)
893 libdir=$ac_optarg ;;
894
895 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
896 | --libexe | --libex | --libe)
897 ac_prev=libexecdir ;;
898 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
899 | --libexe=* | --libex=* | --libe=*)
900 libexecdir=$ac_optarg ;;
901
902 -localedir | --localedir | --localedi | --localed | --locale)
903 ac_prev=localedir ;;
904 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
905 localedir=$ac_optarg ;;
906
907 -localstatedir | --localstatedir | --localstatedi | --localstated \
908 | --localstate | --localstat | --localsta | --localst | --locals)
909 ac_prev=localstatedir ;;
910 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
911 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
912 localstatedir=$ac_optarg ;;
913
914 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
915 ac_prev=mandir ;;
916 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
917 mandir=$ac_optarg ;;
918
919 -nfp | --nfp | --nf)
920 # Obsolete; use --without-fp.
921 with_fp=no ;;
922
923 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924 | --no-cr | --no-c | -n)
925 no_create=yes ;;
926
927 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
929 no_recursion=yes ;;
930
931 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
932 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
933 | --oldin | --oldi | --old | --ol | --o)
934 ac_prev=oldincludedir ;;
935 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
936 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
937 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
938 oldincludedir=$ac_optarg ;;
939
940 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
941 ac_prev=prefix ;;
942 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
943 prefix=$ac_optarg ;;
944
945 -program-prefix | --program-prefix | --program-prefi | --program-pref \
946 | --program-pre | --program-pr | --program-p)
947 ac_prev=program_prefix ;;
948 -program-prefix=* | --program-prefix=* | --program-prefi=* \
949 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
950 program_prefix=$ac_optarg ;;
951
952 -program-suffix | --program-suffix | --program-suffi | --program-suff \
953 | --program-suf | --program-su | --program-s)
954 ac_prev=program_suffix ;;
955 -program-suffix=* | --program-suffix=* | --program-suffi=* \
956 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
957 program_suffix=$ac_optarg ;;
958
959 -program-transform-name | --program-transform-name \
960 | --program-transform-nam | --program-transform-na \
961 | --program-transform-n | --program-transform- \
962 | --program-transform | --program-transfor \
963 | --program-transfo | --program-transf \
964 | --program-trans | --program-tran \
965 | --progr-tra | --program-tr | --program-t)
966 ac_prev=program_transform_name ;;
967 -program-transform-name=* | --program-transform-name=* \
968 | --program-transform-nam=* | --program-transform-na=* \
969 | --program-transform-n=* | --program-transform-=* \
970 | --program-transform=* | --program-transfor=* \
971 | --program-transfo=* | --program-transf=* \
972 | --program-trans=* | --program-tran=* \
973 | --progr-tra=* | --program-tr=* | --program-t=*)
974 program_transform_name=$ac_optarg ;;
975
976 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
977 ac_prev=pdfdir ;;
978 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
979 pdfdir=$ac_optarg ;;
980
981 -psdir | --psdir | --psdi | --psd | --ps)
982 ac_prev=psdir ;;
983 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
984 psdir=$ac_optarg ;;
985
986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
987 | -silent | --silent | --silen | --sile | --sil)
988 silent=yes ;;
989
990 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
991 ac_prev=sbindir ;;
992 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
993 | --sbi=* | --sb=*)
994 sbindir=$ac_optarg ;;
995
996 -sharedstatedir | --sharedstatedir | --sharedstatedi \
997 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998 | --sharedst | --shareds | --shared | --share | --shar \
999 | --sha | --sh)
1000 ac_prev=sharedstatedir ;;
1001 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1004 | --sha=* | --sh=*)
1005 sharedstatedir=$ac_optarg ;;
1006
1007 -site | --site | --sit)
1008 ac_prev=site ;;
1009 -site=* | --site=* | --sit=*)
1010 site=$ac_optarg ;;
1011
1012 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1013 ac_prev=srcdir ;;
1014 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015 srcdir=$ac_optarg ;;
1016
1017 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018 | --syscon | --sysco | --sysc | --sys | --sy)
1019 ac_prev=sysconfdir ;;
1020 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022 sysconfdir=$ac_optarg ;;
1023
1024 -target | --target | --targe | --targ | --tar | --ta | --t)
1025 ac_prev=target_alias ;;
1026 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027 target_alias=$ac_optarg ;;
1028
1029 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1030 verbose=yes ;;
1031
1032 -version | --version | --versio | --versi | --vers | -V)
1033 ac_init_version=: ;;
1034
1035 -with-* | --with-*)
1036 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039 { echo "$as_me: error: invalid package name: $ac_package" >&2
1040 { (exit 1); exit 1; }; }
1041 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1042 eval with_$ac_package=\$ac_optarg ;;
1043
1044 -without-* | --without-*)
1045 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1048 { echo "$as_me: error: invalid package name: $ac_package" >&2
1049 { (exit 1); exit 1; }; }
1050 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1051 eval with_$ac_package=no ;;
1052
1053 --x)
1054 # Obsolete; use --with-x.
1055 with_x=yes ;;
1056
1057 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1058 | --x-incl | --x-inc | --x-in | --x-i)
1059 ac_prev=x_includes ;;
1060 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1061 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1062 x_includes=$ac_optarg ;;
1063
1064 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1065 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1066 ac_prev=x_libraries ;;
1067 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1068 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1069 x_libraries=$ac_optarg ;;
1070
1071 -*) { echo "$as_me: error: unrecognized option: $ac_option
1072 Try \`$0 --help' for more information." >&2
1073 { (exit 1); exit 1; }; }
1074 ;;
1075
1076 *=*)
1077 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1081 { (exit 1); exit 1; }; }
1082 eval $ac_envvar=\$ac_optarg
1083 export $ac_envvar ;;
1084
1085 *)
1086 # FIXME: should be removed in autoconf 3.0.
1087 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1088 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1090 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1091 ;;
1092
1093 esac
1094 done
1095
1096 if test -n "$ac_prev"; then
1097 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1098 { echo "$as_me: error: missing argument to $ac_option" >&2
1099 { (exit 1); exit 1; }; }
1100 fi
1101
1102 # Be sure to have absolute directory names.
1103 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1104 datadir sysconfdir sharedstatedir localstatedir includedir \
1105 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1106 libdir localedir mandir
1107 do
1108 eval ac_val=\$$ac_var
1109 case $ac_val in
1110 [\\/$]* | ?:[\\/]* ) continue;;
1111 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1112 esac
1113 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1114 { (exit 1); exit 1; }; }
1115 done
1116
1117 # There might be people who depend on the old broken behavior: `$host'
1118 # used to hold the argument of --host etc.
1119 # FIXME: To remove some day.
1120 build=$build_alias
1121 host=$host_alias
1122 target=$target_alias
1123
1124 # FIXME: To remove some day.
1125 if test "x$host_alias" != x; then
1126 if test "x$build_alias" = x; then
1127 cross_compiling=maybe
1128 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1129 If a cross compiler is detected then cross compile mode will be used." >&2
1130 elif test "x$build_alias" != "x$host_alias"; then
1131 cross_compiling=yes
1132 fi
1133 fi
1134
1135 ac_tool_prefix=
1136 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1137
1138 test "$silent" = yes && exec 6>/dev/null
1139
1140
1141 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1142 ac_ls_di=`ls -di .` &&
1143 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1144 { echo "$as_me: error: Working directory cannot be determined" >&2
1145 { (exit 1); exit 1; }; }
1146 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1147 { echo "$as_me: error: pwd does not report name of working directory" >&2
1148 { (exit 1); exit 1; }; }
1149
1150
1151 # Find the source files, if location was not specified.
1152 if test -z "$srcdir"; then
1153 ac_srcdir_defaulted=yes
1154 # Try the directory containing this script, then the parent directory.
1155 ac_confdir=`$as_dirname -- "$0" ||
1156 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1157 X"$0" : 'X\(//\)[^/]' \| \
1158 X"$0" : 'X\(//\)$' \| \
1159 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1160 echo X"$0" |
1161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1162 s//\1/
1163 q
1164 }
1165 /^X\(\/\/\)[^/].*/{
1166 s//\1/
1167 q
1168 }
1169 /^X\(\/\/\)$/{
1170 s//\1/
1171 q
1172 }
1173 /^X\(\/\).*/{
1174 s//\1/
1175 q
1176 }
1177 s/.*/./; q'`
1178 srcdir=$ac_confdir
1179 if test ! -r "$srcdir/$ac_unique_file"; then
1180 srcdir=..
1181 fi
1182 else
1183 ac_srcdir_defaulted=no
1184 fi
1185 if test ! -r "$srcdir/$ac_unique_file"; then
1186 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1187 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1188 { (exit 1); exit 1; }; }
1189 fi
1190 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1191 ac_abs_confdir=`(
1192 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1193 { (exit 1); exit 1; }; }
1194 pwd)`
1195 # When building in place, set srcdir=.
1196 if test "$ac_abs_confdir" = "$ac_pwd"; then
1197 srcdir=.
1198 fi
1199 # Remove unnecessary trailing slashes from srcdir.
1200 # Double slashes in file names in object file debugging info
1201 # mess up M-x gdb in Emacs.
1202 case $srcdir in
1203 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1204 esac
1205 for ac_var in $ac_precious_vars; do
1206 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1207 eval ac_env_${ac_var}_value=\$${ac_var}
1208 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1209 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1210 done
1211
1212 #
1213 # Report the --help message.
1214 #
1215 if test "$ac_init_help" = "long"; then
1216 # Omit some internal or obsolete options to make the list less imposing.
1217 # This message is too long to be a string in the A/UX 3.1 sh.
1218 cat <<_ACEOF
1219 \`configure' configures Enhanced CTorrent dnh3.3.2 to adapt to many kinds of systems.
1220
1221 Usage: $0 [OPTION]... [VAR=VALUE]...
1222
1223 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1224 VAR=VALUE. See below for descriptions of some of the useful variables.
1225
1226 Defaults for the options are specified in brackets.
1227
1228 Configuration:
1229 -h, --help display this help and exit
1230 --help=short display options specific to this package
1231 --help=recursive display the short help of all the included packages
1232 -V, --version display version information and exit
1233 -q, --quiet, --silent do not print \`checking...' messages
1234 --cache-file=FILE cache test results in FILE [disabled]
1235 -C, --config-cache alias for \`--cache-file=config.cache'
1236 -n, --no-create do not create output files
1237 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1238
1239 Installation directories:
1240 --prefix=PREFIX install architecture-independent files in PREFIX
1241 [$ac_default_prefix]
1242 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1243 [PREFIX]
1244
1245 By default, \`make install' will install all the files in
1246 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1247 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1248 for instance \`--prefix=\$HOME'.
1249
1250 For better control, use the options below.
1251
1252 Fine tuning of the installation directories:
1253 --bindir=DIR user executables [EPREFIX/bin]
1254 --sbindir=DIR system admin executables [EPREFIX/sbin]
1255 --libexecdir=DIR program executables [EPREFIX/libexec]
1256 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1257 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1258 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1259 --libdir=DIR object code libraries [EPREFIX/lib]
1260 --includedir=DIR C header files [PREFIX/include]
1261 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1262 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1263 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1264 --infodir=DIR info documentation [DATAROOTDIR/info]
1265 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1266 --mandir=DIR man documentation [DATAROOTDIR/man]
1267 --docdir=DIR documentation root [DATAROOTDIR/doc/ctorrent]
1268 --htmldir=DIR html documentation [DOCDIR]
1269 --dvidir=DIR dvi documentation [DOCDIR]
1270 --pdfdir=DIR pdf documentation [DOCDIR]
1271 --psdir=DIR ps documentation [DOCDIR]
1272 _ACEOF
1273
1274 cat <<\_ACEOF
1275
1276 Program names:
1277 --program-prefix=PREFIX prepend PREFIX to installed program names
1278 --program-suffix=SUFFIX append SUFFIX to installed program names
1279 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1280 _ACEOF
1281 fi
1282
1283 if test -n "$ac_init_help"; then
1284 case $ac_init_help in
1285 short | recursive ) echo "Configuration of Enhanced CTorrent dnh3.3.2:";;
1286 esac
1287 cat <<\_ACEOF
1288
1289 Optional Features:
1290 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1291 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1292 --disable-dependency-tracking speeds up one-time build
1293 --enable-dependency-tracking do not reject slow dependency extractors
1294 --disable-largefile omit support for large files
1295 --enable-profile enable code profiling
1296
1297 Optional Packages:
1298 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1299 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1300 --with-ssl=DIR use SSL libraries in DIR for SHA1 support
1301 --with-ssl=no use builtin (Steve Reid's public-domain) SHA-1 code
1302
1303 Some influential environment variables:
1304 CXX C++ compiler command
1305 CXXFLAGS C++ compiler flags
1306 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1307 nonstandard directory <lib dir>
1308 LIBS libraries to pass to the linker, e.g. -l<library>
1309 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1310 you have headers in a nonstandard directory <include dir>
1311 CC C compiler command
1312 CFLAGS C compiler flags
1313 CXXCPP C++ preprocessor
1314
1315 Use these variables to override the choices made by `configure' or to help
1316 it to find libraries and programs with nonstandard names/locations.
1317
1318 Report bugs to <http://sourceforge.net/projects/dtorrent/ or [email protected]>.
1319 _ACEOF
1320 ac_status=$?
1321 fi
1322
1323 if test "$ac_init_help" = "recursive"; then
1324 # If there are subdirs, report their specific --help.
1325 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1326 test -d "$ac_dir" || continue
1327 ac_builddir=.
1328
1329 case "$ac_dir" in
1330 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1331 *)
1332 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1333 # A ".." for each directory in $ac_dir_suffix.
1334 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1335 case $ac_top_builddir_sub in
1336 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1337 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1338 esac ;;
1339 esac
1340 ac_abs_top_builddir=$ac_pwd
1341 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1342 # for backward compatibility:
1343 ac_top_builddir=$ac_top_build_prefix
1344
1345 case $srcdir in
1346 .) # We are building in place.
1347 ac_srcdir=.
1348 ac_top_srcdir=$ac_top_builddir_sub
1349 ac_abs_top_srcdir=$ac_pwd ;;
1350 [\\/]* | ?:[\\/]* ) # Absolute name.
1351 ac_srcdir=$srcdir$ac_dir_suffix;
1352 ac_top_srcdir=$srcdir
1353 ac_abs_top_srcdir=$srcdir ;;
1354 *) # Relative name.
1355 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1356 ac_top_srcdir=$ac_top_build_prefix$srcdir
1357 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1358 esac
1359 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1360
1361 cd "$ac_dir" || { ac_status=$?; continue; }
1362 # Check for guested configure.
1363 if test -f "$ac_srcdir/configure.gnu"; then
1364 echo &&
1365 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1366 elif test -f "$ac_srcdir/configure"; then
1367 echo &&
1368 $SHELL "$ac_srcdir/configure" --help=recursive
1369 else
1370 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1371 fi || ac_status=$?
1372 cd "$ac_pwd" || { ac_status=$?; break; }
1373 done
1374 fi
1375
1376 test -n "$ac_init_help" && exit $ac_status
1377 if $ac_init_version; then
1378 cat <<\_ACEOF
1379 Enhanced CTorrent configure dnh3.3.2
1380 generated by GNU Autoconf 2.61
1381
1382 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1383 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1384 This configure script is free software; the Free Software Foundation
1385 gives unlimited permission to copy, distribute and modify it.
1386 _ACEOF
1387 exit
1388 fi
1389 cat >config.log <<_ACEOF
1390 This file contains any messages produced by compilers while
1391 running configure, to aid debugging if configure makes a mistake.
1392
1393 It was created by Enhanced CTorrent $as_me dnh3.3.2, which was
1394 generated by GNU Autoconf 2.61. Invocation command line was
1395
1396 $ $0 $@
1397
1398 _ACEOF
1399 exec 5>>config.log
1400 {
1401 cat <<_ASUNAME
1402 ## --------- ##
1403 ## Platform. ##
1404 ## --------- ##
1405
1406 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1407 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1408 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1409 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1410 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1411
1412 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1413 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1414
1415 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1416 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1417 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1418 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1419 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1420 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1421 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1422
1423 _ASUNAME
1424
1425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1426 for as_dir in $PATH
1427 do
1428 IFS=$as_save_IFS
1429 test -z "$as_dir" && as_dir=.
1430 echo "PATH: $as_dir"
1431 done
1432 IFS=$as_save_IFS
1433
1434 } >&5
1435
1436 cat >&5 <<_ACEOF
1437
1438
1439 ## ----------- ##
1440 ## Core tests. ##
1441 ## ----------- ##
1442
1443 _ACEOF
1444
1445
1446 # Keep a trace of the command line.
1447 # Strip out --no-create and --no-recursion so they do not pile up.
1448 # Strip out --silent because we don't want to record it for future runs.
1449 # Also quote any args containing shell meta-characters.
1450 # Make two passes to allow for proper duplicate-argument suppression.
1451 ac_configure_args=
1452 ac_configure_args0=
1453 ac_configure_args1=
1454 ac_must_keep_next=false
1455 for ac_pass in 1 2
1456 do
1457 for ac_arg
1458 do
1459 case $ac_arg in
1460 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1461 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1462 | -silent | --silent | --silen | --sile | --sil)
1463 continue ;;
1464 *\'*)
1465 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1466 esac
1467 case $ac_pass in
1468 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1469 2)
1470 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1471 if test $ac_must_keep_next = true; then
1472 ac_must_keep_next=false # Got value, back to normal.
1473 else
1474 case $ac_arg in
1475 *=* | --config-cache | -C | -disable-* | --disable-* \
1476 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1477 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1478 | -with-* | --with-* | -without-* | --without-* | --x)
1479 case "$ac_configure_args0 " in
1480 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1481 esac
1482 ;;
1483 -* ) ac_must_keep_next=true ;;
1484 esac
1485 fi
1486 ac_configure_args="$ac_configure_args '$ac_arg'"
1487 ;;
1488 esac
1489 done
1490 done
1491 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1492 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1493
1494 # When interrupted or exit'd, cleanup temporary files, and complete
1495 # config.log. We remove comments because anyway the quotes in there
1496 # would cause problems or look ugly.
1497 # WARNING: Use '\'' to represent an apostrophe within the trap.
1498 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1499 trap 'exit_status=$?
1500 # Save into config.log some information that might help in debugging.
1501 {
1502 echo
1503
1504 cat <<\_ASBOX
1505 ## ---------------- ##
1506 ## Cache variables. ##
1507 ## ---------------- ##
1508 _ASBOX
1509 echo
1510 # The following way of writing the cache mishandles newlines in values,
1511 (
1512 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1513 eval ac_val=\$$ac_var
1514 case $ac_val in #(
1515 *${as_nl}*)
1516 case $ac_var in #(
1517 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1518 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1519 esac
1520 case $ac_var in #(
1521 _ | IFS | as_nl) ;; #(
1522 *) $as_unset $ac_var ;;
1523 esac ;;
1524 esac
1525 done
1526 (set) 2>&1 |
1527 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1528 *${as_nl}ac_space=\ *)
1529 sed -n \
1530 "s/'\''/'\''\\\\'\'''\''/g;
1531 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1532 ;; #(
1533 *)
1534 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1535 ;;
1536 esac |
1537 sort
1538 )
1539 echo
1540
1541 cat <<\_ASBOX
1542 ## ----------------- ##
1543 ## Output variables. ##
1544 ## ----------------- ##
1545 _ASBOX
1546 echo
1547 for ac_var in $ac_subst_vars
1548 do
1549 eval ac_val=\$$ac_var
1550 case $ac_val in
1551 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1552 esac
1553 echo "$ac_var='\''$ac_val'\''"
1554 done | sort
1555 echo
1556
1557 if test -n "$ac_subst_files"; then
1558 cat <<\_ASBOX
1559 ## ------------------- ##
1560 ## File substitutions. ##
1561 ## ------------------- ##
1562 _ASBOX
1563 echo
1564 for ac_var in $ac_subst_files
1565 do
1566 eval ac_val=\$$ac_var
1567 case $ac_val in
1568 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1569 esac
1570 echo "$ac_var='\''$ac_val'\''"
1571 done | sort
1572 echo
1573 fi
1574
1575 if test -s confdefs.h; then
1576 cat <<\_ASBOX
1577 ## ----------- ##
1578 ## confdefs.h. ##
1579 ## ----------- ##
1580 _ASBOX
1581 echo
1582 cat confdefs.h
1583 echo
1584 fi
1585 test "$ac_signal" != 0 &&
1586 echo "$as_me: caught signal $ac_signal"
1587 echo "$as_me: exit $exit_status"
1588 } >&5
1589 rm -f core *.core core.conftest.* &&
1590 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1591 exit $exit_status
1592 ' 0
1593 for ac_signal in 1 2 13 15; do
1594 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1595 done
1596 ac_signal=0
1597
1598 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1599 rm -f -r conftest* confdefs.h
1600
1601 # Predefined preprocessor variables.
1602
1603 cat >>confdefs.h <<_ACEOF
1604 #define PACKAGE_NAME "$PACKAGE_NAME"
1605 _ACEOF
1606
1607
1608 cat >>confdefs.h <<_ACEOF
1609 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1610 _ACEOF
1611
1612
1613 cat >>confdefs.h <<_ACEOF
1614 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1615 _ACEOF
1616
1617
1618 cat >>confdefs.h <<_ACEOF
1619 #define PACKAGE_STRING "$PACKAGE_STRING"
1620 _ACEOF
1621
1622
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1625 _ACEOF
1626
1627
1628 # Let the site file select an alternate cache file if it wants to.
1629 # Prefer explicitly selected file to automatically selected ones.
1630 if test -n "$CONFIG_SITE"; then
1631 set x "$CONFIG_SITE"
1632 elif test "x$prefix" != xNONE; then
1633 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1634 else
1635 set x "$ac_default_prefix/share/config.site" \
1636 "$ac_default_prefix/etc/config.site"
1637 fi
1638 shift
1639 for ac_site_file
1640 do
1641 if test -r "$ac_site_file"; then
1642 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1643 echo "$as_me: loading site script $ac_site_file" >&6;}
1644 sed 's/^/| /' "$ac_site_file" >&5
1645 . "$ac_site_file"
1646 fi
1647 done
1648
1649 if test -r "$cache_file"; then
1650 # Some versions of bash will fail to source /dev/null (special
1651 # files actually), so we avoid doing that.
1652 if test -f "$cache_file"; then
1653 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1654 echo "$as_me: loading cache $cache_file" >&6;}
1655 case $cache_file in
1656 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1657 *) . "./$cache_file";;
1658 esac
1659 fi
1660 else
1661 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1662 echo "$as_me: creating cache $cache_file" >&6;}
1663 >$cache_file
1664 fi
1665
1666 # Check that the precious variables saved in the cache have kept the same
1667 # value.
1668 ac_cache_corrupted=false
1669 for ac_var in $ac_precious_vars; do
1670 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1671 eval ac_new_set=\$ac_env_${ac_var}_set
1672 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1673 eval ac_new_val=\$ac_env_${ac_var}_value
1674 case $ac_old_set,$ac_new_set in
1675 set,)
1676 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1677 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1678 ac_cache_corrupted=: ;;
1679 ,set)
1680 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1681 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1682 ac_cache_corrupted=: ;;
1683 ,);;
1684 *)
1685 if test "x$ac_old_val" != "x$ac_new_val"; then
1686 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1687 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1688 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1689 echo "$as_me: former value: $ac_old_val" >&2;}
1690 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1691 echo "$as_me: current value: $ac_new_val" >&2;}
1692 ac_cache_corrupted=:
1693 fi;;
1694 esac
1695 # Pass precious variables to config.status.
1696 if test "$ac_new_set" = set; then
1697 case $ac_new_val in
1698 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1699 *) ac_arg=$ac_var=$ac_new_val ;;
1700 esac
1701 case " $ac_configure_args " in
1702 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1703 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1704 esac
1705 fi
1706 done
1707 if $ac_cache_corrupted; then
1708 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1709 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1710 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1711 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1712 { (exit 1); exit 1; }; }
1713 fi
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739 ac_ext=c
1740 ac_cpp='$CPP $CPPFLAGS'
1741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1744
1745
1746 am__api_version="1.9"
1747 ac_aux_dir=
1748 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1749 if test -f "$ac_dir/install-sh"; then
1750 ac_aux_dir=$ac_dir
1751 ac_install_sh="$ac_aux_dir/install-sh -c"
1752 break
1753 elif test -f "$ac_dir/install.sh"; then
1754 ac_aux_dir=$ac_dir
1755 ac_install_sh="$ac_aux_dir/install.sh -c"
1756 break
1757 elif test -f "$ac_dir/shtool"; then
1758 ac_aux_dir=$ac_dir
1759 ac_install_sh="$ac_aux_dir/shtool install -c"
1760 break
1761 fi
1762 done
1763 if test -z "$ac_aux_dir"; then
1764 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1765 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1766 { (exit 1); exit 1; }; }
1767 fi
1768
1769 # These three variables are undocumented and unsupported,
1770 # and are intended to be withdrawn in a future Autoconf release.
1771 # They can cause serious problems if a builder's source tree is in a directory
1772 # whose full name contains unusual characters.
1773 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1774 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1775 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1776
1777
1778 # Find a good install program. We prefer a C program (faster),
1779 # so one script is as good as another. But avoid the broken or
1780 # incompatible versions:
1781 # SysV /etc/install, /usr/sbin/install
1782 # SunOS /usr/etc/install
1783 # IRIX /sbin/install
1784 # AIX /bin/install
1785 # AmigaOS /C/install, which installs bootblocks on floppy discs
1786 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1787 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1788 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1789 # OS/2's system install, which has a completely different semantic
1790 # ./install, which can be erroneously created by make from ./install.sh.
1791 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1792 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1793 if test -z "$INSTALL"; then
1794 if test "${ac_cv_path_install+set}" = set; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 else
1797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 for as_dir in $PATH
1799 do
1800 IFS=$as_save_IFS
1801 test -z "$as_dir" && as_dir=.
1802 # Account for people who put trailing slashes in PATH elements.
1803 case $as_dir/ in
1804 ./ | .// | /cC/* | \
1805 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1806 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1807 /usr/ucb/* ) ;;
1808 *)
1809 # OSF1 and SCO ODT 3.0 have their own names for install.
1810 # Don't use installbsd from OSF since it installs stuff as root
1811 # by default.
1812 for ac_prog in ginstall scoinst install; do
1813 for ac_exec_ext in '' $ac_executable_extensions; do
1814 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1815 if test $ac_prog = install &&
1816 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1817 # AIX install. It has an incompatible calling convention.
1818 :
1819 elif test $ac_prog = install &&
1820 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1821 # program-specific install script used by HP pwplus--don't use.
1822 :
1823 else
1824 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1825 break 3
1826 fi
1827 fi
1828 done
1829 done
1830 ;;
1831 esac
1832 done
1833 IFS=$as_save_IFS
1834
1835
1836 fi
1837 if test "${ac_cv_path_install+set}" = set; then
1838 INSTALL=$ac_cv_path_install
1839 else
1840 # As a last resort, use the slow shell script. Don't cache a
1841 # value for INSTALL within a source directory, because that will
1842 # break other packages using the cache if that directory is
1843 # removed, or if the value is a relative name.
1844 INSTALL=$ac_install_sh
1845 fi
1846 fi
1847 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1848 echo "${ECHO_T}$INSTALL" >&6; }
1849
1850 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1851 # It thinks the first close brace ends the variable substitution.
1852 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1853
1854 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1855
1856 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1857
1858 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1859 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1860 # Just in case
1861 sleep 1
1862 echo timestamp > conftest.file
1863 # Do `set' in a subshell so we don't clobber the current shell's
1864 # arguments. Must try -L first in case configure is actually a
1865 # symlink; some systems play weird games with the mod time of symlinks
1866 # (eg FreeBSD returns the mod time of the symlink's containing
1867 # directory).
1868 if (
1869 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1870 if test "$*" = "X"; then
1871 # -L didn't work.
1872 set X `ls -t $srcdir/configure conftest.file`
1873 fi
1874 rm -f conftest.file
1875 if test "$*" != "X $srcdir/configure conftest.file" \
1876 && test "$*" != "X conftest.file $srcdir/configure"; then
1877
1878 # If neither matched, then we have a broken ls. This can happen
1879 # if, for instance, CONFIG_SHELL is bash and it inherits a
1880 # broken ls alias from the environment. This has actually
1881 # happened. Such a system could not be considered "sane".
1882 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1883 alias in your environment" >&5
1884 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1885 alias in your environment" >&2;}
1886 { (exit 1); exit 1; }; }
1887 fi
1888
1889 test "$2" = conftest.file
1890 )
1891 then
1892 # Ok.
1893 :
1894 else
1895 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1896 Check your system clock" >&5
1897 echo "$as_me: error: newly created file is older than distributed files!
1898 Check your system clock" >&2;}
1899 { (exit 1); exit 1; }; }
1900 fi
1901 { echo "$as_me:$LINENO: result: yes" >&5
1902 echo "${ECHO_T}yes" >&6; }
1903 test "$program_prefix" != NONE &&
1904 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1905 # Use a double $ so make ignores it.
1906 test "$program_suffix" != NONE &&
1907 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1908 # Double any \ or $. echo might interpret backslashes.
1909 # By default was `s,x,x', remove it if useless.
1910 cat <<\_ACEOF >conftest.sed
1911 s/[\\$]/&&/g;s/;s,x,x,$//
1912 _ACEOF
1913 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1914 rm -f conftest.sed
1915
1916 # expand $ac_aux_dir to an absolute path
1917 am_aux_dir=`cd $ac_aux_dir && pwd`
1918
1919 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1920 # Use eval to expand $SHELL
1921 if eval "$MISSING --run true"; then
1922 am_missing_run="$MISSING --run "
1923 else
1924 am_missing_run=
1925 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1926 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1927 fi
1928
1929 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1930 # We used to keeping the `.' as first argument, in order to
1931 # allow $(mkdir_p) to be used without argument. As in
1932 # $(mkdir_p) $(somedir)
1933 # where $(somedir) is conditionally defined. However this is wrong
1934 # for two reasons:
1935 # 1. if the package is installed by a user who cannot write `.'
1936 # make install will fail,
1937 # 2. the above comment should most certainly read
1938 # $(mkdir_p) $(DESTDIR)$(somedir)
1939 # so it does not work when $(somedir) is undefined and
1940 # $(DESTDIR) is not.
1941 # To support the latter case, we have to write
1942 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1943 # so the `.' trick is pointless.
1944 mkdir_p='mkdir -p --'
1945 else
1946 # On NextStep and OpenStep, the `mkdir' command does not
1947 # recognize any option. It will interpret all options as
1948 # directories to create, and then abort because `.' already
1949 # exists.
1950 for d in ./-p ./--version;
1951 do
1952 test -d $d && rmdir $d
1953 done
1954 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1955 if test -f "$ac_aux_dir/mkinstalldirs"; then
1956 mkdir_p='$(mkinstalldirs)'
1957 else
1958 mkdir_p='$(install_sh) -d'
1959 fi
1960 fi
1961
1962 for ac_prog in gawk mawk nawk awk
1963 do
1964 # Extract the first word of "$ac_prog", so it can be a program name with args.
1965 set dummy $ac_prog; ac_word=$2
1966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1968 if test "${ac_cv_prog_AWK+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971 if test -n "$AWK"; then
1972 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1973 else
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1976 do
1977 IFS=$as_save_IFS
1978 test -z "$as_dir" && as_dir=.
1979 for ac_exec_ext in '' $ac_executable_extensions; do
1980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1981 ac_cv_prog_AWK="$ac_prog"
1982 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 fi
1990 fi
1991 AWK=$ac_cv_prog_AWK
1992 if test -n "$AWK"; then
1993 { echo "$as_me:$LINENO: result: $AWK" >&5
1994 echo "${ECHO_T}$AWK" >&6; }
1995 else
1996 { echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6; }
1998 fi
1999
2000
2001 test -n "$AWK" && break
2002 done
2003
2004 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2005 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2006 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2007 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010 cat >conftest.make <<\_ACEOF
2011 SHELL = /bin/sh
2012 all:
2013 @echo '@@@%%%=$(MAKE)=@@@%%%'
2014 _ACEOF
2015 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2016 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2017 *@@@%%%=?*=@@@%%%*)
2018 eval ac_cv_prog_make_${ac_make}_set=yes;;
2019 *)
2020 eval ac_cv_prog_make_${ac_make}_set=no;;
2021 esac
2022 rm -f conftest.make
2023 fi
2024 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2025 { echo "$as_me:$LINENO: result: yes" >&5
2026 echo "${ECHO_T}yes" >&6; }
2027 SET_MAKE=
2028 else
2029 { echo "$as_me:$LINENO: result: no" >&5
2030 echo "${ECHO_T}no" >&6; }
2031 SET_MAKE="MAKE=${MAKE-make}"
2032 fi
2033
2034 rm -rf .tst 2>/dev/null
2035 mkdir .tst 2>/dev/null
2036 if test -d .tst; then
2037 am__leading_dot=.
2038 else
2039 am__leading_dot=_
2040 fi
2041 rmdir .tst 2>/dev/null
2042
2043 # test to see if srcdir already configured
2044 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2045 test -f $srcdir/config.status; then
2046 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2047 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2048 { (exit 1); exit 1; }; }
2049 fi
2050
2051 # test whether we have cygpath
2052 if test -z "$CYGPATH_W"; then
2053 if (cygpath --version) >/dev/null 2>/dev/null; then
2054 CYGPATH_W='cygpath -w'
2055 else
2056 CYGPATH_W=echo
2057 fi
2058 fi
2059
2060
2061 # Define the identity of the package.
2062 PACKAGE=ctorrent
2063 VERSION=dnh3.3.2
2064
2065
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE "$PACKAGE"
2068 _ACEOF
2069
2070
2071 cat >>confdefs.h <<_ACEOF
2072 #define VERSION "$VERSION"
2073 _ACEOF
2074
2075 # Some tools Automake needs.
2076
2077 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2078
2079
2080 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2081
2082
2083 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2084
2085
2086 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2087
2088
2089 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2090
2091 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2092
2093 # Installed binaries are usually stripped using `strip' when the user
2094 # run `make install-strip'. However `strip' might not be the right
2095 # tool to use in cross-compilation environments, therefore Automake
2096 # will honor the `STRIP' environment variable to overrule this program.
2097 if test "$cross_compiling" != no; then
2098 if test -n "$ac_tool_prefix"; then
2099 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2100 set dummy ${ac_tool_prefix}strip; ac_word=$2
2101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2103 if test "${ac_cv_prog_STRIP+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106 if test -n "$STRIP"; then
2107 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2108 else
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2111 do
2112 IFS=$as_save_IFS
2113 test -z "$as_dir" && as_dir=.
2114 for ac_exec_ext in '' $ac_executable_extensions; do
2115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2116 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118 break 2
2119 fi
2120 done
2121 done
2122 IFS=$as_save_IFS
2123
2124 fi
2125 fi
2126 STRIP=$ac_cv_prog_STRIP
2127 if test -n "$STRIP"; then
2128 { echo "$as_me:$LINENO: result: $STRIP" >&5
2129 echo "${ECHO_T}$STRIP" >&6; }
2130 else
2131 { echo "$as_me:$LINENO: result: no" >&5
2132 echo "${ECHO_T}no" >&6; }
2133 fi
2134
2135
2136 fi
2137 if test -z "$ac_cv_prog_STRIP"; then
2138 ac_ct_STRIP=$STRIP
2139 # Extract the first word of "strip", so it can be a program name with args.
2140 set dummy strip; ac_word=$2
2141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2143 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 else
2146 if test -n "$ac_ct_STRIP"; then
2147 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2148 else
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150 for as_dir in $PATH
2151 do
2152 IFS=$as_save_IFS
2153 test -z "$as_dir" && as_dir=.
2154 for ac_exec_ext in '' $ac_executable_extensions; do
2155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2156 ac_cv_prog_ac_ct_STRIP="strip"
2157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 break 2
2159 fi
2160 done
2161 done
2162 IFS=$as_save_IFS
2163
2164 fi
2165 fi
2166 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2167 if test -n "$ac_ct_STRIP"; then
2168 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2169 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2170 else
2171 { echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6; }
2173 fi
2174
2175 if test "x$ac_ct_STRIP" = x; then
2176 STRIP=":"
2177 else
2178 case $cross_compiling:$ac_tool_warned in
2179 yes:)
2180 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2181 whose name does not start with the host triplet. If you think this
2182 configuration is useful to you, please write to [email protected]." >&5
2183 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2184 whose name does not start with the host triplet. If you think this
2185 configuration is useful to you, please write to [email protected]." >&2;}
2186 ac_tool_warned=yes ;;
2187 esac
2188 STRIP=$ac_ct_STRIP
2189 fi
2190 else
2191 STRIP="$ac_cv_prog_STRIP"
2192 fi
2193
2194 fi
2195 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2196
2197 # We need awk for the "check" target. The system "awk" is bad on
2198 # some platforms.
2199 # Always define AMTAR for backward compatibility.
2200
2201 AMTAR=${AMTAR-"${am_missing_run}tar"}
2202
2203 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2204
2205
2206
2207
2208
2209 ac_config_headers="$ac_config_headers config.h"
2210
2211 ac_config_files="$ac_config_files Makefile"
2212
2213
2214
2215
2216 # Checks for programs.
2217 ac_ext=cpp
2218 ac_cpp='$CXXCPP $CPPFLAGS'
2219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2222 if test -z "$CXX"; then
2223 if test -n "$CCC"; then
2224 CXX=$CCC
2225 else
2226 if test -n "$ac_tool_prefix"; then
2227 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2228 do
2229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 if test "${ac_cv_prog_CXX+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236 if test -n "$CXX"; then
2237 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2238 else
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2246 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 break 2
2249 fi
2250 done
2251 done
2252 IFS=$as_save_IFS
2253
2254 fi
2255 fi
2256 CXX=$ac_cv_prog_CXX
2257 if test -n "$CXX"; then
2258 { echo "$as_me:$LINENO: result: $CXX" >&5
2259 echo "${ECHO_T}$CXX" >&6; }
2260 else
2261 { echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6; }
2263 fi
2264
2265
2266 test -n "$CXX" && break
2267 done
2268 fi
2269 if test -z "$CXX"; then
2270 ac_ct_CXX=$CXX
2271 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2272 do
2273 # Extract the first word of "$ac_prog", so it can be a program name with args.
2274 set dummy $ac_prog; ac_word=$2
2275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2277 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280 if test -n "$ac_ct_CXX"; then
2281 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
2289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290 ac_cv_prog_ac_ct_CXX="$ac_prog"
2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 break 2
2293 fi
2294 done
2295 done
2296 IFS=$as_save_IFS
2297
2298 fi
2299 fi
2300 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2301 if test -n "$ac_ct_CXX"; then
2302 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2303 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2304 else
2305 { echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6; }
2307 fi
2308
2309
2310 test -n "$ac_ct_CXX" && break
2311 done
2312
2313 if test "x$ac_ct_CXX" = x; then
2314 CXX="g++"
2315 else
2316 case $cross_compiling:$ac_tool_warned in
2317 yes:)
2318 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2319 whose name does not start with the host triplet. If you think this
2320 configuration is useful to you, please write to [email protected]." >&5
2321 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2322 whose name does not start with the host triplet. If you think this
2323 configuration is useful to you, please write to [email protected]." >&2;}
2324 ac_tool_warned=yes ;;
2325 esac
2326 CXX=$ac_ct_CXX
2327 fi
2328 fi
2329
2330 fi
2331 fi
2332 # Provide some information about the compiler.
2333 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2334 ac_compiler=`set X $ac_compile; echo $2`
2335 { (ac_try="$ac_compiler --version >&5"
2336 case "(($ac_try" in
2337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338 *) ac_try_echo=$ac_try;;
2339 esac
2340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2341 (eval "$ac_compiler --version >&5") 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }
2345 { (ac_try="$ac_compiler -v >&5"
2346 case "(($ac_try" in
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2349 esac
2350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2351 (eval "$ac_compiler -v >&5") 2>&5
2352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }
2355 { (ac_try="$ac_compiler -V >&5"
2356 case "(($ac_try" in
2357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2358 *) ac_try_echo=$ac_try;;
2359 esac
2360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2361 (eval "$ac_compiler -V >&5") 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }
2365
2366 cat >conftest.$ac_ext <<_ACEOF
2367 /* confdefs.h. */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2372
2373 int
2374 main ()
2375 {
2376
2377 ;
2378 return 0;
2379 }
2380 _ACEOF
2381 ac_clean_files_save=$ac_clean_files
2382 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2383 # Try to create an executable without -o first, disregard a.out.
2384 # It will help us diagnose broken compilers, and finding out an intuition
2385 # of exeext.
2386 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2387 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2388 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2389 #
2390 # List of possible output files, starting from the most likely.
2391 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2392 # only as a last resort. b.out is created by i960 compilers.
2393 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2394 #
2395 # The IRIX 6 linker writes into existing files which may not be
2396 # executable, retaining their permissions. Remove them first so a
2397 # subsequent execution test works.
2398 ac_rmfiles=
2399 for ac_file in $ac_files
2400 do
2401 case $ac_file in
2402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2403 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2404 esac
2405 done
2406 rm -f $ac_rmfiles
2407
2408 if { (ac_try="$ac_link_default"
2409 case "(($ac_try" in
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2412 esac
2413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414 (eval "$ac_link_default") 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; then
2418 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2419 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2420 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2421 # so that the user can short-circuit this test for compilers unknown to
2422 # Autoconf.
2423 for ac_file in $ac_files ''
2424 do
2425 test -f "$ac_file" || continue
2426 case $ac_file in
2427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2428 ;;
2429 [ab].out )
2430 # We found the default executable, but exeext='' is most
2431 # certainly right.
2432 break;;
2433 *.* )
2434 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2435 then :; else
2436 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2437 fi
2438 # We set ac_cv_exeext here because the later test for it is not
2439 # safe: cross compilers may not add the suffix if given an `-o'
2440 # argument, so we may need to know it at that point already.
2441 # Even if this section looks crufty: it has the advantage of
2442 # actually working.
2443 break;;
2444 * )
2445 break;;
2446 esac
2447 done
2448 test "$ac_cv_exeext" = no && ac_cv_exeext=
2449
2450 else
2451 ac_file=''
2452 fi
2453
2454 { echo "$as_me:$LINENO: result: $ac_file" >&5
2455 echo "${ECHO_T}$ac_file" >&6; }
2456 if test -z "$ac_file"; then
2457 echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2459
2460 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2461 See \`config.log' for more details." >&5
2462 echo "$as_me: error: C++ compiler cannot create executables
2463 See \`config.log' for more details." >&2;}
2464 { (exit 77); exit 77; }; }
2465 fi
2466
2467 ac_exeext=$ac_cv_exeext
2468
2469 # Check that the compiler produces executables we can run. If not, either
2470 # the compiler is broken, or we cross compile.
2471 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2472 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2473 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2474 # If not cross compiling, check that we can run a simple program.
2475 if test "$cross_compiling" != yes; then
2476 if { ac_try='./$ac_file'
2477 { (case "(($ac_try" in
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2480 esac
2481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2482 (eval "$ac_try") 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2486 cross_compiling=no
2487 else
2488 if test "$cross_compiling" = maybe; then
2489 cross_compiling=yes
2490 else
2491 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2492 If you meant to cross compile, use \`--host'.
2493 See \`config.log' for more details." >&5
2494 echo "$as_me: error: cannot run C++ compiled programs.
2495 If you meant to cross compile, use \`--host'.
2496 See \`config.log' for more details." >&2;}
2497 { (exit 1); exit 1; }; }
2498 fi
2499 fi
2500 fi
2501 { echo "$as_me:$LINENO: result: yes" >&5
2502 echo "${ECHO_T}yes" >&6; }
2503
2504 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2505 ac_clean_files=$ac_clean_files_save
2506 # Check that the compiler produces executables we can run. If not, either
2507 # the compiler is broken, or we cross compile.
2508 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2509 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2510 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2511 echo "${ECHO_T}$cross_compiling" >&6; }
2512
2513 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2514 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2515 if { (ac_try="$ac_link"
2516 case "(($ac_try" in
2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518 *) ac_try_echo=$ac_try;;
2519 esac
2520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2521 (eval "$ac_link") 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; then
2525 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2526 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2527 # work properly (i.e., refer to `conftest.exe'), while it won't with
2528 # `rm'.
2529 for ac_file in conftest.exe conftest conftest.*; do
2530 test -f "$ac_file" || continue
2531 case $ac_file in
2532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2533 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2534 break;;
2535 * ) break;;
2536 esac
2537 done
2538 else
2539 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2540 See \`config.log' for more details." >&5
2541 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2542 See \`config.log' for more details." >&2;}
2543 { (exit 1); exit 1; }; }
2544 fi
2545
2546 rm -f conftest$ac_cv_exeext
2547 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2548 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2549
2550 rm -f conftest.$ac_ext
2551 EXEEXT=$ac_cv_exeext
2552 ac_exeext=$EXEEXT
2553 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2554 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2555 if test "${ac_cv_objext+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558 cat >conftest.$ac_ext <<_ACEOF
2559 /* confdefs.h. */
2560 _ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2564
2565 int
2566 main ()
2567 {
2568
2569 ;
2570 return 0;
2571 }
2572 _ACEOF
2573 rm -f conftest.o conftest.obj
2574 if { (ac_try="$ac_compile"
2575 case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578 esac
2579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_compile") 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; then
2584 for ac_file in conftest.o conftest.obj conftest.*; do
2585 test -f "$ac_file" || continue;
2586 case $ac_file in
2587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2588 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2589 break;;
2590 esac
2591 done
2592 else
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2597 See \`config.log' for more details." >&5
2598 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2599 See \`config.log' for more details." >&2;}
2600 { (exit 1); exit 1; }; }
2601 fi
2602
2603 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2604 fi
2605 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2606 echo "${ECHO_T}$ac_cv_objext" >&6; }
2607 OBJEXT=$ac_cv_objext
2608 ac_objext=$OBJEXT
2609 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2610 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2611 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2613 else
2614 cat >conftest.$ac_ext <<_ACEOF
2615 /* confdefs.h. */
2616 _ACEOF
2617 cat confdefs.h >>conftest.$ac_ext
2618 cat >>conftest.$ac_ext <<_ACEOF
2619 /* end confdefs.h. */
2620
2621 int
2622 main ()
2623 {
2624 #ifndef __GNUC__
2625 choke me
2626 #endif
2627
2628 ;
2629 return 0;
2630 }
2631 _ACEOF
2632 rm -f conftest.$ac_objext
2633 if { (ac_try="$ac_compile"
2634 case "(($ac_try" in
2635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636 *) ac_try_echo=$ac_try;;
2637 esac
2638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2639 (eval "$ac_compile") 2>conftest.er1
2640 ac_status=$?
2641 grep -v '^ *+' conftest.er1 >conftest.err
2642 rm -f conftest.er1
2643 cat conftest.err >&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); } && {
2646 test -z "$ac_cxx_werror_flag" ||
2647 test ! -s conftest.err
2648 } && test -s conftest.$ac_objext; then
2649 ac_compiler_gnu=yes
2650 else
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654 ac_compiler_gnu=no
2655 fi
2656
2657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2658 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2659
2660 fi
2661 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2662 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2663 GXX=`test $ac_compiler_gnu = yes && echo yes`
2664 ac_test_CXXFLAGS=${CXXFLAGS+set}
2665 ac_save_CXXFLAGS=$CXXFLAGS
2666 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2667 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2668 if test "${ac_cv_prog_cxx_g+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 else
2671 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2672 ac_cxx_werror_flag=yes
2673 ac_cv_prog_cxx_g=no
2674 CXXFLAGS="-g"
2675 cat >conftest.$ac_ext <<_ACEOF
2676 /* confdefs.h. */
2677 _ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h. */
2681
2682 int
2683 main ()
2684 {
2685
2686 ;
2687 return 0;
2688 }
2689 _ACEOF
2690 rm -f conftest.$ac_objext
2691 if { (ac_try="$ac_compile"
2692 case "(($ac_try" in
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2695 esac
2696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697 (eval "$ac_compile") 2>conftest.er1
2698 ac_status=$?
2699 grep -v '^ *+' conftest.er1 >conftest.err
2700 rm -f conftest.er1
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } && {
2704 test -z "$ac_cxx_werror_flag" ||
2705 test ! -s conftest.err
2706 } && test -s conftest.$ac_objext; then
2707 ac_cv_prog_cxx_g=yes
2708 else
2709 echo "$as_me: failed program was:" >&5
2710 sed 's/^/| /' conftest.$ac_ext >&5
2711
2712 CXXFLAGS=""
2713 cat >conftest.$ac_ext <<_ACEOF
2714 /* confdefs.h. */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2719
2720 int
2721 main ()
2722 {
2723
2724 ;
2725 return 0;
2726 }
2727 _ACEOF
2728 rm -f conftest.$ac_objext
2729 if { (ac_try="$ac_compile"
2730 case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733 esac
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_compile") 2>conftest.er1
2736 ac_status=$?
2737 grep -v '^ *+' conftest.er1 >conftest.err
2738 rm -f conftest.er1
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } && {
2742 test -z "$ac_cxx_werror_flag" ||
2743 test ! -s conftest.err
2744 } && test -s conftest.$ac_objext; then
2745 :
2746 else
2747 echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2749
2750 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2751 CXXFLAGS="-g"
2752 cat >conftest.$ac_ext <<_ACEOF
2753 /* confdefs.h. */
2754 _ACEOF
2755 cat confdefs.h >>conftest.$ac_ext
2756 cat >>conftest.$ac_ext <<_ACEOF
2757 /* end confdefs.h. */
2758
2759 int
2760 main ()
2761 {
2762
2763 ;
2764 return 0;
2765 }
2766 _ACEOF
2767 rm -f conftest.$ac_objext
2768 if { (ac_try="$ac_compile"
2769 case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772 esac
2773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774 (eval "$ac_compile") 2>conftest.er1
2775 ac_status=$?
2776 grep -v '^ *+' conftest.er1 >conftest.err
2777 rm -f conftest.er1
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } && {
2781 test -z "$ac_cxx_werror_flag" ||
2782 test ! -s conftest.err
2783 } && test -s conftest.$ac_objext; then
2784 ac_cv_prog_cxx_g=yes
2785 else
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2788
2789
2790 fi
2791
2792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2793 fi
2794
2795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2796 fi
2797
2798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2799 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2800 fi
2801 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2802 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2803 if test "$ac_test_CXXFLAGS" = set; then
2804 CXXFLAGS=$ac_save_CXXFLAGS
2805 elif test $ac_cv_prog_cxx_g = yes; then
2806 if test "$GXX" = yes; then
2807 CXXFLAGS="-g -O2"
2808 else
2809 CXXFLAGS="-g"
2810 fi
2811 else
2812 if test "$GXX" = yes; then
2813 CXXFLAGS="-O2"
2814 else
2815 CXXFLAGS=
2816 fi
2817 fi
2818 ac_ext=c
2819 ac_cpp='$CPP $CPPFLAGS'
2820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2823 DEPDIR="${am__leading_dot}deps"
2824
2825 ac_config_commands="$ac_config_commands depfiles"
2826
2827
2828 am_make=${MAKE-make}
2829 cat > confinc << 'END'
2830 am__doit:
2831 @echo done
2832 .PHONY: am__doit
2833 END
2834 # If we don't find an include directive, just comment out the code.
2835 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2836 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2837 am__include="#"
2838 am__quote=
2839 _am_result=none
2840 # First try GNU make style include.
2841 echo "include confinc" > confmf
2842 # We grep out `Entering directory' and `Leaving directory'
2843 # messages which can occur if `w' ends up in MAKEFLAGS.
2844 # In particular we don't look at `^make:' because GNU make might
2845 # be invoked under some other name (usually "gmake"), in which
2846 # case it prints its new name instead of `make'.
2847 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2848 am__include=include
2849 am__quote=
2850 _am_result=GNU
2851 fi
2852 # Now try BSD make style include.
2853 if test "$am__include" = "#"; then
2854 echo '.include "confinc"' > confmf
2855 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2856 am__include=.include
2857 am__quote="\""
2858 _am_result=BSD
2859 fi
2860 fi
2861
2862
2863 { echo "$as_me:$LINENO: result: $_am_result" >&5
2864 echo "${ECHO_T}$_am_result" >&6; }
2865 rm -f confinc confmf
2866
2867 # Check whether --enable-dependency-tracking was given.
2868 if test "${enable_dependency_tracking+set}" = set; then
2869 enableval=$enable_dependency_tracking;
2870 fi
2871
2872 if test "x$enable_dependency_tracking" != xno; then
2873 am_depcomp="$ac_aux_dir/depcomp"
2874 AMDEPBACKSLASH='\'
2875 fi
2876
2877
2878 if test "x$enable_dependency_tracking" != xno; then
2879 AMDEP_TRUE=
2880 AMDEP_FALSE='#'
2881 else
2882 AMDEP_TRUE='#'
2883 AMDEP_FALSE=
2884 fi
2885
2886
2887
2888
2889 depcc="$CXX" am_compiler_list=
2890
2891 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2892 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2893 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2897 # We make a subdir and do the tests there. Otherwise we can end up
2898 # making bogus files that we don't know about and never remove. For
2899 # instance it was reported that on HP-UX the gcc test will end up
2900 # making a dummy file named `D' -- because `-MD' means `put the output
2901 # in D'.
2902 mkdir conftest.dir
2903 # Copy depcomp to subdir because otherwise we won't find it if we're
2904 # using a relative directory.
2905 cp "$am_depcomp" conftest.dir
2906 cd conftest.dir
2907 # We will build objects and dependencies in a subdirectory because
2908 # it helps to detect inapplicable dependency modes. For instance
2909 # both Tru64's cc and ICC support -MD to output dependencies as a
2910 # side effect of compilation, but ICC will put the dependencies in
2911 # the current directory while Tru64 will put them in the object
2912 # directory.
2913 mkdir sub
2914
2915 am_cv_CXX_dependencies_compiler_type=none
2916 if test "$am_compiler_list" = ""; then
2917 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2918 fi
2919 for depmode in $am_compiler_list; do
2920 # Setup a source with many dependencies, because some compilers
2921 # like to wrap large dependency lists on column 80 (with \), and
2922 # we should not choose a depcomp mode which is confused by this.
2923 #
2924 # We need to recreate these files for each test, as the compiler may
2925 # overwrite some of them when testing with obscure command lines.
2926 # This happens at least with the AIX C compiler.
2927 : > sub/conftest.c
2928 for i in 1 2 3 4 5 6; do
2929 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2930 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2931 # Solaris 8's {/usr,}/bin/sh.
2932 touch sub/conftst$i.h
2933 done
2934 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2935
2936 case $depmode in
2937 nosideeffect)
2938 # after this tag, mechanisms are not by side-effect, so they'll
2939 # only be used when explicitly requested
2940 if test "x$enable_dependency_tracking" = xyes; then
2941 continue
2942 else
2943 break
2944 fi
2945 ;;
2946 none) break ;;
2947 esac
2948 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2949 # mode. It turns out that the SunPro C++ compiler does not properly
2950 # handle `-M -o', and we need to detect this.
2951 if depmode=$depmode \
2952 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2953 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2954 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2955 >/dev/null 2>conftest.err &&
2956 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2957 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2958 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2959 # icc doesn't choke on unknown options, it will just issue warnings
2960 # or remarks (even with -Werror). So we grep stderr for any message
2961 # that says an option was ignored or not supported.
2962 # When given -MP, icc 7.0 and 7.1 complain thusly:
2963 # icc: Command line warning: ignoring option '-M'; no argument required
2964 # The diagnosis changed in icc 8.0:
2965 # icc: Command line remark: option '-MP' not supported
2966 if (grep 'ignoring option' conftest.err ||
2967 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2968 am_cv_CXX_dependencies_compiler_type=$depmode
2969 break
2970 fi
2971 fi
2972 done
2973
2974 cd ..
2975 rm -rf conftest.dir
2976 else
2977 am_cv_CXX_dependencies_compiler_type=none
2978 fi
2979
2980 fi
2981 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2982 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
2983 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2984
2985
2986
2987 if
2988 test "x$enable_dependency_tracking" != xno \
2989 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2990 am__fastdepCXX_TRUE=
2991 am__fastdepCXX_FALSE='#'
2992 else
2993 am__fastdepCXX_TRUE='#'
2994 am__fastdepCXX_FALSE=
2995 fi
2996
2997
2998 ac_ext=c
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003 if test -n "$ac_tool_prefix"; then
3004 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3005 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3008 if test "${ac_cv_prog_CC+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 else
3011 if test -n "$CC"; then
3012 ac_cv_prog_CC="$CC" # Let the user override the test.
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3016 do
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3021 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3024 fi
3025 done
3026 done
3027 IFS=$as_save_IFS
3028
3029 fi
3030 fi
3031 CC=$ac_cv_prog_CC
3032 if test -n "$CC"; then
3033 { echo "$as_me:$LINENO: result: $CC" >&5
3034 echo "${ECHO_T}$CC" >&6; }
3035 else
3036 { echo "$as_me:$LINENO: result: no" >&5
3037 echo "${ECHO_T}no" >&6; }
3038 fi
3039
3040
3041 fi
3042 if test -z "$ac_cv_prog_CC"; then
3043 ac_ct_CC=$CC
3044 # Extract the first word of "gcc", so it can be a program name with args.
3045 set dummy gcc; ac_word=$2
3046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051 if test -n "$ac_ct_CC"; then
3052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 ac_cv_prog_ac_ct_CC="gcc"
3062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3064 fi
3065 done
3066 done
3067 IFS=$as_save_IFS
3068
3069 fi
3070 fi
3071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3072 if test -n "$ac_ct_CC"; then
3073 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3074 echo "${ECHO_T}$ac_ct_CC" >&6; }
3075 else
3076 { echo "$as_me:$LINENO: result: no" >&5
3077 echo "${ECHO_T}no" >&6; }
3078 fi
3079
3080 if test "x$ac_ct_CC" = x; then
3081 CC=""
3082 else
3083 case $cross_compiling:$ac_tool_warned in
3084 yes:)
3085 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3086 whose name does not start with the host triplet. If you think this
3087 configuration is useful to you, please write to [email protected]." >&5
3088 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3089 whose name does not start with the host triplet. If you think this
3090 configuration is useful to you, please write to [email protected]." >&2;}
3091 ac_tool_warned=yes ;;
3092 esac
3093 CC=$ac_ct_CC
3094 fi
3095 else
3096 CC="$ac_cv_prog_CC"
3097 fi
3098
3099 if test -z "$CC"; then
3100 if test -n "$ac_tool_prefix"; then
3101 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3102 set dummy ${ac_tool_prefix}cc; ac_word=$2
3103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3105 if test "${ac_cv_prog_CC+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108 if test -n "$CC"; then
3109 ac_cv_prog_CC="$CC" # Let the user override the test.
3110 else
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3113 do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3118 ac_cv_prog_CC="${ac_tool_prefix}cc"
3119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3121 fi
3122 done
3123 done
3124 IFS=$as_save_IFS
3125
3126 fi
3127 fi
3128 CC=$ac_cv_prog_CC
3129 if test -n "$CC"; then
3130 { echo "$as_me:$LINENO: result: $CC" >&5
3131 echo "${ECHO_T}$CC" >&6; }
3132 else
3133 { echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6; }
3135 fi
3136
3137
3138 fi
3139 fi
3140 if test -z "$CC"; then
3141 # Extract the first word of "cc", so it can be a program name with args.
3142 set dummy cc; ac_word=$2
3143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3145 if test "${ac_cv_prog_CC+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC="$CC" # Let the user override the test.
3150 else
3151 ac_prog_rejected=no
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 for as_dir in $PATH
3154 do
3155 IFS=$as_save_IFS
3156 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3159 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3160 ac_prog_rejected=yes
3161 continue
3162 fi
3163 ac_cv_prog_CC="cc"
3164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 break 2
3166 fi
3167 done
3168 done
3169 IFS=$as_save_IFS
3170
3171 if test $ac_prog_rejected = yes; then
3172 # We found a bogon in the path, so make sure we never use it.
3173 set dummy $ac_cv_prog_CC
3174 shift
3175 if test $# != 0; then
3176 # We chose a different compiler from the bogus one.
3177 # However, it has the same basename, so the bogon will be chosen
3178 # first if we set CC to just the basename; use the full file name.
3179 shift
3180 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3181 fi
3182 fi
3183 fi
3184 fi
3185 CC=$ac_cv_prog_CC
3186 if test -n "$CC"; then
3187 { echo "$as_me:$LINENO: result: $CC" >&5
3188 echo "${ECHO_T}$CC" >&6; }
3189 else
3190 { echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6; }
3192 fi
3193
3194
3195 fi
3196 if test -z "$CC"; then
3197 if test -n "$ac_tool_prefix"; then
3198 for ac_prog in cl.exe
3199 do
3200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3204 if test "${ac_cv_prog_CC+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207 if test -n "$CC"; then
3208 ac_cv_prog_CC="$CC" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3217 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3220 fi
3221 done
3222 done
3223 IFS=$as_save_IFS
3224
3225 fi
3226 fi
3227 CC=$ac_cv_prog_CC
3228 if test -n "$CC"; then
3229 { echo "$as_me:$LINENO: result: $CC" >&5
3230 echo "${ECHO_T}$CC" >&6; }
3231 else
3232 { echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6; }
3234 fi
3235
3236
3237 test -n "$CC" && break
3238 done
3239 fi
3240 if test -z "$CC"; then
3241 ac_ct_CC=$CC
3242 for ac_prog in cl.exe
3243 do
3244 # Extract the first word of "$ac_prog", so it can be a program name with args.
3245 set dummy $ac_prog; ac_word=$2
3246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3248 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 if test -n "$ac_ct_CC"; then
3252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3256 do
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261 ac_cv_prog_ac_ct_CC="$ac_prog"
3262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 break 2
3264 fi
3265 done
3266 done
3267 IFS=$as_save_IFS
3268
3269 fi
3270 fi
3271 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3272 if test -n "$ac_ct_CC"; then
3273 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3274 echo "${ECHO_T}$ac_ct_CC" >&6; }
3275 else
3276 { echo "$as_me:$LINENO: result: no" >&5
3277 echo "${ECHO_T}no" >&6; }
3278 fi
3279
3280
3281 test -n "$ac_ct_CC" && break
3282 done
3283
3284 if test "x$ac_ct_CC" = x; then
3285 CC=""
3286 else
3287 case $cross_compiling:$ac_tool_warned in
3288 yes:)
3289 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3290 whose name does not start with the host triplet. If you think this
3291 configuration is useful to you, please write to [email protected]." >&5
3292 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3293 whose name does not start with the host triplet. If you think this
3294 configuration is useful to you, please write to [email protected]." >&2;}
3295 ac_tool_warned=yes ;;
3296 esac
3297 CC=$ac_ct_CC
3298 fi
3299 fi
3300
3301 fi
3302
3303
3304 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3305 See \`config.log' for more details." >&5
3306 echo "$as_me: error: no acceptable C compiler found in \$PATH
3307 See \`config.log' for more details." >&2;}
3308 { (exit 1); exit 1; }; }
3309
3310 # Provide some information about the compiler.
3311 echo "$as_me:$LINENO: checking for C compiler version" >&5
3312 ac_compiler=`set X $ac_compile; echo $2`
3313 { (ac_try="$ac_compiler --version >&5"
3314 case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3317 esac
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319 (eval "$ac_compiler --version >&5") 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }
3323 { (ac_try="$ac_compiler -v >&5"
3324 case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_compiler -v >&5") 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }
3333 { (ac_try="$ac_compiler -V >&5"
3334 case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337 esac
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_compiler -V >&5") 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }
3343
3344 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3345 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3346 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349 cat >conftest.$ac_ext <<_ACEOF
3350 /* confdefs.h. */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3355
3356 int
3357 main ()
3358 {
3359 #ifndef __GNUC__
3360 choke me
3361 #endif
3362
3363 ;
3364 return 0;
3365 }
3366 _ACEOF
3367 rm -f conftest.$ac_objext
3368 if { (ac_try="$ac_compile"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374 (eval "$ac_compile") 2>conftest.er1
3375 ac_status=$?
3376 grep -v '^ *+' conftest.er1 >conftest.err
3377 rm -f conftest.er1
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } && {
3381 test -z "$ac_c_werror_flag" ||
3382 test ! -s conftest.err
3383 } && test -s conftest.$ac_objext; then
3384 ac_compiler_gnu=yes
3385 else
3386 echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3388
3389 ac_compiler_gnu=no
3390 fi
3391
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3394
3395 fi
3396 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3397 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3398 GCC=`test $ac_compiler_gnu = yes && echo yes`
3399 ac_test_CFLAGS=${CFLAGS+set}
3400 ac_save_CFLAGS=$CFLAGS
3401 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3402 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3403 if test "${ac_cv_prog_cc_g+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 else
3406 ac_save_c_werror_flag=$ac_c_werror_flag
3407 ac_c_werror_flag=yes
3408 ac_cv_prog_cc_g=no
3409 CFLAGS="-g"
3410 cat >conftest.$ac_ext <<_ACEOF
3411 /* confdefs.h. */
3412 _ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3416
3417 int
3418 main ()
3419 {
3420
3421 ;
3422 return 0;
3423 }
3424 _ACEOF
3425 rm -f conftest.$ac_objext
3426 if { (ac_try="$ac_compile"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_compile") 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } && {
3439 test -z "$ac_c_werror_flag" ||
3440 test ! -s conftest.err
3441 } && test -s conftest.$ac_objext; then
3442 ac_cv_prog_cc_g=yes
3443 else
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3446
3447 CFLAGS=""
3448 cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h. */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3454
3455 int
3456 main ()
3457 {
3458
3459 ;
3460 return 0;
3461 }
3462 _ACEOF
3463 rm -f conftest.$ac_objext
3464 if { (ac_try="$ac_compile"
3465 case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468 esac
3469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3470 (eval "$ac_compile") 2>conftest.er1
3471 ac_status=$?
3472 grep -v '^ *+' conftest.er1 >conftest.err
3473 rm -f conftest.er1
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } && {
3477 test -z "$ac_c_werror_flag" ||
3478 test ! -s conftest.err
3479 } && test -s conftest.$ac_objext; then
3480 :
3481 else
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485 ac_c_werror_flag=$ac_save_c_werror_flag
3486 CFLAGS="-g"
3487 cat >conftest.$ac_ext <<_ACEOF
3488 /* confdefs.h. */
3489 _ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3493
3494 int
3495 main ()
3496 {
3497
3498 ;
3499 return 0;
3500 }
3501 _ACEOF
3502 rm -f conftest.$ac_objext
3503 if { (ac_try="$ac_compile"
3504 case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507 esac
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509 (eval "$ac_compile") 2>conftest.er1
3510 ac_status=$?
3511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } && {
3516 test -z "$ac_c_werror_flag" ||
3517 test ! -s conftest.err
3518 } && test -s conftest.$ac_objext; then
3519 ac_cv_prog_cc_g=yes
3520 else
3521 echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3523
3524
3525 fi
3526
3527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 fi
3529
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531 fi
3532
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 ac_c_werror_flag=$ac_save_c_werror_flag
3535 fi
3536 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3537 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3538 if test "$ac_test_CFLAGS" = set; then
3539 CFLAGS=$ac_save_CFLAGS
3540 elif test $ac_cv_prog_cc_g = yes; then
3541 if test "$GCC" = yes; then
3542 CFLAGS="-g -O2"
3543 else
3544 CFLAGS="-g"
3545 fi
3546 else
3547 if test "$GCC" = yes; then
3548 CFLAGS="-O2"
3549 else
3550 CFLAGS=
3551 fi
3552 fi
3553 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3554 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3555 if test "${ac_cv_prog_cc_c89+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
3558 ac_cv_prog_cc_c89=no
3559 ac_save_CC=$CC
3560 cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566 #include <stdarg.h>
3567 #include <stdio.h>
3568 #include <sys/types.h>
3569 #include <sys/stat.h>
3570 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3571 struct buf { int x; };
3572 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3573 static char *e (p, i)
3574 char **p;
3575 int i;
3576 {
3577 return p[i];
3578 }
3579 static char *f (char * (*g) (char **, int), char **p, ...)
3580 {
3581 char *s;
3582 va_list v;
3583 va_start (v,p);
3584 s = g (p, va_arg (v,int));
3585 va_end (v);
3586 return s;
3587 }
3588
3589 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3590 function prototypes and stuff, but not '\xHH' hex character constants.
3591 These don't provoke an error unfortunately, instead are silently treated
3592 as 'x'. The following induces an error, until -std is added to get
3593 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3594 array size at least. It's necessary to write '\x00'==0 to get something
3595 that's true only with -std. */
3596 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3597
3598 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3599 inside strings and character constants. */
3600 #define FOO(x) 'x'
3601 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3602
3603 int test (int i, double x);
3604 struct s1 {int (*f) (int a);};
3605 struct s2 {int (*f) (double a);};
3606 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3607 int argc;
3608 char **argv;
3609 int
3610 main ()
3611 {
3612 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3613 ;
3614 return 0;
3615 }
3616 _ACEOF
3617 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3618 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3619 do
3620 CC="$ac_save_CC $ac_arg"
3621 rm -f conftest.$ac_objext
3622 if { (ac_try="$ac_compile"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_compile") 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } && {
3635 test -z "$ac_c_werror_flag" ||
3636 test ! -s conftest.err
3637 } && test -s conftest.$ac_objext; then
3638 ac_cv_prog_cc_c89=$ac_arg
3639 else
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643
3644 fi
3645
3646 rm -f core conftest.err conftest.$ac_objext
3647 test "x$ac_cv_prog_cc_c89" != "xno" && break
3648 done
3649 rm -f conftest.$ac_ext
3650 CC=$ac_save_CC
3651
3652 fi
3653 # AC_CACHE_VAL
3654 case "x$ac_cv_prog_cc_c89" in
3655 x)
3656 { echo "$as_me:$LINENO: result: none needed" >&5
3657 echo "${ECHO_T}none needed" >&6; } ;;
3658 xno)
3659 { echo "$as_me:$LINENO: result: unsupported" >&5
3660 echo "${ECHO_T}unsupported" >&6; } ;;
3661 *)
3662 CC="$CC $ac_cv_prog_cc_c89"
3663 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3664 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3665 esac
3666
3667
3668 ac_ext=c
3669 ac_cpp='$CPP $CPPFLAGS'
3670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3673
3674 depcc="$CC" am_compiler_list=
3675
3676 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3677 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3678 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3682 # We make a subdir and do the tests there. Otherwise we can end up
3683 # making bogus files that we don't know about and never remove. For
3684 # instance it was reported that on HP-UX the gcc test will end up
3685 # making a dummy file named `D' -- because `-MD' means `put the output
3686 # in D'.
3687 mkdir conftest.dir
3688 # Copy depcomp to subdir because otherwise we won't find it if we're
3689 # using a relative directory.
3690 cp "$am_depcomp" conftest.dir
3691 cd conftest.dir
3692 # We will build objects and dependencies in a subdirectory because
3693 # it helps to detect inapplicable dependency modes. For instance
3694 # both Tru64's cc and ICC support -MD to output dependencies as a
3695 # side effect of compilation, but ICC will put the dependencies in
3696 # the current directory while Tru64 will put them in the object
3697 # directory.
3698 mkdir sub
3699
3700 am_cv_CC_dependencies_compiler_type=none
3701 if test "$am_compiler_list" = ""; then
3702 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3703 fi
3704 for depmode in $am_compiler_list; do
3705 # Setup a source with many dependencies, because some compilers
3706 # like to wrap large dependency lists on column 80 (with \), and
3707 # we should not choose a depcomp mode which is confused by this.
3708 #
3709 # We need to recreate these files for each test, as the compiler may
3710 # overwrite some of them when testing with obscure command lines.
3711 # This happens at least with the AIX C compiler.
3712 : > sub/conftest.c
3713 for i in 1 2 3 4 5 6; do
3714 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3715 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3716 # Solaris 8's {/usr,}/bin/sh.
3717 touch sub/conftst$i.h
3718 done
3719 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3720
3721 case $depmode in
3722 nosideeffect)
3723 # after this tag, mechanisms are not by side-effect, so they'll
3724 # only be used when explicitly requested
3725 if test "x$enable_dependency_tracking" = xyes; then
3726 continue
3727 else
3728 break
3729 fi
3730 ;;
3731 none) break ;;
3732 esac
3733 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3734 # mode. It turns out that the SunPro C++ compiler does not properly
3735 # handle `-M -o', and we need to detect this.
3736 if depmode=$depmode \
3737 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3738 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3739 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3740 >/dev/null 2>conftest.err &&
3741 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3742 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3743 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3744 # icc doesn't choke on unknown options, it will just issue warnings
3745 # or remarks (even with -Werror). So we grep stderr for any message
3746 # that says an option was ignored or not supported.
3747 # When given -MP, icc 7.0 and 7.1 complain thusly:
3748 # icc: Command line warning: ignoring option '-M'; no argument required
3749 # The diagnosis changed in icc 8.0:
3750 # icc: Command line remark: option '-MP' not supported
3751 if (grep 'ignoring option' conftest.err ||
3752 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3753 am_cv_CC_dependencies_compiler_type=$depmode
3754 break
3755 fi
3756 fi
3757 done
3758
3759 cd ..
3760 rm -rf conftest.dir
3761 else
3762 am_cv_CC_dependencies_compiler_type=none
3763 fi
3764
3765 fi
3766 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3767 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3768 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3769
3770
3771
3772 if
3773 test "x$enable_dependency_tracking" != xno \
3774 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3775 am__fastdepCC_TRUE=
3776 am__fastdepCC_FALSE='#'
3777 else
3778 am__fastdepCC_TRUE='#'
3779 am__fastdepCC_FALSE=
3780 fi
3781
3782
3783
3784 ac_ext=cpp
3785 ac_cpp='$CXXCPP $CPPFLAGS'
3786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3789
3790
3791 # Checks for libaries.
3792
3793 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
3794 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
3795 if test "${ac_cv_search_clock_gettime+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798 ac_func_search_save_LIBS=$LIBS
3799 cat >conftest.$ac_ext <<_ACEOF
3800 /* confdefs.h. */
3801 _ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3805
3806 /* Override any GCC internal prototype to avoid an error.
3807 Use char because int might match the return type of a GCC
3808 builtin and then its argument prototype would still apply. */
3809 #ifdef __cplusplus
3810 extern "C"
3811 #endif
3812 char clock_gettime ();
3813 int
3814 main ()
3815 {
3816 return clock_gettime ();
3817 ;
3818 return 0;
3819 }
3820 _ACEOF
3821 for ac_lib in '' rt posix4; do
3822 if test -z "$ac_lib"; then
3823 ac_res="none required"
3824 else
3825 ac_res=-l$ac_lib
3826 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3827 fi
3828 rm -f conftest.$ac_objext conftest$ac_exeext
3829 if { (ac_try="$ac_link"
3830 case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3833 esac
3834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3835 (eval "$ac_link") 2>conftest.er1
3836 ac_status=$?
3837 grep -v '^ *+' conftest.er1 >conftest.err
3838 rm -f conftest.er1
3839 cat conftest.err >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } && {
3842 test -z "$ac_cxx_werror_flag" ||
3843 test ! -s conftest.err
3844 } && test -s conftest$ac_exeext &&
3845 $as_test_x conftest$ac_exeext; then
3846 ac_cv_search_clock_gettime=$ac_res
3847 else
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3850
3851
3852 fi
3853
3854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3855 conftest$ac_exeext
3856 if test "${ac_cv_search_clock_gettime+set}" = set; then
3857 break
3858 fi
3859 done
3860 if test "${ac_cv_search_clock_gettime+set}" = set; then
3861 :
3862 else
3863 ac_cv_search_clock_gettime=no
3864 fi
3865 rm conftest.$ac_ext
3866 LIBS=$ac_func_search_save_LIBS
3867 fi
3868 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
3869 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
3870 ac_res=$ac_cv_search_clock_gettime
3871 if test "$ac_res" != no; then
3872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3873
3874 fi
3875
3876 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
3877 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
3878 if test "${ac_cv_search_gethostbyname+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881 ac_func_search_save_LIBS=$LIBS
3882 cat >conftest.$ac_ext <<_ACEOF
3883 /* confdefs.h. */
3884 _ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3888
3889 /* Override any GCC internal prototype to avoid an error.
3890 Use char because int might match the return type of a GCC
3891 builtin and then its argument prototype would still apply. */
3892 #ifdef __cplusplus
3893 extern "C"
3894 #endif
3895 char gethostbyname ();
3896 int
3897 main ()
3898 {
3899 return gethostbyname ();
3900 ;
3901 return 0;
3902 }
3903 _ACEOF
3904 for ac_lib in '' nsl resolv; do
3905 if test -z "$ac_lib"; then
3906 ac_res="none required"
3907 else
3908 ac_res=-l$ac_lib
3909 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3910 fi
3911 rm -f conftest.$ac_objext conftest$ac_exeext
3912 if { (ac_try="$ac_link"
3913 case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3916 esac
3917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3918 (eval "$ac_link") 2>conftest.er1
3919 ac_status=$?
3920 grep -v '^ *+' conftest.er1 >conftest.err
3921 rm -f conftest.er1
3922 cat conftest.err >&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); } && {
3925 test -z "$ac_cxx_werror_flag" ||
3926 test ! -s conftest.err
3927 } && test -s conftest$ac_exeext &&
3928 $as_test_x conftest$ac_exeext; then
3929 ac_cv_search_gethostbyname=$ac_res
3930 else
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3933
3934
3935 fi
3936
3937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3938 conftest$ac_exeext
3939 if test "${ac_cv_search_gethostbyname+set}" = set; then
3940 break
3941 fi
3942 done
3943 if test "${ac_cv_search_gethostbyname+set}" = set; then
3944 :
3945 else
3946 ac_cv_search_gethostbyname=no
3947 fi
3948 rm conftest.$ac_ext
3949 LIBS=$ac_func_search_save_LIBS
3950 fi
3951 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
3952 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
3953 ac_res=$ac_cv_search_gethostbyname
3954 if test "$ac_res" != no; then
3955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3956
3957 fi
3958
3959 { echo "$as_me:$LINENO: checking for library containing socket" >&5
3960 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
3961 if test "${ac_cv_search_socket+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964 ac_func_search_save_LIBS=$LIBS
3965 cat >conftest.$ac_ext <<_ACEOF
3966 /* confdefs.h. */
3967 _ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h. */
3971
3972 /* Override any GCC internal prototype to avoid an error.
3973 Use char because int might match the return type of a GCC
3974 builtin and then its argument prototype would still apply. */
3975 #ifdef __cplusplus
3976 extern "C"
3977 #endif
3978 char socket ();
3979 int
3980 main ()
3981 {
3982 return socket ();
3983 ;
3984 return 0;
3985 }
3986 _ACEOF
3987 for ac_lib in '' socket; do
3988 if test -z "$ac_lib"; then
3989 ac_res="none required"
3990 else
3991 ac_res=-l$ac_lib
3992 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3993 fi
3994 rm -f conftest.$ac_objext conftest$ac_exeext
3995 if { (ac_try="$ac_link"
3996 case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_link") 2>conftest.er1
4002 ac_status=$?
4003 grep -v '^ *+' conftest.er1 >conftest.err
4004 rm -f conftest.er1
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } && {
4008 test -z "$ac_cxx_werror_flag" ||
4009 test ! -s conftest.err
4010 } && test -s conftest$ac_exeext &&
4011 $as_test_x conftest$ac_exeext; then
4012 ac_cv_search_socket=$ac_res
4013 else
4014 echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4016
4017
4018 fi
4019
4020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4021 conftest$ac_exeext
4022 if test "${ac_cv_search_socket+set}" = set; then
4023 break
4024 fi
4025 done
4026 if test "${ac_cv_search_socket+set}" = set; then
4027 :
4028 else
4029 ac_cv_search_socket=no
4030 fi
4031 rm conftest.$ac_ext
4032 LIBS=$ac_func_search_save_LIBS
4033 fi
4034 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
4035 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
4036 ac_res=$ac_cv_search_socket
4037 if test "$ac_res" != no; then
4038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4039
4040 else
4041 { echo "$as_me:$LINENO: checking for socket in -lnsl" >&5
4042 echo $ECHO_N "checking for socket in -lnsl... $ECHO_C" >&6; }
4043 if test "${ac_cv_lib_nsl_socket+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046 ac_check_lib_save_LIBS=$LIBS
4047 LIBS="-lnsl -lsocket $LIBS"
4048 cat >conftest.$ac_ext <<_ACEOF
4049 /* confdefs.h. */
4050 _ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4054
4055 /* Override any GCC internal prototype to avoid an error.
4056 Use char because int might match the return type of a GCC
4057 builtin and then its argument prototype would still apply. */
4058 #ifdef __cplusplus
4059 extern "C"
4060 #endif
4061 char socket ();
4062 int
4063 main ()
4064 {
4065 return socket ();
4066 ;
4067 return 0;
4068 }
4069 _ACEOF
4070 rm -f conftest.$ac_objext conftest$ac_exeext
4071 if { (ac_try="$ac_link"
4072 case "(($ac_try" in
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4075 esac
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077 (eval "$ac_link") 2>conftest.er1
4078 ac_status=$?
4079 grep -v '^ *+' conftest.er1 >conftest.err
4080 rm -f conftest.er1
4081 cat conftest.err >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } && {
4084 test -z "$ac_cxx_werror_flag" ||
4085 test ! -s conftest.err
4086 } && test -s conftest$ac_exeext &&
4087 $as_test_x conftest$ac_exeext; then
4088 ac_cv_lib_nsl_socket=yes
4089 else
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4092
4093 ac_cv_lib_nsl_socket=no
4094 fi
4095
4096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4097 conftest$ac_exeext conftest.$ac_ext
4098 LIBS=$ac_check_lib_save_LIBS
4099 fi
4100 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_socket" >&5
4101 echo "${ECHO_T}$ac_cv_lib_nsl_socket" >&6; }
4102 if test $ac_cv_lib_nsl_socket = yes; then
4103 LIBS="$LIBS -lsocket -lnsl"
4104 fi
4105
4106 fi
4107
4108
4109 # Checks for header files.
4110
4111
4112
4113
4114
4115 ac_header_dirent=no
4116 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4117 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4118 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4119 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123 cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h. */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 #include <sys/types.h>
4130 #include <$ac_hdr>
4131
4132 int
4133 main ()
4134 {
4135 if ((DIR *) 0)
4136 return 0;
4137 ;
4138 return 0;
4139 }
4140 _ACEOF
4141 rm -f conftest.$ac_objext
4142 if { (ac_try="$ac_compile"
4143 case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146 esac
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_compile") 2>conftest.er1
4149 ac_status=$?
4150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } && {
4155 test -z "$ac_cxx_werror_flag" ||
4156 test ! -s conftest.err
4157 } && test -s conftest.$ac_objext; then
4158 eval "$as_ac_Header=yes"
4159 else
4160 echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4162
4163 eval "$as_ac_Header=no"
4164 fi
4165
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167 fi
4168 ac_res=`eval echo '${'$as_ac_Header'}'`
4169 { echo "$as_me:$LINENO: result: $ac_res" >&5
4170 echo "${ECHO_T}$ac_res" >&6; }
4171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4172 cat >>confdefs.h <<_ACEOF
4173 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4174 _ACEOF
4175
4176 ac_header_dirent=$ac_hdr; break
4177 fi
4178
4179 done
4180 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4181 if test $ac_header_dirent = dirent.h; then
4182 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4183 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4184 if test "${ac_cv_search_opendir+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
4187 ac_func_search_save_LIBS=$LIBS
4188 cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h. */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4194
4195 /* Override any GCC internal prototype to avoid an error.
4196 Use char because int might match the return type of a GCC
4197 builtin and then its argument prototype would still apply. */
4198 #ifdef __cplusplus
4199 extern "C"
4200 #endif
4201 char opendir ();
4202 int
4203 main ()
4204 {
4205 return opendir ();
4206 ;
4207 return 0;
4208 }
4209 _ACEOF
4210 for ac_lib in '' dir; do
4211 if test -z "$ac_lib"; then
4212 ac_res="none required"
4213 else
4214 ac_res=-l$ac_lib
4215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4216 fi
4217 rm -f conftest.$ac_objext conftest$ac_exeext
4218 if { (ac_try="$ac_link"
4219 case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222 esac
4223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4224 (eval "$ac_link") 2>conftest.er1
4225 ac_status=$?
4226 grep -v '^ *+' conftest.er1 >conftest.err
4227 rm -f conftest.er1
4228 cat conftest.err >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } && {
4231 test -z "$ac_cxx_werror_flag" ||
4232 test ! -s conftest.err
4233 } && test -s conftest$ac_exeext &&
4234 $as_test_x conftest$ac_exeext; then
4235 ac_cv_search_opendir=$ac_res
4236 else
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4239
4240
4241 fi
4242
4243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4244 conftest$ac_exeext
4245 if test "${ac_cv_search_opendir+set}" = set; then
4246 break
4247 fi
4248 done
4249 if test "${ac_cv_search_opendir+set}" = set; then
4250 :
4251 else
4252 ac_cv_search_opendir=no
4253 fi
4254 rm conftest.$ac_ext
4255 LIBS=$ac_func_search_save_LIBS
4256 fi
4257 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4258 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4259 ac_res=$ac_cv_search_opendir
4260 if test "$ac_res" != no; then
4261 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4262
4263 fi
4264
4265 else
4266 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4267 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4268 if test "${ac_cv_search_opendir+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 else
4271 ac_func_search_save_LIBS=$LIBS
4272 cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h. */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278
4279 /* Override any GCC internal prototype to avoid an error.
4280 Use char because int might match the return type of a GCC
4281 builtin and then its argument prototype would still apply. */
4282 #ifdef __cplusplus
4283 extern "C"
4284 #endif
4285 char opendir ();
4286 int
4287 main ()
4288 {
4289 return opendir ();
4290 ;
4291 return 0;
4292 }
4293 _ACEOF
4294 for ac_lib in '' x; do
4295 if test -z "$ac_lib"; then
4296 ac_res="none required"
4297 else
4298 ac_res=-l$ac_lib
4299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4300 fi
4301 rm -f conftest.$ac_objext conftest$ac_exeext
4302 if { (ac_try="$ac_link"
4303 case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306 esac
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_link") 2>conftest.er1
4309 ac_status=$?
4310 grep -v '^ *+' conftest.er1 >conftest.err
4311 rm -f conftest.er1
4312 cat conftest.err >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } && {
4315 test -z "$ac_cxx_werror_flag" ||
4316 test ! -s conftest.err
4317 } && test -s conftest$ac_exeext &&
4318 $as_test_x conftest$ac_exeext; then
4319 ac_cv_search_opendir=$ac_res
4320 else
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4323
4324
4325 fi
4326
4327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4328 conftest$ac_exeext
4329 if test "${ac_cv_search_opendir+set}" = set; then
4330 break
4331 fi
4332 done
4333 if test "${ac_cv_search_opendir+set}" = set; then
4334 :
4335 else
4336 ac_cv_search_opendir=no
4337 fi
4338 rm conftest.$ac_ext
4339 LIBS=$ac_func_search_save_LIBS
4340 fi
4341 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4342 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4343 ac_res=$ac_cv_search_opendir
4344 if test "$ac_res" != no; then
4345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4346
4347 fi
4348
4349 fi
4350
4351 ac_ext=cpp
4352 ac_cpp='$CXXCPP $CPPFLAGS'
4353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4356 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4357 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4358 if test -z "$CXXCPP"; then
4359 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362 # Double quotes because CXXCPP needs to be expanded
4363 for CXXCPP in "$CXX -E" "/lib/cpp"
4364 do
4365 ac_preproc_ok=false
4366 for ac_cxx_preproc_warn_flag in '' yes
4367 do
4368 # Use a header file that comes with gcc, so configuring glibc
4369 # with a fresh cross-compiler works.
4370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4371 # <limits.h> exists even on freestanding compilers.
4372 # On the NeXT, cc -E runs the code through the compiler's parser,
4373 # not just through cpp. "Syntax error" is here to catch this case.
4374 cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h. */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 #ifdef __STDC__
4381 # include <limits.h>
4382 #else
4383 # include <assert.h>
4384 #endif
4385 Syntax error
4386 _ACEOF
4387 if { (ac_try="$ac_cpp conftest.$ac_ext"
4388 case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391 esac
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4394 ac_status=$?
4395 grep -v '^ *+' conftest.er1 >conftest.err
4396 rm -f conftest.er1
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } >/dev/null && {
4400 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4401 test ! -s conftest.err
4402 }; then
4403 :
4404 else
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4407
4408 # Broken: fails on valid input.
4409 continue
4410 fi
4411
4412 rm -f conftest.err conftest.$ac_ext
4413
4414 # OK, works on sane cases. Now check whether nonexistent headers
4415 # can be detected and how.
4416 cat >conftest.$ac_ext <<_ACEOF
4417 /* confdefs.h. */
4418 _ACEOF
4419 cat confdefs.h >>conftest.$ac_ext
4420 cat >>conftest.$ac_ext <<_ACEOF
4421 /* end confdefs.h. */
4422 #include <ac_nonexistent.h>
4423 _ACEOF
4424 if { (ac_try="$ac_cpp conftest.$ac_ext"
4425 case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4428 esac
4429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4431 ac_status=$?
4432 grep -v '^ *+' conftest.er1 >conftest.err
4433 rm -f conftest.er1
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } >/dev/null && {
4437 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4438 test ! -s conftest.err
4439 }; then
4440 # Broken: success on invalid input.
4441 continue
4442 else
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4445
4446 # Passes both tests.
4447 ac_preproc_ok=:
4448 break
4449 fi
4450
4451 rm -f conftest.err conftest.$ac_ext
4452
4453 done
4454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4455 rm -f conftest.err conftest.$ac_ext
4456 if $ac_preproc_ok; then
4457 break
4458 fi
4459
4460 done
4461 ac_cv_prog_CXXCPP=$CXXCPP
4462
4463 fi
4464 CXXCPP=$ac_cv_prog_CXXCPP
4465 else
4466 ac_cv_prog_CXXCPP=$CXXCPP
4467 fi
4468 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4469 echo "${ECHO_T}$CXXCPP" >&6; }
4470 ac_preproc_ok=false
4471 for ac_cxx_preproc_warn_flag in '' yes
4472 do
4473 # Use a header file that comes with gcc, so configuring glibc
4474 # with a fresh cross-compiler works.
4475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4476 # <limits.h> exists even on freestanding compilers.
4477 # On the NeXT, cc -E runs the code through the compiler's parser,
4478 # not just through cpp. "Syntax error" is here to catch this case.
4479 cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h. */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 #ifdef __STDC__
4486 # include <limits.h>
4487 #else
4488 # include <assert.h>
4489 #endif
4490 Syntax error
4491 _ACEOF
4492 if { (ac_try="$ac_cpp conftest.$ac_ext"
4493 case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4496 esac
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4499 ac_status=$?
4500 grep -v '^ *+' conftest.er1 >conftest.err
4501 rm -f conftest.er1
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } >/dev/null && {
4505 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4506 test ! -s conftest.err
4507 }; then
4508 :
4509 else
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4512
4513 # Broken: fails on valid input.
4514 continue
4515 fi
4516
4517 rm -f conftest.err conftest.$ac_ext
4518
4519 # OK, works on sane cases. Now check whether nonexistent headers
4520 # can be detected and how.
4521 cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 #include <ac_nonexistent.h>
4528 _ACEOF
4529 if { (ac_try="$ac_cpp conftest.$ac_ext"
4530 case "(($ac_try" in
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4533 esac
4534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4536 ac_status=$?
4537 grep -v '^ *+' conftest.er1 >conftest.err
4538 rm -f conftest.er1
4539 cat conftest.err >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } >/dev/null && {
4542 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4543 test ! -s conftest.err
4544 }; then
4545 # Broken: success on invalid input.
4546 continue
4547 else
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4550
4551 # Passes both tests.
4552 ac_preproc_ok=:
4553 break
4554 fi
4555
4556 rm -f conftest.err conftest.$ac_ext
4557
4558 done
4559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4560 rm -f conftest.err conftest.$ac_ext
4561 if $ac_preproc_ok; then
4562 :
4563 else
4564 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4565 See \`config.log' for more details." >&5
4566 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4567 See \`config.log' for more details." >&2;}
4568 { (exit 1); exit 1; }; }
4569 fi
4570
4571 ac_ext=cpp
4572 ac_cpp='$CXXCPP $CPPFLAGS'
4573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4576
4577
4578 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4579 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4580 if test "${ac_cv_path_GREP+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583 # Extract the first word of "grep ggrep" to use in msg output
4584 if test -z "$GREP"; then
4585 set dummy grep ggrep; ac_prog_name=$2
4586 if test "${ac_cv_path_GREP+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589 ac_path_GREP_found=false
4590 # Loop through the user's path and test for each of PROGNAME-LIST
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4593 do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_prog in grep ggrep; do
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4599 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4600 # Check for GNU ac_path_GREP and select it if it is found.
4601 # Check for GNU $ac_path_GREP
4602 case `"$ac_path_GREP" --version 2>&1` in
4603 *GNU*)
4604 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4605 *)
4606 ac_count=0
4607 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4608 while :
4609 do
4610 cat "conftest.in" "conftest.in" >"conftest.tmp"
4611 mv "conftest.tmp" "conftest.in"
4612 cp "conftest.in" "conftest.nl"
4613 echo 'GREP' >> "conftest.nl"
4614 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4615 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4616 ac_count=`expr $ac_count + 1`
4617 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4618 # Best one so far, save it but keep looking for a better one
4619 ac_cv_path_GREP="$ac_path_GREP"
4620 ac_path_GREP_max=$ac_count
4621 fi
4622 # 10*(2^10) chars as input seems more than enough
4623 test $ac_count -gt 10 && break
4624 done
4625 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4626 esac
4627
4628
4629 $ac_path_GREP_found && break 3
4630 done
4631 done
4632
4633 done
4634 IFS=$as_save_IFS
4635
4636
4637 fi
4638
4639 GREP="$ac_cv_path_GREP"
4640 if test -z "$GREP"; then
4641 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4642 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4643 { (exit 1); exit 1; }; }
4644 fi
4645
4646 else
4647 ac_cv_path_GREP=$GREP
4648 fi
4649
4650
4651 fi
4652 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4653 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4654 GREP="$ac_cv_path_GREP"
4655
4656
4657 { echo "$as_me:$LINENO: checking for egrep" >&5
4658 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4659 if test "${ac_cv_path_EGREP+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4663 then ac_cv_path_EGREP="$GREP -E"
4664 else
4665 # Extract the first word of "egrep" to use in msg output
4666 if test -z "$EGREP"; then
4667 set dummy egrep; ac_prog_name=$2
4668 if test "${ac_cv_path_EGREP+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 else
4671 ac_path_EGREP_found=false
4672 # Loop through the user's path and test for each of PROGNAME-LIST
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4675 do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_prog in egrep; do
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4681 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4682 # Check for GNU ac_path_EGREP and select it if it is found.
4683 # Check for GNU $ac_path_EGREP
4684 case `"$ac_path_EGREP" --version 2>&1` in
4685 *GNU*)
4686 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4687 *)
4688 ac_count=0
4689 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4690 while :
4691 do
4692 cat "conftest.in" "conftest.in" >"conftest.tmp"
4693 mv "conftest.tmp" "conftest.in"
4694 cp "conftest.in" "conftest.nl"
4695 echo 'EGREP' >> "conftest.nl"
4696 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4698 ac_count=`expr $ac_count + 1`
4699 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4700 # Best one so far, save it but keep looking for a better one
4701 ac_cv_path_EGREP="$ac_path_EGREP"
4702 ac_path_EGREP_max=$ac_count
4703 fi
4704 # 10*(2^10) chars as input seems more than enough
4705 test $ac_count -gt 10 && break
4706 done
4707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4708 esac
4709
4710
4711 $ac_path_EGREP_found && break 3
4712 done
4713 done
4714
4715 done
4716 IFS=$as_save_IFS
4717
4718
4719 fi
4720
4721 EGREP="$ac_cv_path_EGREP"
4722 if test -z "$EGREP"; then
4723 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4724 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4725 { (exit 1); exit 1; }; }
4726 fi
4727
4728 else
4729 ac_cv_path_EGREP=$EGREP
4730 fi
4731
4732
4733 fi
4734 fi
4735 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4736 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4737 EGREP="$ac_cv_path_EGREP"
4738
4739
4740 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4741 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4742 if test "${ac_cv_header_stdc+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745 cat >conftest.$ac_ext <<_ACEOF
4746 /* confdefs.h. */
4747 _ACEOF
4748 cat confdefs.h >>conftest.$ac_ext
4749 cat >>conftest.$ac_ext <<_ACEOF
4750 /* end confdefs.h. */
4751 #include <stdlib.h>
4752 #include <stdarg.h>
4753 #include <string.h>
4754 #include <float.h>
4755
4756 int
4757 main ()
4758 {
4759
4760 ;
4761 return 0;
4762 }
4763 _ACEOF
4764 rm -f conftest.$ac_objext
4765 if { (ac_try="$ac_compile"
4766 case "(($ac_try" in
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4769 esac
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771 (eval "$ac_compile") 2>conftest.er1
4772 ac_status=$?
4773 grep -v '^ *+' conftest.er1 >conftest.err
4774 rm -f conftest.er1
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } && {
4778 test -z "$ac_cxx_werror_flag" ||
4779 test ! -s conftest.err
4780 } && test -s conftest.$ac_objext; then
4781 ac_cv_header_stdc=yes
4782 else
4783 echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.$ac_ext >&5
4785
4786 ac_cv_header_stdc=no
4787 fi
4788
4789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790
4791 if test $ac_cv_header_stdc = yes; then
4792 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4793 cat >conftest.$ac_ext <<_ACEOF
4794 /* confdefs.h. */
4795 _ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h. */
4799 #include <string.h>
4800
4801 _ACEOF
4802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4803 $EGREP "memchr" >/dev/null 2>&1; then
4804 :
4805 else
4806 ac_cv_header_stdc=no
4807 fi
4808 rm -f conftest*
4809
4810 fi
4811
4812 if test $ac_cv_header_stdc = yes; then
4813 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4814 cat >conftest.$ac_ext <<_ACEOF
4815 /* confdefs.h. */
4816 _ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4820 #include <stdlib.h>
4821
4822 _ACEOF
4823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4824 $EGREP "free" >/dev/null 2>&1; then
4825 :
4826 else
4827 ac_cv_header_stdc=no
4828 fi
4829 rm -f conftest*
4830
4831 fi
4832
4833 if test $ac_cv_header_stdc = yes; then
4834 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4835 if test "$cross_compiling" = yes; then
4836 :
4837 else
4838 cat >conftest.$ac_ext <<_ACEOF
4839 /* confdefs.h. */
4840 _ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h. */
4844 #include <ctype.h>
4845 #include <stdlib.h>
4846 #if ((' ' & 0x0FF) == 0x020)
4847 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4848 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4849 #else
4850 # define ISLOWER(c) \
4851 (('a' <= (c) && (c) <= 'i') \
4852 || ('j' <= (c) && (c) <= 'r') \
4853 || ('s' <= (c) && (c) <= 'z'))
4854 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4855 #endif
4856
4857 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4858 int
4859 main ()
4860 {
4861 int i;
4862 for (i = 0; i < 256; i++)
4863 if (XOR (islower (i), ISLOWER (i))
4864 || toupper (i) != TOUPPER (i))
4865 return 2;
4866 return 0;
4867 }
4868 _ACEOF
4869 rm -f conftest$ac_exeext
4870 if { (ac_try="$ac_link"
4871 case "(($ac_try" in
4872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4873 *) ac_try_echo=$ac_try;;
4874 esac
4875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4876 (eval "$ac_link") 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4880 { (case "(($ac_try" in
4881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4882 *) ac_try_echo=$ac_try;;
4883 esac
4884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4885 (eval "$ac_try") 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; }; then
4889 :
4890 else
4891 echo "$as_me: program exited with status $ac_status" >&5
4892 echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4894
4895 ( exit $ac_status )
4896 ac_cv_header_stdc=no
4897 fi
4898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4899 fi
4900
4901
4902 fi
4903 fi
4904 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4905 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4906 if test $ac_cv_header_stdc = yes; then
4907
4908 cat >>confdefs.h <<\_ACEOF
4909 #define STDC_HEADERS 1
4910 _ACEOF
4911
4912 fi
4913
4914 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4915 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4916 if test "${ac_cv_header_time+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 else
4919 cat >conftest.$ac_ext <<_ACEOF
4920 /* confdefs.h. */
4921 _ACEOF
4922 cat confdefs.h >>conftest.$ac_ext
4923 cat >>conftest.$ac_ext <<_ACEOF
4924 /* end confdefs.h. */
4925 #include <sys/types.h>
4926 #include <sys/time.h>
4927 #include <time.h>
4928
4929 int
4930 main ()
4931 {
4932 if ((struct tm *) 0)
4933 return 0;
4934 ;
4935 return 0;
4936 }
4937 _ACEOF
4938 rm -f conftest.$ac_objext
4939 if { (ac_try="$ac_compile"
4940 case "(($ac_try" in
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4943 esac
4944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4945 (eval "$ac_compile") 2>conftest.er1
4946 ac_status=$?
4947 grep -v '^ *+' conftest.er1 >conftest.err
4948 rm -f conftest.er1
4949 cat conftest.err >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } && {
4952 test -z "$ac_cxx_werror_flag" ||
4953 test ! -s conftest.err
4954 } && test -s conftest.$ac_objext; then
4955 ac_cv_header_time=yes
4956 else
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4959
4960 ac_cv_header_time=no
4961 fi
4962
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 fi
4965 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4966 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4967 if test $ac_cv_header_time = yes; then
4968
4969 cat >>confdefs.h <<\_ACEOF
4970 #define TIME_WITH_SYS_TIME 1
4971 _ACEOF
4972
4973 fi
4974
4975 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4986 inttypes.h stdint.h unistd.h
4987 do
4988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994 cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h. */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5000 $ac_includes_default
5001
5002 #include <$ac_header>
5003 _ACEOF
5004 rm -f conftest.$ac_objext
5005 if { (ac_try="$ac_compile"
5006 case "(($ac_try" in
5007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5008 *) ac_try_echo=$ac_try;;
5009 esac
5010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5011 (eval "$ac_compile") 2>conftest.er1
5012 ac_status=$?
5013 grep -v '^ *+' conftest.er1 >conftest.err
5014 rm -f conftest.er1
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } && {
5018 test -z "$ac_cxx_werror_flag" ||
5019 test ! -s conftest.err
5020 } && test -s conftest.$ac_objext; then
5021 eval "$as_ac_Header=yes"
5022 else
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5025
5026 eval "$as_ac_Header=no"
5027 fi
5028
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030 fi
5031 ac_res=`eval echo '${'$as_ac_Header'}'`
5032 { echo "$as_me:$LINENO: result: $ac_res" >&5
5033 echo "${ECHO_T}$ac_res" >&6; }
5034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5035 cat >>confdefs.h <<_ACEOF
5036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5037 _ACEOF
5038
5039 fi
5040
5041 done
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054 for ac_header in arpa/inet.h fcntl.h limits.h memory.h netdb.h netinet/in.h sys/param.h sys/socket.h sys/time.h unistd.h
5055 do
5056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 fi
5063 ac_res=`eval echo '${'$as_ac_Header'}'`
5064 { echo "$as_me:$LINENO: result: $ac_res" >&5
5065 echo "${ECHO_T}$ac_res" >&6; }
5066 else
5067 # Is the header compilable?
5068 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5070 cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h. */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 $ac_includes_default
5077 #include <$ac_header>
5078 _ACEOF
5079 rm -f conftest.$ac_objext
5080 if { (ac_try="$ac_compile"
5081 case "(($ac_try" in
5082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083 *) ac_try_echo=$ac_try;;
5084 esac
5085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5086 (eval "$ac_compile") 2>conftest.er1
5087 ac_status=$?
5088 grep -v '^ *+' conftest.er1 >conftest.err
5089 rm -f conftest.er1
5090 cat conftest.err >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } && {
5093 test -z "$ac_cxx_werror_flag" ||
5094 test ! -s conftest.err
5095 } && test -s conftest.$ac_objext; then
5096 ac_header_compiler=yes
5097 else
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5100
5101 ac_header_compiler=no
5102 fi
5103
5104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5106 echo "${ECHO_T}$ac_header_compiler" >&6; }
5107
5108 # Is the header present?
5109 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
5118 _ACEOF
5119 if { (ac_try="$ac_cpp conftest.$ac_ext"
5120 case "(($ac_try" in
5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122 *) ac_try_echo=$ac_try;;
5123 esac
5124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5126 ac_status=$?
5127 grep -v '^ *+' conftest.er1 >conftest.err
5128 rm -f conftest.er1
5129 cat conftest.err >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } >/dev/null && {
5132 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5133 test ! -s conftest.err
5134 }; then
5135 ac_header_preproc=yes
5136 else
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5139
5140 ac_header_preproc=no
5141 fi
5142
5143 rm -f conftest.err conftest.$ac_ext
5144 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5145 echo "${ECHO_T}$ac_header_preproc" >&6; }
5146
5147 # So? What about this header?
5148 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5149 yes:no: )
5150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5154 ac_header_preproc=yes
5155 ;;
5156 no:yes:* )
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5164 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5169 ( cat <<\_ASBOX
5170 ## ---------------------------------------------------------------------------------- ##
5171 ## Report this to http://sourceforge.net/projects/dtorrent/ or [email protected] ##
5172 ## ---------------------------------------------------------------------------------- ##
5173 _ASBOX
5174 ) | sed "s/^/$as_me: WARNING: /" >&2
5175 ;;
5176 esac
5177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 eval "$as_ac_Header=\$ac_header_preproc"
5183 fi
5184 ac_res=`eval echo '${'$as_ac_Header'}'`
5185 { echo "$as_me:$LINENO: result: $ac_res" >&5
5186 echo "${ECHO_T}$ac_res" >&6; }
5187
5188 fi
5189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5190 cat >>confdefs.h <<_ACEOF
5191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5192 _ACEOF
5193
5194 fi
5195
5196 done
5197
5198
5199
5200
5201
5202
5203 for ac_header in termios.h termio.h sgtty.h ioctl.h sys/ioctl.h
5204 do
5205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 fi
5212 ac_res=`eval echo '${'$as_ac_Header'}'`
5213 { echo "$as_me:$LINENO: result: $ac_res" >&5
5214 echo "${ECHO_T}$ac_res" >&6; }
5215 else
5216 # Is the header compilable?
5217 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5219 cat >conftest.$ac_ext <<_ACEOF
5220 /* confdefs.h. */
5221 _ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h. */
5225 $ac_includes_default
5226 #include <$ac_header>
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (ac_try="$ac_compile"
5230 case "(($ac_try" in
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5233 esac
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235 (eval "$ac_compile") 2>conftest.er1
5236 ac_status=$?
5237 grep -v '^ *+' conftest.er1 >conftest.err
5238 rm -f conftest.er1
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } && {
5242 test -z "$ac_cxx_werror_flag" ||
5243 test ! -s conftest.err
5244 } && test -s conftest.$ac_objext; then
5245 ac_header_compiler=yes
5246 else
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250 ac_header_compiler=no
5251 fi
5252
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5255 echo "${ECHO_T}$ac_header_compiler" >&6; }
5256
5257 # Is the header present?
5258 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5260 cat >conftest.$ac_ext <<_ACEOF
5261 /* confdefs.h. */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 #include <$ac_header>
5267 _ACEOF
5268 if { (ac_try="$ac_cpp conftest.$ac_ext"
5269 case "(($ac_try" in
5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271 *) ac_try_echo=$ac_try;;
5272 esac
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5275 ac_status=$?
5276 grep -v '^ *+' conftest.er1 >conftest.err
5277 rm -f conftest.er1
5278 cat conftest.err >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } >/dev/null && {
5281 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5282 test ! -s conftest.err
5283 }; then
5284 ac_header_preproc=yes
5285 else
5286 echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5288
5289 ac_header_preproc=no
5290 fi
5291
5292 rm -f conftest.err conftest.$ac_ext
5293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5294 echo "${ECHO_T}$ac_header_preproc" >&6; }
5295
5296 # So? What about this header?
5297 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5298 yes:no: )
5299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5303 ac_header_preproc=yes
5304 ;;
5305 no:yes:* )
5306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5313 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5318 ( cat <<\_ASBOX
5319 ## ---------------------------------------------------------------------------------- ##
5320 ## Report this to http://sourceforge.net/projects/dtorrent/ or [email protected] ##
5321 ## ---------------------------------------------------------------------------------- ##
5322 _ASBOX
5323 ) | sed "s/^/$as_me: WARNING: /" >&2
5324 ;;
5325 esac
5326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331 eval "$as_ac_Header=\$ac_header_preproc"
5332 fi
5333 ac_res=`eval echo '${'$as_ac_Header'}'`
5334 { echo "$as_me:$LINENO: result: $ac_res" >&5
5335 echo "${ECHO_T}$ac_res" >&6; }
5336
5337 fi
5338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5339 cat >>confdefs.h <<_ACEOF
5340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5341 _ACEOF
5342
5343 fi
5344
5345 done
5346
5347
5348 # Checks for typedefs, structures, and compiler characteristics.
5349 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5350 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5351 if test "${ac_cv_c_const+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 else
5354 cat >conftest.$ac_ext <<_ACEOF
5355 /* confdefs.h. */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5360
5361 int
5362 main ()
5363 {
5364 /* FIXME: Include the comments suggested by Paul. */
5365 #ifndef __cplusplus
5366 /* Ultrix mips cc rejects this. */
5367 typedef int charset[2];
5368 const charset cs;
5369 /* SunOS 4.1.1 cc rejects this. */
5370 char const *const *pcpcc;
5371 char **ppc;
5372 /* NEC SVR4.0.2 mips cc rejects this. */
5373 struct point {int x, y;};
5374 static struct point const zero = {0,0};
5375 /* AIX XL C 1.02.0.0 rejects this.
5376 It does not let you subtract one const X* pointer from another in
5377 an arm of an if-expression whose if-part is not a constant
5378 expression */
5379 const char *g = "string";
5380 pcpcc = &g + (g ? g-g : 0);
5381 /* HPUX 7.0 cc rejects these. */
5382 ++pcpcc;
5383 ppc = (char**) pcpcc;
5384 pcpcc = (char const *const *) ppc;
5385 { /* SCO 3.2v4 cc rejects this. */
5386 char *t;
5387 char const *s = 0 ? (char *) 0 : (char const *) 0;
5388
5389 *t++ = 0;
5390 if (s) return 0;
5391 }
5392 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5393 int x[] = {25, 17};
5394 const int *foo = &x[0];
5395 ++foo;
5396 }
5397 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5398 typedef const int *iptr;
5399 iptr p = 0;
5400 ++p;
5401 }
5402 { /* AIX XL C 1.02.0.0 rejects this saying
5403 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5404 struct s { int j; const int *ap[3]; };
5405 struct s *b; b->j = 5;
5406 }
5407 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5408 const int foo = 10;
5409 if (!foo) return 0;
5410 }
5411 return !cs[0] && !zero.x;
5412 #endif
5413
5414 ;
5415 return 0;
5416 }
5417 _ACEOF
5418 rm -f conftest.$ac_objext
5419 if { (ac_try="$ac_compile"
5420 case "(($ac_try" in
5421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422 *) ac_try_echo=$ac_try;;
5423 esac
5424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5425 (eval "$ac_compile") 2>conftest.er1
5426 ac_status=$?
5427 grep -v '^ *+' conftest.er1 >conftest.err
5428 rm -f conftest.er1
5429 cat conftest.err >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } && {
5432 test -z "$ac_cxx_werror_flag" ||
5433 test ! -s conftest.err
5434 } && test -s conftest.$ac_objext; then
5435 ac_cv_c_const=yes
5436 else
5437 echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5439
5440 ac_cv_c_const=no
5441 fi
5442
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444 fi
5445 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5446 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5447 if test $ac_cv_c_const = no; then
5448
5449 cat >>confdefs.h <<\_ACEOF
5450 #define const
5451 _ACEOF
5452
5453 fi
5454
5455 { echo "$as_me:$LINENO: checking for inline" >&5
5456 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5457 if test "${ac_cv_c_inline+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460 ac_cv_c_inline=no
5461 for ac_kw in inline __inline__ __inline; do
5462 cat >conftest.$ac_ext <<_ACEOF
5463 /* confdefs.h. */
5464 _ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h. */
5468 #ifndef __cplusplus
5469 typedef int foo_t;
5470 static $ac_kw foo_t static_foo () {return 0; }
5471 $ac_kw foo_t foo () {return 0; }
5472 #endif
5473
5474 _ACEOF
5475 rm -f conftest.$ac_objext
5476 if { (ac_try="$ac_compile"
5477 case "(($ac_try" in
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5480 esac
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_compile") 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } && {
5489 test -z "$ac_cxx_werror_flag" ||
5490 test ! -s conftest.err
5491 } && test -s conftest.$ac_objext; then
5492 ac_cv_c_inline=$ac_kw
5493 else
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5496
5497
5498 fi
5499
5500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5501 test "$ac_cv_c_inline" != no && break
5502 done
5503
5504 fi
5505 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5506 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5507
5508
5509 case $ac_cv_c_inline in
5510 inline | yes) ;;
5511 *)
5512 case $ac_cv_c_inline in
5513 no) ac_val=;;
5514 *) ac_val=$ac_cv_c_inline;;
5515 esac
5516 cat >>confdefs.h <<_ACEOF
5517 #ifndef __cplusplus
5518 #define inline $ac_val
5519 #endif
5520 _ACEOF
5521 ;;
5522 esac
5523
5524 if test $ac_cv_c_compiler_gnu = yes; then
5525 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5526 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
5527 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5528 echo $ECHO_N "(cached) $ECHO_C" >&6
5529 else
5530 ac_pattern="Autoconf.*'x'"
5531 cat >conftest.$ac_ext <<_ACEOF
5532 /* confdefs.h. */
5533 _ACEOF
5534 cat confdefs.h >>conftest.$ac_ext
5535 cat >>conftest.$ac_ext <<_ACEOF
5536 /* end confdefs.h. */
5537 #include <sgtty.h>
5538 Autoconf TIOCGETP
5539 _ACEOF
5540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5541 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5542 ac_cv_prog_gcc_traditional=yes
5543 else
5544 ac_cv_prog_gcc_traditional=no
5545 fi
5546 rm -f conftest*
5547
5548
5549 if test $ac_cv_prog_gcc_traditional = no; then
5550 cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h. */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 #include <termio.h>
5557 Autoconf TCGETA
5558 _ACEOF
5559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5560 $EGREP "$ac_pattern" >/dev/null 2>&1; then
5561 ac_cv_prog_gcc_traditional=yes
5562 fi
5563 rm -f conftest*
5564
5565 fi
5566 fi
5567 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5568 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
5569 if test $ac_cv_prog_gcc_traditional = yes; then
5570 CC="$CC -traditional"
5571 fi
5572 fi
5573
5574 { echo "$as_me:$LINENO: checking for size_t" >&5
5575 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5576 if test "${ac_cv_type_size_t+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579 cat >conftest.$ac_ext <<_ACEOF
5580 /* confdefs.h. */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585 $ac_includes_default
5586 typedef size_t ac__type_new_;
5587 int
5588 main ()
5589 {
5590 if ((ac__type_new_ *) 0)
5591 return 0;
5592 if (sizeof (ac__type_new_))
5593 return 0;
5594 ;
5595 return 0;
5596 }
5597 _ACEOF
5598 rm -f conftest.$ac_objext
5599 if { (ac_try="$ac_compile"
5600 case "(($ac_try" in
5601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602 *) ac_try_echo=$ac_try;;
5603 esac
5604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605 (eval "$ac_compile") 2>conftest.er1
5606 ac_status=$?
5607 grep -v '^ *+' conftest.er1 >conftest.err
5608 rm -f conftest.er1
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } && {
5612 test -z "$ac_cxx_werror_flag" ||
5613 test ! -s conftest.err
5614 } && test -s conftest.$ac_objext; then
5615 ac_cv_type_size_t=yes
5616 else
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5619
5620 ac_cv_type_size_t=no
5621 fi
5622
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 fi
5625 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5626 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5627 if test $ac_cv_type_size_t = yes; then
5628 :
5629 else
5630
5631 cat >>confdefs.h <<_ACEOF
5632 #define size_t unsigned int
5633 _ACEOF
5634
5635 fi
5636
5637 { echo "$as_me:$LINENO: checking for ssize_t" >&5
5638 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
5639 if test "${ac_cv_type_ssize_t+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 $ac_includes_default
5649 typedef ssize_t ac__type_new_;
5650 int
5651 main ()
5652 {
5653 if ((ac__type_new_ *) 0)
5654 return 0;
5655 if (sizeof (ac__type_new_))
5656 return 0;
5657 ;
5658 return 0;
5659 }
5660 _ACEOF
5661 rm -f conftest.$ac_objext
5662 if { (ac_try="$ac_compile"
5663 case "(($ac_try" in
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5666 esac
5667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_compile") 2>conftest.er1
5669 ac_status=$?
5670 grep -v '^ *+' conftest.er1 >conftest.err
5671 rm -f conftest.er1
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } && {
5675 test -z "$ac_cxx_werror_flag" ||
5676 test ! -s conftest.err
5677 } && test -s conftest.$ac_objext; then
5678 ac_cv_type_ssize_t=yes
5679 else
5680 echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5682
5683 ac_cv_type_ssize_t=no
5684 fi
5685
5686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687 fi
5688 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
5689 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
5690 if test $ac_cv_type_ssize_t = yes; then
5691 :
5692 else
5693
5694 cat >>confdefs.h <<_ACEOF
5695 #define ssize_t int
5696 _ACEOF
5697
5698 fi
5699
5700
5701 { echo "$as_me:$LINENO: checking for int8_t" >&5
5702 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
5703 if test "${ac_cv_c_int8_t+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706 ac_cv_c_int8_t=no
5707 for ac_type in 'int8_t' 'int' 'long int' \
5708 'long long int' 'short int' 'signed char'; do
5709 cat >conftest.$ac_ext <<_ACEOF
5710 /* confdefs.h. */
5711 _ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5715 $ac_includes_default
5716 int
5717 main ()
5718 {
5719 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
5720 test_array [0] = 0
5721
5722 ;
5723 return 0;
5724 }
5725 _ACEOF
5726 rm -f conftest.$ac_objext
5727 if { (ac_try="$ac_compile"
5728 case "(($ac_try" in
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5731 esac
5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_compile") 2>conftest.er1
5734 ac_status=$?
5735 grep -v '^ *+' conftest.er1 >conftest.err
5736 rm -f conftest.er1
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } && {
5740 test -z "$ac_cxx_werror_flag" ||
5741 test ! -s conftest.err
5742 } && test -s conftest.$ac_objext; then
5743 cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h. */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 $ac_includes_default
5750 int
5751 main ()
5752 {
5753 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
5754 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
5755 test_array [0] = 0
5756
5757 ;
5758 return 0;
5759 }
5760 _ACEOF
5761 rm -f conftest.$ac_objext
5762 if { (ac_try="$ac_compile"
5763 case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766 esac
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_compile") 2>conftest.er1
5769 ac_status=$?
5770 grep -v '^ *+' conftest.er1 >conftest.err
5771 rm -f conftest.er1
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } && {
5775 test -z "$ac_cxx_werror_flag" ||
5776 test ! -s conftest.err
5777 } && test -s conftest.$ac_objext; then
5778 :
5779 else
5780 echo "$as_me: failed program was:" >&5
5781 sed 's/^/| /' conftest.$ac_ext >&5
5782
5783 case $ac_type in
5784 int8_t) ac_cv_c_int8_t=yes ;;
5785 *) ac_cv_c_int8_t=$ac_type ;;
5786 esac
5787
5788 fi
5789
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791 else
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5794
5795
5796 fi
5797
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799 test "$ac_cv_c_int8_t" != no && break
5800 done
5801 fi
5802 { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
5803 echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
5804 case $ac_cv_c_int8_t in #(
5805 no|yes) ;; #(
5806 *)
5807
5808 cat >>confdefs.h <<_ACEOF
5809 #define int8_t $ac_cv_c_int8_t
5810 _ACEOF
5811 ;;
5812 esac
5813
5814
5815 { echo "$as_me:$LINENO: checking for int16_t" >&5
5816 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
5817 if test "${ac_cv_c_int16_t+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820 ac_cv_c_int16_t=no
5821 for ac_type in 'int16_t' 'int' 'long int' \
5822 'long long int' 'short int' 'signed char'; do
5823 cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h. */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5830 int
5831 main ()
5832 {
5833 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
5834 test_array [0] = 0
5835
5836 ;
5837 return 0;
5838 }
5839 _ACEOF
5840 rm -f conftest.$ac_objext
5841 if { (ac_try="$ac_compile"
5842 case "(($ac_try" in
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5845 esac
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_compile") 2>conftest.er1
5848 ac_status=$?
5849 grep -v '^ *+' conftest.er1 >conftest.err
5850 rm -f conftest.er1
5851 cat conftest.err >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } && {
5854 test -z "$ac_cxx_werror_flag" ||
5855 test ! -s conftest.err
5856 } && test -s conftest.$ac_objext; then
5857 cat >conftest.$ac_ext <<_ACEOF
5858 /* confdefs.h. */
5859 _ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 $ac_includes_default
5864 int
5865 main ()
5866 {
5867 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
5868 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
5869 test_array [0] = 0
5870
5871 ;
5872 return 0;
5873 }
5874 _ACEOF
5875 rm -f conftest.$ac_objext
5876 if { (ac_try="$ac_compile"
5877 case "(($ac_try" in
5878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879 *) ac_try_echo=$ac_try;;
5880 esac
5881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882 (eval "$ac_compile") 2>conftest.er1
5883 ac_status=$?
5884 grep -v '^ *+' conftest.er1 >conftest.err
5885 rm -f conftest.er1
5886 cat conftest.err >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } && {
5889 test -z "$ac_cxx_werror_flag" ||
5890 test ! -s conftest.err
5891 } && test -s conftest.$ac_objext; then
5892 :
5893 else
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5896
5897 case $ac_type in
5898 int16_t) ac_cv_c_int16_t=yes ;;
5899 *) ac_cv_c_int16_t=$ac_type ;;
5900 esac
5901
5902 fi
5903
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 else
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5908
5909
5910 fi
5911
5912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5913 test "$ac_cv_c_int16_t" != no && break
5914 done
5915 fi
5916 { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
5917 echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
5918 case $ac_cv_c_int16_t in #(
5919 no|yes) ;; #(
5920 *)
5921
5922 cat >>confdefs.h <<_ACEOF
5923 #define int16_t $ac_cv_c_int16_t
5924 _ACEOF
5925 ;;
5926 esac
5927
5928
5929 { echo "$as_me:$LINENO: checking for int32_t" >&5
5930 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
5931 if test "${ac_cv_c_int32_t+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934 ac_cv_c_int32_t=no
5935 for ac_type in 'int32_t' 'int' 'long int' \
5936 'long long int' 'short int' 'signed char'; do
5937 cat >conftest.$ac_ext <<_ACEOF
5938 /* confdefs.h. */
5939 _ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h. */
5943 $ac_includes_default
5944 int
5945 main ()
5946 {
5947 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
5948 test_array [0] = 0
5949
5950 ;
5951 return 0;
5952 }
5953 _ACEOF
5954 rm -f conftest.$ac_objext
5955 if { (ac_try="$ac_compile"
5956 case "(($ac_try" in
5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5959 esac
5960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961 (eval "$ac_compile") 2>conftest.er1
5962 ac_status=$?
5963 grep -v '^ *+' conftest.er1 >conftest.err
5964 rm -f conftest.er1
5965 cat conftest.err >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } && {
5968 test -z "$ac_cxx_werror_flag" ||
5969 test ! -s conftest.err
5970 } && test -s conftest.$ac_objext; then
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 $ac_includes_default
5978 int
5979 main ()
5980 {
5981 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
5982 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
5983 test_array [0] = 0
5984
5985 ;
5986 return 0;
5987 }
5988 _ACEOF
5989 rm -f conftest.$ac_objext
5990 if { (ac_try="$ac_compile"
5991 case "(($ac_try" in
5992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993 *) ac_try_echo=$ac_try;;
5994 esac
5995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996 (eval "$ac_compile") 2>conftest.er1
5997 ac_status=$?
5998 grep -v '^ *+' conftest.er1 >conftest.err
5999 rm -f conftest.er1
6000 cat conftest.err >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } && {
6003 test -z "$ac_cxx_werror_flag" ||
6004 test ! -s conftest.err
6005 } && test -s conftest.$ac_objext; then
6006 :
6007 else
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6010
6011 case $ac_type in
6012 int32_t) ac_cv_c_int32_t=yes ;;
6013 *) ac_cv_c_int32_t=$ac_type ;;
6014 esac
6015
6016 fi
6017
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 else
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6022
6023
6024 fi
6025
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 test "$ac_cv_c_int32_t" != no && break
6028 done
6029 fi
6030 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
6031 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
6032 case $ac_cv_c_int32_t in #(
6033 no|yes) ;; #(
6034 *)
6035
6036 cat >>confdefs.h <<_ACEOF
6037 #define int32_t $ac_cv_c_int32_t
6038 _ACEOF
6039 ;;
6040 esac
6041
6042
6043 { echo "$as_me:$LINENO: checking for int64_t" >&5
6044 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
6045 if test "${ac_cv_c_int64_t+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048 ac_cv_c_int64_t=no
6049 for ac_type in 'int64_t' 'int' 'long int' \
6050 'long long int' 'short int' 'signed char'; do
6051 cat >conftest.$ac_ext <<_ACEOF
6052 /* confdefs.h. */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6057 $ac_includes_default
6058 int
6059 main ()
6060 {
6061 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
6062 test_array [0] = 0
6063
6064 ;
6065 return 0;
6066 }
6067 _ACEOF
6068 rm -f conftest.$ac_objext
6069 if { (ac_try="$ac_compile"
6070 case "(($ac_try" in
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6073 esac
6074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_compile") 2>conftest.er1
6076 ac_status=$?
6077 grep -v '^ *+' conftest.er1 >conftest.err
6078 rm -f conftest.er1
6079 cat conftest.err >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } && {
6082 test -z "$ac_cxx_werror_flag" ||
6083 test ! -s conftest.err
6084 } && test -s conftest.$ac_objext; then
6085 cat >conftest.$ac_ext <<_ACEOF
6086 /* confdefs.h. */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 $ac_includes_default
6092 int
6093 main ()
6094 {
6095 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
6096 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
6097 test_array [0] = 0
6098
6099 ;
6100 return 0;
6101 }
6102 _ACEOF
6103 rm -f conftest.$ac_objext
6104 if { (ac_try="$ac_compile"
6105 case "(($ac_try" in
6106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107 *) ac_try_echo=$ac_try;;
6108 esac
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_cxx_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.$ac_objext; then
6120 :
6121 else
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6124
6125 case $ac_type in
6126 int64_t) ac_cv_c_int64_t=yes ;;
6127 *) ac_cv_c_int64_t=$ac_type ;;
6128 esac
6129
6130 fi
6131
6132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6133 else
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6136
6137
6138 fi
6139
6140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141 test "$ac_cv_c_int64_t" != no && break
6142 done
6143 fi
6144 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
6145 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
6146 case $ac_cv_c_int64_t in #(
6147 no|yes) ;; #(
6148 *)
6149
6150 cat >>confdefs.h <<_ACEOF
6151 #define int64_t $ac_cv_c_int64_t
6152 _ACEOF
6153 ;;
6154 esac
6155
6156
6157 { echo "$as_me:$LINENO: checking for uint8_t" >&5
6158 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
6159 if test "${ac_cv_c_uint8_t+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162 ac_cv_c_uint8_t=no
6163 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
6164 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
6165 cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h. */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 $ac_includes_default
6172 int
6173 main ()
6174 {
6175 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
6176 test_array [0] = 0
6177
6178 ;
6179 return 0;
6180 }
6181 _ACEOF
6182 rm -f conftest.$ac_objext
6183 if { (ac_try="$ac_compile"
6184 case "(($ac_try" in
6185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186 *) ac_try_echo=$ac_try;;
6187 esac
6188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6189 (eval "$ac_compile") 2>conftest.er1
6190 ac_status=$?
6191 grep -v '^ *+' conftest.er1 >conftest.err
6192 rm -f conftest.er1
6193 cat conftest.err >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } && {
6196 test -z "$ac_cxx_werror_flag" ||
6197 test ! -s conftest.err
6198 } && test -s conftest.$ac_objext; then
6199 case $ac_type in
6200 uint8_t) ac_cv_c_uint8_t=yes ;;
6201 *) ac_cv_c_uint8_t=$ac_type ;;
6202 esac
6203
6204 else
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6207
6208
6209 fi
6210
6211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6212 test "$ac_cv_c_uint8_t" != no && break
6213 done
6214 fi
6215 { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
6216 echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
6217 case $ac_cv_c_uint8_t in #(
6218 no|yes) ;; #(
6219 *)
6220
6221 cat >>confdefs.h <<\_ACEOF
6222 #define _UINT8_T 1
6223 _ACEOF
6224
6225
6226 cat >>confdefs.h <<_ACEOF
6227 #define uint8_t $ac_cv_c_uint8_t
6228 _ACEOF
6229 ;;
6230 esac
6231
6232
6233 { echo "$as_me:$LINENO: checking for uint16_t" >&5
6234 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
6235 if test "${ac_cv_c_uint16_t+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 else
6238 ac_cv_c_uint16_t=no
6239 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
6240 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
6241 cat >conftest.$ac_ext <<_ACEOF
6242 /* confdefs.h. */
6243 _ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h. */
6247 $ac_includes_default
6248 int
6249 main ()
6250 {
6251 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
6252 test_array [0] = 0
6253
6254 ;
6255 return 0;
6256 }
6257 _ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (ac_try="$ac_compile"
6260 case "(($ac_try" in
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6263 esac
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_compile") 2>conftest.er1
6266 ac_status=$?
6267 grep -v '^ *+' conftest.er1 >conftest.err
6268 rm -f conftest.er1
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } && {
6272 test -z "$ac_cxx_werror_flag" ||
6273 test ! -s conftest.err
6274 } && test -s conftest.$ac_objext; then
6275 case $ac_type in
6276 uint16_t) ac_cv_c_uint16_t=yes ;;
6277 *) ac_cv_c_uint16_t=$ac_type ;;
6278 esac
6279
6280 else
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6283
6284
6285 fi
6286
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288 test "$ac_cv_c_uint16_t" != no && break
6289 done
6290 fi
6291 { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
6292 echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
6293 case $ac_cv_c_uint16_t in #(
6294 no|yes) ;; #(
6295 *)
6296
6297
6298 cat >>confdefs.h <<_ACEOF
6299 #define uint16_t $ac_cv_c_uint16_t
6300 _ACEOF
6301 ;;
6302 esac
6303
6304
6305 { echo "$as_me:$LINENO: checking for uint32_t" >&5
6306 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
6307 if test "${ac_cv_c_uint32_t+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310 ac_cv_c_uint32_t=no
6311 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
6312 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
6313 cat >conftest.$ac_ext <<_ACEOF
6314 /* confdefs.h. */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 $ac_includes_default
6320 int
6321 main ()
6322 {
6323 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
6324 test_array [0] = 0
6325
6326 ;
6327 return 0;
6328 }
6329 _ACEOF
6330 rm -f conftest.$ac_objext
6331 if { (ac_try="$ac_compile"
6332 case "(($ac_try" in
6333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334 *) ac_try_echo=$ac_try;;
6335 esac
6336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337 (eval "$ac_compile") 2>conftest.er1
6338 ac_status=$?
6339 grep -v '^ *+' conftest.er1 >conftest.err
6340 rm -f conftest.er1
6341 cat conftest.err >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } && {
6344 test -z "$ac_cxx_werror_flag" ||
6345 test ! -s conftest.err
6346 } && test -s conftest.$ac_objext; then
6347 case $ac_type in
6348 uint32_t) ac_cv_c_uint32_t=yes ;;
6349 *) ac_cv_c_uint32_t=$ac_type ;;
6350 esac
6351
6352 else
6353 echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6355
6356
6357 fi
6358
6359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360 test "$ac_cv_c_uint32_t" != no && break
6361 done
6362 fi
6363 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
6364 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
6365 case $ac_cv_c_uint32_t in #(
6366 no|yes) ;; #(
6367 *)
6368
6369 cat >>confdefs.h <<\_ACEOF
6370 #define _UINT32_T 1
6371 _ACEOF
6372
6373
6374 cat >>confdefs.h <<_ACEOF
6375 #define uint32_t $ac_cv_c_uint32_t
6376 _ACEOF
6377 ;;
6378 esac
6379
6380
6381 { echo "$as_me:$LINENO: checking for uint64_t" >&5
6382 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
6383 if test "${ac_cv_c_uint64_t+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386 ac_cv_c_uint64_t=no
6387 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
6388 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
6389 cat >conftest.$ac_ext <<_ACEOF
6390 /* confdefs.h. */
6391 _ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6395 $ac_includes_default
6396 int
6397 main ()
6398 {
6399 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
6400 test_array [0] = 0
6401
6402 ;
6403 return 0;
6404 }
6405 _ACEOF
6406 rm -f conftest.$ac_objext
6407 if { (ac_try="$ac_compile"
6408 case "(($ac_try" in
6409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6410 *) ac_try_echo=$ac_try;;
6411 esac
6412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6413 (eval "$ac_compile") 2>conftest.er1
6414 ac_status=$?
6415 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -f conftest.er1
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } && {
6420 test -z "$ac_cxx_werror_flag" ||
6421 test ! -s conftest.err
6422 } && test -s conftest.$ac_objext; then
6423 case $ac_type in
6424 uint64_t) ac_cv_c_uint64_t=yes ;;
6425 *) ac_cv_c_uint64_t=$ac_type ;;
6426 esac
6427
6428 else
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6431
6432
6433 fi
6434
6435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436 test "$ac_cv_c_uint64_t" != no && break
6437 done
6438 fi
6439 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
6440 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
6441 case $ac_cv_c_uint64_t in #(
6442 no|yes) ;; #(
6443 *)
6444
6445 cat >>confdefs.h <<\_ACEOF
6446 #define _UINT64_T 1
6447 _ACEOF
6448
6449
6450 cat >>confdefs.h <<_ACEOF
6451 #define uint64_t $ac_cv_c_uint64_t
6452 _ACEOF
6453 ;;
6454 esac
6455
6456 { echo "$as_me:$LINENO: checking for clockid_t" >&5
6457 echo $ECHO_N "checking for clockid_t... $ECHO_C" >&6; }
6458 if test "${ac_cv_type_clockid_t+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461 cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h. */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 $ac_includes_default
6468 typedef clockid_t ac__type_new_;
6469 int
6470 main ()
6471 {
6472 if ((ac__type_new_ *) 0)
6473 return 0;
6474 if (sizeof (ac__type_new_))
6475 return 0;
6476 ;
6477 return 0;
6478 }
6479 _ACEOF
6480 rm -f conftest.$ac_objext
6481 if { (ac_try="$ac_compile"
6482 case "(($ac_try" in
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6485 esac
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_compile") 2>conftest.er1
6488 ac_status=$?
6489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } && {
6494 test -z "$ac_cxx_werror_flag" ||
6495 test ! -s conftest.err
6496 } && test -s conftest.$ac_objext; then
6497 ac_cv_type_clockid_t=yes
6498 else
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6501
6502 ac_cv_type_clockid_t=no
6503 fi
6504
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 fi
6507 { echo "$as_me:$LINENO: result: $ac_cv_type_clockid_t" >&5
6508 echo "${ECHO_T}$ac_cv_type_clockid_t" >&6; }
6509 if test $ac_cv_type_clockid_t = yes; then
6510
6511 cat >>confdefs.h <<\_ACEOF
6512 #define HAVE_CLOCKID_T 1
6513 _ACEOF
6514
6515 fi
6516
6517 { echo "$as_me:$LINENO: checking whether INADDR_NONE is declared" >&5
6518 echo $ECHO_N "checking whether INADDR_NONE is declared... $ECHO_C" >&6; }
6519 if test "${ac_cv_have_decl_INADDR_NONE+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522 cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h. */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 #include <arpa/inet.h>
6529 #include <netinet/in.h>
6530
6531 int
6532 main ()
6533 {
6534 #ifndef INADDR_NONE
6535 (void) INADDR_NONE;
6536 #endif
6537
6538 ;
6539 return 0;
6540 }
6541 _ACEOF
6542 rm -f conftest.$ac_objext
6543 if { (ac_try="$ac_compile"
6544 case "(($ac_try" in
6545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6546 *) ac_try_echo=$ac_try;;
6547 esac
6548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6549 (eval "$ac_compile") 2>conftest.er1
6550 ac_status=$?
6551 grep -v '^ *+' conftest.er1 >conftest.err
6552 rm -f conftest.er1
6553 cat conftest.err >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } && {
6556 test -z "$ac_cxx_werror_flag" ||
6557 test ! -s conftest.err
6558 } && test -s conftest.$ac_objext; then
6559 ac_cv_have_decl_INADDR_NONE=yes
6560 else
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6563
6564 ac_cv_have_decl_INADDR_NONE=no
6565 fi
6566
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568 fi
6569 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_INADDR_NONE" >&5
6570 echo "${ECHO_T}$ac_cv_have_decl_INADDR_NONE" >&6; }
6571 if test $ac_cv_have_decl_INADDR_NONE = yes; then
6572 :
6573 else
6574
6575 cat >>confdefs.h <<\_ACEOF
6576 #define INADDR_NONE ((unsigned long)-1)
6577 _ACEOF
6578
6579 fi
6580
6581 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6582 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
6583 if test "${ac_cv_c_bigendian+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586 # See if sys/param.h defines the BYTE_ORDER macro.
6587 cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h. */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 #include <sys/types.h>
6594 #include <sys/param.h>
6595
6596 int
6597 main ()
6598 {
6599 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
6600 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
6601 bogus endian macros
6602 #endif
6603
6604 ;
6605 return 0;
6606 }
6607 _ACEOF
6608 rm -f conftest.$ac_objext
6609 if { (ac_try="$ac_compile"
6610 case "(($ac_try" in
6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612 *) ac_try_echo=$ac_try;;
6613 esac
6614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6615 (eval "$ac_compile") 2>conftest.er1
6616 ac_status=$?
6617 grep -v '^ *+' conftest.er1 >conftest.err
6618 rm -f conftest.er1
6619 cat conftest.err >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } && {
6622 test -z "$ac_cxx_werror_flag" ||
6623 test ! -s conftest.err
6624 } && test -s conftest.$ac_objext; then
6625 # It does; now see whether it defined to BIG_ENDIAN or not.
6626 cat >conftest.$ac_ext <<_ACEOF
6627 /* confdefs.h. */
6628 _ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6632 #include <sys/types.h>
6633 #include <sys/param.h>
6634
6635 int
6636 main ()
6637 {
6638 #if BYTE_ORDER != BIG_ENDIAN
6639 not big endian
6640 #endif
6641
6642 ;
6643 return 0;
6644 }
6645 _ACEOF
6646 rm -f conftest.$ac_objext
6647 if { (ac_try="$ac_compile"
6648 case "(($ac_try" in
6649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6650 *) ac_try_echo=$ac_try;;
6651 esac
6652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6653 (eval "$ac_compile") 2>conftest.er1
6654 ac_status=$?
6655 grep -v '^ *+' conftest.er1 >conftest.err
6656 rm -f conftest.er1
6657 cat conftest.err >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } && {
6660 test -z "$ac_cxx_werror_flag" ||
6661 test ! -s conftest.err
6662 } && test -s conftest.$ac_objext; then
6663 ac_cv_c_bigendian=yes
6664 else
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6667
6668 ac_cv_c_bigendian=no
6669 fi
6670
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672 else
6673 echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6675
6676 # It does not; compile a test program.
6677 if test "$cross_compiling" = yes; then
6678 # try to guess the endianness by grepping values into an object file
6679 ac_cv_c_bigendian=unknown
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 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6687 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6688 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6689 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6690 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6691 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6692 int
6693 main ()
6694 {
6695 _ascii (); _ebcdic ();
6696 ;
6697 return 0;
6698 }
6699 _ACEOF
6700 rm -f conftest.$ac_objext
6701 if { (ac_try="$ac_compile"
6702 case "(($ac_try" in
6703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6704 *) ac_try_echo=$ac_try;;
6705 esac
6706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6707 (eval "$ac_compile") 2>conftest.er1
6708 ac_status=$?
6709 grep -v '^ *+' conftest.er1 >conftest.err
6710 rm -f conftest.er1
6711 cat conftest.err >&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } && {
6714 test -z "$ac_cxx_werror_flag" ||
6715 test ! -s conftest.err
6716 } && test -s conftest.$ac_objext; then
6717 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6718 ac_cv_c_bigendian=yes
6719 fi
6720 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6721 if test "$ac_cv_c_bigendian" = unknown; then
6722 ac_cv_c_bigendian=no
6723 else
6724 # finding both strings is unlikely to happen, but who knows?
6725 ac_cv_c_bigendian=unknown
6726 fi
6727 fi
6728 else
6729 echo "$as_me: failed program was:" >&5
6730 sed 's/^/| /' conftest.$ac_ext >&5
6731
6732
6733 fi
6734
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 else
6737 cat >conftest.$ac_ext <<_ACEOF
6738 /* confdefs.h. */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6743 $ac_includes_default
6744 int
6745 main ()
6746 {
6747
6748 /* Are we little or big endian? From Harbison&Steele. */
6749 union
6750 {
6751 long int l;
6752 char c[sizeof (long int)];
6753 } u;
6754 u.l = 1;
6755 return u.c[sizeof (long int) - 1] == 1;
6756
6757 ;
6758 return 0;
6759 }
6760 _ACEOF
6761 rm -f conftest$ac_exeext
6762 if { (ac_try="$ac_link"
6763 case "(($ac_try" in
6764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6765 *) ac_try_echo=$ac_try;;
6766 esac
6767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6768 (eval "$ac_link") 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6772 { (case "(($ac_try" in
6773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774 *) ac_try_echo=$ac_try;;
6775 esac
6776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777 (eval "$ac_try") 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; }; then
6781 ac_cv_c_bigendian=no
6782 else
6783 echo "$as_me: program exited with status $ac_status" >&5
6784 echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.$ac_ext >&5
6786
6787 ( exit $ac_status )
6788 ac_cv_c_bigendian=yes
6789 fi
6790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6791 fi
6792
6793
6794 fi
6795
6796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 fi
6798 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6799 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
6800 case $ac_cv_c_bigendian in
6801 yes)
6802
6803 cat >>confdefs.h <<\_ACEOF
6804 #define WORDS_BIGENDIAN 1
6805 _ACEOF
6806 ;;
6807 no)
6808 ;;
6809 *)
6810 { { echo "$as_me:$LINENO: error: unknown endianness
6811 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6812 echo "$as_me: error: unknown endianness
6813 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6814 { (exit 1); exit 1; }; } ;;
6815 esac
6816
6817
6818 # Checks for library functions.
6819 { echo "$as_me:$LINENO: checking for working memcmp" >&5
6820 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
6821 if test "${ac_cv_func_memcmp_working+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824 if test "$cross_compiling" = yes; then
6825 ac_cv_func_memcmp_working=no
6826 else
6827 cat >conftest.$ac_ext <<_ACEOF
6828 /* confdefs.h. */
6829 _ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h. */
6833 $ac_includes_default
6834 int
6835 main ()
6836 {
6837
6838 /* Some versions of memcmp are not 8-bit clean. */
6839 char c0 = '\100', c1 = '\200', c2 = '\201';
6840 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6841 return 1;
6842
6843 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6844 or more and with at least one buffer not starting on a 4-byte boundary.
6845 William Lewis provided this test program. */
6846 {
6847 char foo[21];
6848 char bar[21];
6849 int i;
6850 for (i = 0; i < 4; i++)
6851 {
6852 char *a = foo + i;
6853 char *b = bar + i;
6854 strcpy (a, "--------01111111");
6855 strcpy (b, "--------10000000");
6856 if (memcmp (a, b, 16) >= 0)
6857 return 1;
6858 }
6859 return 0;
6860 }
6861
6862 ;
6863 return 0;
6864 }
6865 _ACEOF
6866 rm -f conftest$ac_exeext
6867 if { (ac_try="$ac_link"
6868 case "(($ac_try" in
6869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6870 *) ac_try_echo=$ac_try;;
6871 esac
6872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6873 (eval "$ac_link") 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6877 { (case "(($ac_try" in
6878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6879 *) ac_try_echo=$ac_try;;
6880 esac
6881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6882 (eval "$ac_try") 2>&5
6883 ac_status=$?
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; }; then
6886 ac_cv_func_memcmp_working=yes
6887 else
6888 echo "$as_me: program exited with status $ac_status" >&5
6889 echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.$ac_ext >&5
6891
6892 ( exit $ac_status )
6893 ac_cv_func_memcmp_working=no
6894 fi
6895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6896 fi
6897
6898
6899 fi
6900 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
6901 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
6902 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6903 *" memcmp.$ac_objext "* ) ;;
6904 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6905 ;;
6906 esac
6907
6908
6909 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6910 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6911 if test "${ac_cv_type_signal+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914 cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h. */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920 #include <sys/types.h>
6921 #include <signal.h>
6922
6923 int
6924 main ()
6925 {
6926 return *(signal (0, 0)) (0) == 1;
6927 ;
6928 return 0;
6929 }
6930 _ACEOF
6931 rm -f conftest.$ac_objext
6932 if { (ac_try="$ac_compile"
6933 case "(($ac_try" in
6934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6935 *) ac_try_echo=$ac_try;;
6936 esac
6937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6938 (eval "$ac_compile") 2>conftest.er1
6939 ac_status=$?
6940 grep -v '^ *+' conftest.er1 >conftest.err
6941 rm -f conftest.er1
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } && {
6945 test -z "$ac_cxx_werror_flag" ||
6946 test ! -s conftest.err
6947 } && test -s conftest.$ac_objext; then
6948 ac_cv_type_signal=int
6949 else
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6952
6953 ac_cv_type_signal=void
6954 fi
6955
6956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957 fi
6958 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6959 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6960
6961 cat >>confdefs.h <<_ACEOF
6962 #define RETSIGTYPE $ac_cv_type_signal
6963 _ACEOF
6964
6965
6966 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6967 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
6968 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971 rm -f conftest.sym conftest.file
6972 echo >conftest.file
6973 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6974 if test "$cross_compiling" = yes; then
6975 ac_cv_func_lstat_dereferences_slashed_symlink=no
6976 else
6977 cat >conftest.$ac_ext <<_ACEOF
6978 /* confdefs.h. */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6983 $ac_includes_default
6984 int
6985 main ()
6986 {
6987 struct stat sbuf;
6988 /* Linux will dereference the symlink and fail.
6989 That is better in the sense that it means we will not
6990 have to compile and use the lstat wrapper. */
6991 return lstat ("conftest.sym/", &sbuf) == 0;
6992 ;
6993 return 0;
6994 }
6995 _ACEOF
6996 rm -f conftest$ac_exeext
6997 if { (ac_try="$ac_link"
6998 case "(($ac_try" in
6999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7000 *) ac_try_echo=$ac_try;;
7001 esac
7002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7003 (eval "$ac_link") 2>&5
7004 ac_status=$?
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7007 { (case "(($ac_try" in
7008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7009 *) ac_try_echo=$ac_try;;
7010 esac
7011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7012 (eval "$ac_try") 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7016 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7017 else
7018 echo "$as_me: program exited with status $ac_status" >&5
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7021
7022 ( exit $ac_status )
7023 ac_cv_func_lstat_dereferences_slashed_symlink=no
7024 fi
7025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7026 fi
7027
7028
7029 else
7030 # If the `ln -s' command failed, then we probably don't even
7031 # have an lstat function.
7032 ac_cv_func_lstat_dereferences_slashed_symlink=no
7033 fi
7034 rm -f conftest.sym conftest.file
7035
7036 fi
7037 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7038 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7039
7040 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7041
7042 cat >>confdefs.h <<_ACEOF
7043 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7044 _ACEOF
7045
7046
7047 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7048 case " $LIBOBJS " in
7049 *" lstat.$ac_objext "* ) ;;
7050 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7051 ;;
7052 esac
7053
7054 fi
7055
7056 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7057 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
7058 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061 if test "$cross_compiling" = yes; then
7062 ac_cv_func_stat_empty_string_bug=yes
7063 else
7064 cat >conftest.$ac_ext <<_ACEOF
7065 /* confdefs.h. */
7066 _ACEOF
7067 cat confdefs.h >>conftest.$ac_ext
7068 cat >>conftest.$ac_ext <<_ACEOF
7069 /* end confdefs.h. */
7070 $ac_includes_default
7071 int
7072 main ()
7073 {
7074 struct stat sbuf;
7075 return stat ("", &sbuf) == 0;
7076 ;
7077 return 0;
7078 }
7079 _ACEOF
7080 rm -f conftest$ac_exeext
7081 if { (ac_try="$ac_link"
7082 case "(($ac_try" in
7083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084 *) ac_try_echo=$ac_try;;
7085 esac
7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087 (eval "$ac_link") 2>&5
7088 ac_status=$?
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7091 { (case "(($ac_try" in
7092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7093 *) ac_try_echo=$ac_try;;
7094 esac
7095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7096 (eval "$ac_try") 2>&5
7097 ac_status=$?
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); }; }; then
7100 ac_cv_func_stat_empty_string_bug=no
7101 else
7102 echo "$as_me: program exited with status $ac_status" >&5
7103 echo "$as_me: failed program was:" >&5
7104 sed 's/^/| /' conftest.$ac_ext >&5
7105
7106 ( exit $ac_status )
7107 ac_cv_func_stat_empty_string_bug=yes
7108 fi
7109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7110 fi
7111
7112
7113 fi
7114 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7115 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
7116 if test $ac_cv_func_stat_empty_string_bug = yes; then
7117 case " $LIBOBJS " in
7118 *" stat.$ac_objext "* ) ;;
7119 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7120 ;;
7121 esac
7122
7123
7124 cat >>confdefs.h <<_ACEOF
7125 #define HAVE_STAT_EMPTY_STRING_BUG 1
7126 _ACEOF
7127
7128 fi
7129
7130 { echo "$as_me:$LINENO: checking for working strtod" >&5
7131 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
7132 if test "${ac_cv_func_strtod+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135 if test "$cross_compiling" = yes; then
7136 ac_cv_func_strtod=no
7137 else
7138 cat >conftest.$ac_ext <<_ACEOF
7139 /* confdefs.h. */
7140 _ACEOF
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h. */
7144
7145 $ac_includes_default
7146 #ifndef strtod
7147 double strtod ();
7148 #endif
7149 int
7150 main()
7151 {
7152 {
7153 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
7154 char *string = " +69";
7155 char *term;
7156 double value;
7157 value = strtod (string, &term);
7158 if (value != 69 || term != (string + 4))
7159 return 1;
7160 }
7161
7162 {
7163 /* Under Solaris 2.4, strtod returns the wrong value for the
7164 terminating character under some conditions. */
7165 char *string = "NaN";
7166 char *term;
7167 strtod (string, &term);
7168 if (term != string && *(term - 1) == 0)
7169 return 1;
7170 }
7171 return 0;
7172 }
7173
7174 _ACEOF
7175 rm -f conftest$ac_exeext
7176 if { (ac_try="$ac_link"
7177 case "(($ac_try" in
7178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179 *) ac_try_echo=$ac_try;;
7180 esac
7181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7182 (eval "$ac_link") 2>&5
7183 ac_status=$?
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7186 { (case "(($ac_try" in
7187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7188 *) ac_try_echo=$ac_try;;
7189 esac
7190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7191 (eval "$ac_try") 2>&5
7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7195 ac_cv_func_strtod=yes
7196 else
7197 echo "$as_me: program exited with status $ac_status" >&5
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7200
7201 ( exit $ac_status )
7202 ac_cv_func_strtod=no
7203 fi
7204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7205 fi
7206
7207
7208 fi
7209 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
7210 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
7211 if test $ac_cv_func_strtod = no; then
7212 case " $LIBOBJS " in
7213 *" strtod.$ac_objext "* ) ;;
7214 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
7215 ;;
7216 esac
7217
7218 { echo "$as_me:$LINENO: checking for pow" >&5
7219 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
7220 if test "${ac_cv_func_pow+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223 cat >conftest.$ac_ext <<_ACEOF
7224 /* confdefs.h. */
7225 _ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h. */
7229 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
7230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7231 #define pow innocuous_pow
7232
7233 /* System header to define __stub macros and hopefully few prototypes,
7234 which can conflict with char pow (); below.
7235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7236 <limits.h> exists even on freestanding compilers. */
7237
7238 #ifdef __STDC__
7239 # include <limits.h>
7240 #else
7241 # include <assert.h>
7242 #endif
7243
7244 #undef pow
7245
7246 /* Override any GCC internal prototype to avoid an error.
7247 Use char because int might match the return type of a GCC
7248 builtin and then its argument prototype would still apply. */
7249 #ifdef __cplusplus
7250 extern "C"
7251 #endif
7252 char pow ();
7253 /* The GNU C library defines this for functions which it implements
7254 to always fail with ENOSYS. Some functions are actually named
7255 something starting with __ and the normal name is an alias. */
7256 #if defined __stub_pow || defined __stub___pow
7257 choke me
7258 #endif
7259
7260 int
7261 main ()
7262 {
7263 return pow ();
7264 ;
7265 return 0;
7266 }
7267 _ACEOF
7268 rm -f conftest.$ac_objext conftest$ac_exeext
7269 if { (ac_try="$ac_link"
7270 case "(($ac_try" in
7271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7272 *) ac_try_echo=$ac_try;;
7273 esac
7274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7275 (eval "$ac_link") 2>conftest.er1
7276 ac_status=$?
7277 grep -v '^ *+' conftest.er1 >conftest.err
7278 rm -f conftest.er1
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } && {
7282 test -z "$ac_cxx_werror_flag" ||
7283 test ! -s conftest.err
7284 } && test -s conftest$ac_exeext &&
7285 $as_test_x conftest$ac_exeext; then
7286 ac_cv_func_pow=yes
7287 else
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7290
7291 ac_cv_func_pow=no
7292 fi
7293
7294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7295 conftest$ac_exeext conftest.$ac_ext
7296 fi
7297 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
7298 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
7299
7300 if test $ac_cv_func_pow = no; then
7301 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
7302 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
7303 if test "${ac_cv_lib_m_pow+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306 ac_check_lib_save_LIBS=$LIBS
7307 LIBS="-lm $LIBS"
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h. */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314
7315 /* Override any GCC internal prototype to avoid an error.
7316 Use char because int might match the return type of a GCC
7317 builtin and then its argument prototype would still apply. */
7318 #ifdef __cplusplus
7319 extern "C"
7320 #endif
7321 char pow ();
7322 int
7323 main ()
7324 {
7325 return pow ();
7326 ;
7327 return 0;
7328 }
7329 _ACEOF
7330 rm -f conftest.$ac_objext conftest$ac_exeext
7331 if { (ac_try="$ac_link"
7332 case "(($ac_try" in
7333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334 *) ac_try_echo=$ac_try;;
7335 esac
7336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337 (eval "$ac_link") 2>conftest.er1
7338 ac_status=$?
7339 grep -v '^ *+' conftest.er1 >conftest.err
7340 rm -f conftest.er1
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } && {
7344 test -z "$ac_cxx_werror_flag" ||
7345 test ! -s conftest.err
7346 } && test -s conftest$ac_exeext &&
7347 $as_test_x conftest$ac_exeext; then
7348 ac_cv_lib_m_pow=yes
7349 else
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7352
7353 ac_cv_lib_m_pow=no
7354 fi
7355
7356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7357 conftest$ac_exeext conftest.$ac_ext
7358 LIBS=$ac_check_lib_save_LIBS
7359 fi
7360 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
7361 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
7362 if test $ac_cv_lib_m_pow = yes; then
7363 POW_LIB=-lm
7364 else
7365 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
7366 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
7367 fi
7368
7369 fi
7370
7371 fi
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395 for ac_func in clock_gettime ftruncate gethostbyname gettimeofday getwd inet_ntoa memchr memmove memset mkdir random select snprintf socket strerror strcasecmp strncasecmp strtol strtoll strnstr system vsnprintf
7396 do
7397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7398 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7400 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7402 else
7403 cat >conftest.$ac_ext <<_ACEOF
7404 /* confdefs.h. */
7405 _ACEOF
7406 cat confdefs.h >>conftest.$ac_ext
7407 cat >>conftest.$ac_ext <<_ACEOF
7408 /* end confdefs.h. */
7409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7411 #define $ac_func innocuous_$ac_func
7412
7413 /* System header to define __stub macros and hopefully few prototypes,
7414 which can conflict with char $ac_func (); below.
7415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7416 <limits.h> exists even on freestanding compilers. */
7417
7418 #ifdef __STDC__
7419 # include <limits.h>
7420 #else
7421 # include <assert.h>
7422 #endif
7423
7424 #undef $ac_func
7425
7426 /* Override any GCC internal prototype to avoid an error.
7427 Use char because int might match the return type of a GCC
7428 builtin and then its argument prototype would still apply. */
7429 #ifdef __cplusplus
7430 extern "C"
7431 #endif
7432 char $ac_func ();
7433 /* The GNU C library defines this for functions which it implements
7434 to always fail with ENOSYS. Some functions are actually named
7435 something starting with __ and the normal name is an alias. */
7436 #if defined __stub_$ac_func || defined __stub___$ac_func
7437 choke me
7438 #endif
7439
7440 int
7441 main ()
7442 {
7443 return $ac_func ();
7444 ;
7445 return 0;
7446 }
7447 _ACEOF
7448 rm -f conftest.$ac_objext conftest$ac_exeext
7449 if { (ac_try="$ac_link"
7450 case "(($ac_try" in
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7453 esac
7454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_link") 2>conftest.er1
7456 ac_status=$?
7457 grep -v '^ *+' conftest.er1 >conftest.err
7458 rm -f conftest.er1
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } && {
7462 test -z "$ac_cxx_werror_flag" ||
7463 test ! -s conftest.err
7464 } && test -s conftest$ac_exeext &&
7465 $as_test_x conftest$ac_exeext; then
7466 eval "$as_ac_var=yes"
7467 else
7468 echo "$as_me: failed program was:" >&5
7469 sed 's/^/| /' conftest.$ac_ext >&5
7470
7471 eval "$as_ac_var=no"
7472 fi
7473
7474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7475 conftest$ac_exeext conftest.$ac_ext
7476 fi
7477 ac_res=`eval echo '${'$as_ac_var'}'`
7478 { echo "$as_me:$LINENO: result: $ac_res" >&5
7479 echo "${ECHO_T}$ac_res" >&6; }
7480 if test `eval echo '${'$as_ac_var'}'` = yes; then
7481 cat >>confdefs.h <<_ACEOF
7482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7483 _ACEOF
7484
7485 fi
7486 done
7487
7488 { echo "$as_me:$LINENO: checking for pid_t" >&5
7489 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7490 if test "${ac_cv_type_pid_t+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493 cat >conftest.$ac_ext <<_ACEOF
7494 /* confdefs.h. */
7495 _ACEOF
7496 cat confdefs.h >>conftest.$ac_ext
7497 cat >>conftest.$ac_ext <<_ACEOF
7498 /* end confdefs.h. */
7499 $ac_includes_default
7500 typedef pid_t ac__type_new_;
7501 int
7502 main ()
7503 {
7504 if ((ac__type_new_ *) 0)
7505 return 0;
7506 if (sizeof (ac__type_new_))
7507 return 0;
7508 ;
7509 return 0;
7510 }
7511 _ACEOF
7512 rm -f conftest.$ac_objext
7513 if { (ac_try="$ac_compile"
7514 case "(($ac_try" in
7515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7517 esac
7518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519 (eval "$ac_compile") 2>conftest.er1
7520 ac_status=$?
7521 grep -v '^ *+' conftest.er1 >conftest.err
7522 rm -f conftest.er1
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } && {
7526 test -z "$ac_cxx_werror_flag" ||
7527 test ! -s conftest.err
7528 } && test -s conftest.$ac_objext; then
7529 ac_cv_type_pid_t=yes
7530 else
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7533
7534 ac_cv_type_pid_t=no
7535 fi
7536
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538 fi
7539 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7540 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7541 if test $ac_cv_type_pid_t = yes; then
7542 :
7543 else
7544
7545 cat >>confdefs.h <<_ACEOF
7546 #define pid_t int
7547 _ACEOF
7548
7549 fi
7550
7551
7552 for ac_header in vfork.h
7553 do
7554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 fi
7561 ac_res=`eval echo '${'$as_ac_Header'}'`
7562 { echo "$as_me:$LINENO: result: $ac_res" >&5
7563 echo "${ECHO_T}$ac_res" >&6; }
7564 else
7565 # Is the header compilable?
7566 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7568 cat >conftest.$ac_ext <<_ACEOF
7569 /* confdefs.h. */
7570 _ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7574 $ac_includes_default
7575 #include <$ac_header>
7576 _ACEOF
7577 rm -f conftest.$ac_objext
7578 if { (ac_try="$ac_compile"
7579 case "(($ac_try" in
7580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581 *) ac_try_echo=$ac_try;;
7582 esac
7583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7584 (eval "$ac_compile") 2>conftest.er1
7585 ac_status=$?
7586 grep -v '^ *+' conftest.er1 >conftest.err
7587 rm -f conftest.er1
7588 cat conftest.err >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } && {
7591 test -z "$ac_cxx_werror_flag" ||
7592 test ! -s conftest.err
7593 } && test -s conftest.$ac_objext; then
7594 ac_header_compiler=yes
7595 else
7596 echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7598
7599 ac_header_compiler=no
7600 fi
7601
7602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7604 echo "${ECHO_T}$ac_header_compiler" >&6; }
7605
7606 # Is the header present?
7607 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7609 cat >conftest.$ac_ext <<_ACEOF
7610 /* confdefs.h. */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7615 #include <$ac_header>
7616 _ACEOF
7617 if { (ac_try="$ac_cpp conftest.$ac_ext"
7618 case "(($ac_try" in
7619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7620 *) ac_try_echo=$ac_try;;
7621 esac
7622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7624 ac_status=$?
7625 grep -v '^ *+' conftest.er1 >conftest.err
7626 rm -f conftest.er1
7627 cat conftest.err >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } >/dev/null && {
7630 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7631 test ! -s conftest.err
7632 }; then
7633 ac_header_preproc=yes
7634 else
7635 echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7637
7638 ac_header_preproc=no
7639 fi
7640
7641 rm -f conftest.err conftest.$ac_ext
7642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7643 echo "${ECHO_T}$ac_header_preproc" >&6; }
7644
7645 # So? What about this header?
7646 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7647 yes:no: )
7648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7652 ac_header_preproc=yes
7653 ;;
7654 no:yes:* )
7655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7658 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7662 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7667 ( cat <<\_ASBOX
7668 ## ---------------------------------------------------------------------------------- ##
7669 ## Report this to http://sourceforge.net/projects/dtorrent/ or [email protected] ##
7670 ## ---------------------------------------------------------------------------------- ##
7671 _ASBOX
7672 ) | sed "s/^/$as_me: WARNING: /" >&2
7673 ;;
7674 esac
7675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 else
7680 eval "$as_ac_Header=\$ac_header_preproc"
7681 fi
7682 ac_res=`eval echo '${'$as_ac_Header'}'`
7683 { echo "$as_me:$LINENO: result: $ac_res" >&5
7684 echo "${ECHO_T}$ac_res" >&6; }
7685
7686 fi
7687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7688 cat >>confdefs.h <<_ACEOF
7689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7690 _ACEOF
7691
7692 fi
7693
7694 done
7695
7696
7697
7698 for ac_func in fork vfork
7699 do
7700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7701 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706 cat >conftest.$ac_ext <<_ACEOF
7707 /* confdefs.h. */
7708 _ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7714 #define $ac_func innocuous_$ac_func
7715
7716 /* System header to define __stub macros and hopefully few prototypes,
7717 which can conflict with char $ac_func (); below.
7718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7719 <limits.h> exists even on freestanding compilers. */
7720
7721 #ifdef __STDC__
7722 # include <limits.h>
7723 #else
7724 # include <assert.h>
7725 #endif
7726
7727 #undef $ac_func
7728
7729 /* Override any GCC internal prototype to avoid an error.
7730 Use char because int might match the return type of a GCC
7731 builtin and then its argument prototype would still apply. */
7732 #ifdef __cplusplus
7733 extern "C"
7734 #endif
7735 char $ac_func ();
7736 /* The GNU C library defines this for functions which it implements
7737 to always fail with ENOSYS. Some functions are actually named
7738 something starting with __ and the normal name is an alias. */
7739 #if defined __stub_$ac_func || defined __stub___$ac_func
7740 choke me
7741 #endif
7742
7743 int
7744 main ()
7745 {
7746 return $ac_func ();
7747 ;
7748 return 0;
7749 }
7750 _ACEOF
7751 rm -f conftest.$ac_objext conftest$ac_exeext
7752 if { (ac_try="$ac_link"
7753 case "(($ac_try" in
7754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755 *) ac_try_echo=$ac_try;;
7756 esac
7757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7758 (eval "$ac_link") 2>conftest.er1
7759 ac_status=$?
7760 grep -v '^ *+' conftest.er1 >conftest.err
7761 rm -f conftest.er1
7762 cat conftest.err >&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } && {
7765 test -z "$ac_cxx_werror_flag" ||
7766 test ! -s conftest.err
7767 } && test -s conftest$ac_exeext &&
7768 $as_test_x conftest$ac_exeext; then
7769 eval "$as_ac_var=yes"
7770 else
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.$ac_ext >&5
7773
7774 eval "$as_ac_var=no"
7775 fi
7776
7777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7778 conftest$ac_exeext conftest.$ac_ext
7779 fi
7780 ac_res=`eval echo '${'$as_ac_var'}'`
7781 { echo "$as_me:$LINENO: result: $ac_res" >&5
7782 echo "${ECHO_T}$ac_res" >&6; }
7783 if test `eval echo '${'$as_ac_var'}'` = yes; then
7784 cat >>confdefs.h <<_ACEOF
7785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7786 _ACEOF
7787
7788 fi
7789 done
7790
7791 if test "x$ac_cv_func_fork" = xyes; then
7792 { echo "$as_me:$LINENO: checking for working fork" >&5
7793 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
7794 if test "${ac_cv_func_fork_works+set}" = set; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 else
7797 if test "$cross_compiling" = yes; then
7798 ac_cv_func_fork_works=cross
7799 else
7800 cat >conftest.$ac_ext <<_ACEOF
7801 /* confdefs.h. */
7802 _ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7806 $ac_includes_default
7807 int
7808 main ()
7809 {
7810
7811 /* By Ruediger Kuhlmann. */
7812 return fork () < 0;
7813
7814 ;
7815 return 0;
7816 }
7817 _ACEOF
7818 rm -f conftest$ac_exeext
7819 if { (ac_try="$ac_link"
7820 case "(($ac_try" in
7821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7822 *) ac_try_echo=$ac_try;;
7823 esac
7824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7825 (eval "$ac_link") 2>&5
7826 ac_status=$?
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7829 { (case "(($ac_try" in
7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831 *) ac_try_echo=$ac_try;;
7832 esac
7833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7834 (eval "$ac_try") 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_cv_func_fork_works=yes
7839 else
7840 echo "$as_me: program exited with status $ac_status" >&5
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7843
7844 ( exit $ac_status )
7845 ac_cv_func_fork_works=no
7846 fi
7847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7848 fi
7849
7850
7851 fi
7852 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7853 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
7854
7855 else
7856 ac_cv_func_fork_works=$ac_cv_func_fork
7857 fi
7858 if test "x$ac_cv_func_fork_works" = xcross; then
7859 case $host in
7860 *-*-amigaos* | *-*-msdosdjgpp*)
7861 # Override, as these systems have only a dummy fork() stub
7862 ac_cv_func_fork_works=no
7863 ;;
7864 *)
7865 ac_cv_func_fork_works=yes
7866 ;;
7867 esac
7868 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7869 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7870 fi
7871 ac_cv_func_vfork_works=$ac_cv_func_vfork
7872 if test "x$ac_cv_func_vfork" = xyes; then
7873 { echo "$as_me:$LINENO: checking for working vfork" >&5
7874 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
7875 if test "${ac_cv_func_vfork_works+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878 if test "$cross_compiling" = yes; then
7879 ac_cv_func_vfork_works=cross
7880 else
7881 cat >conftest.$ac_ext <<_ACEOF
7882 /* confdefs.h. */
7883 _ACEOF
7884 cat confdefs.h >>conftest.$ac_ext
7885 cat >>conftest.$ac_ext <<_ACEOF
7886 /* end confdefs.h. */
7887 /* Thanks to Paul Eggert for this test. */
7888 $ac_includes_default
7889 #include <sys/wait.h>
7890 #ifdef HAVE_VFORK_H
7891 # include <vfork.h>
7892 #endif
7893 /* On some sparc systems, changes by the child to local and incoming
7894 argument registers are propagated back to the parent. The compiler
7895 is told about this with #include <vfork.h>, but some compilers
7896 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7897 static variable whose address is put into a register that is
7898 clobbered by the vfork. */
7899 static void
7900 #ifdef __cplusplus
7901 sparc_address_test (int arg)
7902 # else
7903 sparc_address_test (arg) int arg;
7904 #endif
7905 {
7906 static pid_t child;
7907 if (!child) {
7908 child = vfork ();
7909 if (child < 0) {
7910 perror ("vfork");
7911 _exit(2);
7912 }
7913 if (!child) {
7914 arg = getpid();
7915 write(-1, "", 0);
7916 _exit (arg);
7917 }
7918 }
7919 }
7920
7921 int
7922 main ()
7923 {
7924 pid_t parent = getpid ();
7925 pid_t child;
7926
7927 sparc_address_test (0);
7928
7929 child = vfork ();
7930
7931 if (child == 0) {
7932 /* Here is another test for sparc vfork register problems. This
7933 test uses lots of local variables, at least as many local
7934 variables as main has allocated so far including compiler
7935 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7936 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7937 reuse the register of parent for one of the local variables,
7938 since it will think that parent can't possibly be used any more
7939 in this routine. Assigning to the local variable will thus
7940 munge parent in the parent process. */
7941 pid_t
7942 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7943 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7944 /* Convince the compiler that p..p7 are live; otherwise, it might
7945 use the same hardware register for all 8 local variables. */
7946 if (p != p1 || p != p2 || p != p3 || p != p4
7947 || p != p5 || p != p6 || p != p7)
7948 _exit(1);
7949
7950 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7951 from child file descriptors. If the child closes a descriptor
7952 before it execs or exits, this munges the parent's descriptor
7953 as well. Test for this by closing stdout in the child. */
7954 _exit(close(fileno(stdout)) != 0);
7955 } else {
7956 int status;
7957 struct stat st;
7958
7959 while (wait(&status) != child)
7960 ;
7961 return (
7962 /* Was there some problem with vforking? */
7963 child < 0
7964
7965 /* Did the child fail? (This shouldn't happen.) */
7966 || status
7967
7968 /* Did the vfork/compiler bug occur? */
7969 || parent != getpid()
7970
7971 /* Did the file descriptor bug occur? */
7972 || fstat(fileno(stdout), &st) != 0
7973 );
7974 }
7975 }
7976 _ACEOF
7977 rm -f conftest$ac_exeext
7978 if { (ac_try="$ac_link"
7979 case "(($ac_try" in
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7982 esac
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984 (eval "$ac_link") 2>&5
7985 ac_status=$?
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7988 { (case "(($ac_try" in
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7991 esac
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_try") 2>&5
7994 ac_status=$?
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7997 ac_cv_func_vfork_works=yes
7998 else
7999 echo "$as_me: program exited with status $ac_status" >&5
8000 echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8002
8003 ( exit $ac_status )
8004 ac_cv_func_vfork_works=no
8005 fi
8006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8007 fi
8008
8009
8010 fi
8011 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8012 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
8013
8014 fi;
8015 if test "x$ac_cv_func_fork_works" = xcross; then
8016 ac_cv_func_vfork_works=$ac_cv_func_vfork
8017 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8018 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8019 fi
8020
8021 if test "x$ac_cv_func_vfork_works" = xyes; then
8022
8023 cat >>confdefs.h <<\_ACEOF
8024 #define HAVE_WORKING_VFORK 1
8025 _ACEOF
8026
8027 else
8028
8029 cat >>confdefs.h <<\_ACEOF
8030 #define vfork fork
8031 _ACEOF
8032
8033 fi
8034 if test "x$ac_cv_func_fork_works" = xyes; then
8035
8036 cat >>confdefs.h <<\_ACEOF
8037 #define HAVE_WORKING_FORK 1
8038 _ACEOF
8039
8040 fi
8041
8042
8043 # Enable/check large file support
8044 # Check whether --enable-largefile was given.
8045 if test "${enable_largefile+set}" = set; then
8046 enableval=$enable_largefile;
8047 fi
8048
8049 if test "$enable_largefile" != no; then
8050
8051 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
8052 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
8053 if test "${ac_cv_sys_largefile_CC+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8055 else
8056 ac_cv_sys_largefile_CC=no
8057 if test "$GCC" != yes; then
8058 ac_save_CC=$CC
8059 while :; do
8060 # IRIX 6.2 and later do not support large files by default,
8061 # so use the C compiler's -n32 option if that helps.
8062 cat >conftest.$ac_ext <<_ACEOF
8063 /* confdefs.h. */
8064 _ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 #include <sys/types.h>
8069 /* Check that off_t can represent 2**63 - 1 correctly.
8070 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8071 since some C++ compilers masquerading as C compilers
8072 incorrectly reject 9223372036854775807. */
8073 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8074 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8075 && LARGE_OFF_T % 2147483647 == 1)
8076 ? 1 : -1];
8077 int
8078 main ()
8079 {
8080
8081 ;
8082 return 0;
8083 }
8084 _ACEOF
8085 rm -f conftest.$ac_objext
8086 if { (ac_try="$ac_compile"
8087 case "(($ac_try" in
8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089 *) ac_try_echo=$ac_try;;
8090 esac
8091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8092 (eval "$ac_compile") 2>conftest.er1
8093 ac_status=$?
8094 grep -v '^ *+' conftest.er1 >conftest.err
8095 rm -f conftest.er1
8096 cat conftest.err >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); } && {
8099 test -z "$ac_cxx_werror_flag" ||
8100 test ! -s conftest.err
8101 } && test -s conftest.$ac_objext; then
8102 break
8103 else
8104 echo "$as_me: failed program was:" >&5
8105 sed 's/^/| /' conftest.$ac_ext >&5
8106
8107
8108 fi
8109
8110 rm -f core conftest.err conftest.$ac_objext
8111 CC="$CC -n32"
8112 rm -f conftest.$ac_objext
8113 if { (ac_try="$ac_compile"
8114 case "(($ac_try" in
8115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116 *) ac_try_echo=$ac_try;;
8117 esac
8118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119 (eval "$ac_compile") 2>conftest.er1
8120 ac_status=$?
8121 grep -v '^ *+' conftest.er1 >conftest.err
8122 rm -f conftest.er1
8123 cat conftest.err >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } && {
8126 test -z "$ac_cxx_werror_flag" ||
8127 test ! -s conftest.err
8128 } && test -s conftest.$ac_objext; then
8129 ac_cv_sys_largefile_CC=' -n32'; break
8130 else
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8133
8134
8135 fi
8136
8137 rm -f core conftest.err conftest.$ac_objext
8138 break
8139 done
8140 CC=$ac_save_CC
8141 rm -f conftest.$ac_ext
8142 fi
8143 fi
8144 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8145 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
8146 if test "$ac_cv_sys_largefile_CC" != no; then
8147 CC=$CC$ac_cv_sys_largefile_CC
8148 fi
8149
8150 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8151 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
8152 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8154 else
8155 while :; do
8156 cat >conftest.$ac_ext <<_ACEOF
8157 /* confdefs.h. */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8162 #include <sys/types.h>
8163 /* Check that off_t can represent 2**63 - 1 correctly.
8164 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8165 since some C++ compilers masquerading as C compilers
8166 incorrectly reject 9223372036854775807. */
8167 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8168 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8169 && LARGE_OFF_T % 2147483647 == 1)
8170 ? 1 : -1];
8171 int
8172 main ()
8173 {
8174
8175 ;
8176 return 0;
8177 }
8178 _ACEOF
8179 rm -f conftest.$ac_objext
8180 if { (ac_try="$ac_compile"
8181 case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_compile") 2>conftest.er1
8187 ac_status=$?
8188 grep -v '^ *+' conftest.er1 >conftest.err
8189 rm -f conftest.er1
8190 cat conftest.err >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } && {
8193 test -z "$ac_cxx_werror_flag" ||
8194 test ! -s conftest.err
8195 } && test -s conftest.$ac_objext; then
8196 ac_cv_sys_file_offset_bits=no; break
8197 else
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8200
8201
8202 fi
8203
8204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205 cat >conftest.$ac_ext <<_ACEOF
8206 /* confdefs.h. */
8207 _ACEOF
8208 cat confdefs.h >>conftest.$ac_ext
8209 cat >>conftest.$ac_ext <<_ACEOF
8210 /* end confdefs.h. */
8211 #define _FILE_OFFSET_BITS 64
8212 #include <sys/types.h>
8213 /* Check that off_t can represent 2**63 - 1 correctly.
8214 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8215 since some C++ compilers masquerading as C compilers
8216 incorrectly reject 9223372036854775807. */
8217 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8218 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8219 && LARGE_OFF_T % 2147483647 == 1)
8220 ? 1 : -1];
8221 int
8222 main ()
8223 {
8224
8225 ;
8226 return 0;
8227 }
8228 _ACEOF
8229 rm -f conftest.$ac_objext
8230 if { (ac_try="$ac_compile"
8231 case "(($ac_try" in
8232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233 *) ac_try_echo=$ac_try;;
8234 esac
8235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236 (eval "$ac_compile") 2>conftest.er1
8237 ac_status=$?
8238 grep -v '^ *+' conftest.er1 >conftest.err
8239 rm -f conftest.er1
8240 cat conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } && {
8243 test -z "$ac_cxx_werror_flag" ||
8244 test ! -s conftest.err
8245 } && test -s conftest.$ac_objext; then
8246 ac_cv_sys_file_offset_bits=64; break
8247 else
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8250
8251
8252 fi
8253
8254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8255 ac_cv_sys_file_offset_bits=unknown
8256 break
8257 done
8258 fi
8259 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8260 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
8261 case $ac_cv_sys_file_offset_bits in #(
8262 no | unknown) ;;
8263 *)
8264 cat >>confdefs.h <<_ACEOF
8265 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8266 _ACEOF
8267 ;;
8268 esac
8269 rm -f conftest*
8270 if test $ac_cv_sys_file_offset_bits = unknown; then
8271 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8272 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
8273 if test "${ac_cv_sys_large_files+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 else
8276 while :; do
8277 cat >conftest.$ac_ext <<_ACEOF
8278 /* confdefs.h. */
8279 _ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8283 #include <sys/types.h>
8284 /* Check that off_t can represent 2**63 - 1 correctly.
8285 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8286 since some C++ compilers masquerading as C compilers
8287 incorrectly reject 9223372036854775807. */
8288 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8289 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8290 && LARGE_OFF_T % 2147483647 == 1)
8291 ? 1 : -1];
8292 int
8293 main ()
8294 {
8295
8296 ;
8297 return 0;
8298 }
8299 _ACEOF
8300 rm -f conftest.$ac_objext
8301 if { (ac_try="$ac_compile"
8302 case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8305 esac
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_compile") 2>conftest.er1
8308 ac_status=$?
8309 grep -v '^ *+' conftest.er1 >conftest.err
8310 rm -f conftest.er1
8311 cat conftest.err >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } && {
8314 test -z "$ac_cxx_werror_flag" ||
8315 test ! -s conftest.err
8316 } && test -s conftest.$ac_objext; then
8317 ac_cv_sys_large_files=no; break
8318 else
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8321
8322
8323 fi
8324
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326 cat >conftest.$ac_ext <<_ACEOF
8327 /* confdefs.h. */
8328 _ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8332 #define _LARGE_FILES 1
8333 #include <sys/types.h>
8334 /* Check that off_t can represent 2**63 - 1 correctly.
8335 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8336 since some C++ compilers masquerading as C compilers
8337 incorrectly reject 9223372036854775807. */
8338 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8339 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8340 && LARGE_OFF_T % 2147483647 == 1)
8341 ? 1 : -1];
8342 int
8343 main ()
8344 {
8345
8346 ;
8347 return 0;
8348 }
8349 _ACEOF
8350 rm -f conftest.$ac_objext
8351 if { (ac_try="$ac_compile"
8352 case "(($ac_try" in
8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354 *) ac_try_echo=$ac_try;;
8355 esac
8356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8357 (eval "$ac_compile") 2>conftest.er1
8358 ac_status=$?
8359 grep -v '^ *+' conftest.er1 >conftest.err
8360 rm -f conftest.er1
8361 cat conftest.err >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } && {
8364 test -z "$ac_cxx_werror_flag" ||
8365 test ! -s conftest.err
8366 } && test -s conftest.$ac_objext; then
8367 ac_cv_sys_large_files=1; break
8368 else
8369 echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8371
8372
8373 fi
8374
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376 ac_cv_sys_large_files=unknown
8377 break
8378 done
8379 fi
8380 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8381 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
8382 case $ac_cv_sys_large_files in #(
8383 no | unknown) ;;
8384 *)
8385 cat >>confdefs.h <<_ACEOF
8386 #define _LARGE_FILES $ac_cv_sys_large_files
8387 _ACEOF
8388 ;;
8389 esac
8390 rm -f conftest*
8391 fi
8392 fi
8393
8394 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8395 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
8396 if test "${ac_cv_sys_largefile_source+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 else
8399 while :; do
8400 cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h. */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8406 #include <stdio.h>
8407 int
8408 main ()
8409 {
8410 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
8411 ;
8412 return 0;
8413 }
8414 _ACEOF
8415 rm -f conftest.$ac_objext conftest$ac_exeext
8416 if { (ac_try="$ac_link"
8417 case "(($ac_try" in
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8420 esac
8421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422 (eval "$ac_link") 2>conftest.er1
8423 ac_status=$?
8424 grep -v '^ *+' conftest.er1 >conftest.err
8425 rm -f conftest.er1
8426 cat conftest.err >&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } && {
8429 test -z "$ac_cxx_werror_flag" ||
8430 test ! -s conftest.err
8431 } && test -s conftest$ac_exeext &&
8432 $as_test_x conftest$ac_exeext; then
8433 ac_cv_sys_largefile_source=no; break
8434 else
8435 echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8437
8438
8439 fi
8440
8441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8442 conftest$ac_exeext conftest.$ac_ext
8443 cat >conftest.$ac_ext <<_ACEOF
8444 /* confdefs.h. */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 #define _LARGEFILE_SOURCE 1
8450 #include <stdio.h>
8451 int
8452 main ()
8453 {
8454 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
8455 ;
8456 return 0;
8457 }
8458 _ACEOF
8459 rm -f conftest.$ac_objext conftest$ac_exeext
8460 if { (ac_try="$ac_link"
8461 case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8464 esac
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_link") 2>conftest.er1
8467 ac_status=$?
8468 grep -v '^ *+' conftest.er1 >conftest.err
8469 rm -f conftest.er1
8470 cat conftest.err >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } && {
8473 test -z "$ac_cxx_werror_flag" ||
8474 test ! -s conftest.err
8475 } && test -s conftest$ac_exeext &&
8476 $as_test_x conftest$ac_exeext; then
8477 ac_cv_sys_largefile_source=1; break
8478 else
8479 echo "$as_me: failed program was:" >&5
8480 sed 's/^/| /' conftest.$ac_ext >&5
8481
8482
8483 fi
8484
8485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8486 conftest$ac_exeext conftest.$ac_ext
8487 ac_cv_sys_largefile_source=unknown
8488 break
8489 done
8490 fi
8491 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8492 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
8493 case $ac_cv_sys_largefile_source in #(
8494 no | unknown) ;;
8495 *)
8496 cat >>confdefs.h <<_ACEOF
8497 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8498 _ACEOF
8499 ;;
8500 esac
8501 rm -f conftest*
8502
8503 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8504 # in glibc 2.1.3, but that breaks too many other things.
8505 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8506 if test $ac_cv_sys_largefile_source != unknown; then
8507
8508 cat >>confdefs.h <<\_ACEOF
8509 #define HAVE_FSEEKO 1
8510 _ACEOF
8511
8512 fi
8513
8514
8515 # Check for termios support
8516 { echo "$as_me:$LINENO: checking POSIX termios" >&5
8517 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
8518 if test "${ac_cv_sys_posix_termios+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521 cat >conftest.$ac_ext <<_ACEOF
8522 /* confdefs.h. */
8523 _ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h. */
8527 #include <sys/types.h>
8528 #include <unistd.h>
8529 #include <termios.h>
8530
8531 int
8532 main ()
8533 {
8534 /* SunOS 4.0.3 has termios.h but not the library calls. */
8535 tcgetattr(0, 0);
8536 ;
8537 return 0;
8538 }
8539 _ACEOF
8540 rm -f conftest.$ac_objext conftest$ac_exeext
8541 if { (ac_try="$ac_link"
8542 case "(($ac_try" in
8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8545 esac
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547 (eval "$ac_link") 2>conftest.er1
8548 ac_status=$?
8549 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -f conftest.er1
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } && {
8554 test -z "$ac_cxx_werror_flag" ||
8555 test ! -s conftest.err
8556 } && test -s conftest$ac_exeext &&
8557 $as_test_x conftest$ac_exeext; then
8558 ac_cv_sys_posix_termios=yes
8559 else
8560 echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8562
8563 ac_cv_sys_posix_termios=no
8564 fi
8565
8566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8567 conftest$ac_exeext conftest.$ac_ext
8568 fi
8569 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
8570 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
8571
8572 if test "$ac_cv_sys_posix_termios" = yes; then
8573
8574 cat >>confdefs.h <<\_ACEOF
8575 #define USE_TERMIOS 1
8576 _ACEOF
8577
8578 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
8579 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
8580 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583 cat >conftest.$ac_ext <<_ACEOF
8584 /* confdefs.h. */
8585 _ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h. */
8589 #include <sys/types.h>
8590 #include <termios.h>
8591 #ifdef TIOCGWINSZ
8592 yes
8593 #endif
8594
8595 _ACEOF
8596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8597 $EGREP "yes" >/dev/null 2>&1; then
8598 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8599 else
8600 ac_cv_sys_tiocgwinsz_in_termios_h=no
8601 fi
8602 rm -f conftest*
8603
8604 fi
8605 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8606 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8607
8608 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8609 { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8610 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
8611 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
8613 else
8614 cat >conftest.$ac_ext <<_ACEOF
8615 /* confdefs.h. */
8616 _ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8620 #include <sys/types.h>
8621 #include <sys/ioctl.h>
8622 #ifdef TIOCGWINSZ
8623 yes
8624 #endif
8625
8626 _ACEOF
8627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8628 $EGREP "yes" >/dev/null 2>&1; then
8629 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8630 else
8631 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8632 fi
8633 rm -f conftest*
8634
8635 fi
8636 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8637 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8638
8639 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8640
8641 cat >>confdefs.h <<\_ACEOF
8642 #define GWINSZ_IN_SYS_IOCTL 1
8643 _ACEOF
8644
8645 fi
8646 fi
8647
8648 else
8649 if test "${ac_cv_header_termio_h+set}" = set; then
8650 { echo "$as_me:$LINENO: checking for termio.h" >&5
8651 echo $ECHO_N "checking for termio.h... $ECHO_C" >&6; }
8652 if test "${ac_cv_header_termio_h+set}" = set; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 fi
8655 { echo "$as_me:$LINENO: result: $ac_cv_header_termio_h" >&5
8656 echo "${ECHO_T}$ac_cv_header_termio_h" >&6; }
8657 else
8658 # Is the header compilable?
8659 { echo "$as_me:$LINENO: checking termio.h usability" >&5
8660 echo $ECHO_N "checking termio.h usability... $ECHO_C" >&6; }
8661 cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h. */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 $ac_includes_default
8668 #include <termio.h>
8669 _ACEOF
8670 rm -f conftest.$ac_objext
8671 if { (ac_try="$ac_compile"
8672 case "(($ac_try" in
8673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674 *) ac_try_echo=$ac_try;;
8675 esac
8676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8677 (eval "$ac_compile") 2>conftest.er1
8678 ac_status=$?
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } && {
8684 test -z "$ac_cxx_werror_flag" ||
8685 test ! -s conftest.err
8686 } && test -s conftest.$ac_objext; then
8687 ac_header_compiler=yes
8688 else
8689 echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8691
8692 ac_header_compiler=no
8693 fi
8694
8695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8696 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8697 echo "${ECHO_T}$ac_header_compiler" >&6; }
8698
8699 # Is the header present?
8700 { echo "$as_me:$LINENO: checking termio.h presence" >&5
8701 echo $ECHO_N "checking termio.h presence... $ECHO_C" >&6; }
8702 cat >conftest.$ac_ext <<_ACEOF
8703 /* confdefs.h. */
8704 _ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h. */
8708 #include <termio.h>
8709 _ACEOF
8710 if { (ac_try="$ac_cpp conftest.$ac_ext"
8711 case "(($ac_try" in
8712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8713 *) ac_try_echo=$ac_try;;
8714 esac
8715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8717 ac_status=$?
8718 grep -v '^ *+' conftest.er1 >conftest.err
8719 rm -f conftest.er1
8720 cat conftest.err >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } >/dev/null && {
8723 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8724 test ! -s conftest.err
8725 }; then
8726 ac_header_preproc=yes
8727 else
8728 echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8730
8731 ac_header_preproc=no
8732 fi
8733
8734 rm -f conftest.err conftest.$ac_ext
8735 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8736 echo "${ECHO_T}$ac_header_preproc" >&6; }
8737
8738 # So? What about this header?
8739 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8740 yes:no: )
8741 { echo "$as_me:$LINENO: WARNING: termio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8742 echo "$as_me: WARNING: termio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8743 { echo "$as_me:$LINENO: WARNING: termio.h: proceeding with the compiler's result" >&5
8744 echo "$as_me: WARNING: termio.h: proceeding with the compiler's result" >&2;}
8745 ac_header_preproc=yes
8746 ;;
8747 no:yes:* )
8748 { echo "$as_me:$LINENO: WARNING: termio.h: present but cannot be compiled" >&5
8749 echo "$as_me: WARNING: termio.h: present but cannot be compiled" >&2;}
8750 { echo "$as_me:$LINENO: WARNING: termio.h: check for missing prerequisite headers?" >&5
8751 echo "$as_me: WARNING: termio.h: check for missing prerequisite headers?" >&2;}
8752 { echo "$as_me:$LINENO: WARNING: termio.h: see the Autoconf documentation" >&5
8753 echo "$as_me: WARNING: termio.h: see the Autoconf documentation" >&2;}
8754 { echo "$as_me:$LINENO: WARNING: termio.h: section \"Present But Cannot Be Compiled\"" >&5
8755 echo "$as_me: WARNING: termio.h: section \"Present But Cannot Be Compiled\"" >&2;}
8756 { echo "$as_me:$LINENO: WARNING: termio.h: proceeding with the preprocessor's result" >&5
8757 echo "$as_me: WARNING: termio.h: proceeding with the preprocessor's result" >&2;}
8758 { echo "$as_me:$LINENO: WARNING: termio.h: in the future, the compiler will take precedence" >&5
8759 echo "$as_me: WARNING: termio.h: in the future, the compiler will take precedence" >&2;}
8760 ( cat <<\_ASBOX
8761 ## ---------------------------------------------------------------------------------- ##
8762 ## Report this to http://sourceforge.net/projects/dtorrent/ or [email protected] ##
8763 ## ---------------------------------------------------------------------------------- ##
8764 _ASBOX
8765 ) | sed "s/^/$as_me: WARNING: /" >&2
8766 ;;
8767 esac
8768 { echo "$as_me:$LINENO: checking for termio.h" >&5
8769 echo $ECHO_N "checking for termio.h... $ECHO_C" >&6; }
8770 if test "${ac_cv_header_termio_h+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 else
8773 ac_cv_header_termio_h=$ac_header_preproc
8774 fi
8775 { echo "$as_me:$LINENO: result: $ac_cv_header_termio_h" >&5
8776 echo "${ECHO_T}$ac_cv_header_termio_h" >&6; }
8777
8778 fi
8779 if test $ac_cv_header_termio_h = yes; then
8780
8781 cat >>confdefs.h <<\_ACEOF
8782 #define USE_TERMIO 1
8783 _ACEOF
8784
8785 else
8786 { echo "$as_me:$LINENO: checking for library containing gtty" >&5
8787 echo $ECHO_N "checking for library containing gtty... $ECHO_C" >&6; }
8788 if test "${ac_cv_search_gtty+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 else
8791 ac_func_search_save_LIBS=$LIBS
8792 cat >conftest.$ac_ext <<_ACEOF
8793 /* confdefs.h. */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8798
8799 /* Override any GCC internal prototype to avoid an error.
8800 Use char because int might match the return type of a GCC
8801 builtin and then its argument prototype would still apply. */
8802 #ifdef __cplusplus
8803 extern "C"
8804 #endif
8805 char gtty ();
8806 int
8807 main ()
8808 {
8809 return gtty ();
8810 ;
8811 return 0;
8812 }
8813 _ACEOF
8814 for ac_lib in '' compat; do
8815 if test -z "$ac_lib"; then
8816 ac_res="none required"
8817 else
8818 ac_res=-l$ac_lib
8819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8820 fi
8821 rm -f conftest.$ac_objext conftest$ac_exeext
8822 if { (ac_try="$ac_link"
8823 case "(($ac_try" in
8824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825 *) ac_try_echo=$ac_try;;
8826 esac
8827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828 (eval "$ac_link") 2>conftest.er1
8829 ac_status=$?
8830 grep -v '^ *+' conftest.er1 >conftest.err
8831 rm -f conftest.er1
8832 cat conftest.err >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } && {
8835 test -z "$ac_cxx_werror_flag" ||
8836 test ! -s conftest.err
8837 } && test -s conftest$ac_exeext &&
8838 $as_test_x conftest$ac_exeext; then
8839 ac_cv_search_gtty=$ac_res
8840 else
8841 echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8843
8844
8845 fi
8846
8847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8848 conftest$ac_exeext
8849 if test "${ac_cv_search_gtty+set}" = set; then
8850 break
8851 fi
8852 done
8853 if test "${ac_cv_search_gtty+set}" = set; then
8854 :
8855 else
8856 ac_cv_search_gtty=no
8857 fi
8858 rm conftest.$ac_ext
8859 LIBS=$ac_func_search_save_LIBS
8860 fi
8861 { echo "$as_me:$LINENO: result: $ac_cv_search_gtty" >&5
8862 echo "${ECHO_T}$ac_cv_search_gtty" >&6; }
8863 ac_res=$ac_cv_search_gtty
8864 if test "$ac_res" != no; then
8865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8866
8867 cat >>confdefs.h <<\_ACEOF
8868 #define USE_SGTTY 1
8869 _ACEOF
8870
8871 fi
8872
8873 fi
8874
8875
8876 fi
8877
8878 # Check for SSL support, letting the user give a location hint.
8879
8880 # Check whether --with-ssl was given.
8881 if test "${with_ssl+set}" = set; then
8882 withval=$with_ssl; with_ssl=$withval
8883 fi
8884
8885
8886 # Check whether --with-ssl was given.
8887 if test "${with_ssl+set}" = set; then
8888 withval=$with_ssl;
8889 fi
8890
8891 if test "$with_ssl" = "no"; then
8892 echo "Forcing use of Steve Reid's public-domain SHA-1 code."
8893
8894 cat >>confdefs.h <<\_ACEOF
8895 #define USE_STANDALONE_SHA1 1
8896 _ACEOF
8897
8898 else
8899 if test -n "$with_ssl" -a "$with_ssl" != "yes"; then
8900 # a directory was specified
8901 echo "Trying SSL support in $with_ssl or system default locations."
8902 CPPFLAGS="$CPPFLAGS -I$with_ssl/include -I$with_ssl/include/openssl"
8903 CPPFLAGS="$CPPFLAGS -I$with_ssl/include/ssl -I$with_ssl"
8904 LDFLAGS="$LDFLAGS -L$with_ssl/lib -L$with_ssl/lib/openssl"
8905 LDFLAGS="$LDFLAGS -L$with_ssl/lib/ssl -L$with_ssl"
8906 { echo "$as_me:$LINENO: checking for library containing SHA1_Init" >&5
8907 echo $ECHO_N "checking for library containing SHA1_Init... $ECHO_C" >&6; }
8908 if test "${ac_cv_search_SHA1_Init+set}" = set; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 else
8911 ac_func_search_save_LIBS=$LIBS
8912 cat >conftest.$ac_ext <<_ACEOF
8913 /* confdefs.h. */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8918
8919 /* Override any GCC internal prototype to avoid an error.
8920 Use char because int might match the return type of a GCC
8921 builtin and then its argument prototype would still apply. */
8922 #ifdef __cplusplus
8923 extern "C"
8924 #endif
8925 char SHA1_Init ();
8926 int
8927 main ()
8928 {
8929 return SHA1_Init ();
8930 ;
8931 return 0;
8932 }
8933 _ACEOF
8934 for ac_lib in '' ssl crypto crypt md; do
8935 if test -z "$ac_lib"; then
8936 ac_res="none required"
8937 else
8938 ac_res=-l$ac_lib
8939 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8940 fi
8941 rm -f conftest.$ac_objext conftest$ac_exeext
8942 if { (ac_try="$ac_link"
8943 case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8946 esac
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_link") 2>conftest.er1
8949 ac_status=$?
8950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } && {
8955 test -z "$ac_cxx_werror_flag" ||
8956 test ! -s conftest.err
8957 } && test -s conftest$ac_exeext &&
8958 $as_test_x conftest$ac_exeext; then
8959 ac_cv_search_SHA1_Init=$ac_res
8960 else
8961 echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.$ac_ext >&5
8963
8964
8965 fi
8966
8967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8968 conftest$ac_exeext
8969 if test "${ac_cv_search_SHA1_Init+set}" = set; then
8970 break
8971 fi
8972 done
8973 if test "${ac_cv_search_SHA1_Init+set}" = set; then
8974 :
8975 else
8976 ac_cv_search_SHA1_Init=no
8977 fi
8978 rm conftest.$ac_ext
8979 LIBS=$ac_func_search_save_LIBS
8980 fi
8981 { echo "$as_me:$LINENO: result: $ac_cv_search_SHA1_Init" >&5
8982 echo "${ECHO_T}$ac_cv_search_SHA1_Init" >&6; }
8983 ac_res=$ac_cv_search_SHA1_Init
8984 if test "$ac_res" != no; then
8985 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8986
8987 else
8988 { { echo "$as_me:$LINENO: error: cannot find library for SHA1_Init() under $with_ssl" >&5
8989 echo "$as_me: error: cannot find library for SHA1_Init() under $with_ssl" >&2;}
8990 { (exit 1); exit 1; }; }
8991 fi
8992
8993 fi
8994 if test -z "$with_ssl" -o "$with_ssl" = "yes"; then
8995 # no dir given--fall back to builtin code if necessary
8996 { echo "$as_me:$LINENO: checking for library containing SHA1_Init" >&5
8997 echo $ECHO_N "checking for library containing SHA1_Init... $ECHO_C" >&6; }
8998 if test "${ac_cv_search_SHA1_Init+set}" = set; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
9000 else
9001 ac_func_search_save_LIBS=$LIBS
9002 cat >conftest.$ac_ext <<_ACEOF
9003 /* confdefs.h. */
9004 _ACEOF
9005 cat confdefs.h >>conftest.$ac_ext
9006 cat >>conftest.$ac_ext <<_ACEOF
9007 /* end confdefs.h. */
9008
9009 /* Override any GCC internal prototype to avoid an error.
9010 Use char because int might match the return type of a GCC
9011 builtin and then its argument prototype would still apply. */
9012 #ifdef __cplusplus
9013 extern "C"
9014 #endif
9015 char SHA1_Init ();
9016 int
9017 main ()
9018 {
9019 return SHA1_Init ();
9020 ;
9021 return 0;
9022 }
9023 _ACEOF
9024 for ac_lib in '' ssl crypto crypt md; do
9025 if test -z "$ac_lib"; then
9026 ac_res="none required"
9027 else
9028 ac_res=-l$ac_lib
9029 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9030 fi
9031 rm -f conftest.$ac_objext conftest$ac_exeext
9032 if { (ac_try="$ac_link"
9033 case "(($ac_try" in
9034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9035 *) ac_try_echo=$ac_try;;
9036 esac
9037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9038 (eval "$ac_link") 2>conftest.er1
9039 ac_status=$?
9040 grep -v '^ *+' conftest.er1 >conftest.err
9041 rm -f conftest.er1
9042 cat conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } && {
9045 test -z "$ac_cxx_werror_flag" ||
9046 test ! -s conftest.err
9047 } && test -s conftest$ac_exeext &&
9048 $as_test_x conftest$ac_exeext; then
9049 ac_cv_search_SHA1_Init=$ac_res
9050 else
9051 echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.$ac_ext >&5
9053
9054
9055 fi
9056
9057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9058 conftest$ac_exeext
9059 if test "${ac_cv_search_SHA1_Init+set}" = set; then
9060 break
9061 fi
9062 done
9063 if test "${ac_cv_search_SHA1_Init+set}" = set; then
9064 :
9065 else
9066 ac_cv_search_SHA1_Init=no
9067 fi
9068 rm conftest.$ac_ext
9069 LIBS=$ac_func_search_save_LIBS
9070 fi
9071 { echo "$as_me:$LINENO: result: $ac_cv_search_SHA1_Init" >&5
9072 echo "${ECHO_T}$ac_cv_search_SHA1_Init" >&6; }
9073 ac_res=$ac_cv_search_SHA1_Init
9074 if test "$ac_res" != no; then
9075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9076
9077 else
9078
9079 cat >>confdefs.h <<\_ACEOF
9080 #define USE_STANDALONE_SHA1 1
9081 _ACEOF
9082
9083 fi
9084
9085 fi
9086
9087
9088
9089 for ac_header in openssl/sha.h ssl/sha.h sha.h
9090 do
9091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 fi
9098 ac_res=`eval echo '${'$as_ac_Header'}'`
9099 { echo "$as_me:$LINENO: result: $ac_res" >&5
9100 echo "${ECHO_T}$ac_res" >&6; }
9101 else
9102 # Is the header compilable?
9103 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9105 cat >conftest.$ac_ext <<_ACEOF
9106 /* confdefs.h. */
9107 _ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9111 $ac_includes_default
9112 #include <$ac_header>
9113 _ACEOF
9114 rm -f conftest.$ac_objext
9115 if { (ac_try="$ac_compile"
9116 case "(($ac_try" in
9117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9119 esac
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_compile") 2>conftest.er1
9122 ac_status=$?
9123 grep -v '^ *+' conftest.er1 >conftest.err
9124 rm -f conftest.er1
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } && {
9128 test -z "$ac_cxx_werror_flag" ||
9129 test ! -s conftest.err
9130 } && test -s conftest.$ac_objext; then
9131 ac_header_compiler=yes
9132 else
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9135
9136 ac_header_compiler=no
9137 fi
9138
9139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9141 echo "${ECHO_T}$ac_header_compiler" >&6; }
9142
9143 # Is the header present?
9144 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9146 cat >conftest.$ac_ext <<_ACEOF
9147 /* confdefs.h. */
9148 _ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9152 #include <$ac_header>
9153 _ACEOF
9154 if { (ac_try="$ac_cpp conftest.$ac_ext"
9155 case "(($ac_try" in
9156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9157 *) ac_try_echo=$ac_try;;
9158 esac
9159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9161 ac_status=$?
9162 grep -v '^ *+' conftest.er1 >conftest.err
9163 rm -f conftest.er1
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } >/dev/null && {
9167 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9168 test ! -s conftest.err
9169 }; then
9170 ac_header_preproc=yes
9171 else
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9174
9175 ac_header_preproc=no
9176 fi
9177
9178 rm -f conftest.err conftest.$ac_ext
9179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9180 echo "${ECHO_T}$ac_header_preproc" >&6; }
9181
9182 # So? What about this header?
9183 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9184 yes:no: )
9185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9189 ac_header_preproc=yes
9190 ;;
9191 no:yes:* )
9192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9204 ( cat <<\_ASBOX
9205 ## ---------------------------------------------------------------------------------- ##
9206 ## Report this to http://sourceforge.net/projects/dtorrent/ or [email protected] ##
9207 ## ---------------------------------------------------------------------------------- ##
9208 _ASBOX
9209 ) | sed "s/^/$as_me: WARNING: /" >&2
9210 ;;
9211 esac
9212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9216 else
9217 eval "$as_ac_Header=\$ac_header_preproc"
9218 fi
9219 ac_res=`eval echo '${'$as_ac_Header'}'`
9220 { echo "$as_me:$LINENO: result: $ac_res" >&5
9221 echo "${ECHO_T}$ac_res" >&6; }
9222
9223 fi
9224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9225 cat >>confdefs.h <<_ACEOF
9226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9227 _ACEOF
9228
9229 fi
9230
9231 done
9232
9233 fi
9234
9235 # Check for number of arguments to ctime_r().
9236 # by Iago Rubio
9237 # http://www.ems.ru/~villain/bluefish-dev.2003-12/0298.html
9238 { echo "$as_me:$LINENO: checking for ctime_r" >&5
9239 echo $ECHO_N "checking for ctime_r... $ECHO_C" >&6; }
9240 if test -z "$ac_cv_ctime_args"; then
9241 cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h. */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247 #include <time.h>
9248 int
9249 main ()
9250 {
9251
9252 time_t clock;
9253 char buf[26];
9254 ctime_r(&clock, buf);
9255
9256 ;
9257 return 0;
9258 }
9259 _ACEOF
9260 rm -f conftest.$ac_objext
9261 if { (ac_try="$ac_compile"
9262 case "(($ac_try" in
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9265 esac
9266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_compile") 2>conftest.er1
9268 ac_status=$?
9269 grep -v '^ *+' conftest.er1 >conftest.err
9270 rm -f conftest.er1
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } && {
9274 test -z "$ac_cxx_werror_flag" ||
9275 test ! -s conftest.err
9276 } && test -s conftest.$ac_objext; then
9277 ac_cv_ctime_args=2
9278 else
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9281
9282
9283 fi
9284
9285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9286
9287 cat >conftest.$ac_ext <<_ACEOF
9288 /* confdefs.h. */
9289 _ACEOF
9290 cat confdefs.h >>conftest.$ac_ext
9291 cat >>conftest.$ac_ext <<_ACEOF
9292 /* end confdefs.h. */
9293 #include <time.h>
9294 int
9295 main ()
9296 {
9297
9298 time_t clock;
9299 char buf[26];
9300 ctime_r(&clock, buf, 26);
9301
9302 ;
9303 return 0;
9304 }
9305 _ACEOF
9306 rm -f conftest.$ac_objext
9307 if { (ac_try="$ac_compile"
9308 case "(($ac_try" in
9309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9310 *) ac_try_echo=$ac_try;;
9311 esac
9312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9313 (eval "$ac_compile") 2>conftest.er1
9314 ac_status=$?
9315 grep -v '^ *+' conftest.er1 >conftest.err
9316 rm -f conftest.er1
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } && {
9320 test -z "$ac_cxx_werror_flag" ||
9321 test ! -s conftest.err
9322 } && test -s conftest.$ac_objext; then
9323 ac_cv_ctime_args=3
9324 else
9325 echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9327
9328
9329 fi
9330
9331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9332 fi
9333 if test -z "$ac_cv_ctime_args"; then
9334 { echo "$as_me:$LINENO: result: no" >&5
9335 echo "${ECHO_T}no" >&6; }
9336 else
9337 if test "$ac_cv_ctime_args" = 2; then
9338
9339 cat >>confdefs.h <<\_ACEOF
9340 #define HAVE_CTIME_R_2 1
9341 _ACEOF
9342
9343 elif test "$ac_cv_ctime_args" = 3; then
9344
9345 cat >>confdefs.h <<\_ACEOF
9346 #define HAVE_CTIME_R_3 1
9347 _ACEOF
9348
9349 fi
9350 { echo "$as_me:$LINENO: result: yes, and it takes $ac_cv_ctime_args arguments" >&5
9351 echo "${ECHO_T}yes, and it takes $ac_cv_ctime_args arguments" >&6; }
9352 fi
9353
9354
9355 # Check whether --enable-profile was given.
9356 if test "${enable_profile+set}" = set; then
9357 enableval=$enable_profile; CXXFLAGS="$CXXFLAGS -pg"
9358 CFLAGS="$CFLAGS -pg"
9359
9360 fi
9361
9362
9363 cat >confcache <<\_ACEOF
9364 # This file is a shell script that caches the results of configure
9365 # tests run on this system so they can be shared between configure
9366 # scripts and configure runs, see configure's option --config-cache.
9367 # It is not useful on other systems. If it contains results you don't
9368 # want to keep, you may remove or edit it.
9369 #
9370 # config.status only pays attention to the cache file if you give it
9371 # the --recheck option to rerun configure.
9372 #
9373 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9374 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9375 # following values.
9376
9377 _ACEOF
9378
9379 # The following way of writing the cache mishandles newlines in values,
9380 # but we know of no workaround that is simple, portable, and efficient.
9381 # So, we kill variables containing newlines.
9382 # Ultrix sh set writes to stderr and can't be redirected directly,
9383 # and sets the high bit in the cache file unless we assign to the vars.
9384 (
9385 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9386 eval ac_val=\$$ac_var
9387 case $ac_val in #(
9388 *${as_nl}*)
9389 case $ac_var in #(
9390 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9391 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9392 esac
9393 case $ac_var in #(
9394 _ | IFS | as_nl) ;; #(
9395 *) $as_unset $ac_var ;;
9396 esac ;;
9397 esac
9398 done
9399
9400 (set) 2>&1 |
9401 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9402 *${as_nl}ac_space=\ *)
9403 # `set' does not quote correctly, so add quotes (double-quote
9404 # substitution turns \\\\ into \\, and sed turns \\ into \).
9405 sed -n \
9406 "s/'/'\\\\''/g;
9407 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9408 ;; #(
9409 *)
9410 # `set' quotes correctly as required by POSIX, so do not add quotes.
9411 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9412 ;;
9413 esac |
9414 sort
9415 ) |
9416 sed '
9417 /^ac_cv_env_/b end
9418 t clear
9419 :clear
9420 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9421 t end
9422 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9423 :end' >>confcache
9424 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9425 if test -w "$cache_file"; then
9426 test "x$cache_file" != "x/dev/null" &&
9427 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9428 echo "$as_me: updating cache $cache_file" >&6;}
9429 cat confcache >$cache_file
9430 else
9431 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9432 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9433 fi
9434 fi
9435 rm -f confcache
9436
9437 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9438 # Let make expand exec_prefix.
9439 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9440
9441 DEFS=-DHAVE_CONFIG_H
9442
9443 ac_libobjs=
9444 ac_ltlibobjs=
9445 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9446 # 1. Remove the extension, and $U if already installed.
9447 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9448 ac_i=`echo "$ac_i" | sed "$ac_script"`
9449 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9450 # will be set to the directory where LIBOBJS objects are built.
9451 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9452 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9453 done
9454 LIBOBJS=$ac_libobjs
9455
9456 LTLIBOBJS=$ac_ltlibobjs
9457
9458
9459 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9460 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9461 Usually this means the macro was only invoked conditionally." >&5
9462 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9463 Usually this means the macro was only invoked conditionally." >&2;}
9464 { (exit 1); exit 1; }; }
9465 fi
9466 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9467 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9468 Usually this means the macro was only invoked conditionally." >&5
9469 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9470 Usually this means the macro was only invoked conditionally." >&2;}
9471 { (exit 1); exit 1; }; }
9472 fi
9473 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9474 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9475 Usually this means the macro was only invoked conditionally." >&5
9476 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9477 Usually this means the macro was only invoked conditionally." >&2;}
9478 { (exit 1); exit 1; }; }
9479 fi
9480
9481 : ${CONFIG_STATUS=./config.status}
9482 ac_clean_files_save=$ac_clean_files
9483 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9484 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9485 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9486 cat >$CONFIG_STATUS <<_ACEOF
9487 #! $SHELL
9488 # Generated by $as_me.
9489 # Run this file to recreate the current configuration.
9490 # Compiler output produced by configure, useful for debugging
9491 # configure, is in config.log if it exists.
9492
9493 debug=false
9494 ac_cs_recheck=false
9495 ac_cs_silent=false
9496 SHELL=\${CONFIG_SHELL-$SHELL}
9497 _ACEOF
9498
9499 cat >>$CONFIG_STATUS <<\_ACEOF
9500 ## --------------------- ##
9501 ## M4sh Initialization. ##
9502 ## --------------------- ##
9503
9504 # Be more Bourne compatible
9505 DUALCASE=1; export DUALCASE # for MKS sh
9506 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9507 emulate sh
9508 NULLCMD=:
9509 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9510 # is contrary to our usage. Disable this feature.
9511 alias -g '${1+"$@"}'='"$@"'
9512 setopt NO_GLOB_SUBST
9513 else
9514 case `(set -o) 2>/dev/null` in
9515 *posix*) set -o posix ;;
9516 esac
9517
9518 fi
9519
9520
9521
9522
9523 # PATH needs CR
9524 # Avoid depending upon Character Ranges.
9525 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9526 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9527 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9528 as_cr_digits='0123456789'
9529 as_cr_alnum=$as_cr_Letters$as_cr_digits
9530
9531 # The user is always right.
9532 if test "${PATH_SEPARATOR+set}" != set; then
9533 echo "#! /bin/sh" >conf$$.sh
9534 echo "exit 0" >>conf$$.sh
9535 chmod +x conf$$.sh
9536 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9537 PATH_SEPARATOR=';'
9538 else
9539 PATH_SEPARATOR=:
9540 fi
9541 rm -f conf$$.sh
9542 fi
9543
9544 # Support unset when possible.
9545 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9546 as_unset=unset
9547 else
9548 as_unset=false
9549 fi
9550
9551
9552 # IFS
9553 # We need space, tab and new line, in precisely that order. Quoting is
9554 # there to prevent editors from complaining about space-tab.
9555 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9556 # splitting by setting IFS to empty value.)
9557 as_nl='
9558 '
9559 IFS=" "" $as_nl"
9560
9561 # Find who we are. Look in the path if we contain no directory separator.
9562 case $0 in
9563 *[\\/]* ) as_myself=$0 ;;
9564 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565 for as_dir in $PATH
9566 do
9567 IFS=$as_save_IFS
9568 test -z "$as_dir" && as_dir=.
9569 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9570 done
9571 IFS=$as_save_IFS
9572
9573 ;;
9574 esac
9575 # We did not find ourselves, most probably we were run as `sh COMMAND'
9576 # in which case we are not to be found in the path.
9577 if test "x$as_myself" = x; then
9578 as_myself=$0
9579 fi
9580 if test ! -f "$as_myself"; then
9581 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9582 { (exit 1); exit 1; }
9583 fi
9584
9585 # Work around bugs in pre-3.0 UWIN ksh.
9586 for as_var in ENV MAIL MAILPATH
9587 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9588 done
9589 PS1='$ '
9590 PS2='> '
9591 PS4='+ '
9592
9593 # NLS nuisances.
9594 for as_var in \
9595 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9596 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9597 LC_TELEPHONE LC_TIME
9598 do
9599 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9600 eval $as_var=C; export $as_var
9601 else
9602 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9603 fi
9604 done
9605
9606 # Required to use basename.
9607 if expr a : '\(a\)' >/dev/null 2>&1 &&
9608 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9609 as_expr=expr
9610 else
9611 as_expr=false
9612 fi
9613
9614 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9615 as_basename=basename
9616 else
9617 as_basename=false
9618 fi
9619
9620
9621 # Name of the executable.
9622 as_me=`$as_basename -- "$0" ||
9623 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9624 X"$0" : 'X\(//\)$' \| \
9625 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9626 echo X/"$0" |
9627 sed '/^.*\/\([^/][^/]*\)\/*$/{
9628 s//\1/
9629 q
9630 }
9631 /^X\/\(\/\/\)$/{
9632 s//\1/
9633 q
9634 }
9635 /^X\/\(\/\).*/{
9636 s//\1/
9637 q
9638 }
9639 s/.*/./; q'`
9640
9641 # CDPATH.
9642 $as_unset CDPATH
9643
9644
9645
9646 as_lineno_1=$LINENO
9647 as_lineno_2=$LINENO
9648 test "x$as_lineno_1" != "x$as_lineno_2" &&
9649 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9650
9651 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9652 # uniformly replaced by the line number. The first 'sed' inserts a
9653 # line-number line after each line using $LINENO; the second 'sed'
9654 # does the real work. The second script uses 'N' to pair each
9655 # line-number line with the line containing $LINENO, and appends
9656 # trailing '-' during substitution so that $LINENO is not a special
9657 # case at line end.
9658 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9659 # scripts with optimization help from Paolo Bonzini. Blame Lee
9660 # E. McMahon (1931-1989) for sed's syntax. :-)
9661 sed -n '
9662 p
9663 /[$]LINENO/=
9664 ' <$as_myself |
9665 sed '
9666 s/[$]LINENO.*/&-/
9667 t lineno
9668 b
9669 :lineno
9670 N
9671 :loop
9672 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9673 t loop
9674 s/-\n.*//
9675 ' >$as_me.lineno &&
9676 chmod +x "$as_me.lineno" ||
9677 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9678 { (exit 1); exit 1; }; }
9679
9680 # Don't try to exec as it changes $[0], causing all sort of problems
9681 # (the dirname of $[0] is not the place where we might find the
9682 # original and so on. Autoconf is especially sensitive to this).
9683 . "./$as_me.lineno"
9684 # Exit status is that of the last command.
9685 exit
9686 }
9687
9688
9689 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9690 as_dirname=dirname
9691 else
9692 as_dirname=false
9693 fi
9694
9695 ECHO_C= ECHO_N= ECHO_T=
9696 case `echo -n x` in
9697 -n*)
9698 case `echo 'x\c'` in
9699 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9700 *) ECHO_C='\c';;
9701 esac;;
9702 *)
9703 ECHO_N='-n';;
9704 esac
9705
9706 if expr a : '\(a\)' >/dev/null 2>&1 &&
9707 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9708 as_expr=expr
9709 else
9710 as_expr=false
9711 fi
9712
9713 rm -f conf$$ conf$$.exe conf$$.file
9714 if test -d conf$$.dir; then
9715 rm -f conf$$.dir/conf$$.file
9716 else
9717 rm -f conf$$.dir
9718 mkdir conf$$.dir
9719 fi
9720 echo >conf$$.file
9721 if ln -s conf$$.file conf$$ 2>/dev/null; then
9722 as_ln_s='ln -s'
9723 # ... but there are two gotchas:
9724 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9725 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9726 # In both cases, we have to default to `cp -p'.
9727 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9728 as_ln_s='cp -p'
9729 elif ln conf$$.file conf$$ 2>/dev/null; then
9730 as_ln_s=ln
9731 else
9732 as_ln_s='cp -p'
9733 fi
9734 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9735 rmdir conf$$.dir 2>/dev/null
9736
9737 if mkdir -p . 2>/dev/null; then
9738 as_mkdir_p=:
9739 else
9740 test -d ./-p && rmdir ./-p
9741 as_mkdir_p=false
9742 fi
9743
9744 if test -x / >/dev/null 2>&1; then
9745 as_test_x='test -x'
9746 else
9747 if ls -dL / >/dev/null 2>&1; then
9748 as_ls_L_option=L
9749 else
9750 as_ls_L_option=
9751 fi
9752 as_test_x='
9753 eval sh -c '\''
9754 if test -d "$1"; then
9755 test -d "$1/.";
9756 else
9757 case $1 in
9758 -*)set "./$1";;
9759 esac;
9760 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9761 ???[sx]*):;;*)false;;esac;fi
9762 '\'' sh
9763 '
9764 fi
9765 as_executable_p=$as_test_x
9766
9767 # Sed expression to map a string onto a valid CPP name.
9768 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9769
9770 # Sed expression to map a string onto a valid variable name.
9771 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9772
9773
9774 exec 6>&1
9775
9776 # Save the log message, to keep $[0] and so on meaningful, and to
9777 # report actual input values of CONFIG_FILES etc. instead of their
9778 # values after options handling.
9779 ac_log="
9780 This file was extended by Enhanced CTorrent $as_me dnh3.3.2, which was
9781 generated by GNU Autoconf 2.61. Invocation command line was
9782
9783 CONFIG_FILES = $CONFIG_FILES
9784 CONFIG_HEADERS = $CONFIG_HEADERS
9785 CONFIG_LINKS = $CONFIG_LINKS
9786 CONFIG_COMMANDS = $CONFIG_COMMANDS
9787 $ $0 $@
9788
9789 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9790 "
9791
9792 _ACEOF
9793
9794 cat >>$CONFIG_STATUS <<_ACEOF
9795 # Files that config.status was made for.
9796 config_files="$ac_config_files"
9797 config_headers="$ac_config_headers"
9798 config_commands="$ac_config_commands"
9799
9800 _ACEOF
9801
9802 cat >>$CONFIG_STATUS <<\_ACEOF
9803 ac_cs_usage="\
9804 \`$as_me' instantiates files from templates according to the
9805 current configuration.
9806
9807 Usage: $0 [OPTIONS] [FILE]...
9808
9809 -h, --help print this help, then exit
9810 -V, --version print version number and configuration settings, then exit
9811 -q, --quiet do not print progress messages
9812 -d, --debug don't remove temporary files
9813 --recheck update $as_me by reconfiguring in the same conditions
9814 --file=FILE[:TEMPLATE]
9815 instantiate the configuration file FILE
9816 --header=FILE[:TEMPLATE]
9817 instantiate the configuration header FILE
9818
9819 Configuration files:
9820 $config_files
9821
9822 Configuration headers:
9823 $config_headers
9824
9825 Configuration commands:
9826 $config_commands
9827
9828 Report bugs to <[email protected]>."
9829
9830 _ACEOF
9831 cat >>$CONFIG_STATUS <<_ACEOF
9832 ac_cs_version="\\
9833 Enhanced CTorrent config.status dnh3.3.2
9834 configured by $0, generated by GNU Autoconf 2.61,
9835 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9836
9837 Copyright (C) 2006 Free Software Foundation, Inc.
9838 This config.status script is free software; the Free Software Foundation
9839 gives unlimited permission to copy, distribute and modify it."
9840
9841 ac_pwd='$ac_pwd'
9842 srcdir='$srcdir'
9843 INSTALL='$INSTALL'
9844 _ACEOF
9845
9846 cat >>$CONFIG_STATUS <<\_ACEOF
9847 # If no file are specified by the user, then we need to provide default
9848 # value. By we need to know if files were specified by the user.
9849 ac_need_defaults=:
9850 while test $# != 0
9851 do
9852 case $1 in
9853 --*=*)
9854 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9855 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9856 ac_shift=:
9857 ;;
9858 *)
9859 ac_option=$1
9860 ac_optarg=$2
9861 ac_shift=shift
9862 ;;
9863 esac
9864
9865 case $ac_option in
9866 # Handling of the options.
9867 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9868 ac_cs_recheck=: ;;
9869 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9870 echo "$ac_cs_version"; exit ;;
9871 --debug | --debu | --deb | --de | --d | -d )
9872 debug=: ;;
9873 --file | --fil | --fi | --f )
9874 $ac_shift
9875 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9876 ac_need_defaults=false;;
9877 --header | --heade | --head | --hea )
9878 $ac_shift
9879 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9880 ac_need_defaults=false;;
9881 --he | --h)
9882 # Conflict between --help and --header
9883 { echo "$as_me: error: ambiguous option: $1
9884 Try \`$0 --help' for more information." >&2
9885 { (exit 1); exit 1; }; };;
9886 --help | --hel | -h )
9887 echo "$ac_cs_usage"; exit ;;
9888 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9889 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9890 ac_cs_silent=: ;;
9891
9892 # This is an error.
9893 -*) { echo "$as_me: error: unrecognized option: $1
9894 Try \`$0 --help' for more information." >&2
9895 { (exit 1); exit 1; }; } ;;
9896
9897 *) ac_config_targets="$ac_config_targets $1"
9898 ac_need_defaults=false ;;
9899
9900 esac
9901 shift
9902 done
9903
9904 ac_configure_extra_args=
9905
9906 if $ac_cs_silent; then
9907 exec 6>/dev/null
9908 ac_configure_extra_args="$ac_configure_extra_args --silent"
9909 fi
9910
9911 _ACEOF
9912 cat >>$CONFIG_STATUS <<_ACEOF
9913 if \$ac_cs_recheck; then
9914 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9915 CONFIG_SHELL=$SHELL
9916 export CONFIG_SHELL
9917 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9918 fi
9919
9920 _ACEOF
9921 cat >>$CONFIG_STATUS <<\_ACEOF
9922 exec 5>>config.log
9923 {
9924 echo
9925 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9926 ## Running $as_me. ##
9927 _ASBOX
9928 echo "$ac_log"
9929 } >&5
9930
9931 _ACEOF
9932 cat >>$CONFIG_STATUS <<_ACEOF
9933 #
9934 # INIT-COMMANDS
9935 #
9936 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9937
9938 _ACEOF
9939
9940 cat >>$CONFIG_STATUS <<\_ACEOF
9941
9942 # Handling of arguments.
9943 for ac_config_target in $ac_config_targets
9944 do
9945 case $ac_config_target in
9946 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9947 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9948 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9949
9950 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9951 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9952 { (exit 1); exit 1; }; };;
9953 esac
9954 done
9955
9956
9957 # If the user did not use the arguments to specify the items to instantiate,
9958 # then the envvar interface is used. Set only those that are not.
9959 # We use the long form for the default assignment because of an extremely
9960 # bizarre bug on SunOS 4.1.3.
9961 if $ac_need_defaults; then
9962 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9963 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9964 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9965 fi
9966
9967 # Have a temporary directory for convenience. Make it in the build tree
9968 # simply because there is no reason against having it here, and in addition,
9969 # creating and moving files from /tmp can sometimes cause problems.
9970 # Hook for its removal unless debugging.
9971 # Note that there is a small window in which the directory will not be cleaned:
9972 # after its creation but before its name has been assigned to `$tmp'.
9973 $debug ||
9974 {
9975 tmp=
9976 trap 'exit_status=$?
9977 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9978 ' 0
9979 trap '{ (exit 1); exit 1; }' 1 2 13 15
9980 }
9981 # Create a (secure) tmp directory for tmp files.
9982
9983 {
9984 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9985 test -n "$tmp" && test -d "$tmp"
9986 } ||
9987 {
9988 tmp=./conf$$-$RANDOM
9989 (umask 077 && mkdir "$tmp")
9990 } ||
9991 {
9992 echo "$me: cannot create a temporary directory in ." >&2
9993 { (exit 1); exit 1; }
9994 }
9995
9996 #
9997 # Set up the sed scripts for CONFIG_FILES section.
9998 #
9999
10000 # No need to generate the scripts if there are no CONFIG_FILES.
10001 # This happens for instance when ./config.status config.h
10002 if test -n "$CONFIG_FILES"; then
10003
10004 _ACEOF
10005
10006
10007
10008 ac_delim='%!_!# '
10009 for ac_last_try in false false false false false :; do
10010 cat >conf$$subs.sed <<_ACEOF
10011 SHELL!$SHELL$ac_delim
10012 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10013 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10014 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10015 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10016 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10017 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10018 exec_prefix!$exec_prefix$ac_delim
10019 prefix!$prefix$ac_delim
10020 program_transform_name!$program_transform_name$ac_delim
10021 bindir!$bindir$ac_delim
10022 sbindir!$sbindir$ac_delim
10023 libexecdir!$libexecdir$ac_delim
10024 datarootdir!$datarootdir$ac_delim
10025 datadir!$datadir$ac_delim
10026 sysconfdir!$sysconfdir$ac_delim
10027 sharedstatedir!$sharedstatedir$ac_delim
10028 localstatedir!$localstatedir$ac_delim
10029 includedir!$includedir$ac_delim
10030 oldincludedir!$oldincludedir$ac_delim
10031 docdir!$docdir$ac_delim
10032 infodir!$infodir$ac_delim
10033 htmldir!$htmldir$ac_delim
10034 dvidir!$dvidir$ac_delim
10035 pdfdir!$pdfdir$ac_delim
10036 psdir!$psdir$ac_delim
10037 libdir!$libdir$ac_delim
10038 localedir!$localedir$ac_delim
10039 mandir!$mandir$ac_delim
10040 DEFS!$DEFS$ac_delim
10041 ECHO_C!$ECHO_C$ac_delim
10042 ECHO_N!$ECHO_N$ac_delim
10043 ECHO_T!$ECHO_T$ac_delim
10044 LIBS!$LIBS$ac_delim
10045 build_alias!$build_alias$ac_delim
10046 host_alias!$host_alias$ac_delim
10047 target_alias!$target_alias$ac_delim
10048 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10049 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10050 INSTALL_DATA!$INSTALL_DATA$ac_delim
10051 CYGPATH_W!$CYGPATH_W$ac_delim
10052 PACKAGE!$PACKAGE$ac_delim
10053 VERSION!$VERSION$ac_delim
10054 ACLOCAL!$ACLOCAL$ac_delim
10055 AUTOCONF!$AUTOCONF$ac_delim
10056 AUTOMAKE!$AUTOMAKE$ac_delim
10057 AUTOHEADER!$AUTOHEADER$ac_delim
10058 MAKEINFO!$MAKEINFO$ac_delim
10059 install_sh!$install_sh$ac_delim
10060 STRIP!$STRIP$ac_delim
10061 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
10062 mkdir_p!$mkdir_p$ac_delim
10063 AWK!$AWK$ac_delim
10064 SET_MAKE!$SET_MAKE$ac_delim
10065 am__leading_dot!$am__leading_dot$ac_delim
10066 AMTAR!$AMTAR$ac_delim
10067 am__tar!$am__tar$ac_delim
10068 am__untar!$am__untar$ac_delim
10069 CXX!$CXX$ac_delim
10070 CXXFLAGS!$CXXFLAGS$ac_delim
10071 LDFLAGS!$LDFLAGS$ac_delim
10072 CPPFLAGS!$CPPFLAGS$ac_delim
10073 ac_ct_CXX!$ac_ct_CXX$ac_delim
10074 EXEEXT!$EXEEXT$ac_delim
10075 OBJEXT!$OBJEXT$ac_delim
10076 DEPDIR!$DEPDIR$ac_delim
10077 am__include!$am__include$ac_delim
10078 am__quote!$am__quote$ac_delim
10079 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
10080 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
10081 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
10082 CXXDEPMODE!$CXXDEPMODE$ac_delim
10083 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
10084 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
10085 CC!$CC$ac_delim
10086 CFLAGS!$CFLAGS$ac_delim
10087 ac_ct_CC!$ac_ct_CC$ac_delim
10088 CCDEPMODE!$CCDEPMODE$ac_delim
10089 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
10090 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
10091 CXXCPP!$CXXCPP$ac_delim
10092 GREP!$GREP$ac_delim
10093 EGREP!$EGREP$ac_delim
10094 LIBOBJS!$LIBOBJS$ac_delim
10095 POW_LIB!$POW_LIB$ac_delim
10096 LTLIBOBJS!$LTLIBOBJS$ac_delim
10097 _ACEOF
10098
10099 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
10100 break
10101 elif $ac_last_try; then
10102 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10103 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10104 { (exit 1); exit 1; }; }
10105 else
10106 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10107 fi
10108 done
10109
10110 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10111 if test -n "$ac_eof"; then
10112 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10113 ac_eof=`expr $ac_eof + 1`
10114 fi
10115
10116 cat >>$CONFIG_STATUS <<_ACEOF
10117 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10118 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10119 _ACEOF
10120 sed '
10121 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10122 s/^/s,@/; s/!/@,|#_!!_#|/
10123 :n
10124 t n
10125 s/'"$ac_delim"'$/,g/; t
10126 s/$/\\/; p
10127 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10128 ' >>$CONFIG_STATUS <conf$$subs.sed
10129 rm -f conf$$subs.sed
10130 cat >>$CONFIG_STATUS <<_ACEOF
10131 :end
10132 s/|#_!!_#|//g
10133 CEOF$ac_eof
10134 _ACEOF
10135
10136
10137 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10138 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10139 # trailing colons and then remove the whole line if VPATH becomes empty
10140 # (actually we leave an empty line to preserve line numbers).
10141 if test "x$srcdir" = x.; then
10142 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10143 s/:*\$(srcdir):*/:/
10144 s/:*\${srcdir}:*/:/
10145 s/:*@srcdir@:*/:/
10146 s/^\([^=]*=[ ]*\):*/\1/
10147 s/:*$//
10148 s/^[^=]*=[ ]*$//
10149 }'
10150 fi
10151
10152 cat >>$CONFIG_STATUS <<\_ACEOF
10153 fi # test -n "$CONFIG_FILES"
10154
10155
10156 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
10157 do
10158 case $ac_tag in
10159 :[FHLC]) ac_mode=$ac_tag; continue;;
10160 esac
10161 case $ac_mode$ac_tag in
10162 :[FHL]*:*);;
10163 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10164 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10165 { (exit 1); exit 1; }; };;
10166 :[FH]-) ac_tag=-:-;;
10167 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10168 esac
10169 ac_save_IFS=$IFS
10170 IFS=:
10171 set x $ac_tag
10172 IFS=$ac_save_IFS
10173 shift
10174 ac_file=$1
10175 shift
10176
10177 case $ac_mode in
10178 :L) ac_source=$1;;
10179 :[FH])
10180 ac_file_inputs=
10181 for ac_f
10182 do
10183 case $ac_f in
10184 -) ac_f="$tmp/stdin";;
10185 *) # Look for the file first in the build tree, then in the source tree
10186 # (if the path is not absolute). The absolute path cannot be DOS-style,
10187 # because $ac_f cannot contain `:'.
10188 test -f "$ac_f" ||
10189 case $ac_f in
10190 [\\/$]*) false;;
10191 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10192 esac ||
10193 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10194 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10195 { (exit 1); exit 1; }; };;
10196 esac
10197 ac_file_inputs="$ac_file_inputs $ac_f"
10198 done
10199
10200 # Let's still pretend it is `configure' which instantiates (i.e., don't
10201 # use $as_me), people would be surprised to read:
10202 # /* config.h. Generated by config.status. */
10203 configure_input="Generated from "`IFS=:
10204 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10205 if test x"$ac_file" != x-; then
10206 configure_input="$ac_file. $configure_input"
10207 { echo "$as_me:$LINENO: creating $ac_file" >&5
10208 echo "$as_me: creating $ac_file" >&6;}
10209 fi
10210
10211 case $ac_tag in
10212 *:-:* | *:-) cat >"$tmp/stdin";;
10213 esac
10214 ;;
10215 esac
10216
10217 ac_dir=`$as_dirname -- "$ac_file" ||
10218 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10219 X"$ac_file" : 'X\(//\)[^/]' \| \
10220 X"$ac_file" : 'X\(//\)$' \| \
10221 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10222 echo X"$ac_file" |
10223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10224 s//\1/
10225 q
10226 }
10227 /^X\(\/\/\)[^/].*/{
10228 s//\1/
10229 q
10230 }
10231 /^X\(\/\/\)$/{
10232 s//\1/
10233 q
10234 }
10235 /^X\(\/\).*/{
10236 s//\1/
10237 q
10238 }
10239 s/.*/./; q'`
10240 { as_dir="$ac_dir"
10241 case $as_dir in #(
10242 -*) as_dir=./$as_dir;;
10243 esac
10244 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10245 as_dirs=
10246 while :; do
10247 case $as_dir in #(
10248 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10249 *) as_qdir=$as_dir;;
10250 esac
10251 as_dirs="'$as_qdir' $as_dirs"
10252 as_dir=`$as_dirname -- "$as_dir" ||
10253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10254 X"$as_dir" : 'X\(//\)[^/]' \| \
10255 X"$as_dir" : 'X\(//\)$' \| \
10256 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10257 echo X"$as_dir" |
10258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10259 s//\1/
10260 q
10261 }
10262 /^X\(\/\/\)[^/].*/{
10263 s//\1/
10264 q
10265 }
10266 /^X\(\/\/\)$/{
10267 s//\1/
10268 q
10269 }
10270 /^X\(\/\).*/{
10271 s//\1/
10272 q
10273 }
10274 s/.*/./; q'`
10275 test -d "$as_dir" && break
10276 done
10277 test -z "$as_dirs" || eval "mkdir $as_dirs"
10278 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10279 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10280 { (exit 1); exit 1; }; }; }
10281 ac_builddir=.
10282
10283 case "$ac_dir" in
10284 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10285 *)
10286 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10287 # A ".." for each directory in $ac_dir_suffix.
10288 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10289 case $ac_top_builddir_sub in
10290 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10291 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10292 esac ;;
10293 esac
10294 ac_abs_top_builddir=$ac_pwd
10295 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10296 # for backward compatibility:
10297 ac_top_builddir=$ac_top_build_prefix
10298
10299 case $srcdir in
10300 .) # We are building in place.
10301 ac_srcdir=.
10302 ac_top_srcdir=$ac_top_builddir_sub
10303 ac_abs_top_srcdir=$ac_pwd ;;
10304 [\\/]* | ?:[\\/]* ) # Absolute name.
10305 ac_srcdir=$srcdir$ac_dir_suffix;
10306 ac_top_srcdir=$srcdir
10307 ac_abs_top_srcdir=$srcdir ;;
10308 *) # Relative name.
10309 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10310 ac_top_srcdir=$ac_top_build_prefix$srcdir
10311 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10312 esac
10313 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10314
10315
10316 case $ac_mode in
10317 :F)
10318 #
10319 # CONFIG_FILE
10320 #
10321
10322 case $INSTALL in
10323 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10324 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10325 esac
10326 _ACEOF
10327
10328 cat >>$CONFIG_STATUS <<\_ACEOF
10329 # If the template does not know about datarootdir, expand it.
10330 # FIXME: This hack should be removed a few years after 2.60.
10331 ac_datarootdir_hack=; ac_datarootdir_seen=
10332
10333 case `sed -n '/datarootdir/ {
10334 p
10335 q
10336 }
10337 /@datadir@/p
10338 /@docdir@/p
10339 /@infodir@/p
10340 /@localedir@/p
10341 /@mandir@/p
10342 ' $ac_file_inputs` in
10343 *datarootdir*) ac_datarootdir_seen=yes;;
10344 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10345 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10346 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10347 _ACEOF
10348 cat >>$CONFIG_STATUS <<_ACEOF
10349 ac_datarootdir_hack='
10350 s&@datadir@&$datadir&g
10351 s&@docdir@&$docdir&g
10352 s&@infodir@&$infodir&g
10353 s&@localedir@&$localedir&g
10354 s&@mandir@&$mandir&g
10355 s&\\\${datarootdir}&$datarootdir&g' ;;
10356 esac
10357 _ACEOF
10358
10359 # Neutralize VPATH when `$srcdir' = `.'.
10360 # Shell code in configure.ac might set extrasub.
10361 # FIXME: do we really want to maintain this feature?
10362 cat >>$CONFIG_STATUS <<_ACEOF
10363 sed "$ac_vpsub
10364 $extrasub
10365 _ACEOF
10366 cat >>$CONFIG_STATUS <<\_ACEOF
10367 :t
10368 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10369 s&@configure_input@&$configure_input&;t t
10370 s&@top_builddir@&$ac_top_builddir_sub&;t t
10371 s&@srcdir@&$ac_srcdir&;t t
10372 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10373 s&@top_srcdir@&$ac_top_srcdir&;t t
10374 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10375 s&@builddir@&$ac_builddir&;t t
10376 s&@abs_builddir@&$ac_abs_builddir&;t t
10377 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10378 s&@INSTALL@&$ac_INSTALL&;t t
10379 $ac_datarootdir_hack
10380 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
10381
10382 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10383 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10384 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10385 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10386 which seems to be undefined. Please make sure it is defined." >&5
10387 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10388 which seems to be undefined. Please make sure it is defined." >&2;}
10389
10390 rm -f "$tmp/stdin"
10391 case $ac_file in
10392 -) cat "$tmp/out"; rm -f "$tmp/out";;
10393 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10394 esac
10395 ;;
10396 :H)
10397 #
10398 # CONFIG_HEADER
10399 #
10400 _ACEOF
10401
10402 # Transform confdefs.h into a sed script `conftest.defines', that
10403 # substitutes the proper values into config.h.in to produce config.h.
10404 rm -f conftest.defines conftest.tail
10405 # First, append a space to every undef/define line, to ease matching.
10406 echo 's/$/ /' >conftest.defines
10407 # Then, protect against being on the right side of a sed subst, or in
10408 # an unquoted here document, in config.status. If some macros were
10409 # called several times there might be several #defines for the same
10410 # symbol, which is useless. But do not sort them, since the last
10411 # AC_DEFINE must be honored.
10412 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10413 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10414 # NAME is the cpp macro being defined, VALUE is the value it is being given.
10415 # PARAMS is the parameter list in the macro definition--in most cases, it's
10416 # just an empty string.
10417 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
10418 ac_dB='\\)[ (].*,\\1define\\2'
10419 ac_dC=' '
10420 ac_dD=' ,'
10421
10422 uniq confdefs.h |
10423 sed -n '
10424 t rset
10425 :rset
10426 s/^[ ]*#[ ]*define[ ][ ]*//
10427 t ok
10428 d
10429 :ok
10430 s/[\\&,]/\\&/g
10431 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10432 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10433 ' >>conftest.defines
10434
10435 # Remove the space that was appended to ease matching.
10436 # Then replace #undef with comments. This is necessary, for
10437 # example, in the case of _POSIX_SOURCE, which is predefined and required
10438 # on some systems where configure will not decide to define it.
10439 # (The regexp can be short, since the line contains either #define or #undef.)
10440 echo 's/ $//
10441 s,^[ #]*u.*,/* & */,' >>conftest.defines
10442
10443 # Break up conftest.defines:
10444 ac_max_sed_lines=50
10445
10446 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10447 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10448 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10449 # et cetera.
10450 ac_in='$ac_file_inputs'
10451 ac_out='"$tmp/out1"'
10452 ac_nxt='"$tmp/out2"'
10453
10454 while :
10455 do
10456 # Write a here document:
10457 cat >>$CONFIG_STATUS <<_ACEOF
10458 # First, check the format of the line:
10459 cat >"\$tmp/defines.sed" <<\\CEOF
10460 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
10461 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
10462 b
10463 :def
10464 _ACEOF
10465 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
10466 echo 'CEOF
10467 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10468 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
10469 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
10470 grep . conftest.tail >/dev/null || break
10471 rm -f conftest.defines
10472 mv conftest.tail conftest.defines
10473 done
10474 rm -f conftest.defines conftest.tail
10475
10476 echo "ac_result=$ac_in" >>$CONFIG_STATUS
10477 cat >>$CONFIG_STATUS <<\_ACEOF
10478 if test x"$ac_file" != x-; then
10479 echo "/* $configure_input */" >"$tmp/config.h"
10480 cat "$ac_result" >>"$tmp/config.h"
10481 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
10482 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10483 echo "$as_me: $ac_file is unchanged" >&6;}
10484 else
10485 rm -f $ac_file
10486 mv "$tmp/config.h" $ac_file
10487 fi
10488 else
10489 echo "/* $configure_input */"
10490 cat "$ac_result"
10491 fi
10492 rm -f "$tmp/out12"
10493 # Compute $ac_file's index in $config_headers.
10494 _am_stamp_count=1
10495 for _am_header in $config_headers :; do
10496 case $_am_header in
10497 $ac_file | $ac_file:* )
10498 break ;;
10499 * )
10500 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10501 esac
10502 done
10503 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
10504 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10505 X$ac_file : 'X\(//\)[^/]' \| \
10506 X$ac_file : 'X\(//\)$' \| \
10507 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
10508 echo X$ac_file |
10509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10510 s//\1/
10511 q
10512 }
10513 /^X\(\/\/\)[^/].*/{
10514 s//\1/
10515 q
10516 }
10517 /^X\(\/\/\)$/{
10518 s//\1/
10519 q
10520 }
10521 /^X\(\/\).*/{
10522 s//\1/
10523 q
10524 }
10525 s/.*/./; q'`/stamp-h$_am_stamp_count
10526 ;;
10527
10528 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
10529 echo "$as_me: executing $ac_file commands" >&6;}
10530 ;;
10531 esac
10532
10533
10534 case $ac_file$ac_mode in
10535 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10536 # Strip MF so we end up with the name of the file.
10537 mf=`echo "$mf" | sed -e 's/:.*$//'`
10538 # Check whether this is an Automake generated Makefile or not.
10539 # We used to match only the files named `Makefile.in', but
10540 # some people rename them; so instead we look at the file content.
10541 # Grep'ing the first line is not enough: some people post-process
10542 # each Makefile.in and add a new line on top of each file to say so.
10543 # So let's grep whole file.
10544 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10545 dirpart=`$as_dirname -- "$mf" ||
10546 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10547 X"$mf" : 'X\(//\)[^/]' \| \
10548 X"$mf" : 'X\(//\)$' \| \
10549 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10550 echo X"$mf" |
10551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10552 s//\1/
10553 q
10554 }
10555 /^X\(\/\/\)[^/].*/{
10556 s//\1/
10557 q
10558 }
10559 /^X\(\/\/\)$/{
10560 s//\1/
10561 q
10562 }
10563 /^X\(\/\).*/{
10564 s//\1/
10565 q
10566 }
10567 s/.*/./; q'`
10568 else
10569 continue
10570 fi
10571 # Extract the definition of DEPDIR, am__include, and am__quote
10572 # from the Makefile without running `make'.
10573 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10574 test -z "$DEPDIR" && continue
10575 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10576 test -z "am__include" && continue
10577 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10578 # When using ansi2knr, U may be empty or an underscore; expand it
10579 U=`sed -n 's/^U = //p' < "$mf"`
10580 # Find all dependency output files, they are included files with
10581 # $(DEPDIR) in their names. We invoke sed twice because it is the
10582 # simplest approach to changing $(DEPDIR) to its actual value in the
10583 # expansion.
10584 for file in `sed -n "
10585 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10586 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10587 # Make sure the directory exists.
10588 test -f "$dirpart/$file" && continue
10589 fdir=`$as_dirname -- "$file" ||
10590 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10591 X"$file" : 'X\(//\)[^/]' \| \
10592 X"$file" : 'X\(//\)$' \| \
10593 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10594 echo X"$file" |
10595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10596 s//\1/
10597 q
10598 }
10599 /^X\(\/\/\)[^/].*/{
10600 s//\1/
10601 q
10602 }
10603 /^X\(\/\/\)$/{
10604 s//\1/
10605 q
10606 }
10607 /^X\(\/\).*/{
10608 s//\1/
10609 q
10610 }
10611 s/.*/./; q'`
10612 { as_dir=$dirpart/$fdir
10613 case $as_dir in #(
10614 -*) as_dir=./$as_dir;;
10615 esac
10616 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10617 as_dirs=
10618 while :; do
10619 case $as_dir in #(
10620 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10621 *) as_qdir=$as_dir;;
10622 esac
10623 as_dirs="'$as_qdir' $as_dirs"
10624 as_dir=`$as_dirname -- "$as_dir" ||
10625 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10626 X"$as_dir" : 'X\(//\)[^/]' \| \
10627 X"$as_dir" : 'X\(//\)$' \| \
10628 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10629 echo X"$as_dir" |
10630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10631 s//\1/
10632 q
10633 }
10634 /^X\(\/\/\)[^/].*/{
10635 s//\1/
10636 q
10637 }
10638 /^X\(\/\/\)$/{
10639 s//\1/
10640 q
10641 }
10642 /^X\(\/\).*/{
10643 s//\1/
10644 q
10645 }
10646 s/.*/./; q'`
10647 test -d "$as_dir" && break
10648 done
10649 test -z "$as_dirs" || eval "mkdir $as_dirs"
10650 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10651 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10652 { (exit 1); exit 1; }; }; }
10653 # echo "creating $dirpart/$file"
10654 echo '# dummy' > "$dirpart/$file"
10655 done
10656 done
10657 ;;
10658
10659 esac
10660 done # for ac_tag
10661
10662
10663 { (exit 0); exit 0; }
10664 _ACEOF
10665 chmod +x $CONFIG_STATUS
10666 ac_clean_files=$ac_clean_files_save
10667
10668
10669 # configure is writing to config.log, and then calls config.status.
10670 # config.status does its own redirection, appending to config.log.
10671 # Unfortunately, on DOS this fails, as config.log is still kept open
10672 # by configure, so config.status won't be able to write to it; its
10673 # output is simply discarded. So we exec the FD to /dev/null,
10674 # effectively closing config.log, so it can be properly (re)opened and
10675 # appended to by config.status. When coming back to configure, we
10676 # need to make the FD available again.
10677 if test "$no_create" != yes; then
10678 ac_cs_success=:
10679 ac_config_status_args=
10680 test "$silent" = yes &&
10681 ac_config_status_args="$ac_config_status_args --quiet"
10682 exec 5>/dev/null
10683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10684 exec 5>>config.log
10685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10686 # would make configure fail if this is the last instruction.
10687 $ac_cs_success || { (exit 1); exit 1; }
10688 fi
10689
10690