"Fossies" - the Fresh Open Source Software Archive 
Member "fping-5.1/configure" (6 Feb 2022, 213695 Bytes) of package /linux/misc/fping-5.1.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for fping 5.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
184 if (eval "$as_required") 2>/dev/null
185 then :
186 as_have_required=yes
187 else $as_nop
188 as_have_required=no
189 fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
191 then :
192
193 else $as_nop
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 case $as_dir in #(((
200 '') as_dir=./ ;;
201 */) ;;
202 *) as_dir=$as_dir/ ;;
203 esac
204 as_found=:
205 case $as_dir in #(
206 /*)
207 for as_base in sh bash ksh sh5; do
208 # Try only shells that exist, to save several forks.
209 as_shell=$as_dir$as_base
210 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
211 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
212 then :
213 CONFIG_SHELL=$as_shell as_have_required=yes
214 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
215 then :
216 break 2
217 fi
218 fi
219 done;;
220 esac
221 as_found=false
222 done
223 IFS=$as_save_IFS
224 if $as_found
225 then :
226
227 else $as_nop
228 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
229 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
230 then :
231 CONFIG_SHELL=$SHELL as_have_required=yes
232 fi
233 fi
234
235
236 if test "x$CONFIG_SHELL" != x
237 then :
238 export CONFIG_SHELL
239 # We cannot yet assume a decent shell, so we have to provide a
240 # neutralization value for shells without unset; and this also
241 # works around shells that cannot unset nonexistent variables.
242 # Preserve -v and -x to the replacement shell.
243 BASH_ENV=/dev/null
244 ENV=/dev/null
245 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246 case $- in # ((((
247 *v*x* | *x*v* ) as_opts=-vx ;;
248 *v* ) as_opts=-v ;;
249 *x* ) as_opts=-x ;;
250 * ) as_opts= ;;
251 esac
252 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253 # Admittedly, this is quite paranoid, since all the known shells bail
254 # out after a failed `exec'.
255 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
256 exit 255
257 fi
258
259 if test x$as_have_required = xno
260 then :
261 printf "%s\n" "$0: This script requires a shell more modern than all"
262 printf "%s\n" "$0: the shells that I found on your system."
263 if test ${ZSH_VERSION+y} ; then
264 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 printf "%s\n" "$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
295 # as_fn_set_status STATUS
296 # -----------------------
297 # Set $? to STATUS, without forking.
298 as_fn_set_status ()
299 {
300 return $1
301 } # as_fn_set_status
302
303 # as_fn_exit STATUS
304 # -----------------
305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
306 as_fn_exit ()
307 {
308 set +e
309 as_fn_set_status $1
310 exit $1
311 } # as_fn_exit
312 # as_fn_nop
313 # ---------
314 # Do nothing but, unlike ":", preserve the value of $?.
315 as_fn_nop ()
316 {
317 return $?
318 }
319 as_nop=as_fn_nop
320
321 # as_fn_mkdir_p
322 # -------------
323 # Create "$as_dir" as a directory, including parents if necessary.
324 as_fn_mkdir_p ()
325 {
326
327 case $as_dir in #(
328 -*) as_dir=./$as_dir;;
329 esac
330 test -d "$as_dir" || eval $as_mkdir_p || {
331 as_dirs=
332 while :; do
333 case $as_dir in #(
334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335 *) as_qdir=$as_dir;;
336 esac
337 as_dirs="'$as_qdir' $as_dirs"
338 as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 X"$as_dir" : 'X\(//\)[^/]' \| \
341 X"$as_dir" : 'X\(//\)$' \| \
342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)[^/].*/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\).*/{
357 s//\1/
358 q
359 }
360 s/.*/./; q'`
361 test -d "$as_dir" && break
362 done
363 test -z "$as_dirs" || eval "mkdir $as_dirs"
364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367 } # as_fn_mkdir_p
368
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
373 {
374 test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
381 # implementations.
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else $as_nop
389 as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 }
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401 then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else $as_nop
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413 # as_fn_nop
414 # ---------
415 # Do nothing but, unlike ":", preserve the value of $?.
416 as_fn_nop ()
417 {
418 return $?
419 }
420 as_nop=as_fn_nop
421
422 # as_fn_error STATUS ERROR [LINENO LOG_FD]
423 # ----------------------------------------
424 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
425 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
426 # script with STATUS, using 1 if that was 0.
427 as_fn_error ()
428 {
429 as_status=$1; test $as_status -eq 0 && as_status=1
430 if test "$4"; then
431 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
433 fi
434 printf "%s\n" "$as_me: error: $2" >&2
435 as_fn_exit $as_status
436 } # as_fn_error
437
438 if expr a : '\(a\)' >/dev/null 2>&1 &&
439 test "X`expr 00001 : '.*\(...\)'`" = X001; then
440 as_expr=expr
441 else
442 as_expr=false
443 fi
444
445 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
446 as_basename=basename
447 else
448 as_basename=false
449 fi
450
451 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
452 as_dirname=dirname
453 else
454 as_dirname=false
455 fi
456
457 as_me=`$as_basename -- "$0" ||
458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
459 X"$0" : 'X\(//\)$' \| \
460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
461 printf "%s\n" X/"$0" |
462 sed '/^.*\/\([^/][^/]*\)\/*$/{
463 s//\1/
464 q
465 }
466 /^X\/\(\/\/\)$/{
467 s//\1/
468 q
469 }
470 /^X\/\(\/\).*/{
471 s//\1/
472 q
473 }
474 s/.*/./; q'`
475
476 # Avoid depending upon Character Ranges.
477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
480 as_cr_digits='0123456789'
481 as_cr_alnum=$as_cr_Letters$as_cr_digits
482
483
484 as_lineno_1=$LINENO as_lineno_1a=$LINENO
485 as_lineno_2=$LINENO as_lineno_2a=$LINENO
486 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
487 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
488 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 sed -n '
490 p
491 /[$]LINENO/=
492 ' <$as_myself |
493 sed '
494 s/[$]LINENO.*/&-/
495 t lineno
496 b
497 :lineno
498 N
499 :loop
500 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
501 t loop
502 s/-\n.*//
503 ' >$as_me.lineno &&
504 chmod +x "$as_me.lineno" ||
505 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
506
507 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
508 # already done that, so ensure we don't try to do so again and fall
509 # in an infinite loop. This has already happened in practice.
510 _as_can_reexec=no; export _as_can_reexec
511 # Don't try to exec as it changes $[0], causing all sort of problems
512 # (the dirname of $[0] is not the place where we might find the
513 # original and so on. Autoconf is especially sensitive to this).
514 . "./$as_me.lineno"
515 # Exit status is that of the last command.
516 exit
517 }
518
519
520 # Determine whether it's possible to make 'echo' print without a newline.
521 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
522 # for compatibility with existing Makefiles.
523 ECHO_C= ECHO_N= ECHO_T=
524 case `echo -n x` in #(((((
525 -n*)
526 case `echo 'xy\c'` in
527 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
528 xy) ECHO_C='\c';;
529 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
530 ECHO_T=' ';;
531 esac;;
532 *)
533 ECHO_N='-n';;
534 esac
535
536 # For backward compatibility with old third-party macros, we provide
537 # the shell variables $as_echo and $as_echo_n. New code should use
538 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
539 as_echo='printf %s\n'
540 as_echo_n='printf %s'
541
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
556 # In both cases, we have to default to `cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
582
583 # Sed expression to map a string onto a valid variable name.
584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
585
586
587 test -n "$DJDIR" || exec 7<&0 </dev/null
588 exec 6>&1
589
590 # Name of the host.
591 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
592 # so uname gets run too.
593 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
594
595 #
596 # Initializations.
597 #
598 ac_default_prefix=/usr/local
599 ac_clean_files=
600 ac_config_libobj_dir=.
601 LIBOBJS=
602 cross_compiling=no
603 subdirs=
604 MFLAGS=
605 MAKEFLAGS=
606
607 # Identity of this package.
608 PACKAGE_NAME='fping'
609 PACKAGE_TARNAME='fping'
610 PACKAGE_VERSION='5.1'
611 PACKAGE_STRING='fping 5.1'
612 PACKAGE_BUGREPORT=''
613 PACKAGE_URL=''
614
615 # Factoring default headers for most tests.
616 ac_includes_default="\
617 #include <stddef.h>
618 #ifdef HAVE_STDIO_H
619 # include <stdio.h>
620 #endif
621 #ifdef HAVE_STDLIB_H
622 # include <stdlib.h>
623 #endif
624 #ifdef HAVE_STRING_H
625 # include <string.h>
626 #endif
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
629 #endif
630 #ifdef HAVE_STDINT_H
631 # include <stdint.h>
632 #endif
633 #ifdef HAVE_STRINGS_H
634 # include <strings.h>
635 #endif
636 #ifdef HAVE_SYS_TYPES_H
637 # include <sys/types.h>
638 #endif
639 #ifdef HAVE_SYS_STAT_H
640 # include <sys/stat.h>
641 #endif
642 #ifdef HAVE_UNISTD_H
643 # include <unistd.h>
644 #endif"
645
646 ac_header_c_list=
647 ac_subst_vars='am__EXEEXT_FALSE
648 am__EXEEXT_TRUE
649 LTLIBOBJS
650 LIBOBJS
651 CPP
652 MAINT
653 MAINTAINER_MODE_FALSE
654 MAINTAINER_MODE_TRUE
655 AM_BACKSLASH
656 AM_DEFAULT_VERBOSITY
657 AM_DEFAULT_V
658 AM_V
659 CSCOPE
660 ETAGS
661 CTAGS
662 am__fastdepCC_FALSE
663 am__fastdepCC_TRUE
664 CCDEPMODE
665 am__nodep
666 AMDEPBACKSLASH
667 AMDEP_FALSE
668 AMDEP_TRUE
669 am__include
670 DEPDIR
671 am__untar
672 am__tar
673 AMTAR
674 am__leading_dot
675 SET_MAKE
676 AWK
677 mkdir_p
678 MKDIR_P
679 INSTALL_STRIP_PROGRAM
680 STRIP
681 install_sh
682 MAKEINFO
683 AUTOHEADER
684 AUTOMAKE
685 AUTOCONF
686 ACLOCAL
687 VERSION
688 PACKAGE
689 CYGPATH_W
690 am__isrc
691 INSTALL_DATA
692 INSTALL_SCRIPT
693 INSTALL_PROGRAM
694 target_os
695 target_vendor
696 target_cpu
697 target
698 host_os
699 host_vendor
700 host_cpu
701 host
702 build_os
703 build_vendor
704 build_cpu
705 build
706 IPV6_FALSE
707 IPV6_TRUE
708 IPV4_FALSE
709 IPV4_TRUE
710 OBJEXT
711 EXEEXT
712 ac_ct_CC
713 CPPFLAGS
714 LDFLAGS
715 CFLAGS
716 CC
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 runstatedir
737 localstatedir
738 sharedstatedir
739 sysconfdir
740 datadir
741 datarootdir
742 libexecdir
743 sbindir
744 bindir
745 program_transform_name
746 prefix
747 exec_prefix
748 PACKAGE_URL
749 PACKAGE_BUGREPORT
750 PACKAGE_STRING
751 PACKAGE_VERSION
752 PACKAGE_TARNAME
753 PACKAGE_NAME
754 PATH_SEPARATOR
755 SHELL
756 am__quote'
757 ac_subst_files=''
758 ac_user_opts='
759 enable_option_checking
760 enable_ipv4
761 enable_ipv6
762 enable_timestamp
763 enable_safe_limits
764 enable_dependency_tracking
765 enable_silent_rules
766 enable_maintainer_mode
767 '
768 ac_precious_vars='build_alias
769 host_alias
770 target_alias
771 CC
772 CFLAGS
773 LDFLAGS
774 LIBS
775 CPPFLAGS
776 CPP'
777
778
779 # Initialize some variables set by options.
780 ac_init_help=
781 ac_init_version=false
782 ac_unrecognized_opts=
783 ac_unrecognized_sep=
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
786 cache_file=/dev/null
787 exec_prefix=NONE
788 no_create=
789 no_recursion=
790 prefix=NONE
791 program_prefix=NONE
792 program_suffix=NONE
793 program_transform_name=s,x,x,
794 silent=
795 site=
796 srcdir=
797 verbose=
798 x_includes=NONE
799 x_libraries=NONE
800
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir='${exec_prefix}/bin'
808 sbindir='${exec_prefix}/sbin'
809 libexecdir='${exec_prefix}/libexec'
810 datarootdir='${prefix}/share'
811 datadir='${datarootdir}'
812 sysconfdir='${prefix}/etc'
813 sharedstatedir='${prefix}/com'
814 localstatedir='${prefix}/var'
815 runstatedir='${localstatedir}/run'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir='${datarootdir}/info'
820 htmldir='${docdir}'
821 dvidir='${docdir}'
822 pdfdir='${docdir}'
823 psdir='${docdir}'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
827
828 ac_prev=
829 ac_dashdash=
830 for ac_option
831 do
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
835 ac_prev=
836 continue
837 fi
838
839 case $ac_option in
840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *=) ac_optarg= ;;
842 *) ac_optarg=yes ;;
843 esac
844
845 case $ac_dashdash$ac_option in
846 --)
847 ac_dashdash=yes ;;
848
849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 ac_prev=bindir ;;
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852 bindir=$ac_optarg ;;
853
854 -build | --build | --buil | --bui | --bu)
855 ac_prev=build_alias ;;
856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857 build_alias=$ac_optarg ;;
858
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864 cache_file=$ac_optarg ;;
865
866 --config-cache | -C)
867 cache_file=config.cache ;;
868
869 -datadir | --datadir | --datadi | --datad)
870 ac_prev=datadir ;;
871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
872 datadir=$ac_optarg ;;
873
874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
880
881 -disable-* | --disable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error $? "invalid feature name: \`$ac_useropt'"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
889 *"
890 "enable_$ac_useropt"
891 "*) ;;
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
894 esac
895 eval enable_$ac_useropt=no ;;
896
897 -docdir | --docdir | --docdi | --doc | --do)
898 ac_prev=docdir ;;
899 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900 docdir=$ac_optarg ;;
901
902 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903 ac_prev=dvidir ;;
904 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905 dvidir=$ac_optarg ;;
906
907 -enable-* | --enable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: \`$ac_useropt'"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
915 *"
916 "enable_$ac_useropt"
917 "*) ;;
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
920 esac
921 eval enable_$ac_useropt=\$ac_optarg ;;
922
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
931
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
934 with_gas=yes ;;
935
936 -help | --help | --hel | --he | -h)
937 ac_init_help=long ;;
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
942
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
947
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 ac_prev=htmldir ;;
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 | --ht=*)
952 htmldir=$ac_optarg ;;
953
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
960
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 ac_prev=infodir ;;
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
965
966 -libdir | --libdir | --libdi | --libd)
967 ac_prev=libdir ;;
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
969 libdir=$ac_optarg ;;
970
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
977
978 -localedir | --localedir | --localedi | --localed | --locale)
979 ac_prev=localedir ;;
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
982
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
989
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 ac_prev=mandir ;;
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993 mandir=$ac_optarg ;;
994
995 -nfp | --nfp | --nf)
996 # Obsolete; use --without-fp.
997 with_fp=no ;;
998
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1001 no_create=yes ;;
1002
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 no_recursion=yes ;;
1006
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1015
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 ac_prev=prefix ;;
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1020
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1027
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1034
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1051
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 ac_prev=pdfdir ;;
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1056
1057 -psdir | --psdir | --psdi | --psd | --ps)
1058 ac_prev=psdir ;;
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060 psdir=$ac_optarg ;;
1061
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 silent=yes ;;
1065
1066 -runstatedir | --runstatedir | --runstatedi | --runstated \
1067 | --runstate | --runstat | --runsta | --runst | --runs \
1068 | --run | --ru | --r)
1069 ac_prev=runstatedir ;;
1070 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1071 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1072 | --run=* | --ru=* | --r=*)
1073 runstatedir=$ac_optarg ;;
1074
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 ac_prev=sbindir ;;
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 | --sbi=* | --sb=*)
1079 sbindir=$ac_optarg ;;
1080
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1084 | --sha | --sh)
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 | --sha=* | --sh=*)
1090 sharedstatedir=$ac_optarg ;;
1091
1092 -site | --site | --sit)
1093 ac_prev=site ;;
1094 -site=* | --site=* | --sit=*)
1095 site=$ac_optarg ;;
1096
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 ac_prev=srcdir ;;
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1101
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1108
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1113
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 verbose=yes ;;
1116
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1119
1120 -with-* | --with-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: \`$ac_useropt'"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1128 *"
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=\$ac_optarg ;;
1135
1136 -without-* | --without-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: \`$ac_useropt'"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145 "with_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=no ;;
1151
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1155
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1162
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1169
1170 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1171 Try \`$0 --help' for more information"
1172 ;;
1173
1174 *=*)
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 case $ac_envvar in #(
1178 '' | [0-9]* | *[!_$as_cr_alnum]* )
1179 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1180 esac
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1183
1184 *)
1185 # FIXME: should be removed in autoconf 3.0.
1186 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190 ;;
1191
1192 esac
1193 done
1194
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 as_fn_error $? "missing argument to $ac_option"
1198 fi
1199
1200 if test -n "$ac_unrecognized_opts"; then
1201 case $enable_option_checking in
1202 no) ;;
1203 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1204 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205 esac
1206 fi
1207
1208 # Check all directory arguments for consistency.
1209 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir runstatedir
1213 do
1214 eval ac_val=\$$ac_var
1215 # Remove trailing slashes.
1216 case $ac_val in
1217 */ )
1218 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219 eval $ac_var=\$ac_val;;
1220 esac
1221 # Be sure to have absolute directory names.
1222 case $ac_val in
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 esac
1226 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1227 done
1228
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1232 build=$build_alias
1233 host=$host_alias
1234 target=$target_alias
1235
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 elif test "x$build_alias" != "x$host_alias"; then
1241 cross_compiling=yes
1242 fi
1243 fi
1244
1245 ac_tool_prefix=
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248 test "$silent" = yes && exec 6>/dev/null
1249
1250
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error $? "working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error $? "pwd does not report name of working directory"
1257
1258
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 printf "%s\n" X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)[^/].*/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\).*/{
1282 s//\1/
1283 q
1284 }
1285 s/.*/./; q'`
1286 srcdir=$ac_confdir
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 srcdir=..
1289 fi
1290 else
1291 ac_srcdir_defaulted=no
1292 fi
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1296 fi
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 ac_abs_confdir=`(
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1300 pwd)`
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 srcdir=.
1304 fi
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1308 case $srcdir in
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 esac
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 done
1317
1318 #
1319 # Report the --help message.
1320 #
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1324 cat <<_ACEOF
1325 \`configure' configures fping 5.1 to adapt to many kinds of systems.
1326
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1331
1332 Defaults for the options are specified in brackets.
1333
1334 Configuration:
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking ...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 [PREFIX]
1350
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1355
1356 For better control, use the options below.
1357
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/fping]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1379 _ACEOF
1380
1381 cat <<\_ACEOF
1382
1383 Program names:
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1387
1388 System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1392 _ACEOF
1393 fi
1394
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of fping 5.1:";;
1398 esac
1399 cat <<\_ACEOF
1400
1401 Optional Features:
1402 --disable-option-checking ignore unrecognized --enable/--with options
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --disable-ipv4 Disable support for pinging IPv4 hosts
1406 --disable-ipv6 Disable support for pinging IPv6 hosts
1407 --disable-timestamp Disable kernel-based packet timestaping
1408 (SO_TIMESTAMPNS)
1409 --enable-safe-limits Restrict timing parameters (-i, -p) within "safe"
1410 limits
1411 --enable-dependency-tracking
1412 do not reject slow dependency extractors
1413 --disable-dependency-tracking
1414 speeds up one-time build
1415 --enable-silent-rules less verbose build output (undo: "make V=1")
1416 --disable-silent-rules verbose build output (undo: "make V=0")
1417 --enable-maintainer-mode
1418 enable make rules and dependencies not useful (and
1419 sometimes confusing) to the casual installer
1420
1421 Some influential environment variables:
1422 CC C compiler command
1423 CFLAGS C compiler flags
1424 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1425 nonstandard directory <lib dir>
1426 LIBS libraries to pass to the linker, e.g. -l<library>
1427 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1428 you have headers in a nonstandard directory <include dir>
1429 CPP C preprocessor
1430
1431 Use these variables to override the choices made by `configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1433
1434 Report bugs to the package provider.
1435 _ACEOF
1436 ac_status=$?
1437 fi
1438
1439 if test "$ac_init_help" = "recursive"; then
1440 # If there are subdirs, report their specific --help.
1441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1442 test -d "$ac_dir" ||
1443 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1444 continue
1445 ac_builddir=.
1446
1447 case "$ac_dir" in
1448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 *)
1450 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1451 # A ".." for each directory in $ac_dir_suffix.
1452 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1453 case $ac_top_builddir_sub in
1454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456 esac ;;
1457 esac
1458 ac_abs_top_builddir=$ac_pwd
1459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1460 # for backward compatibility:
1461 ac_top_builddir=$ac_top_build_prefix
1462
1463 case $srcdir in
1464 .) # We are building in place.
1465 ac_srcdir=.
1466 ac_top_srcdir=$ac_top_builddir_sub
1467 ac_abs_top_srcdir=$ac_pwd ;;
1468 [\\/]* | ?:[\\/]* ) # Absolute name.
1469 ac_srcdir=$srcdir$ac_dir_suffix;
1470 ac_top_srcdir=$srcdir
1471 ac_abs_top_srcdir=$srcdir ;;
1472 *) # Relative name.
1473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1474 ac_top_srcdir=$ac_top_build_prefix$srcdir
1475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1476 esac
1477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1478
1479 cd "$ac_dir" || { ac_status=$?; continue; }
1480 # Check for configure.gnu first; this name is used for a wrapper for
1481 # Metaconfig's "Configure" on case-insensitive file systems.
1482 if test -f "$ac_srcdir/configure.gnu"; then
1483 echo &&
1484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485 elif test -f "$ac_srcdir/configure"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure" --help=recursive
1488 else
1489 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490 fi || ac_status=$?
1491 cd "$ac_pwd" || { ac_status=$?; break; }
1492 done
1493 fi
1494
1495 test -n "$ac_init_help" && exit $ac_status
1496 if $ac_init_version; then
1497 cat <<\_ACEOF
1498 fping configure 5.1
1499 generated by GNU Autoconf 2.71
1500
1501 Copyright (C) 2021 Free Software Foundation, Inc.
1502 This configure script is free software; the Free Software Foundation
1503 gives unlimited permission to copy, distribute and modify it.
1504 _ACEOF
1505 exit
1506 fi
1507
1508 ## ------------------------ ##
1509 ## Autoconf initialization. ##
1510 ## ------------------------ ##
1511
1512 # ac_fn_c_try_compile LINENO
1513 # --------------------------
1514 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1515 ac_fn_c_try_compile ()
1516 {
1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 rm -f conftest.$ac_objext conftest.beam
1519 if { { ac_try="$ac_compile"
1520 case "(($ac_try" in
1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 *) ac_try_echo=$ac_try;;
1523 esac
1524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525 printf "%s\n" "$ac_try_echo"; } >&5
1526 (eval "$ac_compile") 2>conftest.err
1527 ac_status=$?
1528 if test -s conftest.err; then
1529 grep -v '^ *+' conftest.err >conftest.er1
1530 cat conftest.er1 >&5
1531 mv -f conftest.er1 conftest.err
1532 fi
1533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; } && {
1535 test -z "$ac_c_werror_flag" ||
1536 test ! -s conftest.err
1537 } && test -s conftest.$ac_objext
1538 then :
1539 ac_retval=0
1540 else $as_nop
1541 printf "%s\n" "$as_me: failed program was:" >&5
1542 sed 's/^/| /' conftest.$ac_ext >&5
1543
1544 ac_retval=1
1545 fi
1546 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1547 as_fn_set_status $ac_retval
1548
1549 } # ac_fn_c_try_compile
1550
1551 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1552 # -------------------------------------------------------
1553 # Tests whether HEADER exists and can be compiled using the include files in
1554 # INCLUDES, setting the cache variable VAR accordingly.
1555 ac_fn_c_check_header_compile ()
1556 {
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1559 printf %s "checking for $2... " >&6; }
1560 if eval test \${$3+y}
1561 then :
1562 printf %s "(cached) " >&6
1563 else $as_nop
1564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1565 /* end confdefs.h. */
1566 $4
1567 #include <$2>
1568 _ACEOF
1569 if ac_fn_c_try_compile "$LINENO"
1570 then :
1571 eval "$3=yes"
1572 else $as_nop
1573 eval "$3=no"
1574 fi
1575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1576 fi
1577 eval ac_res=\$$3
1578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1579 printf "%s\n" "$ac_res" >&6; }
1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581
1582 } # ac_fn_c_check_header_compile
1583
1584 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1585 # ------------------------------------------------------------------
1586 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1587 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1588 ac_fn_check_decl ()
1589 {
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 as_decl_name=`echo $2|sed 's/ *(.*//'`
1592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1593 printf %s "checking whether $as_decl_name is declared... " >&6; }
1594 if eval test \${$3+y}
1595 then :
1596 printf %s "(cached) " >&6
1597 else $as_nop
1598 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1599 eval ac_save_FLAGS=\$$6
1600 as_fn_append $6 " $5"
1601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1602 /* end confdefs.h. */
1603 $4
1604 int
1605 main (void)
1606 {
1607 #ifndef $as_decl_name
1608 #ifdef __cplusplus
1609 (void) $as_decl_use;
1610 #else
1611 (void) $as_decl_name;
1612 #endif
1613 #endif
1614
1615 ;
1616 return 0;
1617 }
1618 _ACEOF
1619 if ac_fn_c_try_compile "$LINENO"
1620 then :
1621 eval "$3=yes"
1622 else $as_nop
1623 eval "$3=no"
1624 fi
1625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1626 eval $6=\$ac_save_FLAGS
1627
1628 fi
1629 eval ac_res=\$$3
1630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 printf "%s\n" "$ac_res" >&6; }
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633
1634 } # ac_fn_check_decl
1635
1636 # ac_fn_c_try_cpp LINENO
1637 # ----------------------
1638 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_cpp ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if { { ac_try="$ac_cpp conftest.$ac_ext"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 printf "%s\n" "$ac_try_echo"; } >&5
1649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1655 fi
1656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } > conftest.i && {
1658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 }
1661 then :
1662 ac_retval=0
1663 else $as_nop
1664 printf "%s\n" "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667 ac_retval=1
1668 fi
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1671
1672 } # ac_fn_c_try_cpp
1673
1674 # ac_fn_c_try_link LINENO
1675 # -----------------------
1676 # Try to link conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_link ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1681 if { { ac_try="$ac_link"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 printf "%s\n" "$ac_try_echo"; } >&5
1688 (eval "$ac_link") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1694 fi
1695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && {
1697 test -z "$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest$ac_exeext && {
1700 test "$cross_compiling" = yes ||
1701 test -x conftest$ac_exeext
1702 }
1703 then :
1704 ac_retval=0
1705 else $as_nop
1706 printf "%s\n" "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1
1710 fi
1711 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1712 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1713 # interfere with the next link command; also delete a directory that is
1714 # left behind by Apple's compiler. We do this before executing the actions.
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_link
1720
1721 # ac_fn_c_check_func LINENO FUNC VAR
1722 # ----------------------------------
1723 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1724 ac_fn_c_check_func ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 printf %s "checking for $2... " >&6; }
1729 if eval test \${$3+y}
1730 then :
1731 printf %s "(cached) " >&6
1732 else $as_nop
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1737 #define $2 innocuous_$2
1738
1739 /* System header to define __stub macros and hopefully few prototypes,
1740 which can conflict with char $2 (); below. */
1741
1742 #include <limits.h>
1743 #undef $2
1744
1745 /* Override any GCC internal prototype to avoid an error.
1746 Use char because int might match the return type of a GCC
1747 builtin and then its argument prototype would still apply. */
1748 #ifdef __cplusplus
1749 extern "C"
1750 #endif
1751 char $2 ();
1752 /* The GNU C library defines this for functions which it implements
1753 to always fail with ENOSYS. Some functions are actually named
1754 something starting with __ and the normal name is an alias. */
1755 #if defined __stub_$2 || defined __stub___$2
1756 choke me
1757 #endif
1758
1759 int
1760 main (void)
1761 {
1762 return $2 ();
1763 ;
1764 return 0;
1765 }
1766 _ACEOF
1767 if ac_fn_c_try_link "$LINENO"
1768 then :
1769 eval "$3=yes"
1770 else $as_nop
1771 eval "$3=no"
1772 fi
1773 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1774 conftest$ac_exeext conftest.$ac_ext
1775 fi
1776 eval ac_res=\$$3
1777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 printf "%s\n" "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781 } # ac_fn_c_check_func
1782 ac_configure_args_raw=
1783 for ac_arg
1784 do
1785 case $ac_arg in
1786 *\'*)
1787 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1788 esac
1789 as_fn_append ac_configure_args_raw " '$ac_arg'"
1790 done
1791
1792 case $ac_configure_args_raw in
1793 *$as_nl*)
1794 ac_safe_unquote= ;;
1795 *)
1796 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1797 ac_unsafe_a="$ac_unsafe_z#~"
1798 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1799 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1800 esac
1801
1802 cat >config.log <<_ACEOF
1803 This file contains any messages produced by compilers while
1804 running configure, to aid debugging if configure makes a mistake.
1805
1806 It was created by fping $as_me 5.1, which was
1807 generated by GNU Autoconf 2.71. Invocation command line was
1808
1809 $ $0$ac_configure_args_raw
1810
1811 _ACEOF
1812 exec 5>>config.log
1813 {
1814 cat <<_ASUNAME
1815 ## --------- ##
1816 ## Platform. ##
1817 ## --------- ##
1818
1819 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1820 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1821 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1822 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1823 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1824
1825 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1826 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1827
1828 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1829 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1830 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1831 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1832 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1833 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1834 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1835
1836 _ASUNAME
1837
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1840 do
1841 IFS=$as_save_IFS
1842 case $as_dir in #(((
1843 '') as_dir=./ ;;
1844 */) ;;
1845 *) as_dir=$as_dir/ ;;
1846 esac
1847 printf "%s\n" "PATH: $as_dir"
1848 done
1849 IFS=$as_save_IFS
1850
1851 } >&5
1852
1853 cat >&5 <<_ACEOF
1854
1855
1856 ## ----------- ##
1857 ## Core tests. ##
1858 ## ----------- ##
1859
1860 _ACEOF
1861
1862
1863 # Keep a trace of the command line.
1864 # Strip out --no-create and --no-recursion so they do not pile up.
1865 # Strip out --silent because we don't want to record it for future runs.
1866 # Also quote any args containing shell meta-characters.
1867 # Make two passes to allow for proper duplicate-argument suppression.
1868 ac_configure_args=
1869 ac_configure_args0=
1870 ac_configure_args1=
1871 ac_must_keep_next=false
1872 for ac_pass in 1 2
1873 do
1874 for ac_arg
1875 do
1876 case $ac_arg in
1877 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1878 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1879 | -silent | --silent | --silen | --sile | --sil)
1880 continue ;;
1881 *\'*)
1882 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1883 esac
1884 case $ac_pass in
1885 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1886 2)
1887 as_fn_append ac_configure_args1 " '$ac_arg'"
1888 if test $ac_must_keep_next = true; then
1889 ac_must_keep_next=false # Got value, back to normal.
1890 else
1891 case $ac_arg in
1892 *=* | --config-cache | -C | -disable-* | --disable-* \
1893 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1894 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1895 | -with-* | --with-* | -without-* | --without-* | --x)
1896 case "$ac_configure_args0 " in
1897 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1898 esac
1899 ;;
1900 -* ) ac_must_keep_next=true ;;
1901 esac
1902 fi
1903 as_fn_append ac_configure_args " '$ac_arg'"
1904 ;;
1905 esac
1906 done
1907 done
1908 { ac_configure_args0=; unset ac_configure_args0;}
1909 { ac_configure_args1=; unset ac_configure_args1;}
1910
1911 # When interrupted or exit'd, cleanup temporary files, and complete
1912 # config.log. We remove comments because anyway the quotes in there
1913 # would cause problems or look ugly.
1914 # WARNING: Use '\'' to represent an apostrophe within the trap.
1915 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1916 trap 'exit_status=$?
1917 # Sanitize IFS.
1918 IFS=" "" $as_nl"
1919 # Save into config.log some information that might help in debugging.
1920 {
1921 echo
1922
1923 printf "%s\n" "## ---------------- ##
1924 ## Cache variables. ##
1925 ## ---------------- ##"
1926 echo
1927 # The following way of writing the cache mishandles newlines in values,
1928 (
1929 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1930 eval ac_val=\$$ac_var
1931 case $ac_val in #(
1932 *${as_nl}*)
1933 case $ac_var in #(
1934 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1935 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1936 esac
1937 case $ac_var in #(
1938 _ | IFS | as_nl) ;; #(
1939 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1940 *) { eval $ac_var=; unset $ac_var;} ;;
1941 esac ;;
1942 esac
1943 done
1944 (set) 2>&1 |
1945 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1946 *${as_nl}ac_space=\ *)
1947 sed -n \
1948 "s/'\''/'\''\\\\'\'''\''/g;
1949 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1950 ;; #(
1951 *)
1952 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1953 ;;
1954 esac |
1955 sort
1956 )
1957 echo
1958
1959 printf "%s\n" "## ----------------- ##
1960 ## Output variables. ##
1961 ## ----------------- ##"
1962 echo
1963 for ac_var in $ac_subst_vars
1964 do
1965 eval ac_val=\$$ac_var
1966 case $ac_val in
1967 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1968 esac
1969 printf "%s\n" "$ac_var='\''$ac_val'\''"
1970 done | sort
1971 echo
1972
1973 if test -n "$ac_subst_files"; then
1974 printf "%s\n" "## ------------------- ##
1975 ## File substitutions. ##
1976 ## ------------------- ##"
1977 echo
1978 for ac_var in $ac_subst_files
1979 do
1980 eval ac_val=\$$ac_var
1981 case $ac_val in
1982 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1983 esac
1984 printf "%s\n" "$ac_var='\''$ac_val'\''"
1985 done | sort
1986 echo
1987 fi
1988
1989 if test -s confdefs.h; then
1990 printf "%s\n" "## ----------- ##
1991 ## confdefs.h. ##
1992 ## ----------- ##"
1993 echo
1994 cat confdefs.h
1995 echo
1996 fi
1997 test "$ac_signal" != 0 &&
1998 printf "%s\n" "$as_me: caught signal $ac_signal"
1999 printf "%s\n" "$as_me: exit $exit_status"
2000 } >&5
2001 rm -f core *.core core.conftest.* &&
2002 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2003 exit $exit_status
2004 ' 0
2005 for ac_signal in 1 2 13 15; do
2006 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2007 done
2008 ac_signal=0
2009
2010 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2011 rm -f -r conftest* confdefs.h
2012
2013 printf "%s\n" "/* confdefs.h */" > confdefs.h
2014
2015 # Predefined preprocessor variables.
2016
2017 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2018
2019 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2020
2021 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2022
2023 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2024
2025 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2026
2027 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2028
2029
2030 # Let the site file select an alternate cache file if it wants to.
2031 # Prefer an explicitly selected file to automatically selected ones.
2032 if test -n "$CONFIG_SITE"; then
2033 ac_site_files="$CONFIG_SITE"
2034 elif test "x$prefix" != xNONE; then
2035 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2036 else
2037 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2038 fi
2039
2040 for ac_site_file in $ac_site_files
2041 do
2042 case $ac_site_file in #(
2043 */*) :
2044 ;; #(
2045 *) :
2046 ac_site_file=./$ac_site_file ;;
2047 esac
2048 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2050 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2051 sed 's/^/| /' "$ac_site_file" >&5
2052 . "$ac_site_file" \
2053 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2054 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2055 as_fn_error $? "failed to load site script $ac_site_file
2056 See \`config.log' for more details" "$LINENO" 5; }
2057 fi
2058 done
2059
2060 if test -r "$cache_file"; then
2061 # Some versions of bash will fail to source /dev/null (special files
2062 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2063 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2065 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2066 case $cache_file in
2067 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2068 *) . "./$cache_file";;
2069 esac
2070 fi
2071 else
2072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2073 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2074 >$cache_file
2075 fi
2076
2077 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2078 # Test code for whether the C compiler supports C89 (global declarations)
2079 ac_c_conftest_c89_globals='
2080 /* Does the compiler advertise C89 conformance?
2081 Do not test the value of __STDC__, because some compilers set it to 0
2082 while being otherwise adequately conformant. */
2083 #if !defined __STDC__
2084 # error "Compiler does not advertise C89 conformance"
2085 #endif
2086
2087 #include <stddef.h>
2088 #include <stdarg.h>
2089 struct stat;
2090 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2091 struct buf { int x; };
2092 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2093 static char *e (p, i)
2094 char **p;
2095 int i;
2096 {
2097 return p[i];
2098 }
2099 static char *f (char * (*g) (char **, int), char **p, ...)
2100 {
2101 char *s;
2102 va_list v;
2103 va_start (v,p);
2104 s = g (p, va_arg (v,int));
2105 va_end (v);
2106 return s;
2107 }
2108
2109 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2110 function prototypes and stuff, but not \xHH hex character constants.
2111 These do not provoke an error unfortunately, instead are silently treated
2112 as an "x". The following induces an error, until -std is added to get
2113 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2114 array size at least. It is necessary to write \x00 == 0 to get something
2115 that is true only with -std. */
2116 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2117
2118 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2119 inside strings and character constants. */
2120 #define FOO(x) '\''x'\''
2121 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2122
2123 int test (int i, double x);
2124 struct s1 {int (*f) (int a);};
2125 struct s2 {int (*f) (double a);};
2126 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2127 int, int);'
2128
2129 # Test code for whether the C compiler supports C89 (body of main).
2130 ac_c_conftest_c89_main='
2131 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2132 '
2133
2134 # Test code for whether the C compiler supports C99 (global declarations)
2135 ac_c_conftest_c99_globals='
2136 // Does the compiler advertise C99 conformance?
2137 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2138 # error "Compiler does not advertise C99 conformance"
2139 #endif
2140
2141 #include <stdbool.h>
2142 extern int puts (const char *);
2143 extern int printf (const char *, ...);
2144 extern int dprintf (int, const char *, ...);
2145 extern void *malloc (size_t);
2146
2147 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2148 // dprintf is used instead of fprintf to avoid needing to declare
2149 // FILE and stderr.
2150 #define debug(...) dprintf (2, __VA_ARGS__)
2151 #define showlist(...) puts (#__VA_ARGS__)
2152 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2153 static void
2154 test_varargs_macros (void)
2155 {
2156 int x = 1234;
2157 int y = 5678;
2158 debug ("Flag");
2159 debug ("X = %d\n", x);
2160 showlist (The first, second, and third items.);
2161 report (x>y, "x is %d but y is %d", x, y);
2162 }
2163
2164 // Check long long types.
2165 #define BIG64 18446744073709551615ull
2166 #define BIG32 4294967295ul
2167 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2168 #if !BIG_OK
2169 #error "your preprocessor is broken"
2170 #endif
2171 #if BIG_OK
2172 #else
2173 #error "your preprocessor is broken"
2174 #endif
2175 static long long int bignum = -9223372036854775807LL;
2176 static unsigned long long int ubignum = BIG64;
2177
2178 struct incomplete_array
2179 {
2180 int datasize;
2181 double data[];
2182 };
2183
2184 struct named_init {
2185 int number;
2186 const wchar_t *name;
2187 double average;
2188 };
2189
2190 typedef const char *ccp;
2191
2192 static inline int
2193 test_restrict (ccp restrict text)
2194 {
2195 // See if C++-style comments work.
2196 // Iterate through items via the restricted pointer.
2197 // Also check for declarations in for loops.
2198 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2199 continue;
2200 return 0;
2201 }
2202
2203 // Check varargs and va_copy.
2204 static bool
2205 test_varargs (const char *format, ...)
2206 {
2207 va_list args;
2208 va_start (args, format);
2209 va_list args_copy;
2210 va_copy (args_copy, args);
2211
2212 const char *str = "";
2213 int number = 0;
2214 float fnumber = 0;
2215
2216 while (*format)
2217 {
2218 switch (*format++)
2219 {
2220 case '\''s'\'': // string
2221 str = va_arg (args_copy, const char *);
2222 break;
2223 case '\''d'\'': // int
2224 number = va_arg (args_copy, int);
2225 break;
2226 case '\''f'\'': // float
2227 fnumber = va_arg (args_copy, double);
2228 break;
2229 default:
2230 break;
2231 }
2232 }
2233 va_end (args_copy);
2234 va_end (args);
2235
2236 return *str && number && fnumber;
2237 }
2238 '
2239
2240 # Test code for whether the C compiler supports C99 (body of main).
2241 ac_c_conftest_c99_main='
2242 // Check bool.
2243 _Bool success = false;
2244 success |= (argc != 0);
2245
2246 // Check restrict.
2247 if (test_restrict ("String literal") == 0)
2248 success = true;
2249 char *restrict newvar = "Another string";
2250
2251 // Check varargs.
2252 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2253 test_varargs_macros ();
2254
2255 // Check flexible array members.
2256 struct incomplete_array *ia =
2257 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2258 ia->datasize = 10;
2259 for (int i = 0; i < ia->datasize; ++i)
2260 ia->data[i] = i * 1.234;
2261
2262 // Check named initializers.
2263 struct named_init ni = {
2264 .number = 34,
2265 .name = L"Test wide string",
2266 .average = 543.34343,
2267 };
2268
2269 ni.number = 58;
2270
2271 int dynamic_array[ni.number];
2272 dynamic_array[0] = argv[0][0];
2273 dynamic_array[ni.number - 1] = 543;
2274
2275 // work around unused variable warnings
2276 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2277 || dynamic_array[ni.number - 1] != 543);
2278 '
2279
2280 # Test code for whether the C compiler supports C11 (global declarations)
2281 ac_c_conftest_c11_globals='
2282 // Does the compiler advertise C11 conformance?
2283 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2284 # error "Compiler does not advertise C11 conformance"
2285 #endif
2286
2287 // Check _Alignas.
2288 char _Alignas (double) aligned_as_double;
2289 char _Alignas (0) no_special_alignment;
2290 extern char aligned_as_int;
2291 char _Alignas (0) _Alignas (int) aligned_as_int;
2292
2293 // Check _Alignof.
2294 enum
2295 {
2296 int_alignment = _Alignof (int),
2297 int_array_alignment = _Alignof (int[100]),
2298 char_alignment = _Alignof (char)
2299 };
2300 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2301
2302 // Check _Noreturn.
2303 int _Noreturn does_not_return (void) { for (;;) continue; }
2304
2305 // Check _Static_assert.
2306 struct test_static_assert
2307 {
2308 int x;
2309 _Static_assert (sizeof (int) <= sizeof (long int),
2310 "_Static_assert does not work in struct");
2311 long int y;
2312 };
2313
2314 // Check UTF-8 literals.
2315 #define u8 syntax error!
2316 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2317
2318 // Check duplicate typedefs.
2319 typedef long *long_ptr;
2320 typedef long int *long_ptr;
2321 typedef long_ptr long_ptr;
2322
2323 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2324 struct anonymous
2325 {
2326 union {
2327 struct { int i; int j; };
2328 struct { int k; long int l; } w;
2329 };
2330 int m;
2331 } v1;
2332 '
2333
2334 # Test code for whether the C compiler supports C11 (body of main).
2335 ac_c_conftest_c11_main='
2336 _Static_assert ((offsetof (struct anonymous, i)
2337 == offsetof (struct anonymous, w.k)),
2338 "Anonymous union alignment botch");
2339 v1.i = 2;
2340 v1.w.k = 5;
2341 ok |= v1.i != 5;
2342 '
2343
2344 # Test code for whether the C compiler supports C11 (complete).
2345 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2346 ${ac_c_conftest_c99_globals}
2347 ${ac_c_conftest_c11_globals}
2348
2349 int
2350 main (int argc, char **argv)
2351 {
2352 int ok = 0;
2353 ${ac_c_conftest_c89_main}
2354 ${ac_c_conftest_c99_main}
2355 ${ac_c_conftest_c11_main}
2356 return ok;
2357 }
2358 "
2359
2360 # Test code for whether the C compiler supports C99 (complete).
2361 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2362 ${ac_c_conftest_c99_globals}
2363
2364 int
2365 main (int argc, char **argv)
2366 {
2367 int ok = 0;
2368 ${ac_c_conftest_c89_main}
2369 ${ac_c_conftest_c99_main}
2370 return ok;
2371 }
2372 "
2373
2374 # Test code for whether the C compiler supports C89 (complete).
2375 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2376
2377 int
2378 main (int argc, char **argv)
2379 {
2380 int ok = 0;
2381 ${ac_c_conftest_c89_main}
2382 return ok;
2383 }
2384 "
2385
2386 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2387 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2388 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2389 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2390 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2391 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2392 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2393 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2394 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2395 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2396
2397 # Auxiliary files required by this configure script.
2398 ac_aux_files="missing install-sh config.guess config.sub compile"
2399
2400 # Locations in which to look for auxiliary files.
2401 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2402
2403 # Search for a directory containing all of the required auxiliary files,
2404 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2405 # If we don't find one directory that contains all the files we need,
2406 # we report the set of missing files from the *first* directory in
2407 # $ac_aux_dir_candidates and give up.
2408 ac_missing_aux_files=""
2409 ac_first_candidate=:
2410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 as_found=false
2413 for as_dir in $ac_aux_dir_candidates
2414 do
2415 IFS=$as_save_IFS
2416 case $as_dir in #(((
2417 '') as_dir=./ ;;
2418 */) ;;
2419 *) as_dir=$as_dir/ ;;
2420 esac
2421 as_found=:
2422
2423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2424 ac_aux_dir_found=yes
2425 ac_install_sh=
2426 for ac_aux in $ac_aux_files
2427 do
2428 # As a special case, if "install-sh" is required, that requirement
2429 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2430 # and $ac_install_sh is set appropriately for whichever one is found.
2431 if test x"$ac_aux" = x"install-sh"
2432 then
2433 if test -f "${as_dir}install-sh"; then
2434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2435 ac_install_sh="${as_dir}install-sh -c"
2436 elif test -f "${as_dir}install.sh"; then
2437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2438 ac_install_sh="${as_dir}install.sh -c"
2439 elif test -f "${as_dir}shtool"; then
2440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2441 ac_install_sh="${as_dir}shtool install -c"
2442 else
2443 ac_aux_dir_found=no
2444 if $ac_first_candidate; then
2445 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2446 else
2447 break
2448 fi
2449 fi
2450 else
2451 if test -f "${as_dir}${ac_aux}"; then
2452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2453 else
2454 ac_aux_dir_found=no
2455 if $ac_first_candidate; then
2456 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2457 else
2458 break
2459 fi
2460 fi
2461 fi
2462 done
2463 if test "$ac_aux_dir_found" = yes; then
2464 ac_aux_dir="$as_dir"
2465 break
2466 fi
2467 ac_first_candidate=false
2468
2469 as_found=false
2470 done
2471 IFS=$as_save_IFS
2472 if $as_found
2473 then :
2474
2475 else $as_nop
2476 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2477 fi
2478
2479
2480 # These three variables are undocumented and unsupported,
2481 # and are intended to be withdrawn in a future Autoconf release.
2482 # They can cause serious problems if a builder's source tree is in a directory
2483 # whose full name contains unusual characters.
2484 if test -f "${ac_aux_dir}config.guess"; then
2485 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2486 fi
2487 if test -f "${ac_aux_dir}config.sub"; then
2488 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2489 fi
2490 if test -f "$ac_aux_dir/configure"; then
2491 ac_configure="$SHELL ${ac_aux_dir}configure"
2492 fi
2493
2494 # Check that the precious variables saved in the cache have kept the same
2495 # value.
2496 ac_cache_corrupted=false
2497 for ac_var in $ac_precious_vars; do
2498 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2499 eval ac_new_set=\$ac_env_${ac_var}_set
2500 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2501 eval ac_new_val=\$ac_env_${ac_var}_value
2502 case $ac_old_set,$ac_new_set in
2503 set,)
2504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2505 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2506 ac_cache_corrupted=: ;;
2507 ,set)
2508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2509 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2510 ac_cache_corrupted=: ;;
2511 ,);;
2512 *)
2513 if test "x$ac_old_val" != "x$ac_new_val"; then
2514 # differences in whitespace do not lead to failure.
2515 ac_old_val_w=`echo x $ac_old_val`
2516 ac_new_val_w=`echo x $ac_new_val`
2517 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2519 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2520 ac_cache_corrupted=:
2521 else
2522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2523 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2524 eval $ac_var=\$ac_old_val
2525 fi
2526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2527 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2529 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2530 fi;;
2531 esac
2532 # Pass precious variables to config.status.
2533 if test "$ac_new_set" = set; then
2534 case $ac_new_val in
2535 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2536 *) ac_arg=$ac_var=$ac_new_val ;;
2537 esac
2538 case " $ac_configure_args " in
2539 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2540 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2541 esac
2542 fi
2543 done
2544 if $ac_cache_corrupted; then
2545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2546 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2548 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2549 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2550 and start over" "$LINENO" 5
2551 fi
2552 ## -------------------- ##
2553 ## Main body of script. ##
2554 ## -------------------- ##
2555
2556 ac_ext=c
2557 ac_cpp='$CPP $CPPFLAGS'
2558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574 # Expand $ac_aux_dir to an absolute path.
2575 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2576
2577 ac_ext=c
2578 ac_cpp='$CPP $CPPFLAGS'
2579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582 if test -n "$ac_tool_prefix"; then
2583 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2584 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2586 printf %s "checking for $ac_word... " >&6; }
2587 if test ${ac_cv_prog_CC+y}
2588 then :
2589 printf %s "(cached) " >&6
2590 else $as_nop
2591 if test -n "$CC"; then
2592 ac_cv_prog_CC="$CC" # Let the user override the test.
2593 else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597 IFS=$as_save_IFS
2598 case $as_dir in #(((
2599 '') as_dir=./ ;;
2600 */) ;;
2601 *) as_dir=$as_dir/ ;;
2602 esac
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2605 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2607 break 2
2608 fi
2609 done
2610 done
2611 IFS=$as_save_IFS
2612
2613 fi
2614 fi
2615 CC=$ac_cv_prog_CC
2616 if test -n "$CC"; then
2617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2618 printf "%s\n" "$CC" >&6; }
2619 else
2620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 printf "%s\n" "no" >&6; }
2622 fi
2623
2624
2625 fi
2626 if test -z "$ac_cv_prog_CC"; then
2627 ac_ct_CC=$CC
2628 # Extract the first word of "gcc", so it can be a program name with args.
2629 set dummy gcc; ac_word=$2
2630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631 printf %s "checking for $ac_word... " >&6; }
2632 if test ${ac_cv_prog_ac_ct_CC+y}
2633 then :
2634 printf %s "(cached) " >&6
2635 else $as_nop
2636 if test -n "$ac_ct_CC"; then
2637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2641 do
2642 IFS=$as_save_IFS
2643 case $as_dir in #(((
2644 '') as_dir=./ ;;
2645 */) ;;
2646 *) as_dir=$as_dir/ ;;
2647 esac
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2650 ac_cv_prog_ac_ct_CC="gcc"
2651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2652 break 2
2653 fi
2654 done
2655 done
2656 IFS=$as_save_IFS
2657
2658 fi
2659 fi
2660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661 if test -n "$ac_ct_CC"; then
2662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2663 printf "%s\n" "$ac_ct_CC" >&6; }
2664 else
2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2666 printf "%s\n" "no" >&6; }
2667 fi
2668
2669 if test "x$ac_ct_CC" = x; then
2670 CC=""
2671 else
2672 case $cross_compiling:$ac_tool_warned in
2673 yes:)
2674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2675 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2676 ac_tool_warned=yes ;;
2677 esac
2678 CC=$ac_ct_CC
2679 fi
2680 else
2681 CC="$ac_cv_prog_CC"
2682 fi
2683
2684 if test -z "$CC"; then
2685 if test -n "$ac_tool_prefix"; then
2686 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2687 set dummy ${ac_tool_prefix}cc; ac_word=$2
2688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689 printf %s "checking for $ac_word... " >&6; }
2690 if test ${ac_cv_prog_CC+y}
2691 then :
2692 printf %s "(cached) " >&6
2693 else $as_nop
2694 if test -n "$CC"; then
2695 ac_cv_prog_CC="$CC" # Let the user override the test.
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2699 do
2700 IFS=$as_save_IFS
2701 case $as_dir in #(((
2702 '') as_dir=./ ;;
2703 */) ;;
2704 *) as_dir=$as_dir/ ;;
2705 esac
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_CC="${ac_tool_prefix}cc"
2709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2710 break 2
2711 fi
2712 done
2713 done
2714 IFS=$as_save_IFS
2715
2716 fi
2717 fi
2718 CC=$ac_cv_prog_CC
2719 if test -n "$CC"; then
2720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2721 printf "%s\n" "$CC" >&6; }
2722 else
2723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 printf "%s\n" "no" >&6; }
2725 fi
2726
2727
2728 fi
2729 fi
2730 if test -z "$CC"; then
2731 # Extract the first word of "cc", so it can be a program name with args.
2732 set dummy cc; ac_word=$2
2733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 printf %s "checking for $ac_word... " >&6; }
2735 if test ${ac_cv_prog_CC+y}
2736 then :
2737 printf %s "(cached) " >&6
2738 else $as_nop
2739 if test -n "$CC"; then
2740 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 else
2742 ac_prog_rejected=no
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2745 do
2746 IFS=$as_save_IFS
2747 case $as_dir in #(((
2748 '') as_dir=./ ;;
2749 */) ;;
2750 *) as_dir=$as_dir/ ;;
2751 esac
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2754 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2755 ac_prog_rejected=yes
2756 continue
2757 fi
2758 ac_cv_prog_CC="cc"
2759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2760 break 2
2761 fi
2762 done
2763 done
2764 IFS=$as_save_IFS
2765
2766 if test $ac_prog_rejected = yes; then
2767 # We found a bogon in the path, so make sure we never use it.
2768 set dummy $ac_cv_prog_CC
2769 shift
2770 if test $# != 0; then
2771 # We chose a different compiler from the bogus one.
2772 # However, it has the same basename, so the bogon will be chosen
2773 # first if we set CC to just the basename; use the full file name.
2774 shift
2775 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2776 fi
2777 fi
2778 fi
2779 fi
2780 CC=$ac_cv_prog_CC
2781 if test -n "$CC"; then
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2783 printf "%s\n" "$CC" >&6; }
2784 else
2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786 printf "%s\n" "no" >&6; }
2787 fi
2788
2789
2790 fi
2791 if test -z "$CC"; then
2792 if test -n "$ac_tool_prefix"; then
2793 for ac_prog in cl.exe
2794 do
2795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 printf %s "checking for $ac_word... " >&6; }
2799 if test ${ac_cv_prog_CC+y}
2800 then :
2801 printf %s "(cached) " >&6
2802 else $as_nop
2803 if test -n "$CC"; then
2804 ac_cv_prog_CC="$CC" # Let the user override the test.
2805 else
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 for as_dir in $PATH
2808 do
2809 IFS=$as_save_IFS
2810 case $as_dir in #(((
2811 '') as_dir=./ ;;
2812 */) ;;
2813 *) as_dir=$as_dir/ ;;
2814 esac
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2817 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2819 break 2
2820 fi
2821 done
2822 done
2823 IFS=$as_save_IFS
2824
2825 fi
2826 fi
2827 CC=$ac_cv_prog_CC
2828 if test -n "$CC"; then
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2830 printf "%s\n" "$CC" >&6; }
2831 else
2832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 printf "%s\n" "no" >&6; }
2834 fi
2835
2836
2837 test -n "$CC" && break
2838 done
2839 fi
2840 if test -z "$CC"; then
2841 ac_ct_CC=$CC
2842 for ac_prog in cl.exe
2843 do
2844 # Extract the first word of "$ac_prog", so it can be a program name with args.
2845 set dummy $ac_prog; ac_word=$2
2846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 printf %s "checking for $ac_word... " >&6; }
2848 if test ${ac_cv_prog_ac_ct_CC+y}
2849 then :
2850 printf %s "(cached) " >&6
2851 else $as_nop
2852 if test -n "$ac_ct_CC"; then
2853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858 IFS=$as_save_IFS
2859 case $as_dir in #(((
2860 '') as_dir=./ ;;
2861 */) ;;
2862 *) as_dir=$as_dir/ ;;
2863 esac
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_ac_ct_CC="$ac_prog"
2867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2868 break 2
2869 fi
2870 done
2871 done
2872 IFS=$as_save_IFS
2873
2874 fi
2875 fi
2876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877 if test -n "$ac_ct_CC"; then
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2879 printf "%s\n" "$ac_ct_CC" >&6; }
2880 else
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 printf "%s\n" "no" >&6; }
2883 fi
2884
2885
2886 test -n "$ac_ct_CC" && break
2887 done
2888
2889 if test "x$ac_ct_CC" = x; then
2890 CC=""
2891 else
2892 case $cross_compiling:$ac_tool_warned in
2893 yes:)
2894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2895 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2896 ac_tool_warned=yes ;;
2897 esac
2898 CC=$ac_ct_CC
2899 fi
2900 fi
2901
2902 fi
2903 if test -z "$CC"; then
2904 if test -n "$ac_tool_prefix"; then
2905 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2906 set dummy ${ac_tool_prefix}clang; ac_word=$2
2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908 printf %s "checking for $ac_word... " >&6; }
2909 if test ${ac_cv_prog_CC+y}
2910 then :
2911 printf %s "(cached) " >&6
2912 else $as_nop
2913 if test -n "$CC"; then
2914 ac_cv_prog_CC="$CC" # Let the user override the test.
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2918 do
2919 IFS=$as_save_IFS
2920 case $as_dir in #(((
2921 '') as_dir=./ ;;
2922 */) ;;
2923 *) as_dir=$as_dir/ ;;
2924 esac
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_CC="${ac_tool_prefix}clang"
2928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2929 break 2
2930 fi
2931 done
2932 done
2933 IFS=$as_save_IFS
2934
2935 fi
2936 fi
2937 CC=$ac_cv_prog_CC
2938 if test -n "$CC"; then
2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2940 printf "%s\n" "$CC" >&6; }
2941 else
2942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 printf "%s\n" "no" >&6; }
2944 fi
2945
2946
2947 fi
2948 if test -z "$ac_cv_prog_CC"; then
2949 ac_ct_CC=$CC
2950 # Extract the first word of "clang", so it can be a program name with args.
2951 set dummy clang; ac_word=$2
2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 printf %s "checking for $ac_word... " >&6; }
2954 if test ${ac_cv_prog_ac_ct_CC+y}
2955 then :
2956 printf %s "(cached) " >&6
2957 else $as_nop
2958 if test -n "$ac_ct_CC"; then
2959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2963 do
2964 IFS=$as_save_IFS
2965 case $as_dir in #(((
2966 '') as_dir=./ ;;
2967 */) ;;
2968 *) as_dir=$as_dir/ ;;
2969 esac
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2972 ac_cv_prog_ac_ct_CC="clang"
2973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2974 break 2
2975 fi
2976 done
2977 done
2978 IFS=$as_save_IFS
2979
2980 fi
2981 fi
2982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2983 if test -n "$ac_ct_CC"; then
2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2985 printf "%s\n" "$ac_ct_CC" >&6; }
2986 else
2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 printf "%s\n" "no" >&6; }
2989 fi
2990
2991 if test "x$ac_ct_CC" = x; then
2992 CC=""
2993 else
2994 case $cross_compiling:$ac_tool_warned in
2995 yes:)
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2997 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2998 ac_tool_warned=yes ;;
2999 esac
3000 CC=$ac_ct_CC
3001 fi
3002 else
3003 CC="$ac_cv_prog_CC"
3004 fi
3005
3006 fi
3007
3008
3009 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3010 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3011 as_fn_error $? "no acceptable C compiler found in \$PATH
3012 See \`config.log' for more details" "$LINENO" 5; }
3013
3014 # Provide some information about the compiler.
3015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3016 set X $ac_compile
3017 ac_compiler=$2
3018 for ac_option in --version -v -V -qversion -version; do
3019 { { ac_try="$ac_compiler $ac_option >&5"
3020 case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023 esac
3024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3025 printf "%s\n" "$ac_try_echo"; } >&5
3026 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3027 ac_status=$?
3028 if test -s conftest.err; then
3029 sed '10a\
3030 ... rest of stderr output deleted ...
3031 10q' conftest.err >conftest.er1
3032 cat conftest.er1 >&5
3033 fi
3034 rm -f conftest.er1 conftest.err
3035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3036 test $ac_status = 0; }
3037 done
3038
3039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3040 /* end confdefs.h. */
3041
3042 int
3043 main (void)
3044 {
3045
3046 ;
3047 return 0;
3048 }
3049 _ACEOF
3050 ac_clean_files_save=$ac_clean_files
3051 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3052 # Try to create an executable without -o first, disregard a.out.
3053 # It will help us diagnose broken compilers, and finding out an intuition
3054 # of exeext.
3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3056 printf %s "checking whether the C compiler works... " >&6; }
3057 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3058
3059 # The possible output files:
3060 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3061
3062 ac_rmfiles=
3063 for ac_file in $ac_files
3064 do
3065 case $ac_file in
3066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3067 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3068 esac
3069 done
3070 rm -f $ac_rmfiles
3071
3072 if { { ac_try="$ac_link_default"
3073 case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3076 esac
3077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3078 printf "%s\n" "$ac_try_echo"; } >&5
3079 (eval "$ac_link_default") 2>&5
3080 ac_status=$?
3081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3082 test $ac_status = 0; }
3083 then :
3084 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3085 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3086 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3087 # so that the user can short-circuit this test for compilers unknown to
3088 # Autoconf.
3089 for ac_file in $ac_files ''
3090 do
3091 test -f "$ac_file" || continue
3092 case $ac_file in
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3094 ;;
3095 [ab].out )
3096 # We found the default executable, but exeext='' is most
3097 # certainly right.
3098 break;;
3099 *.* )
3100 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3101 then :; else
3102 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3103 fi
3104 # We set ac_cv_exeext here because the later test for it is not
3105 # safe: cross compilers may not add the suffix if given an `-o'
3106 # argument, so we may need to know it at that point already.
3107 # Even if this section looks crufty: it has the advantage of
3108 # actually working.
3109 break;;
3110 * )
3111 break;;
3112 esac
3113 done
3114 test "$ac_cv_exeext" = no && ac_cv_exeext=
3115
3116 else $as_nop
3117 ac_file=''
3118 fi
3119 if test -z "$ac_file"
3120 then :
3121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 printf "%s\n" "no" >&6; }
3123 printf "%s\n" "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3125
3126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3127 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3128 as_fn_error 77 "C compiler cannot create executables
3129 See \`config.log' for more details" "$LINENO" 5; }
3130 else $as_nop
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3132 printf "%s\n" "yes" >&6; }
3133 fi
3134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3135 printf %s "checking for C compiler default output file name... " >&6; }
3136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3137 printf "%s\n" "$ac_file" >&6; }
3138 ac_exeext=$ac_cv_exeext
3139
3140 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3141 ac_clean_files=$ac_clean_files_save
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3143 printf %s "checking for suffix of executables... " >&6; }
3144 if { { ac_try="$ac_link"
3145 case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148 esac
3149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3150 printf "%s\n" "$ac_try_echo"; } >&5
3151 (eval "$ac_link") 2>&5
3152 ac_status=$?
3153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154 test $ac_status = 0; }
3155 then :
3156 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3157 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3158 # work properly (i.e., refer to `conftest.exe'), while it won't with
3159 # `rm'.
3160 for ac_file in conftest.exe conftest conftest.*; do
3161 test -f "$ac_file" || continue
3162 case $ac_file in
3163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3164 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3165 break;;
3166 * ) break;;
3167 esac
3168 done
3169 else $as_nop
3170 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3171 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3172 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3173 See \`config.log' for more details" "$LINENO" 5; }
3174 fi
3175 rm -f conftest conftest$ac_cv_exeext
3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3177 printf "%s\n" "$ac_cv_exeext" >&6; }
3178
3179 rm -f conftest.$ac_ext
3180 EXEEXT=$ac_cv_exeext
3181 ac_exeext=$EXEEXT
3182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183 /* end confdefs.h. */
3184 #include <stdio.h>
3185 int
3186 main (void)
3187 {
3188 FILE *f = fopen ("conftest.out", "w");
3189 return ferror (f) || fclose (f) != 0;
3190
3191 ;
3192 return 0;
3193 }
3194 _ACEOF
3195 ac_clean_files="$ac_clean_files conftest.out"
3196 # Check that the compiler produces executables we can run. If not, either
3197 # the compiler is broken, or we cross compile.
3198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3199 printf %s "checking whether we are cross compiling... " >&6; }
3200 if test "$cross_compiling" != yes; then
3201 { { ac_try="$ac_link"
3202 case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205 esac
3206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207 printf "%s\n" "$ac_try_echo"; } >&5
3208 (eval "$ac_link") 2>&5
3209 ac_status=$?
3210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211 test $ac_status = 0; }
3212 if { ac_try='./conftest$ac_cv_exeext'
3213 { { case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 printf "%s\n" "$ac_try_echo"; } >&5
3219 (eval "$ac_try") 2>&5
3220 ac_status=$?
3221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }; }; then
3223 cross_compiling=no
3224 else
3225 if test "$cross_compiling" = maybe; then
3226 cross_compiling=yes
3227 else
3228 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3230 as_fn_error 77 "cannot run C compiled programs.
3231 If you meant to cross compile, use \`--host'.
3232 See \`config.log' for more details" "$LINENO" 5; }
3233 fi
3234 fi
3235 fi
3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3237 printf "%s\n" "$cross_compiling" >&6; }
3238
3239 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3240 ac_clean_files=$ac_clean_files_save
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3242 printf %s "checking for suffix of object files... " >&6; }
3243 if test ${ac_cv_objext+y}
3244 then :
3245 printf %s "(cached) " >&6
3246 else $as_nop
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3249
3250 int
3251 main (void)
3252 {
3253
3254 ;
3255 return 0;
3256 }
3257 _ACEOF
3258 rm -f conftest.o conftest.obj
3259 if { { ac_try="$ac_compile"
3260 case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 printf "%s\n" "$ac_try_echo"; } >&5
3266 (eval "$ac_compile") 2>&5
3267 ac_status=$?
3268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }
3270 then :
3271 for ac_file in conftest.o conftest.obj conftest.*; do
3272 test -f "$ac_file" || continue;
3273 case $ac_file in
3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3276 break;;
3277 esac
3278 done
3279 else $as_nop
3280 printf "%s\n" "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3282
3283 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3284 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3285 as_fn_error $? "cannot compute suffix of object files: cannot compile
3286 See \`config.log' for more details" "$LINENO" 5; }
3287 fi
3288 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3289 fi
3290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3291 printf "%s\n" "$ac_cv_objext" >&6; }
3292 OBJEXT=$ac_cv_objext
3293 ac_objext=$OBJEXT
3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3295 printf %s "checking whether the compiler supports GNU C... " >&6; }
3296 if test ${ac_cv_c_compiler_gnu+y}
3297 then :
3298 printf %s "(cached) " >&6
3299 else $as_nop
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3302
3303 int
3304 main (void)
3305 {
3306 #ifndef __GNUC__
3307 choke me
3308 #endif
3309
3310 ;
3311 return 0;
3312 }
3313 _ACEOF
3314 if ac_fn_c_try_compile "$LINENO"
3315 then :
3316 ac_compiler_gnu=yes
3317 else $as_nop
3318 ac_compiler_gnu=no
3319 fi
3320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3321 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3322
3323 fi
3324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3325 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327
3328 if test $ac_compiler_gnu = yes; then
3329 GCC=yes
3330 else
3331 GCC=
3332 fi
3333 ac_test_CFLAGS=${CFLAGS+y}
3334 ac_save_CFLAGS=$CFLAGS
3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3336 printf %s "checking whether $CC accepts -g... " >&6; }
3337 if test ${ac_cv_prog_cc_g+y}
3338 then :
3339 printf %s "(cached) " >&6
3340 else $as_nop
3341 ac_save_c_werror_flag=$ac_c_werror_flag
3342 ac_c_werror_flag=yes
3343 ac_cv_prog_cc_g=no
3344 CFLAGS="-g"
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3347
3348 int
3349 main (void)
3350 {
3351
3352 ;
3353 return 0;
3354 }
3355 _ACEOF
3356 if ac_fn_c_try_compile "$LINENO"
3357 then :
3358 ac_cv_prog_cc_g=yes
3359 else $as_nop
3360 CFLAGS=""
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3363
3364 int
3365 main (void)
3366 {
3367
3368 ;
3369 return 0;
3370 }
3371 _ACEOF
3372 if ac_fn_c_try_compile "$LINENO"
3373 then :
3374
3375 else $as_nop
3376 ac_c_werror_flag=$ac_save_c_werror_flag
3377 CFLAGS="-g"
3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379 /* end confdefs.h. */
3380
3381 int
3382 main (void)
3383 {
3384
3385 ;
3386 return 0;
3387 }
3388 _ACEOF
3389 if ac_fn_c_try_compile "$LINENO"
3390 then :
3391 ac_cv_prog_cc_g=yes
3392 fi
3393 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3394 fi
3395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3396 fi
3397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3398 ac_c_werror_flag=$ac_save_c_werror_flag
3399 fi
3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3401 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3402 if test $ac_test_CFLAGS; then
3403 CFLAGS=$ac_save_CFLAGS
3404 elif test $ac_cv_prog_cc_g = yes; then
3405 if test "$GCC" = yes; then
3406 CFLAGS="-g -O2"
3407 else
3408 CFLAGS="-g"
3409 fi
3410 else
3411 if test "$GCC" = yes; then
3412 CFLAGS="-O2"
3413 else
3414 CFLAGS=
3415 fi
3416 fi
3417 ac_prog_cc_stdc=no
3418 if test x$ac_prog_cc_stdc = xno
3419 then :
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3421 printf %s "checking for $CC option to enable C11 features... " >&6; }
3422 if test ${ac_cv_prog_cc_c11+y}
3423 then :
3424 printf %s "(cached) " >&6
3425 else $as_nop
3426 ac_cv_prog_cc_c11=no
3427 ac_save_CC=$CC
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3430 $ac_c_conftest_c11_program
3431 _ACEOF
3432 for ac_arg in '' -std=gnu11
3433 do
3434 CC="$ac_save_CC $ac_arg"
3435 if ac_fn_c_try_compile "$LINENO"
3436 then :
3437 ac_cv_prog_cc_c11=$ac_arg
3438 fi
3439 rm -f core conftest.err conftest.$ac_objext conftest.beam
3440 test "x$ac_cv_prog_cc_c11" != "xno" && break
3441 done
3442 rm -f conftest.$ac_ext
3443 CC=$ac_save_CC
3444 fi
3445
3446 if test "x$ac_cv_prog_cc_c11" = xno
3447 then :
3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3449 printf "%s\n" "unsupported" >&6; }
3450 else $as_nop
3451 if test "x$ac_cv_prog_cc_c11" = x
3452 then :
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3454 printf "%s\n" "none needed" >&6; }
3455 else $as_nop
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3457 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3458 CC="$CC $ac_cv_prog_cc_c11"
3459 fi
3460 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3461 ac_prog_cc_stdc=c11
3462 fi
3463 fi
3464 if test x$ac_prog_cc_stdc = xno
3465 then :
3466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3467 printf %s "checking for $CC option to enable C99 features... " >&6; }
3468 if test ${ac_cv_prog_cc_c99+y}
3469 then :
3470 printf %s "(cached) " >&6
3471 else $as_nop
3472 ac_cv_prog_cc_c99=no
3473 ac_save_CC=$CC
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3476 $ac_c_conftest_c99_program
3477 _ACEOF
3478 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3479 do
3480 CC="$ac_save_CC $ac_arg"
3481 if ac_fn_c_try_compile "$LINENO"
3482 then :
3483 ac_cv_prog_cc_c99=$ac_arg
3484 fi
3485 rm -f core conftest.err conftest.$ac_objext conftest.beam
3486 test "x$ac_cv_prog_cc_c99" != "xno" && break
3487 done
3488 rm -f conftest.$ac_ext
3489 CC=$ac_save_CC
3490 fi
3491
3492 if test "x$ac_cv_prog_cc_c99" = xno
3493 then :
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3495 printf "%s\n" "unsupported" >&6; }
3496 else $as_nop
3497 if test "x$ac_cv_prog_cc_c99" = x
3498 then :
3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3500 printf "%s\n" "none needed" >&6; }
3501 else $as_nop
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3503 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3504 CC="$CC $ac_cv_prog_cc_c99"
3505 fi
3506 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3507 ac_prog_cc_stdc=c99
3508 fi
3509 fi
3510 if test x$ac_prog_cc_stdc = xno
3511 then :
3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3513 printf %s "checking for $CC option to enable C89 features... " >&6; }
3514 if test ${ac_cv_prog_cc_c89+y}
3515 then :
3516 printf %s "(cached) " >&6
3517 else $as_nop
3518 ac_cv_prog_cc_c89=no
3519 ac_save_CC=$CC
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3522 $ac_c_conftest_c89_program
3523 _ACEOF
3524 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3525 do
3526 CC="$ac_save_CC $ac_arg"
3527 if ac_fn_c_try_compile "$LINENO"
3528 then :
3529 ac_cv_prog_cc_c89=$ac_arg
3530 fi
3531 rm -f core conftest.err conftest.$ac_objext conftest.beam
3532 test "x$ac_cv_prog_cc_c89" != "xno" && break
3533 done
3534 rm -f conftest.$ac_ext
3535 CC=$ac_save_CC
3536 fi
3537
3538 if test "x$ac_cv_prog_cc_c89" = xno
3539 then :
3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3541 printf "%s\n" "unsupported" >&6; }
3542 else $as_nop
3543 if test "x$ac_cv_prog_cc_c89" = x
3544 then :
3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3546 printf "%s\n" "none needed" >&6; }
3547 else $as_nop
3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3549 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3550 CC="$CC $ac_cv_prog_cc_c89"
3551 fi
3552 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3553 ac_prog_cc_stdc=c89
3554 fi
3555 fi
3556
3557 ac_ext=c
3558 ac_cpp='$CPP $CPPFLAGS'
3559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3562
3563
3564 ac_ext=c
3565 ac_cpp='$CPP $CPPFLAGS'
3566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3570 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3571 if test ${am_cv_prog_cc_c_o+y}
3572 then :
3573 printf %s "(cached) " >&6
3574 else $as_nop
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3577
3578 int
3579 main (void)
3580 {
3581
3582 ;
3583 return 0;
3584 }
3585 _ACEOF
3586 # Make sure it works both with $CC and with simple cc.
3587 # Following AC_PROG_CC_C_O, we do the test twice because some
3588 # compilers refuse to overwrite an existing .o file with -o,
3589 # though they will create one.
3590 am_cv_prog_cc_c_o=yes
3591 for am_i in 1 2; do
3592 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3593 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } \
3597 && test -f conftest2.$ac_objext; then
3598 : OK
3599 else
3600 am_cv_prog_cc_c_o=no
3601 break
3602 fi
3603 done
3604 rm -f core conftest*
3605 unset am_i
3606 fi
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3608 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3609 if test "$am_cv_prog_cc_c_o" != yes; then
3610 # Losing compiler, so override with the script.
3611 # FIXME: It is wrong to rewrite CC.
3612 # But if we don't then we get into trouble of one sort or another.
3613 # A longer-term fix would be to have automake use am__CC in this case,
3614 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3615 CC="$am_aux_dir/compile $CC"
3616 fi
3617 ac_ext=c
3618 ac_cpp='$CPP $CPPFLAGS'
3619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622
3623
3624
3625 ac_header= ac_cache=
3626 for ac_item in $ac_header_c_list
3627 do
3628 if test $ac_cache; then
3629 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3630 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3631 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3632 fi
3633 ac_header= ac_cache=
3634 elif test $ac_header; then
3635 ac_cache=$ac_item
3636 else
3637 ac_header=$ac_item
3638 fi
3639 done
3640
3641
3642
3643
3644
3645
3646
3647
3648 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3649 then :
3650
3651 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3652
3653 fi
3654
3655
3656
3657
3658
3659
3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3661 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3662 if test ${ac_cv_safe_to_define___extensions__+y}
3663 then :
3664 printf %s "(cached) " >&6
3665 else $as_nop
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3668
3669 # define __EXTENSIONS__ 1
3670 $ac_includes_default
3671 int
3672 main (void)
3673 {
3674
3675 ;
3676 return 0;
3677 }
3678 _ACEOF
3679 if ac_fn_c_try_compile "$LINENO"
3680 then :
3681 ac_cv_safe_to_define___extensions__=yes
3682 else $as_nop
3683 ac_cv_safe_to_define___extensions__=no
3684 fi
3685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3686 fi
3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3688 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3689
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3691 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3692 if test ${ac_cv_should_define__xopen_source+y}
3693 then :
3694 printf %s "(cached) " >&6
3695 else $as_nop
3696 ac_cv_should_define__xopen_source=no
3697 if test $ac_cv_header_wchar_h = yes
3698 then :
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3701
3702 #include <wchar.h>
3703 mbstate_t x;
3704 int
3705 main (void)
3706 {
3707
3708 ;
3709 return 0;
3710 }
3711 _ACEOF
3712 if ac_fn_c_try_compile "$LINENO"
3713 then :
3714
3715 else $as_nop
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3718
3719 #define _XOPEN_SOURCE 500
3720 #include <wchar.h>
3721 mbstate_t x;
3722 int
3723 main (void)
3724 {
3725
3726 ;
3727 return 0;
3728 }
3729 _ACEOF
3730 if ac_fn_c_try_compile "$LINENO"
3731 then :
3732 ac_cv_should_define__xopen_source=yes
3733 fi
3734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3735 fi
3736 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3737 fi
3738 fi
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3740 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3741
3742 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3743
3744 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3745
3746 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3747
3748 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3749
3750 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3751
3752 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3753
3754 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3755
3756 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3757
3758 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3759
3760 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3761
3762 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3763
3764 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3765
3766 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3767
3768 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3769
3770 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3771
3772 if test $ac_cv_header_minix_config_h = yes
3773 then :
3774 MINIX=yes
3775 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3776
3777 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3778
3779 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3780
3781 else $as_nop
3782 MINIX=
3783 fi
3784 if test $ac_cv_safe_to_define___extensions__ = yes
3785 then :
3786 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3787
3788 fi
3789 if test $ac_cv_should_define__xopen_source = yes
3790 then :
3791 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3792
3793 fi
3794
3795
3796
3797 # Check whether --enable-ipv4 was given.
3798 if test ${enable_ipv4+y}
3799 then :
3800 enableval=$enable_ipv4;
3801 fi
3802
3803 if test "x$enable_ipv4" != "xno"; then
3804 IPV4_TRUE=
3805 IPV4_FALSE='#'
3806 else
3807 IPV4_TRUE='#'
3808 IPV4_FALSE=
3809 fi
3810
3811 if test -z "$IPV4_TRUE"; then :
3812
3813 printf "%s\n" "#define IPV4 1" >>confdefs.h
3814
3815 fi
3816
3817 # Check whether --enable-ipv6 was given.
3818 if test ${enable_ipv6+y}
3819 then :
3820 enableval=$enable_ipv6;
3821 fi
3822
3823 if test "x$enable_ipv6" != "xno"
3824 then :
3825
3826 for ac_header in netinet/icmp6.h
3827 do :
3828 ac_fn_c_check_header_compile "$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "
3829 #include <netinet/in.h>
3830 #include <sys/types.h>
3831
3832 "
3833 if test "x$ac_cv_header_netinet_icmp6_h" = xyes
3834 then :
3835 printf "%s\n" "#define HAVE_NETINET_ICMP6_H 1" >>confdefs.h
3836 have_ipv6="yes"
3837 fi
3838
3839 done
3840
3841 fi
3842 if test "x$enable_ipv4" = "xno" -a "x$enable_ipv6" = "xno"
3843 then :
3844
3845 as_fn_error $? "Need to enable IPv4 or IPv6. Can't disable both!)" "$LINENO" 5
3846
3847 fi
3848 if test \( "x$enable_ipv6" = "xyes" -o "x$enable_ipv4" = "xno" \) -a "x$have_ipv6" != "xyes"
3849 then :
3850
3851 as_fn_error $? "IPv6 not supported on this platform (netinet/icmp6.h header not found)" "$LINENO" 5
3852
3853 fi
3854 if test "x$have_ipv6" = "xyes"; then
3855 IPV6_TRUE=
3856 IPV6_FALSE='#'
3857 else
3858 IPV6_TRUE='#'
3859 IPV6_FALSE=
3860 fi
3861
3862 if test -z "$IPV6_TRUE"; then :
3863
3864 printf "%s\n" "#define IPV6 1" >>confdefs.h
3865
3866 fi
3867
3868 # Check whether --enable-timestamp was given.
3869 if test ${enable_timestamp+y}
3870 then :
3871 enableval=$enable_timestamp;
3872 fi
3873
3874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
3875 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
3876 if test ${ac_cv_c_undeclared_builtin_options+y}
3877 then :
3878 printf %s "(cached) " >&6
3879 else $as_nop
3880 ac_save_CFLAGS=$CFLAGS
3881 ac_cv_c_undeclared_builtin_options='cannot detect'
3882 for ac_arg in '' -fno-builtin; do
3883 CFLAGS="$ac_save_CFLAGS $ac_arg"
3884 # This test program should *not* compile successfully.
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3887
3888 int
3889 main (void)
3890 {
3891 (void) strchr;
3892 ;
3893 return 0;
3894 }
3895 _ACEOF
3896 if ac_fn_c_try_compile "$LINENO"
3897 then :
3898
3899 else $as_nop
3900 # This test program should compile successfully.
3901 # No library function is consistently available on
3902 # freestanding implementations, so test against a dummy
3903 # declaration. Include always-available headers on the
3904 # off chance that they somehow elicit warnings.
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3907 #include <float.h>
3908 #include <limits.h>
3909 #include <stdarg.h>
3910 #include <stddef.h>
3911 extern void ac_decl (int, char *);
3912
3913 int
3914 main (void)
3915 {
3916 (void) ac_decl (0, (char *) 0);
3917 (void) ac_decl;
3918
3919 ;
3920 return 0;
3921 }
3922 _ACEOF
3923 if ac_fn_c_try_compile "$LINENO"
3924 then :
3925 if test x"$ac_arg" = x
3926 then :
3927 ac_cv_c_undeclared_builtin_options='none needed'
3928 else $as_nop
3929 ac_cv_c_undeclared_builtin_options=$ac_arg
3930 fi
3931 break
3932 fi
3933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3934 fi
3935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3936 done
3937 CFLAGS=$ac_save_CFLAGS
3938
3939 fi
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
3941 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
3942 case $ac_cv_c_undeclared_builtin_options in #(
3943 'cannot detect') :
3944 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3946 as_fn_error $? "cannot make $CC report undeclared builtins
3947 See \`config.log' for more details" "$LINENO" 5; } ;; #(
3948 'none needed') :
3949 ac_c_undeclared_builtin_options='' ;; #(
3950 *) :
3951 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
3952 esac
3953
3954 if test "x$enable_timestamp" != "xno"
3955 then :
3956
3957 ac_fn_check_decl "$LINENO" "SO_TIMESTAMPNS" "ac_cv_have_decl_SO_TIMESTAMPNS" "#include <sys/types.h>
3958 #include <sys/socket.h>
3959 " "$ac_c_undeclared_builtin_options" "CFLAGS"
3960 if test "x$ac_cv_have_decl_SO_TIMESTAMPNS" = xyes
3961 then :
3962
3963 printf "%s\n" "#define HAVE_SO_TIMESTAMPNS 1" >>confdefs.h
3964
3965 else $as_nop
3966 have_so_timestamp="no"
3967 fi
3968
3969 fi
3970 if test "x$enable_timestamp" = "xyes" -a "x$have_so_timestamp" = "xno"
3971 then :
3972
3973 as_fn_error $? "--enable-timestamp not supported on this platform" "$LINENO" 5
3974
3975 fi
3976
3977 # Check whether --enable-safe-limits was given.
3978 if test ${enable_safe_limits+y}
3979 then :
3980 enableval=$enable_safe_limits;
3981 fi
3982
3983 if test "x$enable_safe_limits" = "xyes"
3984 then :
3985
3986
3987 printf "%s\n" "#define FPING_SAFE_LIMITS 1" >>confdefs.h
3988
3989 fi
3990
3991
3992
3993 # Make sure we can run config.sub.
3994 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3995 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3996
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3998 printf %s "checking build system type... " >&6; }
3999 if test ${ac_cv_build+y}
4000 then :
4001 printf %s "(cached) " >&6
4002 else $as_nop
4003 ac_build_alias=$build_alias
4004 test "x$ac_build_alias" = x &&
4005 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4006 test "x$ac_build_alias" = x &&
4007 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4008 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4009 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4010
4011 fi
4012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4013 printf "%s\n" "$ac_cv_build" >&6; }
4014 case $ac_cv_build in
4015 *-*-*) ;;
4016 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4017 esac
4018 build=$ac_cv_build
4019 ac_save_IFS=$IFS; IFS='-'
4020 set x $ac_cv_build
4021 shift
4022 build_cpu=$1
4023 build_vendor=$2
4024 shift; shift
4025 # Remember, the first character of IFS is used to create $*,
4026 # except with old shells:
4027 build_os=$*
4028 IFS=$ac_save_IFS
4029 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4030
4031
4032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4033 printf %s "checking host system type... " >&6; }
4034 if test ${ac_cv_host+y}
4035 then :
4036 printf %s "(cached) " >&6
4037 else $as_nop
4038 if test "x$host_alias" = x; then
4039 ac_cv_host=$ac_cv_build
4040 else
4041 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4042 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4043 fi
4044
4045 fi
4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4047 printf "%s\n" "$ac_cv_host" >&6; }
4048 case $ac_cv_host in
4049 *-*-*) ;;
4050 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4051 esac
4052 host=$ac_cv_host
4053 ac_save_IFS=$IFS; IFS='-'
4054 set x $ac_cv_host
4055 shift
4056 host_cpu=$1
4057 host_vendor=$2
4058 shift; shift
4059 # Remember, the first character of IFS is used to create $*,
4060 # except with old shells:
4061 host_os=$*
4062 IFS=$ac_save_IFS
4063 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4064
4065
4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4067 printf %s "checking target system type... " >&6; }
4068 if test ${ac_cv_target+y}
4069 then :
4070 printf %s "(cached) " >&6
4071 else $as_nop
4072 if test "x$target_alias" = x; then
4073 ac_cv_target=$ac_cv_host
4074 else
4075 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
4076 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
4077 fi
4078
4079 fi
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4081 printf "%s\n" "$ac_cv_target" >&6; }
4082 case $ac_cv_target in
4083 *-*-*) ;;
4084 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4085 esac
4086 target=$ac_cv_target
4087 ac_save_IFS=$IFS; IFS='-'
4088 set x $ac_cv_target
4089 shift
4090 target_cpu=$1
4091 target_vendor=$2
4092 shift; shift
4093 # Remember, the first character of IFS is used to create $*,
4094 # except with old shells:
4095 target_os=$*
4096 IFS=$ac_save_IFS
4097 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4098
4099
4100 # The aliases save the names the user supplied, while $host etc.
4101 # will get canonicalized.
4102 test -n "$target_alias" &&
4103 test "$program_prefix$program_suffix$program_transform_name" = \
4104 NONENONEs,x,x, &&
4105 program_prefix=${target_alias}-
4106 am__api_version='1.16'
4107
4108
4109 # Find a good install program. We prefer a C program (faster),
4110 # so one script is as good as another. But avoid the broken or
4111 # incompatible versions:
4112 # SysV /etc/install, /usr/sbin/install
4113 # SunOS /usr/etc/install
4114 # IRIX /sbin/install
4115 # AIX /bin/install
4116 # AmigaOS /C/install, which installs bootblocks on floppy discs
4117 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4118 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4119 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4120 # OS/2's system install, which has a completely different semantic
4121 # ./install, which can be erroneously created by make from ./install.sh.
4122 # Reject install programs that cannot install multiple files.
4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4124 printf %s "checking for a BSD-compatible install... " >&6; }
4125 if test -z "$INSTALL"; then
4126 if test ${ac_cv_path_install+y}
4127 then :
4128 printf %s "(cached) " >&6
4129 else $as_nop
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4132 do
4133 IFS=$as_save_IFS
4134 case $as_dir in #(((
4135 '') as_dir=./ ;;
4136 */) ;;
4137 *) as_dir=$as_dir/ ;;
4138 esac
4139 # Account for fact that we put trailing slashes in our PATH walk.
4140 case $as_dir in #((
4141 ./ | /[cC]/* | \
4142 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4143 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4144 /usr/ucb/* ) ;;
4145 *)
4146 # OSF1 and SCO ODT 3.0 have their own names for install.
4147 # Don't use installbsd from OSF since it installs stuff as root
4148 # by default.
4149 for ac_prog in ginstall scoinst install; do
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4152 if test $ac_prog = install &&
4153 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4154 # AIX install. It has an incompatible calling convention.
4155 :
4156 elif test $ac_prog = install &&
4157 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4158 # program-specific install script used by HP pwplus--don't use.
4159 :
4160 else
4161 rm -rf conftest.one conftest.two conftest.dir
4162 echo one > conftest.one
4163 echo two > conftest.two
4164 mkdir conftest.dir
4165 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4166 test -s conftest.one && test -s conftest.two &&
4167 test -s conftest.dir/conftest.one &&
4168 test -s conftest.dir/conftest.two
4169 then
4170 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4171 break 3
4172 fi
4173 fi
4174 fi
4175 done
4176 done
4177 ;;
4178 esac
4179
4180 done
4181 IFS=$as_save_IFS
4182
4183 rm -rf conftest.one conftest.two conftest.dir
4184
4185 fi
4186 if test ${ac_cv_path_install+y}; then
4187 INSTALL=$ac_cv_path_install
4188 else
4189 # As a last resort, use the slow shell script. Don't cache a
4190 # value for INSTALL within a source directory, because that will
4191 # break other packages using the cache if that directory is
4192 # removed, or if the value is a relative name.
4193 INSTALL=$ac_install_sh
4194 fi
4195 fi
4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4197 printf "%s\n" "$INSTALL" >&6; }
4198
4199 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4200 # It thinks the first close brace ends the variable substitution.
4201 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4202
4203 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4204
4205 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4206
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4208 printf %s "checking whether build environment is sane... " >&6; }
4209 # Reject unsafe characters in $srcdir or the absolute working directory
4210 # name. Accept space and tab only in the latter.
4211 am_lf='
4212 '
4213 case `pwd` in
4214 *[\\\"\#\$\&\'\`$am_lf]*)
4215 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4216 esac
4217 case $srcdir in
4218 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4219 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4220 esac
4221
4222 # Do 'set' in a subshell so we don't clobber the current shell's
4223 # arguments. Must try -L first in case configure is actually a
4224 # symlink; some systems play weird games with the mod time of symlinks
4225 # (eg FreeBSD returns the mod time of the symlink's containing
4226 # directory).
4227 if (
4228 am_has_slept=no
4229 for am_try in 1 2; do
4230 echo "timestamp, slept: $am_has_slept" > conftest.file
4231 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4232 if test "$*" = "X"; then
4233 # -L didn't work.
4234 set X `ls -t "$srcdir/configure" conftest.file`
4235 fi
4236 if test "$*" != "X $srcdir/configure conftest.file" \
4237 && test "$*" != "X conftest.file $srcdir/configure"; then
4238
4239 # If neither matched, then we have a broken ls. This can happen
4240 # if, for instance, CONFIG_SHELL is bash and it inherits a
4241 # broken ls alias from the environment. This has actually
4242 # happened. Such a system could not be considered "sane".
4243 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4244 alias in your environment" "$LINENO" 5
4245 fi
4246 if test "$2" = conftest.file || test $am_try -eq 2; then
4247 break
4248 fi
4249 # Just in case.
4250 sleep 1
4251 am_has_slept=yes
4252 done
4253 test "$2" = conftest.file
4254 )
4255 then
4256 # Ok.
4257 :
4258 else
4259 as_fn_error $? "newly created file is older than distributed files!
4260 Check your system clock" "$LINENO" 5
4261 fi
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4263 printf "%s\n" "yes" >&6; }
4264 # If we didn't sleep, we still need to ensure time stamps of config.status and
4265 # generated files are strictly newer.
4266 am_sleep_pid=
4267 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4268 ( sleep 1 ) &
4269 am_sleep_pid=$!
4270 fi
4271
4272 rm -f conftest.file
4273
4274 test "$program_prefix" != NONE &&
4275 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4276 # Use a double $ so make ignores it.
4277 test "$program_suffix" != NONE &&
4278 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4279 # Double any \ or $.
4280 # By default was `s,x,x', remove it if useless.
4281 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4282 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4283
4284
4285 if test x"${MISSING+set}" != xset; then
4286 MISSING="\${SHELL} '$am_aux_dir/missing'"
4287 fi
4288 # Use eval to expand $SHELL
4289 if eval "$MISSING --is-lightweight"; then
4290 am_missing_run="$MISSING "
4291 else
4292 am_missing_run=
4293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4294 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4295 fi
4296
4297 if test x"${install_sh+set}" != xset; then
4298 case $am_aux_dir in
4299 *\ * | *\ *)
4300 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4301 *)
4302 install_sh="\${SHELL} $am_aux_dir/install-sh"
4303 esac
4304 fi
4305
4306 # Installed binaries are usually stripped using 'strip' when the user
4307 # run "make install-strip". However 'strip' might not be the right
4308 # tool to use in cross-compilation environments, therefore Automake
4309 # will honor the 'STRIP' environment variable to overrule this program.
4310 if test "$cross_compiling" != no; then
4311 if test -n "$ac_tool_prefix"; then
4312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4313 set dummy ${ac_tool_prefix}strip; ac_word=$2
4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315 printf %s "checking for $ac_word... " >&6; }
4316 if test ${ac_cv_prog_STRIP+y}
4317 then :
4318 printf %s "(cached) " >&6
4319 else $as_nop
4320 if test -n "$STRIP"; then
4321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4322 else
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH
4325 do
4326 IFS=$as_save_IFS
4327 case $as_dir in #(((
4328 '') as_dir=./ ;;
4329 */) ;;
4330 *) as_dir=$as_dir/ ;;
4331 esac
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4334 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4336 break 2
4337 fi
4338 done
4339 done
4340 IFS=$as_save_IFS
4341
4342 fi
4343 fi
4344 STRIP=$ac_cv_prog_STRIP
4345 if test -n "$STRIP"; then
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4347 printf "%s\n" "$STRIP" >&6; }
4348 else
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 printf "%s\n" "no" >&6; }
4351 fi
4352
4353
4354 fi
4355 if test -z "$ac_cv_prog_STRIP"; then
4356 ac_ct_STRIP=$STRIP
4357 # Extract the first word of "strip", so it can be a program name with args.
4358 set dummy strip; ac_word=$2
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 printf %s "checking for $ac_word... " >&6; }
4361 if test ${ac_cv_prog_ac_ct_STRIP+y}
4362 then :
4363 printf %s "(cached) " >&6
4364 else $as_nop
4365 if test -n "$ac_ct_STRIP"; then
4366 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371 IFS=$as_save_IFS
4372 case $as_dir in #(((
4373 '') as_dir=./ ;;
4374 */) ;;
4375 *) as_dir=$as_dir/ ;;
4376 esac
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4379 ac_cv_prog_ac_ct_STRIP="strip"
4380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4381 break 2
4382 fi
4383 done
4384 done
4385 IFS=$as_save_IFS
4386
4387 fi
4388 fi
4389 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4390 if test -n "$ac_ct_STRIP"; then
4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4392 printf "%s\n" "$ac_ct_STRIP" >&6; }
4393 else
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 printf "%s\n" "no" >&6; }
4396 fi
4397
4398 if test "x$ac_ct_STRIP" = x; then
4399 STRIP=":"
4400 else
4401 case $cross_compiling:$ac_tool_warned in
4402 yes:)
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4404 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned=yes ;;
4406 esac
4407 STRIP=$ac_ct_STRIP
4408 fi
4409 else
4410 STRIP="$ac_cv_prog_STRIP"
4411 fi
4412
4413 fi
4414 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4415
4416
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4418 printf %s "checking for a race-free mkdir -p... " >&6; }
4419 if test -z "$MKDIR_P"; then
4420 if test ${ac_cv_path_mkdir+y}
4421 then :
4422 printf %s "(cached) " >&6
4423 else $as_nop
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4426 do
4427 IFS=$as_save_IFS
4428 case $as_dir in #(((
4429 '') as_dir=./ ;;
4430 */) ;;
4431 *) as_dir=$as_dir/ ;;
4432 esac
4433 for ac_prog in mkdir gmkdir; do
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4436 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4437 'mkdir ('*'coreutils) '* | \
4438 'BusyBox '* | \
4439 'mkdir (fileutils) '4.1*)
4440 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4441 break 3;;
4442 esac
4443 done
4444 done
4445 done
4446 IFS=$as_save_IFS
4447
4448 fi
4449
4450 test -d ./--version && rmdir ./--version
4451 if test ${ac_cv_path_mkdir+y}; then
4452 MKDIR_P="$ac_cv_path_mkdir -p"
4453 else
4454 # As a last resort, use the slow shell script. Don't cache a
4455 # value for MKDIR_P within a source directory, because that will
4456 # break other packages using the cache if that directory is
4457 # removed, or if the value is a relative name.
4458 MKDIR_P="$ac_install_sh -d"
4459 fi
4460 fi
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4462 printf "%s\n" "$MKDIR_P" >&6; }
4463
4464 for ac_prog in gawk mawk nawk awk
4465 do
4466 # Extract the first word of "$ac_prog", so it can be a program name with args.
4467 set dummy $ac_prog; ac_word=$2
4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4469 printf %s "checking for $ac_word... " >&6; }
4470 if test ${ac_cv_prog_AWK+y}
4471 then :
4472 printf %s "(cached) " >&6
4473 else $as_nop
4474 if test -n "$AWK"; then
4475 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4476 else
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480 IFS=$as_save_IFS
4481 case $as_dir in #(((
4482 '') as_dir=./ ;;
4483 */) ;;
4484 *) as_dir=$as_dir/ ;;
4485 esac
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4488 ac_cv_prog_AWK="$ac_prog"
4489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4490 break 2
4491 fi
4492 done
4493 done
4494 IFS=$as_save_IFS
4495
4496 fi
4497 fi
4498 AWK=$ac_cv_prog_AWK
4499 if test -n "$AWK"; then
4500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4501 printf "%s\n" "$AWK" >&6; }
4502 else
4503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504 printf "%s\n" "no" >&6; }
4505 fi
4506
4507
4508 test -n "$AWK" && break
4509 done
4510
4511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4512 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4513 set x ${MAKE-make}
4514 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4515 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4516 then :
4517 printf %s "(cached) " >&6
4518 else $as_nop
4519 cat >conftest.make <<\_ACEOF
4520 SHELL = /bin/sh
4521 all:
4522 @echo '@@@%%%=$(MAKE)=@@@%%%'
4523 _ACEOF
4524 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4525 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4526 *@@@%%%=?*=@@@%%%*)
4527 eval ac_cv_prog_make_${ac_make}_set=yes;;
4528 *)
4529 eval ac_cv_prog_make_${ac_make}_set=no;;
4530 esac
4531 rm -f conftest.make
4532 fi
4533 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4535 printf "%s\n" "yes" >&6; }
4536 SET_MAKE=
4537 else
4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539 printf "%s\n" "no" >&6; }
4540 SET_MAKE="MAKE=${MAKE-make}"
4541 fi
4542
4543 rm -rf .tst 2>/dev/null
4544 mkdir .tst 2>/dev/null
4545 if test -d .tst; then
4546 am__leading_dot=.
4547 else
4548 am__leading_dot=_
4549 fi
4550 rmdir .tst 2>/dev/null
4551
4552 DEPDIR="${am__leading_dot}deps"
4553
4554 ac_config_commands="$ac_config_commands depfiles"
4555
4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4557 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4558 cat > confinc.mk << 'END'
4559 am__doit:
4560 @echo this is the am__doit target >confinc.out
4561 .PHONY: am__doit
4562 END
4563 am__include="#"
4564 am__quote=
4565 # BSD make does it like this.
4566 echo '.include "confinc.mk" # ignored' > confmf.BSD
4567 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4568 echo 'include confinc.mk # ignored' > confmf.GNU
4569 _am_result=no
4570 for s in GNU BSD; do
4571 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4572 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }
4576 case $?:`cat confinc.out 2>/dev/null` in #(
4577 '0:this is the am__doit target') :
4578 case $s in #(
4579 BSD) :
4580 am__include='.include' am__quote='"' ;; #(
4581 *) :
4582 am__include='include' am__quote='' ;;
4583 esac ;; #(
4584 *) :
4585 ;;
4586 esac
4587 if test "$am__include" != "#"; then
4588 _am_result="yes ($s style)"
4589 break
4590 fi
4591 done
4592 rm -f confinc.* confmf.*
4593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4594 printf "%s\n" "${_am_result}" >&6; }
4595
4596 # Check whether --enable-dependency-tracking was given.
4597 if test ${enable_dependency_tracking+y}
4598 then :
4599 enableval=$enable_dependency_tracking;
4600 fi
4601
4602 if test "x$enable_dependency_tracking" != xno; then
4603 am_depcomp="$ac_aux_dir/depcomp"
4604 AMDEPBACKSLASH='\'
4605 am__nodep='_no'
4606 fi
4607 if test "x$enable_dependency_tracking" != xno; then
4608 AMDEP_TRUE=
4609 AMDEP_FALSE='#'
4610 else
4611 AMDEP_TRUE='#'
4612 AMDEP_FALSE=
4613 fi
4614
4615
4616 # Check whether --enable-silent-rules was given.
4617 if test ${enable_silent_rules+y}
4618 then :
4619 enableval=$enable_silent_rules;
4620 fi
4621
4622 case $enable_silent_rules in # (((
4623 yes) AM_DEFAULT_VERBOSITY=0;;
4624 no) AM_DEFAULT_VERBOSITY=1;;
4625 *) AM_DEFAULT_VERBOSITY=1;;
4626 esac
4627 am_make=${MAKE-make}
4628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4629 printf %s "checking whether $am_make supports nested variables... " >&6; }
4630 if test ${am_cv_make_support_nested_variables+y}
4631 then :
4632 printf %s "(cached) " >&6
4633 else $as_nop
4634 if printf "%s\n" 'TRUE=$(BAR$(V))
4635 BAR0=false
4636 BAR1=true
4637 V=1
4638 am__doit:
4639 @$(TRUE)
4640 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4641 am_cv_make_support_nested_variables=yes
4642 else
4643 am_cv_make_support_nested_variables=no
4644 fi
4645 fi
4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4647 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4648 if test $am_cv_make_support_nested_variables = yes; then
4649 AM_V='$(V)'
4650 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4651 else
4652 AM_V=$AM_DEFAULT_VERBOSITY
4653 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4654 fi
4655 AM_BACKSLASH='\'
4656
4657 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4658 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4659 # is not polluted with repeated "-I."
4660 am__isrc=' -I$(srcdir)'
4661 # test to see if srcdir already configured
4662 if test -f $srcdir/config.status; then
4663 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4664 fi
4665 fi
4666
4667 # test whether we have cygpath
4668 if test -z "$CYGPATH_W"; then
4669 if (cygpath --version) >/dev/null 2>/dev/null; then
4670 CYGPATH_W='cygpath -w'
4671 else
4672 CYGPATH_W=echo
4673 fi
4674 fi
4675
4676
4677 # Define the identity of the package.
4678 PACKAGE='fping'
4679 VERSION='5.1'
4680
4681
4682 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4683
4684
4685 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4686
4687 # Some tools Automake needs.
4688
4689 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4690
4691
4692 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4693
4694
4695 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4696
4697
4698 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4699
4700
4701 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4702
4703 # For better backward compatibility. To be removed once Automake 1.9.x
4704 # dies out for good. For more background, see:
4705 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4706 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4707 mkdir_p='$(MKDIR_P)'
4708
4709 # We need awk for the "check" target (and possibly the TAP driver). The
4710 # system "awk" is bad on some platforms.
4711 # Always define AMTAR for backward compatibility. Yes, it's still used
4712 # in the wild :-( We should find a proper way to deprecate it ...
4713 AMTAR='$${TAR-tar}'
4714
4715
4716 # We'll loop over all known methods to create a tar archive until one works.
4717 _am_tools='gnutar pax cpio none'
4718
4719 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4720
4721
4722
4723
4724
4725 depcc="$CC" am_compiler_list=
4726
4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4728 printf %s "checking dependency style of $depcc... " >&6; }
4729 if test ${am_cv_CC_dependencies_compiler_type+y}
4730 then :
4731 printf %s "(cached) " >&6
4732 else $as_nop
4733 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4734 # We make a subdir and do the tests there. Otherwise we can end up
4735 # making bogus files that we don't know about and never remove. For
4736 # instance it was reported that on HP-UX the gcc test will end up
4737 # making a dummy file named 'D' -- because '-MD' means "put the output
4738 # in D".
4739 rm -rf conftest.dir
4740 mkdir conftest.dir
4741 # Copy depcomp to subdir because otherwise we won't find it if we're
4742 # using a relative directory.
4743 cp "$am_depcomp" conftest.dir
4744 cd conftest.dir
4745 # We will build objects and dependencies in a subdirectory because
4746 # it helps to detect inapplicable dependency modes. For instance
4747 # both Tru64's cc and ICC support -MD to output dependencies as a
4748 # side effect of compilation, but ICC will put the dependencies in
4749 # the current directory while Tru64 will put them in the object
4750 # directory.
4751 mkdir sub
4752
4753 am_cv_CC_dependencies_compiler_type=none
4754 if test "$am_compiler_list" = ""; then
4755 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4756 fi
4757 am__universal=false
4758 case " $depcc " in #(
4759 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4760 esac
4761
4762 for depmode in $am_compiler_list; do
4763 # Setup a source with many dependencies, because some compilers
4764 # like to wrap large dependency lists on column 80 (with \), and
4765 # we should not choose a depcomp mode which is confused by this.
4766 #
4767 # We need to recreate these files for each test, as the compiler may
4768 # overwrite some of them when testing with obscure command lines.
4769 # This happens at least with the AIX C compiler.
4770 : > sub/conftest.c
4771 for i in 1 2 3 4 5 6; do
4772 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4773 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4774 # Solaris 10 /bin/sh.
4775 echo '/* dummy */' > sub/conftst$i.h
4776 done
4777 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4778
4779 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4780 # mode. It turns out that the SunPro C++ compiler does not properly
4781 # handle '-M -o', and we need to detect this. Also, some Intel
4782 # versions had trouble with output in subdirs.
4783 am__obj=sub/conftest.${OBJEXT-o}
4784 am__minus_obj="-o $am__obj"
4785 case $depmode in
4786 gcc)
4787 # This depmode causes a compiler race in universal mode.
4788 test "$am__universal" = false || continue
4789 ;;
4790 nosideeffect)
4791 # After this tag, mechanisms are not by side-effect, so they'll
4792 # only be used when explicitly requested.
4793 if test "x$enable_dependency_tracking" = xyes; then
4794 continue
4795 else
4796 break
4797 fi
4798 ;;
4799 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4800 # This compiler won't grok '-c -o', but also, the minuso test has
4801 # not run yet. These depmodes are late enough in the game, and
4802 # so weak that their functioning should not be impacted.
4803 am__obj=conftest.${OBJEXT-o}
4804 am__minus_obj=
4805 ;;
4806 none) break ;;
4807 esac
4808 if depmode=$depmode \
4809 source=sub/conftest.c object=$am__obj \
4810 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4811 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4812 >/dev/null 2>conftest.err &&
4813 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4814 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4815 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4816 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4817 # icc doesn't choke on unknown options, it will just issue warnings
4818 # or remarks (even with -Werror). So we grep stderr for any message
4819 # that says an option was ignored or not supported.
4820 # When given -MP, icc 7.0 and 7.1 complain thusly:
4821 # icc: Command line warning: ignoring option '-M'; no argument required
4822 # The diagnosis changed in icc 8.0:
4823 # icc: Command line remark: option '-MP' not supported
4824 if (grep 'ignoring option' conftest.err ||
4825 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4826 am_cv_CC_dependencies_compiler_type=$depmode
4827 break
4828 fi
4829 fi
4830 done
4831
4832 cd ..
4833 rm -rf conftest.dir
4834 else
4835 am_cv_CC_dependencies_compiler_type=none
4836 fi
4837
4838 fi
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4840 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4841 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4842
4843 if
4844 test "x$enable_dependency_tracking" != xno \
4845 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4846 am__fastdepCC_TRUE=
4847 am__fastdepCC_FALSE='#'
4848 else
4849 am__fastdepCC_TRUE='#'
4850 am__fastdepCC_FALSE=
4851 fi
4852
4853
4854 # Variables for tags utilities; see am/tags.am
4855 if test -z "$CTAGS"; then
4856 CTAGS=ctags
4857 fi
4858
4859 if test -z "$ETAGS"; then
4860 ETAGS=etags
4861 fi
4862
4863 if test -z "$CSCOPE"; then
4864 CSCOPE=cscope
4865 fi
4866
4867
4868
4869 # POSIX will say in a future version that running "rm -f" with no argument
4870 # is OK; and we want to be able to make that assumption in our Makefile
4871 # recipes. So use an aggressive probe to check that the usage we want is
4872 # actually supported "in the wild" to an acceptable degree.
4873 # See automake bug#10828.
4874 # To make any issue more visible, cause the running configure to be aborted
4875 # by default if the 'rm' program in use doesn't match our expectations; the
4876 # user can still override this though.
4877 if rm -f && rm -fr && rm -rf; then : OK; else
4878 cat >&2 <<'END'
4879 Oops!
4880
4881 Your 'rm' program seems unable to run without file operands specified
4882 on the command line, even when the '-f' option is present. This is contrary
4883 to the behaviour of most rm programs out there, and not conforming with
4884 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4885
4886 Please tell bug-automake@gnu.org about your system, including the value
4887 of your $PATH and any error possibly output before this message. This
4888 can help us improve future automake versions.
4889
4890 END
4891 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4892 echo 'Configuration will proceed anyway, since you have set the' >&2
4893 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4894 echo >&2
4895 else
4896 cat >&2 <<'END'
4897 Aborting the configuration process, to ensure you take notice of the issue.
4898
4899 You can download and install GNU coreutils to get an 'rm' implementation
4900 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4901
4902 If you want to complete the configuration process using your problematic
4903 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4904 to "yes", and re-run configure.
4905
4906 END
4907 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4908 fi
4909 fi
4910
4911
4912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4913 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4914 # Check whether --enable-maintainer-mode was given.
4915 if test ${enable_maintainer_mode+y}
4916 then :
4917 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4918 else $as_nop
4919 USE_MAINTAINER_MODE=no
4920 fi
4921
4922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4923 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
4924 if test $USE_MAINTAINER_MODE = yes; then
4925 MAINTAINER_MODE_TRUE=
4926 MAINTAINER_MODE_FALSE='#'
4927 else
4928 MAINTAINER_MODE_TRUE='#'
4929 MAINTAINER_MODE_FALSE=
4930 fi
4931
4932 MAINT=$MAINTAINER_MODE_TRUE
4933
4934
4935
4936 ac_config_headers="$ac_config_headers config.h"
4937
4938
4939
4940 ac_ext=c
4941 ac_cpp='$CPP $CPPFLAGS'
4942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4945 if test -n "$ac_tool_prefix"; then
4946 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4947 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 printf %s "checking for $ac_word... " >&6; }
4950 if test ${ac_cv_prog_CC+y}
4951 then :
4952 printf %s "(cached) " >&6
4953 else $as_nop
4954 if test -n "$CC"; then
4955 ac_cv_prog_CC="$CC" # Let the user override the test.
4956 else
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960 IFS=$as_save_IFS
4961 case $as_dir in #(((
4962 '') as_dir=./ ;;
4963 */) ;;
4964 *) as_dir=$as_dir/ ;;
4965 esac
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4968 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4970 break 2
4971 fi
4972 done
4973 done
4974 IFS=$as_save_IFS
4975
4976 fi
4977 fi
4978 CC=$ac_cv_prog_CC
4979 if test -n "$CC"; then
4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4981 printf "%s\n" "$CC" >&6; }
4982 else
4983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 printf "%s\n" "no" >&6; }
4985 fi
4986
4987
4988 fi
4989 if test -z "$ac_cv_prog_CC"; then
4990 ac_ct_CC=$CC
4991 # Extract the first word of "gcc", so it can be a program name with args.
4992 set dummy gcc; ac_word=$2
4993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 printf %s "checking for $ac_word... " >&6; }
4995 if test ${ac_cv_prog_ac_ct_CC+y}
4996 then :
4997 printf %s "(cached) " >&6
4998 else $as_nop
4999 if test -n "$ac_ct_CC"; then
5000 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5001 else
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5004 do
5005 IFS=$as_save_IFS
5006 case $as_dir in #(((
5007 '') as_dir=./ ;;
5008 */) ;;
5009 *) as_dir=$as_dir/ ;;
5010 esac
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5013 ac_cv_prog_ac_ct_CC="gcc"
5014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5015 break 2
5016 fi
5017 done
5018 done
5019 IFS=$as_save_IFS
5020
5021 fi
5022 fi
5023 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5024 if test -n "$ac_ct_CC"; then
5025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5026 printf "%s\n" "$ac_ct_CC" >&6; }
5027 else
5028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 printf "%s\n" "no" >&6; }
5030 fi
5031
5032 if test "x$ac_ct_CC" = x; then
5033 CC=""
5034 else
5035 case $cross_compiling:$ac_tool_warned in
5036 yes:)
5037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5038 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5039 ac_tool_warned=yes ;;
5040 esac
5041 CC=$ac_ct_CC
5042 fi
5043 else
5044 CC="$ac_cv_prog_CC"
5045 fi
5046
5047 if test -z "$CC"; then
5048 if test -n "$ac_tool_prefix"; then
5049 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5050 set dummy ${ac_tool_prefix}cc; ac_word=$2
5051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 printf %s "checking for $ac_word... " >&6; }
5053 if test ${ac_cv_prog_CC+y}
5054 then :
5055 printf %s "(cached) " >&6
5056 else $as_nop
5057 if test -n "$CC"; then
5058 ac_cv_prog_CC="$CC" # Let the user override the test.
5059 else
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063 IFS=$as_save_IFS
5064 case $as_dir in #(((
5065 '') as_dir=./ ;;
5066 */) ;;
5067 *) as_dir=$as_dir/ ;;
5068 esac
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5071 ac_cv_prog_CC="${ac_tool_prefix}cc"
5072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5073 break 2
5074 fi
5075 done
5076 done
5077 IFS=$as_save_IFS
5078
5079 fi
5080 fi
5081 CC=$ac_cv_prog_CC
5082 if test -n "$CC"; then
5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5084 printf "%s\n" "$CC" >&6; }
5085 else
5086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 printf "%s\n" "no" >&6; }
5088 fi
5089
5090
5091 fi
5092 fi
5093 if test -z "$CC"; then
5094 # Extract the first word of "cc", so it can be a program name with args.
5095 set dummy cc; ac_word=$2
5096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 printf %s "checking for $ac_word... " >&6; }
5098 if test ${ac_cv_prog_CC+y}
5099 then :
5100 printf %s "(cached) " >&6
5101 else $as_nop
5102 if test -n "$CC"; then
5103 ac_cv_prog_CC="$CC" # Let the user override the test.
5104 else
5105 ac_prog_rejected=no
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5108 do
5109 IFS=$as_save_IFS
5110 case $as_dir in #(((
5111 '') as_dir=./ ;;
5112 */) ;;
5113 *) as_dir=$as_dir/ ;;
5114 esac
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5117 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5118 ac_prog_rejected=yes
5119 continue
5120 fi
5121 ac_cv_prog_CC="cc"
5122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5123 break 2
5124 fi
5125 done
5126 done
5127 IFS=$as_save_IFS
5128
5129 if test $ac_prog_rejected = yes; then
5130 # We found a bogon in the path, so make sure we never use it.
5131 set dummy $ac_cv_prog_CC
5132 shift
5133 if test $# != 0; then
5134 # We chose a different compiler from the bogus one.
5135 # However, it has the same basename, so the bogon will be chosen
5136 # first if we set CC to just the basename; use the full file name.
5137 shift
5138 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5139 fi
5140 fi
5141 fi
5142 fi
5143 CC=$ac_cv_prog_CC
5144 if test -n "$CC"; then
5145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5146 printf "%s\n" "$CC" >&6; }
5147 else
5148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 printf "%s\n" "no" >&6; }
5150 fi
5151
5152
5153 fi
5154 if test -z "$CC"; then
5155 if test -n "$ac_tool_prefix"; then
5156 for ac_prog in cl.exe
5157 do
5158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 printf %s "checking for $ac_word... " >&6; }
5162 if test ${ac_cv_prog_CC+y}
5163 then :
5164 printf %s "(cached) " >&6
5165 else $as_nop
5166 if test -n "$CC"; then
5167 ac_cv_prog_CC="$CC" # Let the user override the test.
5168 else
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5171 do
5172 IFS=$as_save_IFS
5173 case $as_dir in #(((
5174 '') as_dir=./ ;;
5175 */) ;;
5176 *) as_dir=$as_dir/ ;;
5177 esac
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5182 break 2
5183 fi
5184 done
5185 done
5186 IFS=$as_save_IFS
5187
5188 fi
5189 fi
5190 CC=$ac_cv_prog_CC
5191 if test -n "$CC"; then
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5193 printf "%s\n" "$CC" >&6; }
5194 else
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 printf "%s\n" "no" >&6; }
5197 fi
5198
5199
5200 test -n "$CC" && break
5201 done
5202 fi
5203 if test -z "$CC"; then
5204 ac_ct_CC=$CC
5205 for ac_prog in cl.exe
5206 do
5207 # Extract the first word of "$ac_prog", so it can be a program name with args.
5208 set dummy $ac_prog; ac_word=$2
5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 printf %s "checking for $ac_word... " >&6; }
5211 if test ${ac_cv_prog_ac_ct_CC+y}
5212 then :
5213 printf %s "(cached) " >&6
5214 else $as_nop
5215 if test -n "$ac_ct_CC"; then
5216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221 IFS=$as_save_IFS
5222 case $as_dir in #(((
5223 '') as_dir=./ ;;
5224 */) ;;
5225 *) as_dir=$as_dir/ ;;
5226 esac
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5229 ac_cv_prog_ac_ct_CC="$ac_prog"
5230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5231 break 2
5232 fi
5233 done
5234 done
5235 IFS=$as_save_IFS
5236
5237 fi
5238 fi
5239 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5240 if test -n "$ac_ct_CC"; then
5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5242 printf "%s\n" "$ac_ct_CC" >&6; }
5243 else
5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 printf "%s\n" "no" >&6; }
5246 fi
5247
5248
5249 test -n "$ac_ct_CC" && break
5250 done
5251
5252 if test "x$ac_ct_CC" = x; then
5253 CC=""
5254 else
5255 case $cross_compiling:$ac_tool_warned in
5256 yes:)
5257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5258 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5259 ac_tool_warned=yes ;;
5260 esac
5261 CC=$ac_ct_CC
5262 fi
5263 fi
5264
5265 fi
5266 if test -z "$CC"; then
5267 if test -n "$ac_tool_prefix"; then
5268 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5269 set dummy ${ac_tool_prefix}clang; ac_word=$2
5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 printf %s "checking for $ac_word... " >&6; }
5272 if test ${ac_cv_prog_CC+y}
5273 then :
5274 printf %s "(cached) " >&6
5275 else $as_nop
5276 if test -n "$CC"; then
5277 ac_cv_prog_CC="$CC" # Let the user override the test.
5278 else
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in $PATH
5281 do
5282 IFS=$as_save_IFS
5283 case $as_dir in #(((
5284 '') as_dir=./ ;;
5285 */) ;;
5286 *) as_dir=$as_dir/ ;;
5287 esac
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5290 ac_cv_prog_CC="${ac_tool_prefix}clang"
5291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5292 break 2
5293 fi
5294 done
5295 done
5296 IFS=$as_save_IFS
5297
5298 fi
5299 fi
5300 CC=$ac_cv_prog_CC
5301 if test -n "$CC"; then
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5303 printf "%s\n" "$CC" >&6; }
5304 else
5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 printf "%s\n" "no" >&6; }
5307 fi
5308
5309
5310 fi
5311 if test -z "$ac_cv_prog_CC"; then
5312 ac_ct_CC=$CC
5313 # Extract the first word of "clang", so it can be a program name with args.
5314 set dummy clang; ac_word=$2
5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 printf %s "checking for $ac_word... " >&6; }
5317 if test ${ac_cv_prog_ac_ct_CC+y}
5318 then :
5319 printf %s "(cached) " >&6
5320 else $as_nop
5321 if test -n "$ac_ct_CC"; then
5322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5323 else
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH
5326 do
5327 IFS=$as_save_IFS
5328 case $as_dir in #(((
5329 '') as_dir=./ ;;
5330 */) ;;
5331 *) as_dir=$as_dir/ ;;
5332 esac
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5335 ac_cv_prog_ac_ct_CC="clang"
5336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5337 break 2
5338 fi
5339 done
5340 done
5341 IFS=$as_save_IFS
5342
5343 fi
5344 fi
5345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5346 if test -n "$ac_ct_CC"; then
5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5348 printf "%s\n" "$ac_ct_CC" >&6; }
5349 else
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 printf "%s\n" "no" >&6; }
5352 fi
5353
5354 if test "x$ac_ct_CC" = x; then
5355 CC=""
5356 else
5357 case $cross_compiling:$ac_tool_warned in
5358 yes:)
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5360 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5361 ac_tool_warned=yes ;;
5362 esac
5363 CC=$ac_ct_CC
5364 fi
5365 else
5366 CC="$ac_cv_prog_CC"
5367 fi
5368
5369 fi
5370
5371
5372 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5373 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5374 as_fn_error $? "no acceptable C compiler found in \$PATH
5375 See \`config.log' for more details" "$LINENO" 5; }
5376
5377 # Provide some information about the compiler.
5378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5379 set X $ac_compile
5380 ac_compiler=$2
5381 for ac_option in --version -v -V -qversion -version; do
5382 { { ac_try="$ac_compiler $ac_option >&5"
5383 case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5386 esac
5387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5388 printf "%s\n" "$ac_try_echo"; } >&5
5389 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5390 ac_status=$?
5391 if test -s conftest.err; then
5392 sed '10a\
5393 ... rest of stderr output deleted ...
5394 10q' conftest.err >conftest.er1
5395 cat conftest.er1 >&5
5396 fi
5397 rm -f conftest.er1 conftest.err
5398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5399 test $ac_status = 0; }
5400 done
5401
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5403 printf %s "checking whether the compiler supports GNU C... " >&6; }
5404 if test ${ac_cv_c_compiler_gnu+y}
5405 then :
5406 printf %s "(cached) " >&6
5407 else $as_nop
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5410
5411 int
5412 main (void)
5413 {
5414 #ifndef __GNUC__
5415 choke me
5416 #endif
5417
5418 ;
5419 return 0;
5420 }
5421 _ACEOF
5422 if ac_fn_c_try_compile "$LINENO"
5423 then :
5424 ac_compiler_gnu=yes
5425 else $as_nop
5426 ac_compiler_gnu=no
5427 fi
5428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5429 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5430
5431 fi
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5433 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5435
5436 if test $ac_compiler_gnu = yes; then
5437 GCC=yes
5438 else
5439 GCC=
5440 fi
5441 ac_test_CFLAGS=${CFLAGS+y}
5442 ac_save_CFLAGS=$CFLAGS
5443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5444 printf %s "checking whether $CC accepts -g... " >&6; }
5445 if test ${ac_cv_prog_cc_g+y}
5446 then :
5447 printf %s "(cached) " >&6
5448 else $as_nop
5449 ac_save_c_werror_flag=$ac_c_werror_flag
5450 ac_c_werror_flag=yes
5451 ac_cv_prog_cc_g=no
5452 CFLAGS="-g"
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */