nexmon – Blame information for rev 1

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