Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for dfu-util 0.11.
4 #
5 # Report bugs to <http://sourceforge.net/p/dfu-util/tickets/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and
270 $0: http://sourceforge.net/p/dfu-util/tickets/ about your
271 $0: system, including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='dfu-util'
582 PACKAGE_TARNAME='dfu-util'
583 PACKAGE_VERSION='0.11'
584 PACKAGE_STRING='dfu-util 0.11'
585 PACKAGE_BUGREPORT='http://sourceforge.net/p/dfu-util/tickets/'
586 PACKAGE_URL='http://dfu-util.sourceforge.net'
587
588 # Factoring default headers for most tests.
589 ac_includes_default="\
590 #include <stdio.h>
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
593 #endif
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
596 #endif
597 #ifdef STDC_HEADERS
598 # include <stdlib.h>
599 # include <stddef.h>
600 #else
601 # ifdef HAVE_STDLIB_H
602 # include <stdlib.h>
603 # endif
604 #endif
605 #ifdef HAVE_STRING_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 # include <memory.h>
608 # endif
609 # include <string.h>
610 #endif
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
613 #endif
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
616 #endif
617 #ifdef HAVE_STDINT_H
618 # include <stdint.h>
619 #endif
620 #ifdef HAVE_UNISTD_H
621 # include <unistd.h>
622 #endif"
623
624 ac_subst_vars='am__EXEEXT_FALSE
625 am__EXEEXT_TRUE
626 LTLIBOBJS
627 LIBOBJS
628 EGREP
629 GREP
630 CPP
631 USB_LIBS
632 USB_CFLAGS
633 PKG_CONFIG_LIBDIR
634 PKG_CONFIG_PATH
635 PKG_CONFIG
636 am__fastdepCC_FALSE
637 am__fastdepCC_TRUE
638 CCDEPMODE
639 am__nodep
640 AMDEPBACKSLASH
641 AMDEP_FALSE
642 AMDEP_TRUE
643 am__include
644 DEPDIR
645 OBJEXT
646 EXEEXT
647 ac_ct_CC
648 CPPFLAGS
649 LDFLAGS
650 CFLAGS
651 CC
652 AM_BACKSLASH
653 AM_DEFAULT_VERBOSITY
654 AM_DEFAULT_V
655 AM_V
656 am__untar
657 am__tar
658 AMTAR
659 am__leading_dot
660 SET_MAKE
661 AWK
662 mkdir_p
663 MKDIR_P
664 INSTALL_STRIP_PROGRAM
665 STRIP
666 install_sh
667 MAKEINFO
668 AUTOHEADER
669 AUTOMAKE
670 AUTOCONF
671 ACLOCAL
672 VERSION
673 PACKAGE
674 CYGPATH_W
675 am__isrc
676 INSTALL_DATA
677 INSTALL_SCRIPT
678 INSTALL_PROGRAM
679 target_alias
680 host_alias
681 build_alias
682 LIBS
683 ECHO_T
684 ECHO_N
685 ECHO_C
686 DEFS
687 mandir
688 localedir
689 libdir
690 psdir
691 pdfdir
692 dvidir
693 htmldir
694 infodir
695 docdir
696 oldincludedir
697 includedir
698 runstatedir
699 localstatedir
700 sharedstatedir
701 sysconfdir
702 datadir
703 datarootdir
704 libexecdir
705 sbindir
706 bindir
707 program_transform_name
708 prefix
709 exec_prefix
710 PACKAGE_URL
711 PACKAGE_BUGREPORT
712 PACKAGE_STRING
713 PACKAGE_VERSION
714 PACKAGE_TARNAME
715 PACKAGE_NAME
716 PATH_SEPARATOR
717 SHELL
718 am__quote'
719 ac_subst_files=''
720 ac_user_opts='
721 enable_option_checking
722 enable_silent_rules
723 enable_dependency_tracking
724 enable_largefile
725 '
726 ac_precious_vars='build_alias
727 host_alias
728 target_alias
729 CC
730 CFLAGS
731 LDFLAGS
732 LIBS
733 CPPFLAGS
734 PKG_CONFIG
735 PKG_CONFIG_PATH
736 PKG_CONFIG_LIBDIR
737 USB_CFLAGS
738 USB_LIBS
739 CPP'
740
741
742 # Initialize some variables set by options.
743 ac_init_help=
744 ac_init_version=false
745 ac_unrecognized_opts=
746 ac_unrecognized_sep=
747 # The variables have the same names as the options, with
748 # dashes changed to underlines.
749 cache_file=/dev/null
750 exec_prefix=NONE
751 no_create=
752 no_recursion=
753 prefix=NONE
754 program_prefix=NONE
755 program_suffix=NONE
756 program_transform_name=s,x,x,
757 silent=
758 site=
759 srcdir=
760 verbose=
761 x_includes=NONE
762 x_libraries=NONE
763
764 # Installation directory options.
765 # These are left unexpanded so users can "make install exec_prefix=/foo"
766 # and all the variables that are supposed to be based on exec_prefix
767 # by default will actually change.
768 # Use braces instead of parens because sh, perl, etc. also accept them.
769 # (The list follows the same order as the GNU Coding Standards.)
770 bindir='${exec_prefix}/bin'
771 sbindir='${exec_prefix}/sbin'
772 libexecdir='${exec_prefix}/libexec'
773 datarootdir='${prefix}/share'
774 datadir='${datarootdir}'
775 sysconfdir='${prefix}/etc'
776 sharedstatedir='${prefix}/com'
777 localstatedir='${prefix}/var'
778 runstatedir='${localstatedir}/run'
779 includedir='${prefix}/include'
780 oldincludedir='/usr/include'
781 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
782 infodir='${datarootdir}/info'
783 htmldir='${docdir}'
784 dvidir='${docdir}'
785 pdfdir='${docdir}'
786 psdir='${docdir}'
787 libdir='${exec_prefix}/lib'
788 localedir='${datarootdir}/locale'
789 mandir='${datarootdir}/man'
790
791 ac_prev=
792 ac_dashdash=
793 for ac_option
794 do
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\$ac_option
798 ac_prev=
799 continue
800 fi
801
802 case $ac_option in
803 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *=) ac_optarg= ;;
805 *) ac_optarg=yes ;;
806 esac
807
808 # Accept the important Cygnus configure options, so we can diagnose typos.
809
810 case $ac_dashdash$ac_option in
811 --)
812 ac_dashdash=yes ;;
813
814 -bindir | --bindir | --bindi | --bind | --bin | --bi)
815 ac_prev=bindir ;;
816 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
817 bindir=$ac_optarg ;;
818
819 -build | --build | --buil | --bui | --bu)
820 ac_prev=build_alias ;;
821 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
822 build_alias=$ac_optarg ;;
823
824 -cache-file | --cache-file | --cache-fil | --cache-fi \
825 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
826 ac_prev=cache_file ;;
827 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
828 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
829 cache_file=$ac_optarg ;;
830
831 --config-cache | -C)
832 cache_file=config.cache ;;
833
834 -datadir | --datadir | --datadi | --datad)
835 ac_prev=datadir ;;
836 -datadir=* | --datadir=* | --datadi=* | --datad=*)
837 datadir=$ac_optarg ;;
838
839 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
840 | --dataroo | --dataro | --datar)
841 ac_prev=datarootdir ;;
842 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
843 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
844 datarootdir=$ac_optarg ;;
845
846 -disable-* | --disable-*)
847 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
848 # Reject names that are not valid shell variable names.
849 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
850 as_fn_error $? "invalid feature name: $ac_useropt"
851 ac_useropt_orig=$ac_useropt
852 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
853 case $ac_user_opts in
854 *"
855 "enable_$ac_useropt"
856 "*) ;;
857 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
858 ac_unrecognized_sep=', ';;
859 esac
860 eval enable_$ac_useropt=no ;;
861
862 -docdir | --docdir | --docdi | --doc | --do)
863 ac_prev=docdir ;;
864 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
865 docdir=$ac_optarg ;;
866
867 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
868 ac_prev=dvidir ;;
869 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
870 dvidir=$ac_optarg ;;
871
872 -enable-* | --enable-*)
873 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
874 # Reject names that are not valid shell variable names.
875 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
876 as_fn_error $? "invalid feature name: $ac_useropt"
877 ac_useropt_orig=$ac_useropt
878 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
879 case $ac_user_opts in
880 *"
881 "enable_$ac_useropt"
882 "*) ;;
883 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
884 ac_unrecognized_sep=', ';;
885 esac
886 eval enable_$ac_useropt=\$ac_optarg ;;
887
888 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
889 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
890 | --exec | --exe | --ex)
891 ac_prev=exec_prefix ;;
892 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
893 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
894 | --exec=* | --exe=* | --ex=*)
895 exec_prefix=$ac_optarg ;;
896
897 -gas | --gas | --ga | --g)
898 # Obsolete; use --with-gas.
899 with_gas=yes ;;
900
901 -help | --help | --hel | --he | -h)
902 ac_init_help=long ;;
903 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
904 ac_init_help=recursive ;;
905 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
906 ac_init_help=short ;;
907
908 -host | --host | --hos | --ho)
909 ac_prev=host_alias ;;
910 -host=* | --host=* | --hos=* | --ho=*)
911 host_alias=$ac_optarg ;;
912
913 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
914 ac_prev=htmldir ;;
915 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
916 | --ht=*)
917 htmldir=$ac_optarg ;;
918
919 -includedir | --includedir | --includedi | --included | --include \
920 | --includ | --inclu | --incl | --inc)
921 ac_prev=includedir ;;
922 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
923 | --includ=* | --inclu=* | --incl=* | --inc=*)
924 includedir=$ac_optarg ;;
925
926 -infodir | --infodir | --infodi | --infod | --info | --inf)
927 ac_prev=infodir ;;
928 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
929 infodir=$ac_optarg ;;
930
931 -libdir | --libdir | --libdi | --libd)
932 ac_prev=libdir ;;
933 -libdir=* | --libdir=* | --libdi=* | --libd=*)
934 libdir=$ac_optarg ;;
935
936 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
937 | --libexe | --libex | --libe)
938 ac_prev=libexecdir ;;
939 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
940 | --libexe=* | --libex=* | --libe=*)
941 libexecdir=$ac_optarg ;;
942
943 -localedir | --localedir | --localedi | --localed | --locale)
944 ac_prev=localedir ;;
945 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
946 localedir=$ac_optarg ;;
947
948 -localstatedir | --localstatedir | --localstatedi | --localstated \
949 | --localstate | --localstat | --localsta | --localst | --locals)
950 ac_prev=localstatedir ;;
951 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
952 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
953 localstatedir=$ac_optarg ;;
954
955 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
956 ac_prev=mandir ;;
957 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
958 mandir=$ac_optarg ;;
959
960 -nfp | --nfp | --nf)
961 # Obsolete; use --without-fp.
962 with_fp=no ;;
963
964 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
965 | --no-cr | --no-c | -n)
966 no_create=yes ;;
967
968 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
969 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
970 no_recursion=yes ;;
971
972 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
973 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
974 | --oldin | --oldi | --old | --ol | --o)
975 ac_prev=oldincludedir ;;
976 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
977 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
978 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
979 oldincludedir=$ac_optarg ;;
980
981 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
982 ac_prev=prefix ;;
983 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
984 prefix=$ac_optarg ;;
985
986 -program-prefix | --program-prefix | --program-prefi | --program-pref \
987 | --program-pre | --program-pr | --program-p)
988 ac_prev=program_prefix ;;
989 -program-prefix=* | --program-prefix=* | --program-prefi=* \
990 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
991 program_prefix=$ac_optarg ;;
992
993 -program-suffix | --program-suffix | --program-suffi | --program-suff \
994 | --program-suf | --program-su | --program-s)
995 ac_prev=program_suffix ;;
996 -program-suffix=* | --program-suffix=* | --program-suffi=* \
997 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
998 program_suffix=$ac_optarg ;;
999
1000 -program-transform-name | --program-transform-name \
1001 | --program-transform-nam | --program-transform-na \
1002 | --program-transform-n | --program-transform- \
1003 | --program-transform | --program-transfor \
1004 | --program-transfo | --program-transf \
1005 | --program-trans | --program-tran \
1006 | --progr-tra | --program-tr | --program-t)
1007 ac_prev=program_transform_name ;;
1008 -program-transform-name=* | --program-transform-name=* \
1009 | --program-transform-nam=* | --program-transform-na=* \
1010 | --program-transform-n=* | --program-transform-=* \
1011 | --program-transform=* | --program-transfor=* \
1012 | --program-transfo=* | --program-transf=* \
1013 | --program-trans=* | --program-tran=* \
1014 | --progr-tra=* | --program-tr=* | --program-t=*)
1015 program_transform_name=$ac_optarg ;;
1016
1017 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1018 ac_prev=pdfdir ;;
1019 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1020 pdfdir=$ac_optarg ;;
1021
1022 -psdir | --psdir | --psdi | --psd | --ps)
1023 ac_prev=psdir ;;
1024 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1025 psdir=$ac_optarg ;;
1026
1027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1028 | -silent | --silent | --silen | --sile | --sil)
1029 silent=yes ;;
1030
1031 -runstatedir | --runstatedir | --runstatedi | --runstated \
1032 | --runstate | --runstat | --runsta | --runst | --runs \
1033 | --run | --ru | --r)
1034 ac_prev=runstatedir ;;
1035 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1036 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1037 | --run=* | --ru=* | --r=*)
1038 runstatedir=$ac_optarg ;;
1039
1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041 ac_prev=sbindir ;;
1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043 | --sbi=* | --sb=*)
1044 sbindir=$ac_optarg ;;
1045
1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048 | --sharedst | --shareds | --shared | --share | --shar \
1049 | --sha | --sh)
1050 ac_prev=sharedstatedir ;;
1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054 | --sha=* | --sh=*)
1055 sharedstatedir=$ac_optarg ;;
1056
1057 -site | --site | --sit)
1058 ac_prev=site ;;
1059 -site=* | --site=* | --sit=*)
1060 site=$ac_optarg ;;
1061
1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063 ac_prev=srcdir ;;
1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065 srcdir=$ac_optarg ;;
1066
1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068 | --syscon | --sysco | --sysc | --sys | --sy)
1069 ac_prev=sysconfdir ;;
1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072 sysconfdir=$ac_optarg ;;
1073
1074 -target | --target | --targe | --targ | --tar | --ta | --t)
1075 ac_prev=target_alias ;;
1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077 target_alias=$ac_optarg ;;
1078
1079 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080 verbose=yes ;;
1081
1082 -version | --version | --versio | --versi | --vers | -V)
1083 ac_init_version=: ;;
1084
1085 -with-* | --with-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error $? "invalid package name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1093 *"
1094 "with_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval with_$ac_useropt=\$ac_optarg ;;
1100
1101 -without-* | --without-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=no ;;
1116
1117 --x)
1118 # Obsolete; use --with-x.
1119 with_x=yes ;;
1120
1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122 | --x-incl | --x-inc | --x-in | --x-i)
1123 ac_prev=x_includes ;;
1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126 x_includes=$ac_optarg ;;
1127
1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130 ac_prev=x_libraries ;;
1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133 x_libraries=$ac_optarg ;;
1134
1135 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1136 Try \`$0 --help' for more information"
1137 ;;
1138
1139 *=*)
1140 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1141 # Reject names that are not valid shell variable names.
1142 case $ac_envvar in #(
1143 '' | [0-9]* | *[!_$as_cr_alnum]* )
1144 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1145 esac
1146 eval $ac_envvar=\$ac_optarg
1147 export $ac_envvar ;;
1148
1149 *)
1150 # FIXME: should be removed in autoconf 3.0.
1151 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1155 ;;
1156
1157 esac
1158 done
1159
1160 if test -n "$ac_prev"; then
1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162 as_fn_error $? "missing argument to $ac_option"
1163 fi
1164
1165 if test -n "$ac_unrecognized_opts"; then
1166 case $enable_option_checking in
1167 no) ;;
1168 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1169 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1170 esac
1171 fi
1172
1173 # Check all directory arguments for consistency.
1174 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175 datadir sysconfdir sharedstatedir localstatedir includedir \
1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177 libdir localedir mandir runstatedir
1178 do
1179 eval ac_val=\$$ac_var
1180 # Remove trailing slashes.
1181 case $ac_val in
1182 */ )
1183 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1184 eval $ac_var=\$ac_val;;
1185 esac
1186 # Be sure to have absolute directory names.
1187 case $ac_val in
1188 [\\/$]* | ?:[\\/]* ) continue;;
1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1190 esac
1191 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1192 done
1193
1194 # There might be people who depend on the old broken behavior: `$host'
1195 # used to hold the argument of --host etc.
1196 # FIXME: To remove some day.
1197 build=$build_alias
1198 host=$host_alias
1199 target=$target_alias
1200
1201 # FIXME: To remove some day.
1202 if test "x$host_alias" != x; then
1203 if test "x$build_alias" = x; then
1204 cross_compiling=maybe
1205 elif test "x$build_alias" != "x$host_alias"; then
1206 cross_compiling=yes
1207 fi
1208 fi
1209
1210 ac_tool_prefix=
1211 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212
1213 test "$silent" = yes && exec 6>/dev/null
1214
1215
1216 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1217 ac_ls_di=`ls -di .` &&
1218 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1219 as_fn_error $? "working directory cannot be determined"
1220 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1221 as_fn_error $? "pwd does not report name of working directory"
1222
1223
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226 ac_srcdir_defaulted=yes
1227 # Try the directory containing this script, then the parent directory.
1228 ac_confdir=`$as_dirname -- "$as_myself" ||
1229 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$as_myself" : 'X\(//\)[^/]' \| \
1231 X"$as_myself" : 'X\(//\)$' \| \
1232 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1233 $as_echo X"$as_myself" |
1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 s//\1/
1236 q
1237 }
1238 /^X\(\/\/\)[^/].*/{
1239 s//\1/
1240 q
1241 }
1242 /^X\(\/\/\)$/{
1243 s//\1/
1244 q
1245 }
1246 /^X\(\/\).*/{
1247 s//\1/
1248 q
1249 }
1250 s/.*/./; q'`
1251 srcdir=$ac_confdir
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 srcdir=..
1254 fi
1255 else
1256 ac_srcdir_defaulted=no
1257 fi
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1261 fi
1262 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263 ac_abs_confdir=`(
1264 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1265 pwd)`
1266 # When building in place, set srcdir=.
1267 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 srcdir=.
1269 fi
1270 # Remove unnecessary trailing slashes from srcdir.
1271 # Double slashes in file names in object file debugging info
1272 # mess up M-x gdb in Emacs.
1273 case $srcdir in
1274 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275 esac
1276 for ac_var in $ac_precious_vars; do
1277 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_env_${ac_var}_value=\$${ac_var}
1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281 done
1282
1283 #
1284 # Report the --help message.
1285 #
1286 if test "$ac_init_help" = "long"; then
1287 # Omit some internal or obsolete options to make the list less imposing.
1288 # This message is too long to be a string in the A/UX 3.1 sh.
1289 cat <<_ACEOF
1290 \`configure' configures dfu-util 0.11 to adapt to many kinds of systems.
1291
1292 Usage: $0 [OPTION]... [VAR=VALUE]...
1293
1294 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295 VAR=VALUE. See below for descriptions of some of the useful variables.
1296
1297 Defaults for the options are specified in brackets.
1298
1299 Configuration:
1300 -h, --help display this help and exit
1301 --help=short display options specific to this package
1302 --help=recursive display the short help of all the included packages
1303 -V, --version display version information and exit
1304 -q, --quiet, --silent do not print \`checking ...' messages
1305 --cache-file=FILE cache test results in FILE [disabled]
1306 -C, --config-cache alias for \`--cache-file=config.cache'
1307 -n, --no-create do not create output files
1308 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309
1310 Installation directories:
1311 --prefix=PREFIX install architecture-independent files in PREFIX
1312 [$ac_default_prefix]
1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1314 [PREFIX]
1315
1316 By default, \`make install' will install all the files in
1317 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1318 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319 for instance \`--prefix=\$HOME'.
1320
1321 For better control, use the options below.
1322
1323 Fine tuning of the installation directories:
1324 --bindir=DIR user executables [EPREFIX/bin]
1325 --sbindir=DIR system admin executables [EPREFIX/sbin]
1326 --libexecdir=DIR program executables [EPREFIX/libexec]
1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1330 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1331 --libdir=DIR object code libraries [EPREFIX/lib]
1332 --includedir=DIR C header files [PREFIX/include]
1333 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1336 --infodir=DIR info documentation [DATAROOTDIR/info]
1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1338 --mandir=DIR man documentation [DATAROOTDIR/man]
1339 --docdir=DIR documentation root [DATAROOTDIR/doc/dfu-util]
1340 --htmldir=DIR html documentation [DOCDIR]
1341 --dvidir=DIR dvi documentation [DOCDIR]
1342 --pdfdir=DIR pdf documentation [DOCDIR]
1343 --psdir=DIR ps documentation [DOCDIR]
1344 _ACEOF
1345
1346 cat <<\_ACEOF
1347
1348 Program names:
1349 --program-prefix=PREFIX prepend PREFIX to installed program names
1350 --program-suffix=SUFFIX append SUFFIX to installed program names
1351 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1352 _ACEOF
1353 fi
1354
1355 if test -n "$ac_init_help"; then
1356 case $ac_init_help in
1357 short | recursive ) echo "Configuration of dfu-util 0.11:";;
1358 esac
1359 cat <<\_ACEOF
1360
1361 Optional Features:
1362 --disable-option-checking ignore unrecognized --enable/--with options
1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1365 --enable-silent-rules less verbose build output (undo: "make V=1")
1366 --disable-silent-rules verbose build output (undo: "make V=0")
1367 --enable-dependency-tracking
1368 do not reject slow dependency extractors
1369 --disable-dependency-tracking
1370 speeds up one-time build
1371 --disable-largefile omit support for large files
1372
1373 Some influential environment variables:
1374 CC C compiler command
1375 CFLAGS C compiler flags
1376 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1377 nonstandard directory <lib dir>
1378 LIBS libraries to pass to the linker, e.g. -l<library>
1379 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1380 you have headers in a nonstandard directory <include dir>
1381 PKG_CONFIG path to pkg-config utility
1382 PKG_CONFIG_PATH
1383 directories to add to pkg-config's search path
1384 PKG_CONFIG_LIBDIR
1385 path overriding pkg-config's built-in search path
1386 USB_CFLAGS C compiler flags for USB, overriding pkg-config
1387 USB_LIBS linker flags for USB, overriding pkg-config
1388 CPP C preprocessor
1389
1390 Use these variables to override the choices made by `configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1392
1393 Report bugs to <http://sourceforge.net/p/dfu-util/tickets/>.
1394 dfu-util home page: <http://dfu-util.sourceforge.net>.
1395 _ACEOF
1396 ac_status=$?
1397 fi
1398
1399 if test "$ac_init_help" = "recursive"; then
1400 # If there are subdirs, report their specific --help.
1401 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1402 test -d "$ac_dir" ||
1403 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1404 continue
1405 ac_builddir=.
1406
1407 case "$ac_dir" in
1408 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1409 *)
1410 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1411 # A ".." for each directory in $ac_dir_suffix.
1412 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1413 case $ac_top_builddir_sub in
1414 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1416 esac ;;
1417 esac
1418 ac_abs_top_builddir=$ac_pwd
1419 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1420 # for backward compatibility:
1421 ac_top_builddir=$ac_top_build_prefix
1422
1423 case $srcdir in
1424 .) # We are building in place.
1425 ac_srcdir=.
1426 ac_top_srcdir=$ac_top_builddir_sub
1427 ac_abs_top_srcdir=$ac_pwd ;;
1428 [\\/]* | ?:[\\/]* ) # Absolute name.
1429 ac_srcdir=$srcdir$ac_dir_suffix;
1430 ac_top_srcdir=$srcdir
1431 ac_abs_top_srcdir=$srcdir ;;
1432 *) # Relative name.
1433 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1434 ac_top_srcdir=$ac_top_build_prefix$srcdir
1435 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1436 esac
1437 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1438
1439 cd "$ac_dir" || { ac_status=$?; continue; }
1440 # Check for guested configure.
1441 if test -f "$ac_srcdir/configure.gnu"; then
1442 echo &&
1443 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1444 elif test -f "$ac_srcdir/configure"; then
1445 echo &&
1446 $SHELL "$ac_srcdir/configure" --help=recursive
1447 else
1448 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1449 fi || ac_status=$?
1450 cd "$ac_pwd" || { ac_status=$?; break; }
1451 done
1452 fi
1453
1454 test -n "$ac_init_help" && exit $ac_status
1455 if $ac_init_version; then
1456 cat <<\_ACEOF
1457 dfu-util configure 0.11
1458 generated by GNU Autoconf 2.69
1459
1460 Copyright (C) 2012 Free Software Foundation, Inc.
1461 This configure script is free software; the Free Software Foundation
1462 gives unlimited permission to copy, distribute and modify it.
1463 _ACEOF
1464 exit
1465 fi
1466
1467 ## ------------------------ ##
1468 ## Autoconf initialization. ##
1469 ## ------------------------ ##
1470
1471 # ac_fn_c_try_compile LINENO
1472 # --------------------------
1473 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1474 ac_fn_c_try_compile ()
1475 {
1476 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1477 rm -f conftest.$ac_objext
1478 if { { ac_try="$ac_compile"
1479 case "(($ac_try" in
1480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1481 *) ac_try_echo=$ac_try;;
1482 esac
1483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1484 $as_echo "$ac_try_echo"; } >&5
1485 (eval "$ac_compile") 2>conftest.err
1486 ac_status=$?
1487 if test -s conftest.err; then
1488 grep -v '^ *+' conftest.err >conftest.er1
1489 cat conftest.er1 >&5
1490 mv -f conftest.er1 conftest.err
1491 fi
1492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1493 test $ac_status = 0; } && {
1494 test -z "$ac_c_werror_flag" ||
1495 test ! -s conftest.err
1496 } && test -s conftest.$ac_objext; then :
1497 ac_retval=0
1498 else
1499 $as_echo "$as_me: failed program was:" >&5
1500 sed 's/^/| /' conftest.$ac_ext >&5
1501
1502 ac_retval=1
1503 fi
1504 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1505 as_fn_set_status $ac_retval
1506
1507 } # ac_fn_c_try_compile
1508
1509 # ac_fn_c_try_link LINENO
1510 # -----------------------
1511 # Try to link conftest.$ac_ext, and return whether this succeeded.
1512 ac_fn_c_try_link ()
1513 {
1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515 rm -f conftest.$ac_objext conftest$ac_exeext
1516 if { { ac_try="$ac_link"
1517 case "(($ac_try" in
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1520 esac
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_link") 2>conftest.err
1524 ac_status=$?
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1529 fi
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } && {
1532 test -z "$ac_c_werror_flag" ||
1533 test ! -s conftest.err
1534 } && test -s conftest$ac_exeext && {
1535 test "$cross_compiling" = yes ||
1536 test -x conftest$ac_exeext
1537 }; then :
1538 ac_retval=0
1539 else
1540 $as_echo "$as_me: failed program was:" >&5
1541 sed 's/^/| /' conftest.$ac_ext >&5
1542
1543 ac_retval=1
1544 fi
1545 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1546 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1547 # interfere with the next link command; also delete a directory that is
1548 # left behind by Apple's compiler. We do this before executing the actions.
1549 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551 as_fn_set_status $ac_retval
1552
1553 } # ac_fn_c_try_link
1554
1555 # ac_fn_c_try_cpp LINENO
1556 # ----------------------
1557 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_cpp ()
1559 {
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 if { { ac_try="$ac_cpp conftest.$ac_ext"
1562 case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565 esac
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1574 fi
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } > conftest.i && {
1577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 }; then :
1580 ac_retval=0
1581 else
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1584
1585 ac_retval=1
1586 fi
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1589
1590 } # ac_fn_c_try_cpp
1591
1592 # ac_fn_c_try_run LINENO
1593 # ----------------------
1594 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1595 # that executables *can* be run.
1596 ac_fn_c_try_run ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 if { { ac_try="$ac_link"
1600 case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_link") 2>&5
1607 ac_status=$?
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1610 { { case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_try") 2>&5
1617 ac_status=$?
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; }; }; then :
1620 ac_retval=0
1621 else
1622 $as_echo "$as_me: program exited with status $ac_status" >&5
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=$ac_status
1627 fi
1628 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status $ac_retval
1631
1632 } # ac_fn_c_try_run
1633
1634 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1635 # -------------------------------------------------------
1636 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1637 # the include files in INCLUDES and setting the cache variable VAR
1638 # accordingly.
1639 ac_fn_c_check_header_mongrel ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if eval \${$3+:} false; then :
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if eval \${$3+:} false; then :
1646 $as_echo_n "(cached) " >&6
1647 fi
1648 eval ac_res=\$$3
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650 $as_echo "$ac_res" >&6; }
1651 else
1652 # Is the header compilable?
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1654 $as_echo_n "checking $2 usability... " >&6; }
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1657 $4
1658 #include <$2>
1659 _ACEOF
1660 if ac_fn_c_try_compile "$LINENO"; then :
1661 ac_header_compiler=yes
1662 else
1663 ac_header_compiler=no
1664 fi
1665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1667 $as_echo "$ac_header_compiler" >&6; }
1668
1669 # Is the header present?
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1671 $as_echo_n "checking $2 presence... " >&6; }
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1674 #include <$2>
1675 _ACEOF
1676 if ac_fn_c_try_cpp "$LINENO"; then :
1677 ac_header_preproc=yes
1678 else
1679 ac_header_preproc=no
1680 fi
1681 rm -f conftest.err conftest.i conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1683 $as_echo "$ac_header_preproc" >&6; }
1684
1685 # So? What about this header?
1686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1687 yes:no: )
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1689 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1691 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1692 ;;
1693 no:yes:* )
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1695 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1697 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1699 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1701 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1703 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1704 ( $as_echo "## --------------------------------------------------------- ##
1705 ## Report this to http://sourceforge.net/p/dfu-util/tickets/ ##
1706 ## --------------------------------------------------------- ##"
1707 ) | sed "s/^/$as_me: WARNING: /" >&2
1708 ;;
1709 esac
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1714 else
1715 eval "$3=\$ac_header_compiler"
1716 fi
1717 eval ac_res=\$$3
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1720 fi
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722
1723 } # ac_fn_c_check_header_mongrel
1724
1725 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists and can be compiled using the include files in
1728 # INCLUDES, setting the cache variable VAR accordingly.
1729 ac_fn_c_check_header_compile ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \${$3+:} false; then :
1735 $as_echo_n "(cached) " >&6
1736 else
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1739 $4
1740 #include <$2>
1741 _ACEOF
1742 if ac_fn_c_try_compile "$LINENO"; then :
1743 eval "$3=yes"
1744 else
1745 eval "$3=no"
1746 fi
1747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1748 fi
1749 eval ac_res=\$$3
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754 } # ac_fn_c_check_header_compile
1755
1756 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1757 # -------------------------------------------
1758 # Tests whether TYPE exists after having included INCLUDES, setting cache
1759 # variable VAR accordingly.
1760 ac_fn_c_check_type ()
1761 {
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1767 else
1768 eval "$3=no"
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1771 $4
1772 int
1773 main ()
1774 {
1775 if (sizeof ($2))
1776 return 0;
1777 ;
1778 return 0;
1779 }
1780 _ACEOF
1781 if ac_fn_c_try_compile "$LINENO"; then :
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 $4
1785 int
1786 main ()
1787 {
1788 if (sizeof (($2)))
1789 return 0;
1790 ;
1791 return 0;
1792 }
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795
1796 else
1797 eval "$3=yes"
1798 fi
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 fi
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 fi
1803 eval ac_res=\$$3
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807
1808 } # ac_fn_c_check_type
1809
1810 # ac_fn_c_check_func LINENO FUNC VAR
1811 # ----------------------------------
1812 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1813 ac_fn_c_check_func ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval \${$3+:} false; then :
1819 $as_echo_n "(cached) " >&6
1820 else
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1825 #define $2 innocuous_$2
1826
1827 /* System header to define __stub macros and hopefully few prototypes,
1828 which can conflict with char $2 (); below.
1829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1830 <limits.h> exists even on freestanding compilers. */
1831
1832 #ifdef __STDC__
1833 # include <limits.h>
1834 #else
1835 # include <assert.h>
1836 #endif
1837
1838 #undef $2
1839
1840 /* Override any GCC internal prototype to avoid an error.
1841 Use char because int might match the return type of a GCC
1842 builtin and then its argument prototype would still apply. */
1843 #ifdef __cplusplus
1844 extern "C"
1845 #endif
1846 char $2 ();
1847 /* The GNU C library defines this for functions which it implements
1848 to always fail with ENOSYS. Some functions are actually named
1849 something starting with __ and the normal name is an alias. */
1850 #if defined __stub_$2 || defined __stub___$2
1851 choke me
1852 #endif
1853
1854 int
1855 main ()
1856 {
1857 return $2 ();
1858 ;
1859 return 0;
1860 }
1861 _ACEOF
1862 if ac_fn_c_try_link "$LINENO"; then :
1863 eval "$3=yes"
1864 else
1865 eval "$3=no"
1866 fi
1867 rm -f core conftest.err conftest.$ac_objext \
1868 conftest$ac_exeext conftest.$ac_ext
1869 fi
1870 eval ac_res=\$$3
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874
1875 } # ac_fn_c_check_func
1876 cat >config.log <<_ACEOF
1877 This file contains any messages produced by compilers while
1878 running configure, to aid debugging if configure makes a mistake.
1879
1880 It was created by dfu-util $as_me 0.11, which was
1881 generated by GNU Autoconf 2.69. Invocation command line was
1882
1883 $ $0 $@
1884
1885 _ACEOF
1886 exec 5>>config.log
1887 {
1888 cat <<_ASUNAME
1889 ## --------- ##
1890 ## Platform. ##
1891 ## --------- ##
1892
1893 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1894 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1895 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1896 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1897 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1898
1899 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1900 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1901
1902 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1903 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1904 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1905 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1906 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1907 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1908 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1909
1910 _ASUNAME
1911
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 $as_echo "PATH: $as_dir"
1918 done
1919 IFS=$as_save_IFS
1920
1921 } >&5
1922
1923 cat >&5 <<_ACEOF
1924
1925
1926 ## ----------- ##
1927 ## Core tests. ##
1928 ## ----------- ##
1929
1930 _ACEOF
1931
1932
1933 # Keep a trace of the command line.
1934 # Strip out --no-create and --no-recursion so they do not pile up.
1935 # Strip out --silent because we don't want to record it for future runs.
1936 # Also quote any args containing shell meta-characters.
1937 # Make two passes to allow for proper duplicate-argument suppression.
1938 ac_configure_args=
1939 ac_configure_args0=
1940 ac_configure_args1=
1941 ac_must_keep_next=false
1942 for ac_pass in 1 2
1943 do
1944 for ac_arg
1945 do
1946 case $ac_arg in
1947 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1949 | -silent | --silent | --silen | --sile | --sil)
1950 continue ;;
1951 *\'*)
1952 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1953 esac
1954 case $ac_pass in
1955 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1956 2)
1957 as_fn_append ac_configure_args1 " '$ac_arg'"
1958 if test $ac_must_keep_next = true; then
1959 ac_must_keep_next=false # Got value, back to normal.
1960 else
1961 case $ac_arg in
1962 *=* | --config-cache | -C | -disable-* | --disable-* \
1963 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1964 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1965 | -with-* | --with-* | -without-* | --without-* | --x)
1966 case "$ac_configure_args0 " in
1967 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1968 esac
1969 ;;
1970 -* ) ac_must_keep_next=true ;;
1971 esac
1972 fi
1973 as_fn_append ac_configure_args " '$ac_arg'"
1974 ;;
1975 esac
1976 done
1977 done
1978 { ac_configure_args0=; unset ac_configure_args0;}
1979 { ac_configure_args1=; unset ac_configure_args1;}
1980
1981 # When interrupted or exit'd, cleanup temporary files, and complete
1982 # config.log. We remove comments because anyway the quotes in there
1983 # would cause problems or look ugly.
1984 # WARNING: Use '\'' to represent an apostrophe within the trap.
1985 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1986 trap 'exit_status=$?
1987 # Save into config.log some information that might help in debugging.
1988 {
1989 echo
1990
1991 $as_echo "## ---------------- ##
1992 ## Cache variables. ##
1993 ## ---------------- ##"
1994 echo
1995 # The following way of writing the cache mishandles newlines in values,
1996 (
1997 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1998 eval ac_val=\$$ac_var
1999 case $ac_val in #(
2000 *${as_nl}*)
2001 case $ac_var in #(
2002 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2003 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2004 esac
2005 case $ac_var in #(
2006 _ | IFS | as_nl) ;; #(
2007 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2008 *) { eval $ac_var=; unset $ac_var;} ;;
2009 esac ;;
2010 esac
2011 done
2012 (set) 2>&1 |
2013 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2014 *${as_nl}ac_space=\ *)
2015 sed -n \
2016 "s/'\''/'\''\\\\'\'''\''/g;
2017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2018 ;; #(
2019 *)
2020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2021 ;;
2022 esac |
2023 sort
2024 )
2025 echo
2026
2027 $as_echo "## ----------------- ##
2028 ## Output variables. ##
2029 ## ----------------- ##"
2030 echo
2031 for ac_var in $ac_subst_vars
2032 do
2033 eval ac_val=\$$ac_var
2034 case $ac_val in
2035 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036 esac
2037 $as_echo "$ac_var='\''$ac_val'\''"
2038 done | sort
2039 echo
2040
2041 if test -n "$ac_subst_files"; then
2042 $as_echo "## ------------------- ##
2043 ## File substitutions. ##
2044 ## ------------------- ##"
2045 echo
2046 for ac_var in $ac_subst_files
2047 do
2048 eval ac_val=\$$ac_var
2049 case $ac_val in
2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051 esac
2052 $as_echo "$ac_var='\''$ac_val'\''"
2053 done | sort
2054 echo
2055 fi
2056
2057 if test -s confdefs.h; then
2058 $as_echo "## ----------- ##
2059 ## confdefs.h. ##
2060 ## ----------- ##"
2061 echo
2062 cat confdefs.h
2063 echo
2064 fi
2065 test "$ac_signal" != 0 &&
2066 $as_echo "$as_me: caught signal $ac_signal"
2067 $as_echo "$as_me: exit $exit_status"
2068 } >&5
2069 rm -f core *.core core.conftest.* &&
2070 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2071 exit $exit_status
2072 ' 0
2073 for ac_signal in 1 2 13 15; do
2074 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2075 done
2076 ac_signal=0
2077
2078 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2079 rm -f -r conftest* confdefs.h
2080
2081 $as_echo "/* confdefs.h */" > confdefs.h
2082
2083 # Predefined preprocessor variables.
2084
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_NAME "$PACKAGE_NAME"
2087 _ACEOF
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2091 _ACEOF
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2095 _ACEOF
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_STRING "$PACKAGE_STRING"
2099 _ACEOF
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_URL "$PACKAGE_URL"
2107 _ACEOF
2108
2109
2110 # Let the site file select an alternate cache file if it wants to.
2111 # Prefer an explicitly selected file to automatically selected ones.
2112 ac_site_file1=NONE
2113 ac_site_file2=NONE
2114 if test -n "$CONFIG_SITE"; then
2115 # We do not want a PATH search for config.site.
2116 case $CONFIG_SITE in #((
2117 -*) ac_site_file1=./$CONFIG_SITE;;
2118 */*) ac_site_file1=$CONFIG_SITE;;
2119 *) ac_site_file1=./$CONFIG_SITE;;
2120 esac
2121 elif test "x$prefix" != xNONE; then
2122 ac_site_file1=$prefix/share/config.site
2123 ac_site_file2=$prefix/etc/config.site
2124 else
2125 ac_site_file1=$ac_default_prefix/share/config.site
2126 ac_site_file2=$ac_default_prefix/etc/config.site
2127 fi
2128 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2129 do
2130 test "x$ac_site_file" = xNONE && continue
2131 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2133 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2134 sed 's/^/| /' "$ac_site_file" >&5
2135 . "$ac_site_file" \
2136 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2138 as_fn_error $? "failed to load site script $ac_site_file
2139 See \`config.log' for more details" "$LINENO" 5; }
2140 fi
2141 done
2142
2143 if test -r "$cache_file"; then
2144 # Some versions of bash will fail to source /dev/null (special files
2145 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2146 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2148 $as_echo "$as_me: loading cache $cache_file" >&6;}
2149 case $cache_file in
2150 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2151 *) . "./$cache_file";;
2152 esac
2153 fi
2154 else
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2156 $as_echo "$as_me: creating cache $cache_file" >&6;}
2157 >$cache_file
2158 fi
2159
2160 # Check that the precious variables saved in the cache have kept the same
2161 # value.
2162 ac_cache_corrupted=false
2163 for ac_var in $ac_precious_vars; do
2164 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2165 eval ac_new_set=\$ac_env_${ac_var}_set
2166 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2167 eval ac_new_val=\$ac_env_${ac_var}_value
2168 case $ac_old_set,$ac_new_set in
2169 set,)
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2171 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2172 ac_cache_corrupted=: ;;
2173 ,set)
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2176 ac_cache_corrupted=: ;;
2177 ,);;
2178 *)
2179 if test "x$ac_old_val" != "x$ac_new_val"; then
2180 # differences in whitespace do not lead to failure.
2181 ac_old_val_w=`echo x $ac_old_val`
2182 ac_new_val_w=`echo x $ac_new_val`
2183 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2185 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2186 ac_cache_corrupted=:
2187 else
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2189 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2190 eval $ac_var=\$ac_old_val
2191 fi
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2193 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2195 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2196 fi;;
2197 esac
2198 # Pass precious variables to config.status.
2199 if test "$ac_new_set" = set; then
2200 case $ac_new_val in
2201 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2202 *) ac_arg=$ac_var=$ac_new_val ;;
2203 esac
2204 case " $ac_configure_args " in
2205 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2206 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2207 esac
2208 fi
2209 done
2210 if $ac_cache_corrupted; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2214 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2215 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2216 fi
2217 ## -------------------- ##
2218 ## Main body of script. ##
2219 ## -------------------- ##
2220
2221 ac_ext=c
2222 ac_cpp='$CPP $CPPFLAGS'
2223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2226
2227
2228 ac_aux_dir=
2229 for ac_dir in m4 "$srcdir"/m4; do
2230 if test -f "$ac_dir/install-sh"; then
2231 ac_aux_dir=$ac_dir
2232 ac_install_sh="$ac_aux_dir/install-sh -c"
2233 break
2234 elif test -f "$ac_dir/install.sh"; then
2235 ac_aux_dir=$ac_dir
2236 ac_install_sh="$ac_aux_dir/install.sh -c"
2237 break
2238 elif test -f "$ac_dir/shtool"; then
2239 ac_aux_dir=$ac_dir
2240 ac_install_sh="$ac_aux_dir/shtool install -c"
2241 break
2242 fi
2243 done
2244 if test -z "$ac_aux_dir"; then
2245 as_fn_error $? "cannot find install-sh, install.sh, or shtool in m4 \"$srcdir\"/m4" "$LINENO" 5
2246 fi
2247
2248 # These three variables are undocumented and unsupported,
2249 # and are intended to be withdrawn in a future Autoconf release.
2250 # They can cause serious problems if a builder's source tree is in a directory
2251 # whose full name contains unusual characters.
2252 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2253 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2254 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2255
2256
2257 am__api_version='1.16'
2258
2259 # Find a good install program. We prefer a C program (faster),
2260 # so one script is as good as another. But avoid the broken or
2261 # incompatible versions:
2262 # SysV /etc/install, /usr/sbin/install
2263 # SunOS /usr/etc/install
2264 # IRIX /sbin/install
2265 # AIX /bin/install
2266 # AmigaOS /C/install, which installs bootblocks on floppy discs
2267 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2268 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2269 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2270 # OS/2's system install, which has a completely different semantic
2271 # ./install, which can be erroneously created by make from ./install.sh.
2272 # Reject install programs that cannot install multiple files.
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2274 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2275 if test -z "$INSTALL"; then
2276 if ${ac_cv_path_install+:} false; then :
2277 $as_echo_n "(cached) " >&6
2278 else
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2281 do
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 # Account for people who put trailing slashes in PATH elements.
2285 case $as_dir/ in #((
2286 ./ | .// | /[cC]/* | \
2287 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2288 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2289 /usr/ucb/* ) ;;
2290 *)
2291 # OSF1 and SCO ODT 3.0 have their own names for install.
2292 # Don't use installbsd from OSF since it installs stuff as root
2293 # by default.
2294 for ac_prog in ginstall scoinst install; do
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2297 if test $ac_prog = install &&
2298 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299 # AIX install. It has an incompatible calling convention.
2300 :
2301 elif test $ac_prog = install &&
2302 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2303 # program-specific install script used by HP pwplus--don't use.
2304 :
2305 else
2306 rm -rf conftest.one conftest.two conftest.dir
2307 echo one > conftest.one
2308 echo two > conftest.two
2309 mkdir conftest.dir
2310 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2311 test -s conftest.one && test -s conftest.two &&
2312 test -s conftest.dir/conftest.one &&
2313 test -s conftest.dir/conftest.two
2314 then
2315 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2316 break 3
2317 fi
2318 fi
2319 fi
2320 done
2321 done
2322 ;;
2323 esac
2324
2325 done
2326 IFS=$as_save_IFS
2327
2328 rm -rf conftest.one conftest.two conftest.dir
2329
2330 fi
2331 if test "${ac_cv_path_install+set}" = set; then
2332 INSTALL=$ac_cv_path_install
2333 else
2334 # As a last resort, use the slow shell script. Don't cache a
2335 # value for INSTALL within a source directory, because that will
2336 # break other packages using the cache if that directory is
2337 # removed, or if the value is a relative name.
2338 INSTALL=$ac_install_sh
2339 fi
2340 fi
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2342 $as_echo "$INSTALL" >&6; }
2343
2344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2345 # It thinks the first close brace ends the variable substitution.
2346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2347
2348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2349
2350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2351
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2353 $as_echo_n "checking whether build environment is sane... " >&6; }
2354 # Reject unsafe characters in $srcdir or the absolute working directory
2355 # name. Accept space and tab only in the latter.
2356 am_lf='
2357 '
2358 case `pwd` in
2359 *[\\\"\#\$\&\'\`$am_lf]*)
2360 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2361 esac
2362 case $srcdir in
2363 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2364 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2365 esac
2366
2367 # Do 'set' in a subshell so we don't clobber the current shell's
2368 # arguments. Must try -L first in case configure is actually a
2369 # symlink; some systems play weird games with the mod time of symlinks
2370 # (eg FreeBSD returns the mod time of the symlink's containing
2371 # directory).
2372 if (
2373 am_has_slept=no
2374 for am_try in 1 2; do
2375 echo "timestamp, slept: $am_has_slept" > conftest.file
2376 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2377 if test "$*" = "X"; then
2378 # -L didn't work.
2379 set X `ls -t "$srcdir/configure" conftest.file`
2380 fi
2381 if test "$*" != "X $srcdir/configure conftest.file" \
2382 && test "$*" != "X conftest.file $srcdir/configure"; then
2383
2384 # If neither matched, then we have a broken ls. This can happen
2385 # if, for instance, CONFIG_SHELL is bash and it inherits a
2386 # broken ls alias from the environment. This has actually
2387 # happened. Such a system could not be considered "sane".
2388 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2389 alias in your environment" "$LINENO" 5
2390 fi
2391 if test "$2" = conftest.file || test $am_try -eq 2; then
2392 break
2393 fi
2394 # Just in case.
2395 sleep 1
2396 am_has_slept=yes
2397 done
2398 test "$2" = conftest.file
2399 )
2400 then
2401 # Ok.
2402 :
2403 else
2404 as_fn_error $? "newly created file is older than distributed files!
2405 Check your system clock" "$LINENO" 5
2406 fi
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2408 $as_echo "yes" >&6; }
2409 # If we didn't sleep, we still need to ensure time stamps of config.status and
2410 # generated files are strictly newer.
2411 am_sleep_pid=
2412 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2413 ( sleep 1 ) &
2414 am_sleep_pid=$!
2415 fi
2416
2417 rm -f conftest.file
2418
2419 test "$program_prefix" != NONE &&
2420 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2421 # Use a double $ so make ignores it.
2422 test "$program_suffix" != NONE &&
2423 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2424 # Double any \ or $.
2425 # By default was `s,x,x', remove it if useless.
2426 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2427 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2428
2429 # Expand $ac_aux_dir to an absolute path.
2430 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2431
2432 if test x"${MISSING+set}" != xset; then
2433 case $am_aux_dir in
2434 *\ * | *\ *)
2435 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2436 *)
2437 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2438 esac
2439 fi
2440 # Use eval to expand $SHELL
2441 if eval "$MISSING --is-lightweight"; then
2442 am_missing_run="$MISSING "
2443 else
2444 am_missing_run=
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2446 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2447 fi
2448
2449 if test x"${install_sh+set}" != xset; then
2450 case $am_aux_dir in
2451 *\ * | *\ *)
2452 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2453 *)
2454 install_sh="\${SHELL} $am_aux_dir/install-sh"
2455 esac
2456 fi
2457
2458 # Installed binaries are usually stripped using 'strip' when the user
2459 # run "make install-strip". However 'strip' might not be the right
2460 # tool to use in cross-compilation environments, therefore Automake
2461 # will honor the 'STRIP' environment variable to overrule this program.
2462 if test "$cross_compiling" != no; then
2463 if test -n "$ac_tool_prefix"; then
2464 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2465 set dummy ${ac_tool_prefix}strip; ac_word=$2
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2467 $as_echo_n "checking for $ac_word... " >&6; }
2468 if ${ac_cv_prog_STRIP+:} false; then :
2469 $as_echo_n "(cached) " >&6
2470 else
2471 if test -n "$STRIP"; then
2472 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2476 do
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2481 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 break 2
2484 fi
2485 done
2486 done
2487 IFS=$as_save_IFS
2488
2489 fi
2490 fi
2491 STRIP=$ac_cv_prog_STRIP
2492 if test -n "$STRIP"; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2494 $as_echo "$STRIP" >&6; }
2495 else
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497 $as_echo "no" >&6; }
2498 fi
2499
2500
2501 fi
2502 if test -z "$ac_cv_prog_STRIP"; then
2503 ac_ct_STRIP=$STRIP
2504 # Extract the first word of "strip", so it can be a program name with args.
2505 set dummy strip; ac_word=$2
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507 $as_echo_n "checking for $ac_word... " >&6; }
2508 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2509 $as_echo_n "(cached) " >&6
2510 else
2511 if test -n "$ac_ct_STRIP"; then
2512 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2513 else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2516 do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2521 ac_cv_prog_ac_ct_STRIP="strip"
2522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 break 2
2524 fi
2525 done
2526 done
2527 IFS=$as_save_IFS
2528
2529 fi
2530 fi
2531 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2532 if test -n "$ac_ct_STRIP"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2534 $as_echo "$ac_ct_STRIP" >&6; }
2535 else
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537 $as_echo "no" >&6; }
2538 fi
2539
2540 if test "x$ac_ct_STRIP" = x; then
2541 STRIP=":"
2542 else
2543 case $cross_compiling:$ac_tool_warned in
2544 yes:)
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2547 ac_tool_warned=yes ;;
2548 esac
2549 STRIP=$ac_ct_STRIP
2550 fi
2551 else
2552 STRIP="$ac_cv_prog_STRIP"
2553 fi
2554
2555 fi
2556 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2557
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2559 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2560 if test -z "$MKDIR_P"; then
2561 if ${ac_cv_path_mkdir+:} false; then :
2562 $as_echo_n "(cached) " >&6
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2566 do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_prog in mkdir gmkdir; do
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2572 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2573 'mkdir (GNU coreutils) '* | \
2574 'mkdir (coreutils) '* | \
2575 'mkdir (fileutils) '4.1*)
2576 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2577 break 3;;
2578 esac
2579 done
2580 done
2581 done
2582 IFS=$as_save_IFS
2583
2584 fi
2585
2586 test -d ./--version && rmdir ./--version
2587 if test "${ac_cv_path_mkdir+set}" = set; then
2588 MKDIR_P="$ac_cv_path_mkdir -p"
2589 else
2590 # As a last resort, use the slow shell script. Don't cache a
2591 # value for MKDIR_P within a source directory, because that will
2592 # break other packages using the cache if that directory is
2593 # removed, or if the value is a relative name.
2594 MKDIR_P="$ac_install_sh -d"
2595 fi
2596 fi
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2598 $as_echo "$MKDIR_P" >&6; }
2599
2600 for ac_prog in gawk mawk nawk awk
2601 do
2602 # Extract the first word of "$ac_prog", so it can be a program name with args.
2603 set dummy $ac_prog; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if ${ac_cv_prog_AWK+:} false; then :
2607 $as_echo_n "(cached) " >&6
2608 else
2609 if test -n "$AWK"; then
2610 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619 ac_cv_prog_AWK="$ac_prog"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2622 fi
2623 done
2624 done
2625 IFS=$as_save_IFS
2626
2627 fi
2628 fi
2629 AWK=$ac_cv_prog_AWK
2630 if test -n "$AWK"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2632 $as_echo "$AWK" >&6; }
2633 else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2636 fi
2637
2638
2639 test -n "$AWK" && break
2640 done
2641
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2643 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2644 set x ${MAKE-make}
2645 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2646 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2647 $as_echo_n "(cached) " >&6
2648 else
2649 cat >conftest.make <<\_ACEOF
2650 SHELL = /bin/sh
2651 all:
2652 @echo '@@@%%%=$(MAKE)=@@@%%%'
2653 _ACEOF
2654 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2655 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2656 *@@@%%%=?*=@@@%%%*)
2657 eval ac_cv_prog_make_${ac_make}_set=yes;;
2658 *)
2659 eval ac_cv_prog_make_${ac_make}_set=no;;
2660 esac
2661 rm -f conftest.make
2662 fi
2663 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665 $as_echo "yes" >&6; }
2666 SET_MAKE=
2667 else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2670 SET_MAKE="MAKE=${MAKE-make}"
2671 fi
2672
2673 rm -rf .tst 2>/dev/null
2674 mkdir .tst 2>/dev/null
2675 if test -d .tst; then
2676 am__leading_dot=.
2677 else
2678 am__leading_dot=_
2679 fi
2680 rmdir .tst 2>/dev/null
2681
2682 # Check whether --enable-silent-rules was given.
2683 if test "${enable_silent_rules+set}" = set; then :
2684 enableval=$enable_silent_rules;
2685 fi
2686
2687 case $enable_silent_rules in # (((
2688 yes) AM_DEFAULT_VERBOSITY=0;;
2689 no) AM_DEFAULT_VERBOSITY=1;;
2690 *) AM_DEFAULT_VERBOSITY=1;;
2691 esac
2692 am_make=${MAKE-make}
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2694 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2695 if ${am_cv_make_support_nested_variables+:} false; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 if $as_echo 'TRUE=$(BAR$(V))
2699 BAR0=false
2700 BAR1=true
2701 V=1
2702 am__doit:
2703 @$(TRUE)
2704 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2705 am_cv_make_support_nested_variables=yes
2706 else
2707 am_cv_make_support_nested_variables=no
2708 fi
2709 fi
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2711 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2712 if test $am_cv_make_support_nested_variables = yes; then
2713 AM_V='$(V)'
2714 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2715 else
2716 AM_V=$AM_DEFAULT_VERBOSITY
2717 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2718 fi
2719 AM_BACKSLASH='\'
2720
2721 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2722 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2723 # is not polluted with repeated "-I."
2724 am__isrc=' -I$(srcdir)'
2725 # test to see if srcdir already configured
2726 if test -f $srcdir/config.status; then
2727 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2728 fi
2729 fi
2730
2731 # test whether we have cygpath
2732 if test -z "$CYGPATH_W"; then
2733 if (cygpath --version) >/dev/null 2>/dev/null; then
2734 CYGPATH_W='cygpath -w'
2735 else
2736 CYGPATH_W=echo
2737 fi
2738 fi
2739
2740
2741 # Define the identity of the package.
2742 PACKAGE='dfu-util'
2743 VERSION='0.11'
2744
2745
2746 cat >>confdefs.h <<_ACEOF
2747 #define PACKAGE "$PACKAGE"
2748 _ACEOF
2749
2750
2751 cat >>confdefs.h <<_ACEOF
2752 #define VERSION "$VERSION"
2753 _ACEOF
2754
2755 # Some tools Automake needs.
2756
2757 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2758
2759
2760 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2761
2762
2763 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2764
2765
2766 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2767
2768
2769 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2770
2771 # For better backward compatibility. To be removed once Automake 1.9.x
2772 # dies out for good. For more background, see:
2773 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2774 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2775 mkdir_p='$(MKDIR_P)'
2776
2777 # We need awk for the "check" target (and possibly the TAP driver). The
2778 # system "awk" is bad on some platforms.
2779 # Always define AMTAR for backward compatibility. Yes, it's still used
2780 # in the wild :-( We should find a proper way to deprecate it ...
2781 AMTAR='$${TAR-tar}'
2782
2783
2784 # We'll loop over all known methods to create a tar archive until one works.
2785 _am_tools='gnutar pax cpio none'
2786
2787 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2788
2789
2790
2791
2792
2793
2794 # POSIX will say in a future version that running "rm -f" with no argument
2795 # is OK; and we want to be able to make that assumption in our Makefile
2796 # recipes. So use an aggressive probe to check that the usage we want is
2797 # actually supported "in the wild" to an acceptable degree.
2798 # See automake bug#10828.
2799 # To make any issue more visible, cause the running configure to be aborted
2800 # by default if the 'rm' program in use doesn't match our expectations; the
2801 # user can still override this though.
2802 if rm -f && rm -fr && rm -rf; then : OK; else
2803 cat >&2 <<'END'
2804 Oops!
2805
2806 Your 'rm' program seems unable to run without file operands specified
2807 on the command line, even when the '-f' option is present. This is contrary
2808 to the behaviour of most rm programs out there, and not conforming with
2809 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2810
2811 Please tell [email protected] about your system, including the value
2812 of your $PATH and any error possibly output before this message. This
2813 can help us improve future automake versions.
2814
2815 END
2816 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2817 echo 'Configuration will proceed anyway, since you have set the' >&2
2818 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2819 echo >&2
2820 else
2821 cat >&2 <<'END'
2822 Aborting the configuration process, to ensure you take notice of the issue.
2823
2824 You can download and install GNU coreutils to get an 'rm' implementation
2825 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2826
2827 If you want to complete the configuration process using your problematic
2828 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2829 to "yes", and re-run configure.
2830
2831 END
2832 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2833 fi
2834 fi
2835
2836 ac_config_headers="$ac_config_headers config.h"
2837
2838
2839 # Test for new silent rules and enable only if they are available
2840 # Check whether --enable-silent-rules was given.
2841 if test "${enable_silent_rules+set}" = set; then :
2842 enableval=$enable_silent_rules;
2843 fi
2844
2845 case $enable_silent_rules in # (((
2846 yes) AM_DEFAULT_VERBOSITY=0;;
2847 no) AM_DEFAULT_VERBOSITY=1;;
2848 *) AM_DEFAULT_VERBOSITY=0;;
2849 esac
2850 am_make=${MAKE-make}
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2852 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2853 if ${am_cv_make_support_nested_variables+:} false; then :
2854 $as_echo_n "(cached) " >&6
2855 else
2856 if $as_echo 'TRUE=$(BAR$(V))
2857 BAR0=false
2858 BAR1=true
2859 V=1
2860 am__doit:
2861 @$(TRUE)
2862 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2863 am_cv_make_support_nested_variables=yes
2864 else
2865 am_cv_make_support_nested_variables=no
2866 fi
2867 fi
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2869 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2870 if test $am_cv_make_support_nested_variables = yes; then
2871 AM_V='$(V)'
2872 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2873 else
2874 AM_V=$AM_DEFAULT_VERBOSITY
2875 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2876 fi
2877 AM_BACKSLASH='\'
2878
2879
2880 # Checks for programs.
2881 ac_ext=c
2882 ac_cpp='$CPP $CPPFLAGS'
2883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2886 if test -n "$ac_tool_prefix"; then
2887 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2888 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 $as_echo_n "checking for $ac_word... " >&6; }
2891 if ${ac_cv_prog_CC+:} false; then :
2892 $as_echo_n "(cached) " >&6
2893 else
2894 if test -n "$CC"; then
2895 ac_cv_prog_CC="$CC" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2899 do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908 done
2909 done
2910 IFS=$as_save_IFS
2911
2912 fi
2913 fi
2914 CC=$ac_cv_prog_CC
2915 if test -n "$CC"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2917 $as_echo "$CC" >&6; }
2918 else
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2921 fi
2922
2923
2924 fi
2925 if test -z "$ac_cv_prog_CC"; then
2926 ac_ct_CC=$CC
2927 # Extract the first word of "gcc", so it can be a program name with args.
2928 set dummy gcc; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2932 $as_echo_n "(cached) " >&6
2933 else
2934 if test -n "$ac_ct_CC"; then
2935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 ac_cv_prog_ac_ct_CC="gcc"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2947 fi
2948 done
2949 done
2950 IFS=$as_save_IFS
2951
2952 fi
2953 fi
2954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2955 if test -n "$ac_ct_CC"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2957 $as_echo "$ac_ct_CC" >&6; }
2958 else
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2961 fi
2962
2963 if test "x$ac_ct_CC" = x; then
2964 CC=""
2965 else
2966 case $cross_compiling:$ac_tool_warned in
2967 yes:)
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2970 ac_tool_warned=yes ;;
2971 esac
2972 CC=$ac_ct_CC
2973 fi
2974 else
2975 CC="$ac_cv_prog_CC"
2976 fi
2977
2978 if test -z "$CC"; then
2979 if test -n "$ac_tool_prefix"; then
2980 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2981 set dummy ${ac_tool_prefix}cc; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_CC+:} false; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_CC="${ac_tool_prefix}cc"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 break 2
3000 fi
3001 done
3002 done
3003 IFS=$as_save_IFS
3004
3005 fi
3006 fi
3007 CC=$ac_cv_prog_CC
3008 if test -n "$CC"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3010 $as_echo "$CC" >&6; }
3011 else
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3014 fi
3015
3016
3017 fi
3018 fi
3019 if test -z "$CC"; then
3020 # Extract the first word of "cc", so it can be a program name with args.
3021 set dummy cc; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if ${ac_cv_prog_CC+:} false; then :
3025 $as_echo_n "(cached) " >&6
3026 else
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 else
3030 ac_prog_rejected=no
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3039 ac_prog_rejected=yes
3040 continue
3041 fi
3042 ac_cv_prog_CC="cc"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 if test $ac_prog_rejected = yes; then
3051 # We found a bogon in the path, so make sure we never use it.
3052 set dummy $ac_cv_prog_CC
3053 shift
3054 if test $# != 0; then
3055 # We chose a different compiler from the bogus one.
3056 # However, it has the same basename, so the bogon will be chosen
3057 # first if we set CC to just the basename; use the full file name.
3058 shift
3059 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3060 fi
3061 fi
3062 fi
3063 fi
3064 CC=$ac_cv_prog_CC
3065 if test -n "$CC"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
3068 else
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3071 fi
3072
3073
3074 fi
3075 if test -z "$CC"; then
3076 if test -n "$ac_tool_prefix"; then
3077 for ac_prog in cl.exe
3078 do
3079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if ${ac_cv_prog_CC+:} false; then :
3084 $as_echo_n "(cached) " >&6
3085 else
3086 if test -n "$CC"; then
3087 ac_cv_prog_CC="$CC" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3091 do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100 done
3101 done
3102 IFS=$as_save_IFS
3103
3104 fi
3105 fi
3106 CC=$ac_cv_prog_CC
3107 if test -n "$CC"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109 $as_echo "$CC" >&6; }
3110 else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3113 fi
3114
3115
3116 test -n "$CC" && break
3117 done
3118 fi
3119 if test -z "$CC"; then
3120 ac_ct_CC=$CC
3121 for ac_prog in cl.exe
3122 do
3123 # Extract the first word of "$ac_prog", so it can be a program name with args.
3124 set dummy $ac_prog; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3128 $as_echo_n "(cached) " >&6
3129 else
3130 if test -n "$ac_ct_CC"; then
3131 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3135 do
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140 ac_cv_prog_ac_ct_CC="$ac_prog"
3141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 break 2
3143 fi
3144 done
3145 done
3146 IFS=$as_save_IFS
3147
3148 fi
3149 fi
3150 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3151 if test -n "$ac_ct_CC"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3153 $as_echo "$ac_ct_CC" >&6; }
3154 else
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3157 fi
3158
3159
3160 test -n "$ac_ct_CC" && break
3161 done
3162
3163 if test "x$ac_ct_CC" = x; then
3164 CC=""
3165 else
3166 case $cross_compiling:$ac_tool_warned in
3167 yes:)
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3170 ac_tool_warned=yes ;;
3171 esac
3172 CC=$ac_ct_CC
3173 fi
3174 fi
3175
3176 fi
3177
3178
3179 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181 as_fn_error $? "no acceptable C compiler found in \$PATH
3182 See \`config.log' for more details" "$LINENO" 5; }
3183
3184 # Provide some information about the compiler.
3185 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3186 set X $ac_compile
3187 ac_compiler=$2
3188 for ac_option in --version -v -V -qversion; do
3189 { { ac_try="$ac_compiler $ac_option >&5"
3190 case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3197 ac_status=$?
3198 if test -s conftest.err; then
3199 sed '10a\
3200 ... rest of stderr output deleted ...
3201 10q' conftest.err >conftest.er1
3202 cat conftest.er1 >&5
3203 fi
3204 rm -f conftest.er1 conftest.err
3205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 test $ac_status = 0; }
3207 done
3208
3209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210 /* end confdefs.h. */
3211
3212 int
3213 main ()
3214 {
3215
3216 ;
3217 return 0;
3218 }
3219 _ACEOF
3220 ac_clean_files_save=$ac_clean_files
3221 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3222 # Try to create an executable without -o first, disregard a.out.
3223 # It will help us diagnose broken compilers, and finding out an intuition
3224 # of exeext.
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3226 $as_echo_n "checking whether the C compiler works... " >&6; }
3227 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3228
3229 # The possible output files:
3230 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3231
3232 ac_rmfiles=
3233 for ac_file in $ac_files
3234 do
3235 case $ac_file in
3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3237 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3238 esac
3239 done
3240 rm -f $ac_rmfiles
3241
3242 if { { ac_try="$ac_link_default"
3243 case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246 esac
3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 $as_echo "$ac_try_echo"; } >&5
3249 (eval "$ac_link_default") 2>&5
3250 ac_status=$?
3251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252 test $ac_status = 0; }; then :
3253 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3254 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3255 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3256 # so that the user can short-circuit this test for compilers unknown to
3257 # Autoconf.
3258 for ac_file in $ac_files ''
3259 do
3260 test -f "$ac_file" || continue
3261 case $ac_file in
3262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3263 ;;
3264 [ab].out )
3265 # We found the default executable, but exeext='' is most
3266 # certainly right.
3267 break;;
3268 *.* )
3269 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3270 then :; else
3271 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3272 fi
3273 # We set ac_cv_exeext here because the later test for it is not
3274 # safe: cross compilers may not add the suffix if given an `-o'
3275 # argument, so we may need to know it at that point already.
3276 # Even if this section looks crufty: it has the advantage of
3277 # actually working.
3278 break;;
3279 * )
3280 break;;
3281 esac
3282 done
3283 test "$ac_cv_exeext" = no && ac_cv_exeext=
3284
3285 else
3286 ac_file=''
3287 fi
3288 if test -z "$ac_file"; then :
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 $as_echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 as_fn_error 77 "C compiler cannot create executables
3297 See \`config.log' for more details" "$LINENO" 5; }
3298 else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3300 $as_echo "yes" >&6; }
3301 fi
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3303 $as_echo_n "checking for C compiler default output file name... " >&6; }
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3305 $as_echo "$ac_file" >&6; }
3306 ac_exeext=$ac_cv_exeext
3307
3308 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3309 ac_clean_files=$ac_clean_files_save
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3311 $as_echo_n "checking for suffix of executables... " >&6; }
3312 if { { ac_try="$ac_link"
3313 case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316 esac
3317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318 $as_echo "$ac_try_echo"; } >&5
3319 (eval "$ac_link") 2>&5
3320 ac_status=$?
3321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322 test $ac_status = 0; }; then :
3323 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3324 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3325 # work properly (i.e., refer to `conftest.exe'), while it won't with
3326 # `rm'.
3327 for ac_file in conftest.exe conftest conftest.*; do
3328 test -f "$ac_file" || continue
3329 case $ac_file in
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3331 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332 break;;
3333 * ) break;;
3334 esac
3335 done
3336 else
3337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3340 See \`config.log' for more details" "$LINENO" 5; }
3341 fi
3342 rm -f conftest conftest$ac_cv_exeext
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3344 $as_echo "$ac_cv_exeext" >&6; }
3345
3346 rm -f conftest.$ac_ext
3347 EXEEXT=$ac_cv_exeext
3348 ac_exeext=$EXEEXT
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3351 #include <stdio.h>
3352 int
3353 main ()
3354 {
3355 FILE *f = fopen ("conftest.out", "w");
3356 return ferror (f) || fclose (f) != 0;
3357
3358 ;
3359 return 0;
3360 }
3361 _ACEOF
3362 ac_clean_files="$ac_clean_files conftest.out"
3363 # Check that the compiler produces executables we can run. If not, either
3364 # the compiler is broken, or we cross compile.
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3366 $as_echo_n "checking whether we are cross compiling... " >&6; }
3367 if test "$cross_compiling" != yes; then
3368 { { ac_try="$ac_link"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_link") 2>&5
3376 ac_status=$?
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }
3379 if { ac_try='./conftest$ac_cv_exeext'
3380 { { case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385 $as_echo "$ac_try_echo"; } >&5
3386 (eval "$ac_try") 2>&5
3387 ac_status=$?
3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }; }; then
3390 cross_compiling=no
3391 else
3392 if test "$cross_compiling" = maybe; then
3393 cross_compiling=yes
3394 else
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error $? "cannot run C compiled programs.
3398 If you meant to cross compile, use \`--host'.
3399 See \`config.log' for more details" "$LINENO" 5; }
3400 fi
3401 fi
3402 fi
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3404 $as_echo "$cross_compiling" >&6; }
3405
3406 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3407 ac_clean_files=$ac_clean_files_save
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3409 $as_echo_n "checking for suffix of object files... " >&6; }
3410 if ${ac_cv_objext+:} false; then :
3411 $as_echo_n "(cached) " >&6
3412 else
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3415
3416 int
3417 main ()
3418 {
3419
3420 ;
3421 return 0;
3422 }
3423 _ACEOF
3424 rm -f conftest.o conftest.obj
3425 if { { ac_try="$ac_compile"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432 (eval "$ac_compile") 2>&5
3433 ac_status=$?
3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }; then :
3436 for ac_file in conftest.o conftest.obj conftest.*; do
3437 test -f "$ac_file" || continue;
3438 case $ac_file in
3439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3440 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3441 break;;
3442 esac
3443 done
3444 else
3445 $as_echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 as_fn_error $? "cannot compute suffix of object files: cannot compile
3451 See \`config.log' for more details" "$LINENO" 5; }
3452 fi
3453 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3454 fi
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3456 $as_echo "$ac_cv_objext" >&6; }
3457 OBJEXT=$ac_cv_objext
3458 ac_objext=$OBJEXT
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3460 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3461 if ${ac_cv_c_compiler_gnu+:} false; then :
3462 $as_echo_n "(cached) " >&6
3463 else
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3466
3467 int
3468 main ()
3469 {
3470 #ifndef __GNUC__
3471 choke me
3472 #endif
3473
3474 ;
3475 return 0;
3476 }
3477 _ACEOF
3478 if ac_fn_c_try_compile "$LINENO"; then :
3479 ac_compiler_gnu=yes
3480 else
3481 ac_compiler_gnu=no
3482 fi
3483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3484 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3485
3486 fi
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3488 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3489 if test $ac_compiler_gnu = yes; then
3490 GCC=yes
3491 else
3492 GCC=
3493 fi
3494 ac_test_CFLAGS=${CFLAGS+set}
3495 ac_save_CFLAGS=$CFLAGS
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3497 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3498 if ${ac_cv_prog_cc_g+:} false; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 ac_save_c_werror_flag=$ac_c_werror_flag
3502 ac_c_werror_flag=yes
3503 ac_cv_prog_cc_g=no
3504 CFLAGS="-g"
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3507
3508 int
3509 main ()
3510 {
3511
3512 ;
3513 return 0;
3514 }
3515 _ACEOF
3516 if ac_fn_c_try_compile "$LINENO"; then :
3517 ac_cv_prog_cc_g=yes
3518 else
3519 CFLAGS=""
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3522
3523 int
3524 main ()
3525 {
3526
3527 ;
3528 return 0;
3529 }
3530 _ACEOF
3531 if ac_fn_c_try_compile "$LINENO"; then :
3532
3533 else
3534 ac_c_werror_flag=$ac_save_c_werror_flag
3535 CFLAGS="-g"
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3538
3539 int
3540 main ()
3541 {
3542
3543 ;
3544 return 0;
3545 }
3546 _ACEOF
3547 if ac_fn_c_try_compile "$LINENO"; then :
3548 ac_cv_prog_cc_g=yes
3549 fi
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 fi
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 fi
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 ac_c_werror_flag=$ac_save_c_werror_flag
3556 fi
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3558 $as_echo "$ac_cv_prog_cc_g" >&6; }
3559 if test "$ac_test_CFLAGS" = set; then
3560 CFLAGS=$ac_save_CFLAGS
3561 elif test $ac_cv_prog_cc_g = yes; then
3562 if test "$GCC" = yes; then
3563 CFLAGS="-g -O2"
3564 else
3565 CFLAGS="-g"
3566 fi
3567 else
3568 if test "$GCC" = yes; then
3569 CFLAGS="-O2"
3570 else
3571 CFLAGS=
3572 fi
3573 fi
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3575 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3576 if ${ac_cv_prog_cc_c89+:} false; then :
3577 $as_echo_n "(cached) " >&6
3578 else
3579 ac_cv_prog_cc_c89=no
3580 ac_save_CC=$CC
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3583 #include <stdarg.h>
3584 #include <stdio.h>
3585 struct stat;
3586 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3587 struct buf { int x; };
3588 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3589 static char *e (p, i)
3590 char **p;
3591 int i;
3592 {
3593 return p[i];
3594 }
3595 static char *f (char * (*g) (char **, int), char **p, ...)
3596 {
3597 char *s;
3598 va_list v;
3599 va_start (v,p);
3600 s = g (p, va_arg (v,int));
3601 va_end (v);
3602 return s;
3603 }
3604
3605 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3606 function prototypes and stuff, but not '\xHH' hex character constants.
3607 These don't provoke an error unfortunately, instead are silently treated
3608 as 'x'. The following induces an error, until -std is added to get
3609 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3610 array size at least. It's necessary to write '\x00'==0 to get something
3611 that's true only with -std. */
3612 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3613
3614 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3615 inside strings and character constants. */
3616 #define FOO(x) 'x'
3617 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3618
3619 int test (int i, double x);
3620 struct s1 {int (*f) (int a);};
3621 struct s2 {int (*f) (double a);};
3622 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3623 int argc;
3624 char **argv;
3625 int
3626 main ()
3627 {
3628 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3629 ;
3630 return 0;
3631 }
3632 _ACEOF
3633 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3634 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3635 do
3636 CC="$ac_save_CC $ac_arg"
3637 if ac_fn_c_try_compile "$LINENO"; then :
3638 ac_cv_prog_cc_c89=$ac_arg
3639 fi
3640 rm -f core conftest.err conftest.$ac_objext
3641 test "x$ac_cv_prog_cc_c89" != "xno" && break
3642 done
3643 rm -f conftest.$ac_ext
3644 CC=$ac_save_CC
3645
3646 fi
3647 # AC_CACHE_VAL
3648 case "x$ac_cv_prog_cc_c89" in
3649 x)
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3651 $as_echo "none needed" >&6; } ;;
3652 xno)
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3654 $as_echo "unsupported" >&6; } ;;
3655 *)
3656 CC="$CC $ac_cv_prog_cc_c89"
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3658 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3659 esac
3660 if test "x$ac_cv_prog_cc_c89" != xno; then :
3661
3662 fi
3663
3664 ac_ext=c
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669
3670 ac_ext=c
3671 ac_cpp='$CPP $CPPFLAGS'
3672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3676 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3677 if ${am_cv_prog_cc_c_o+:} false; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3682
3683 int
3684 main ()
3685 {
3686
3687 ;
3688 return 0;
3689 }
3690 _ACEOF
3691 # Make sure it works both with $CC and with simple cc.
3692 # Following AC_PROG_CC_C_O, we do the test twice because some
3693 # compilers refuse to overwrite an existing .o file with -o,
3694 # though they will create one.
3695 am_cv_prog_cc_c_o=yes
3696 for am_i in 1 2; do
3697 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3698 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); } \
3702 && test -f conftest2.$ac_objext; then
3703 : OK
3704 else
3705 am_cv_prog_cc_c_o=no
3706 break
3707 fi
3708 done
3709 rm -f core conftest*
3710 unset am_i
3711 fi
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3713 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3714 if test "$am_cv_prog_cc_c_o" != yes; then
3715 # Losing compiler, so override with the script.
3716 # FIXME: It is wrong to rewrite CC.
3717 # But if we don't then we get into trouble of one sort or another.
3718 # A longer-term fix would be to have automake use am__CC in this case,
3719 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3720 CC="$am_aux_dir/compile $CC"
3721 fi
3722 ac_ext=c
3723 ac_cpp='$CPP $CPPFLAGS'
3724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727
3728 DEPDIR="${am__leading_dot}deps"
3729
3730 ac_config_commands="$ac_config_commands depfiles"
3731
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3733 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3734 cat > confinc.mk << 'END'
3735 am__doit:
3736 @echo this is the am__doit target >confinc.out
3737 .PHONY: am__doit
3738 END
3739 am__include="#"
3740 am__quote=
3741 # BSD make does it like this.
3742 echo '.include "confinc.mk" # ignored' > confmf.BSD
3743 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3744 echo 'include confinc.mk # ignored' > confmf.GNU
3745 _am_result=no
3746 for s in GNU BSD; do
3747 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3748 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3749 ac_status=$?
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }
3752 case $?:`cat confinc.out 2>/dev/null` in #(
3753 '0:this is the am__doit target') :
3754 case $s in #(
3755 BSD) :
3756 am__include='.include' am__quote='"' ;; #(
3757 *) :
3758 am__include='include' am__quote='' ;;
3759 esac ;; #(
3760 *) :
3761 ;;
3762 esac
3763 if test "$am__include" != "#"; then
3764 _am_result="yes ($s style)"
3765 break
3766 fi
3767 done
3768 rm -f confinc.* confmf.*
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3770 $as_echo "${_am_result}" >&6; }
3771
3772 # Check whether --enable-dependency-tracking was given.
3773 if test "${enable_dependency_tracking+set}" = set; then :
3774 enableval=$enable_dependency_tracking;
3775 fi
3776
3777 if test "x$enable_dependency_tracking" != xno; then
3778 am_depcomp="$ac_aux_dir/depcomp"
3779 AMDEPBACKSLASH='\'
3780 am__nodep='_no'
3781 fi
3782 if test "x$enable_dependency_tracking" != xno; then
3783 AMDEP_TRUE=
3784 AMDEP_FALSE='#'
3785 else
3786 AMDEP_TRUE='#'
3787 AMDEP_FALSE=
3788 fi
3789
3790
3791
3792 depcc="$CC" am_compiler_list=
3793
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3795 $as_echo_n "checking dependency style of $depcc... " >&6; }
3796 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3797 $as_echo_n "(cached) " >&6
3798 else
3799 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3800 # We make a subdir and do the tests there. Otherwise we can end up
3801 # making bogus files that we don't know about and never remove. For
3802 # instance it was reported that on HP-UX the gcc test will end up
3803 # making a dummy file named 'D' -- because '-MD' means "put the output
3804 # in D".
3805 rm -rf conftest.dir
3806 mkdir conftest.dir
3807 # Copy depcomp to subdir because otherwise we won't find it if we're
3808 # using a relative directory.
3809 cp "$am_depcomp" conftest.dir
3810 cd conftest.dir
3811 # We will build objects and dependencies in a subdirectory because
3812 # it helps to detect inapplicable dependency modes. For instance
3813 # both Tru64's cc and ICC support -MD to output dependencies as a
3814 # side effect of compilation, but ICC will put the dependencies in
3815 # the current directory while Tru64 will put them in the object
3816 # directory.
3817 mkdir sub
3818
3819 am_cv_CC_dependencies_compiler_type=none
3820 if test "$am_compiler_list" = ""; then
3821 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3822 fi
3823 am__universal=false
3824 case " $depcc " in #(
3825 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3826 esac
3827
3828 for depmode in $am_compiler_list; do
3829 # Setup a source with many dependencies, because some compilers
3830 # like to wrap large dependency lists on column 80 (with \), and
3831 # we should not choose a depcomp mode which is confused by this.
3832 #
3833 # We need to recreate these files for each test, as the compiler may
3834 # overwrite some of them when testing with obscure command lines.
3835 # This happens at least with the AIX C compiler.
3836 : > sub/conftest.c
3837 for i in 1 2 3 4 5 6; do
3838 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3839 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3840 # Solaris 10 /bin/sh.
3841 echo '/* dummy */' > sub/conftst$i.h
3842 done
3843 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3844
3845 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3846 # mode. It turns out that the SunPro C++ compiler does not properly
3847 # handle '-M -o', and we need to detect this. Also, some Intel
3848 # versions had trouble with output in subdirs.
3849 am__obj=sub/conftest.${OBJEXT-o}
3850 am__minus_obj="-o $am__obj"
3851 case $depmode in
3852 gcc)
3853 # This depmode causes a compiler race in universal mode.
3854 test "$am__universal" = false || continue
3855 ;;
3856 nosideeffect)
3857 # After this tag, mechanisms are not by side-effect, so they'll
3858 # only be used when explicitly requested.
3859 if test "x$enable_dependency_tracking" = xyes; then
3860 continue
3861 else
3862 break
3863 fi
3864 ;;
3865 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3866 # This compiler won't grok '-c -o', but also, the minuso test has
3867 # not run yet. These depmodes are late enough in the game, and
3868 # so weak that their functioning should not be impacted.
3869 am__obj=conftest.${OBJEXT-o}
3870 am__minus_obj=
3871 ;;
3872 none) break ;;
3873 esac
3874 if depmode=$depmode \
3875 source=sub/conftest.c object=$am__obj \
3876 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3877 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3878 >/dev/null 2>conftest.err &&
3879 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3880 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3881 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3882 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3883 # icc doesn't choke on unknown options, it will just issue warnings
3884 # or remarks (even with -Werror). So we grep stderr for any message
3885 # that says an option was ignored or not supported.
3886 # When given -MP, icc 7.0 and 7.1 complain thusly:
3887 # icc: Command line warning: ignoring option '-M'; no argument required
3888 # The diagnosis changed in icc 8.0:
3889 # icc: Command line remark: option '-MP' not supported
3890 if (grep 'ignoring option' conftest.err ||
3891 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3892 am_cv_CC_dependencies_compiler_type=$depmode
3893 break
3894 fi
3895 fi
3896 done
3897
3898 cd ..
3899 rm -rf conftest.dir
3900 else
3901 am_cv_CC_dependencies_compiler_type=none
3902 fi
3903
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3906 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3907 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3908
3909 if
3910 test "x$enable_dependency_tracking" != xno \
3911 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3912 am__fastdepCC_TRUE=
3913 am__fastdepCC_FALSE='#'
3914 else
3915 am__fastdepCC_TRUE='#'
3916 am__fastdepCC_FALSE=
3917 fi
3918
3919
3920
3921 # Checks for libraries.
3922 # On FreeBSD the libusb-1.0 is called libusb and resides in system location
3923
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -lusb" >&5
3925 $as_echo_n "checking for libusb_init in -lusb... " >&6; }
3926 if ${ac_cv_lib_usb_libusb_init+:} false; then :
3927 $as_echo_n "(cached) " >&6
3928 else
3929 ac_check_lib_save_LIBS=$LIBS
3930 LIBS="-lusb $LIBS"
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3933
3934 /* Override any GCC internal prototype to avoid an error.
3935 Use char because int might match the return type of a GCC
3936 builtin and then its argument prototype would still apply. */
3937 #ifdef __cplusplus
3938 extern "C"
3939 #endif
3940 char libusb_init ();
3941 int
3942 main ()
3943 {
3944 return libusb_init ();
3945 ;
3946 return 0;
3947 }
3948 _ACEOF
3949 if ac_fn_c_try_link "$LINENO"; then :
3950 ac_cv_lib_usb_libusb_init=yes
3951 else
3952 ac_cv_lib_usb_libusb_init=no
3953 fi
3954 rm -f core conftest.err conftest.$ac_objext \
3955 conftest$ac_exeext conftest.$ac_ext
3956 LIBS=$ac_check_lib_save_LIBS
3957 fi
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_libusb_init" >&5
3959 $as_echo "$ac_cv_lib_usb_libusb_init" >&6; }
3960 if test "x$ac_cv_lib_usb_libusb_init" = xyes; then :
3961 cat >>confdefs.h <<_ACEOF
3962 #define HAVE_LIBUSB 1
3963 _ACEOF
3964
3965 LIBS="-lusb $LIBS"
3966
3967 else
3968 native_libusb=no
3969 fi
3970
3971
3972
3973
3974
3975
3976
3977
3978 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3979 if test -n "$ac_tool_prefix"; then
3980 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3981 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983 $as_echo_n "checking for $ac_word... " >&6; }
3984 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3985 $as_echo_n "(cached) " >&6
3986 else
3987 case $PKG_CONFIG in
3988 [\\/]* | ?:[\\/]*)
3989 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3990 ;;
3991 *)
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH
3994 do
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3999 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4001 break 2
4002 fi
4003 done
4004 done
4005 IFS=$as_save_IFS
4006
4007 ;;
4008 esac
4009 fi
4010 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4011 if test -n "$PKG_CONFIG"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4013 $as_echo "$PKG_CONFIG" >&6; }
4014 else
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4017 fi
4018
4019
4020 fi
4021 if test -z "$ac_cv_path_PKG_CONFIG"; then
4022 ac_pt_PKG_CONFIG=$PKG_CONFIG
4023 # Extract the first word of "pkg-config", so it can be a program name with args.
4024 set dummy pkg-config; ac_word=$2
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026 $as_echo_n "checking for $ac_word... " >&6; }
4027 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4028 $as_echo_n "(cached) " >&6
4029 else
4030 case $ac_pt_PKG_CONFIG in
4031 [\\/]* | ?:[\\/]*)
4032 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4033 ;;
4034 *)
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 break 2
4045 fi
4046 done
4047 done
4048 IFS=$as_save_IFS
4049
4050 ;;
4051 esac
4052 fi
4053 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4054 if test -n "$ac_pt_PKG_CONFIG"; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4056 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4057 else
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4060 fi
4061
4062 if test "x$ac_pt_PKG_CONFIG" = x; then
4063 PKG_CONFIG=""
4064 else
4065 case $cross_compiling:$ac_tool_warned in
4066 yes:)
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4069 ac_tool_warned=yes ;;
4070 esac
4071 PKG_CONFIG=$ac_pt_PKG_CONFIG
4072 fi
4073 else
4074 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4075 fi
4076
4077 fi
4078 if test -n "$PKG_CONFIG"; then
4079 _pkg_min_version=0.9.0
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4081 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4082 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4084 $as_echo "yes" >&6; }
4085 else
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4087 $as_echo "no" >&6; }
4088 PKG_CONFIG=""
4089 fi
4090 fi
4091 if test x$native_libusb = xno; then :
4092
4093
4094 pkg_failed=no
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB" >&5
4096 $as_echo_n "checking for USB... " >&6; }
4097
4098 if test -n "$USB_CFLAGS"; then
4099 pkg_cv_USB_CFLAGS="$USB_CFLAGS"
4100 elif test -n "$PKG_CONFIG"; then
4101 if test -n "$PKG_CONFIG" && \
4102 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.0\""; } >&5
4103 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.0") 2>&5
4104 ac_status=$?
4105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4106 test $ac_status = 0; }; then
4107 pkg_cv_USB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= 1.0.0" 2>/dev/null`
4108 test "x$?" != "x0" && pkg_failed=yes
4109 else
4110 pkg_failed=yes
4111 fi
4112 else
4113 pkg_failed=untried
4114 fi
4115 if test -n "$USB_LIBS"; then
4116 pkg_cv_USB_LIBS="$USB_LIBS"
4117 elif test -n "$PKG_CONFIG"; then
4118 if test -n "$PKG_CONFIG" && \
4119 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.0\""; } >&5
4120 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.0") 2>&5
4121 ac_status=$?
4122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4123 test $ac_status = 0; }; then
4124 pkg_cv_USB_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= 1.0.0" 2>/dev/null`
4125 test "x$?" != "x0" && pkg_failed=yes
4126 else
4127 pkg_failed=yes
4128 fi
4129 else
4130 pkg_failed=untried
4131 fi
4132
4133
4134
4135 if test $pkg_failed = yes; then
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137 $as_echo "no" >&6; }
4138
4139 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4140 _pkg_short_errors_supported=yes
4141 else
4142 _pkg_short_errors_supported=no
4143 fi
4144 if test $_pkg_short_errors_supported = yes; then
4145 USB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0 >= 1.0.0" 2>&1`
4146 else
4147 USB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0 >= 1.0.0" 2>&1`
4148 fi
4149 # Put the nasty error message in config.log where it belongs
4150 echo "$USB_PKG_ERRORS" >&5
4151
4152 as_fn_error $? "*** Required libusb-1.0 >= 1.0.0 not installed ***" "$LINENO" 5
4153 elif test $pkg_failed = untried; then
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155 $as_echo "no" >&6; }
4156 as_fn_error $? "*** Required libusb-1.0 >= 1.0.0 not installed ***" "$LINENO" 5
4157 else
4158 USB_CFLAGS=$pkg_cv_USB_CFLAGS
4159 USB_LIBS=$pkg_cv_USB_LIBS
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4161 $as_echo "yes" >&6; }
4162
4163 fi
4164
4165 fi
4166
4167 LIBS="$LIBS $USB_LIBS"
4168 CFLAGS="$CFLAGS $USB_CFLAGS"
4169
4170 # Checks for header files.
4171 ac_ext=c
4172 ac_cpp='$CPP $CPPFLAGS'
4173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4177 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4178 # On Suns, sometimes $CPP names a directory.
4179 if test -n "$CPP" && test -d "$CPP"; then
4180 CPP=
4181 fi
4182 if test -z "$CPP"; then
4183 if ${ac_cv_prog_CPP+:} false; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 # Double quotes because CPP needs to be expanded
4187 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4188 do
4189 ac_preproc_ok=false
4190 for ac_c_preproc_warn_flag in '' yes
4191 do
4192 # Use a header file that comes with gcc, so configuring glibc
4193 # with a fresh cross-compiler works.
4194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4195 # <limits.h> exists even on freestanding compilers.
4196 # On the NeXT, cc -E runs the code through the compiler's parser,
4197 # not just through cpp. "Syntax error" is here to catch this case.
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4200 #ifdef __STDC__
4201 # include <limits.h>
4202 #else
4203 # include <assert.h>
4204 #endif
4205 Syntax error
4206 _ACEOF
4207 if ac_fn_c_try_cpp "$LINENO"; then :
4208
4209 else
4210 # Broken: fails on valid input.
4211 continue
4212 fi
4213 rm -f conftest.err conftest.i conftest.$ac_ext
4214
4215 # OK, works on sane cases. Now check whether nonexistent headers
4216 # can be detected and how.
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219 #include <ac_nonexistent.h>
4220 _ACEOF
4221 if ac_fn_c_try_cpp "$LINENO"; then :
4222 # Broken: success on invalid input.
4223 continue
4224 else
4225 # Passes both tests.
4226 ac_preproc_ok=:
4227 break
4228 fi
4229 rm -f conftest.err conftest.i conftest.$ac_ext
4230
4231 done
4232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4233 rm -f conftest.i conftest.err conftest.$ac_ext
4234 if $ac_preproc_ok; then :
4235 break
4236 fi
4237
4238 done
4239 ac_cv_prog_CPP=$CPP
4240
4241 fi
4242 CPP=$ac_cv_prog_CPP
4243 else
4244 ac_cv_prog_CPP=$CPP
4245 fi
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4247 $as_echo "$CPP" >&6; }
4248 ac_preproc_ok=false
4249 for ac_c_preproc_warn_flag in '' yes
4250 do
4251 # Use a header file that comes with gcc, so configuring glibc
4252 # with a fresh cross-compiler works.
4253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4254 # <limits.h> exists even on freestanding compilers.
4255 # On the NeXT, cc -E runs the code through the compiler's parser,
4256 # not just through cpp. "Syntax error" is here to catch this case.
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4259 #ifdef __STDC__
4260 # include <limits.h>
4261 #else
4262 # include <assert.h>
4263 #endif
4264 Syntax error
4265 _ACEOF
4266 if ac_fn_c_try_cpp "$LINENO"; then :
4267
4268 else
4269 # Broken: fails on valid input.
4270 continue
4271 fi
4272 rm -f conftest.err conftest.i conftest.$ac_ext
4273
4274 # OK, works on sane cases. Now check whether nonexistent headers
4275 # can be detected and how.
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4278 #include <ac_nonexistent.h>
4279 _ACEOF
4280 if ac_fn_c_try_cpp "$LINENO"; then :
4281 # Broken: success on invalid input.
4282 continue
4283 else
4284 # Passes both tests.
4285 ac_preproc_ok=:
4286 break
4287 fi
4288 rm -f conftest.err conftest.i conftest.$ac_ext
4289
4290 done
4291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4292 rm -f conftest.i conftest.err conftest.$ac_ext
4293 if $ac_preproc_ok; then :
4294
4295 else
4296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4298 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4299 See \`config.log' for more details" "$LINENO" 5; }
4300 fi
4301
4302 ac_ext=c
4303 ac_cpp='$CPP $CPPFLAGS'
4304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307
4308
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4310 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4311 if ${ac_cv_path_GREP+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 if test -z "$GREP"; then
4315 ac_path_GREP_found=false
4316 # Loop through the user's path and test for each of PROGNAME-LIST
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4319 do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_prog in grep ggrep; do
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4325 as_fn_executable_p "$ac_path_GREP" || continue
4326 # Check for GNU ac_path_GREP and select it if it is found.
4327 # Check for GNU $ac_path_GREP
4328 case `"$ac_path_GREP" --version 2>&1` in
4329 *GNU*)
4330 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4331 *)
4332 ac_count=0
4333 $as_echo_n 0123456789 >"conftest.in"
4334 while :
4335 do
4336 cat "conftest.in" "conftest.in" >"conftest.tmp"
4337 mv "conftest.tmp" "conftest.in"
4338 cp "conftest.in" "conftest.nl"
4339 $as_echo 'GREP' >> "conftest.nl"
4340 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4342 as_fn_arith $ac_count + 1 && ac_count=$as_val
4343 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4344 # Best one so far, save it but keep looking for a better one
4345 ac_cv_path_GREP="$ac_path_GREP"
4346 ac_path_GREP_max=$ac_count
4347 fi
4348 # 10*(2^10) chars as input seems more than enough
4349 test $ac_count -gt 10 && break
4350 done
4351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4352 esac
4353
4354 $ac_path_GREP_found && break 3
4355 done
4356 done
4357 done
4358 IFS=$as_save_IFS
4359 if test -z "$ac_cv_path_GREP"; then
4360 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4361 fi
4362 else
4363 ac_cv_path_GREP=$GREP
4364 fi
4365
4366 fi
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4368 $as_echo "$ac_cv_path_GREP" >&6; }
4369 GREP="$ac_cv_path_GREP"
4370
4371
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4373 $as_echo_n "checking for egrep... " >&6; }
4374 if ${ac_cv_path_EGREP+:} false; then :
4375 $as_echo_n "(cached) " >&6
4376 else
4377 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4378 then ac_cv_path_EGREP="$GREP -E"
4379 else
4380 if test -z "$EGREP"; then
4381 ac_path_EGREP_found=false
4382 # Loop through the user's path and test for each of PROGNAME-LIST
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4385 do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_prog in egrep; do
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4391 as_fn_executable_p "$ac_path_EGREP" || continue
4392 # Check for GNU ac_path_EGREP and select it if it is found.
4393 # Check for GNU $ac_path_EGREP
4394 case `"$ac_path_EGREP" --version 2>&1` in
4395 *GNU*)
4396 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4397 *)
4398 ac_count=0
4399 $as_echo_n 0123456789 >"conftest.in"
4400 while :
4401 do
4402 cat "conftest.in" "conftest.in" >"conftest.tmp"
4403 mv "conftest.tmp" "conftest.in"
4404 cp "conftest.in" "conftest.nl"
4405 $as_echo 'EGREP' >> "conftest.nl"
4406 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4408 as_fn_arith $ac_count + 1 && ac_count=$as_val
4409 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4410 # Best one so far, save it but keep looking for a better one
4411 ac_cv_path_EGREP="$ac_path_EGREP"
4412 ac_path_EGREP_max=$ac_count
4413 fi
4414 # 10*(2^10) chars as input seems more than enough
4415 test $ac_count -gt 10 && break
4416 done
4417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4418 esac
4419
4420 $ac_path_EGREP_found && break 3
4421 done
4422 done
4423 done
4424 IFS=$as_save_IFS
4425 if test -z "$ac_cv_path_EGREP"; then
4426 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4427 fi
4428 else
4429 ac_cv_path_EGREP=$EGREP
4430 fi
4431
4432 fi
4433 fi
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4435 $as_echo "$ac_cv_path_EGREP" >&6; }
4436 EGREP="$ac_cv_path_EGREP"
4437
4438
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4440 $as_echo_n "checking for ANSI C header files... " >&6; }
4441 if ${ac_cv_header_stdc+:} false; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 #include <stdlib.h>
4447 #include <stdarg.h>
4448 #include <string.h>
4449 #include <float.h>
4450
4451 int
4452 main ()
4453 {
4454
4455 ;
4456 return 0;
4457 }
4458 _ACEOF
4459 if ac_fn_c_try_compile "$LINENO"; then :
4460 ac_cv_header_stdc=yes
4461 else
4462 ac_cv_header_stdc=no
4463 fi
4464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4465
4466 if test $ac_cv_header_stdc = yes; then
4467 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470 #include <string.h>
4471
4472 _ACEOF
4473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4474 $EGREP "memchr" >/dev/null 2>&1; then :
4475
4476 else
4477 ac_cv_header_stdc=no
4478 fi
4479 rm -f conftest*
4480
4481 fi
4482
4483 if test $ac_cv_header_stdc = yes; then
4484 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4487 #include <stdlib.h>
4488
4489 _ACEOF
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491 $EGREP "free" >/dev/null 2>&1; then :
4492
4493 else
4494 ac_cv_header_stdc=no
4495 fi
4496 rm -f conftest*
4497
4498 fi
4499
4500 if test $ac_cv_header_stdc = yes; then
4501 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4502 if test "$cross_compiling" = yes; then :
4503 :
4504 else
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4507 #include <ctype.h>
4508 #include <stdlib.h>
4509 #if ((' ' & 0x0FF) == 0x020)
4510 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4511 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4512 #else
4513 # define ISLOWER(c) \
4514 (('a' <= (c) && (c) <= 'i') \
4515 || ('j' <= (c) && (c) <= 'r') \
4516 || ('s' <= (c) && (c) <= 'z'))
4517 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4518 #endif
4519
4520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4521 int
4522 main ()
4523 {
4524 int i;
4525 for (i = 0; i < 256; i++)
4526 if (XOR (islower (i), ISLOWER (i))
4527 || toupper (i) != TOUPPER (i))
4528 return 2;
4529 return 0;
4530 }
4531 _ACEOF
4532 if ac_fn_c_try_run "$LINENO"; then :
4533
4534 else
4535 ac_cv_header_stdc=no
4536 fi
4537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4538 conftest.$ac_objext conftest.beam conftest.$ac_ext
4539 fi
4540
4541 fi
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4544 $as_echo "$ac_cv_header_stdc" >&6; }
4545 if test $ac_cv_header_stdc = yes; then
4546
4547 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4548
4549 fi
4550
4551 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4552 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4553 inttypes.h stdint.h unistd.h
4554 do :
4555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4556 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4557 "
4558 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4559 cat >>confdefs.h <<_ACEOF
4560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4561 _ACEOF
4562
4563 fi
4564
4565 done
4566
4567
4568 for ac_header in windows.h sysexits.h unistd.h
4569 do :
4570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4571 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4572 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4573 cat >>confdefs.h <<_ACEOF
4574 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4575 _ACEOF
4576
4577 fi
4578
4579 done
4580
4581
4582 # Checks for typedefs, structures, and compiler characteristics.
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4584 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4585 if ${ac_cv_c_const+:} false; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4590
4591 int
4592 main ()
4593 {
4594
4595 #ifndef __cplusplus
4596 /* Ultrix mips cc rejects this sort of thing. */
4597 typedef int charset[2];
4598 const charset cs = { 0, 0 };
4599 /* SunOS 4.1.1 cc rejects this. */
4600 char const *const *pcpcc;
4601 char **ppc;
4602 /* NEC SVR4.0.2 mips cc rejects this. */
4603 struct point {int x, y;};
4604 static struct point const zero = {0,0};
4605 /* AIX XL C 1.02.0.0 rejects this.
4606 It does not let you subtract one const X* pointer from another in
4607 an arm of an if-expression whose if-part is not a constant
4608 expression */
4609 const char *g = "string";
4610 pcpcc = &g + (g ? g-g : 0);
4611 /* HPUX 7.0 cc rejects these. */
4612 ++pcpcc;
4613 ppc = (char**) pcpcc;
4614 pcpcc = (char const *const *) ppc;
4615 { /* SCO 3.2v4 cc rejects this sort of thing. */
4616 char tx;
4617 char *t = &tx;
4618 char const *s = 0 ? (char *) 0 : (char const *) 0;
4619
4620 *t++ = 0;
4621 if (s) return 0;
4622 }
4623 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4624 int x[] = {25, 17};
4625 const int *foo = &x[0];
4626 ++foo;
4627 }
4628 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4629 typedef const int *iptr;
4630 iptr p = 0;
4631 ++p;
4632 }
4633 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4634 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4635 struct s { int j; const int *ap[3]; } bx;
4636 struct s *b = &bx; b->j = 5;
4637 }
4638 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4639 const int foo = 10;
4640 if (!foo) return 0;
4641 }
4642 return !cs[0] && !zero.x;
4643 #endif
4644
4645 ;
4646 return 0;
4647 }
4648 _ACEOF
4649 if ac_fn_c_try_compile "$LINENO"; then :
4650 ac_cv_c_const=yes
4651 else
4652 ac_cv_c_const=no
4653 fi
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 fi
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4657 $as_echo "$ac_cv_c_const" >&6; }
4658 if test $ac_cv_c_const = no; then
4659
4660 $as_echo "#define const /**/" >>confdefs.h
4661
4662 fi
4663
4664 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4665 if test "x$ac_cv_type_size_t" = xyes; then :
4666
4667 else
4668
4669 cat >>confdefs.h <<_ACEOF
4670 #define size_t unsigned int
4671 _ACEOF
4672
4673 fi
4674
4675
4676 # Checks for library functions.
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
4678 $as_echo_n "checking for working memcmp... " >&6; }
4679 if ${ac_cv_func_memcmp_working+:} false; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 if test "$cross_compiling" = yes; then :
4683 ac_cv_func_memcmp_working=no
4684 else
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687 $ac_includes_default
4688 int
4689 main ()
4690 {
4691
4692 /* Some versions of memcmp are not 8-bit clean. */
4693 char c0 = '\100', c1 = '\200', c2 = '\201';
4694 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4695 return 1;
4696
4697 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4698 or more and with at least one buffer not starting on a 4-byte boundary.
4699 William Lewis provided this test program. */
4700 {
4701 char foo[21];
4702 char bar[21];
4703 int i;
4704 for (i = 0; i < 4; i++)
4705 {
4706 char *a = foo + i;
4707 char *b = bar + i;
4708 strcpy (a, "--------01111111");
4709 strcpy (b, "--------10000000");
4710 if (memcmp (a, b, 16) >= 0)
4711 return 1;
4712 }
4713 return 0;
4714 }
4715
4716 ;
4717 return 0;
4718 }
4719 _ACEOF
4720 if ac_fn_c_try_run "$LINENO"; then :
4721 ac_cv_func_memcmp_working=yes
4722 else
4723 ac_cv_func_memcmp_working=no
4724 fi
4725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4726 conftest.$ac_objext conftest.beam conftest.$ac_ext
4727 fi
4728
4729 fi
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
4731 $as_echo "$ac_cv_func_memcmp_working" >&6; }
4732 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
4733 *" memcmp.$ac_objext "* ) ;;
4734 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
4735 ;;
4736 esac
4737
4738
4739 for ac_func in nanosleep err
4740 do :
4741 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4742 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4743 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4744 cat >>confdefs.h <<_ACEOF
4745 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4746 _ACEOF
4747
4748 fi
4749 done
4750
4751
4752 # Checks how to do large files
4753 # Check whether --enable-largefile was given.
4754 if test "${enable_largefile+set}" = set; then :
4755 enableval=$enable_largefile;
4756 fi
4757
4758 if test "$enable_largefile" != no; then
4759
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4761 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4762 if ${ac_cv_sys_largefile_CC+:} false; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4765 ac_cv_sys_largefile_CC=no
4766 if test "$GCC" != yes; then
4767 ac_save_CC=$CC
4768 while :; do
4769 # IRIX 6.2 and later do not support large files by default,
4770 # so use the C compiler's -n32 option if that helps.
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4773 #include <sys/types.h>
4774 /* Check that off_t can represent 2**63 - 1 correctly.
4775 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4776 since some C++ compilers masquerading as C compilers
4777 incorrectly reject 9223372036854775807. */
4778 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4779 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4780 && LARGE_OFF_T % 2147483647 == 1)
4781 ? 1 : -1];
4782 int
4783 main ()
4784 {
4785
4786 ;
4787 return 0;
4788 }
4789 _ACEOF
4790 if ac_fn_c_try_compile "$LINENO"; then :
4791 break
4792 fi
4793 rm -f core conftest.err conftest.$ac_objext
4794 CC="$CC -n32"
4795 if ac_fn_c_try_compile "$LINENO"; then :
4796 ac_cv_sys_largefile_CC=' -n32'; break
4797 fi
4798 rm -f core conftest.err conftest.$ac_objext
4799 break
4800 done
4801 CC=$ac_save_CC
4802 rm -f conftest.$ac_ext
4803 fi
4804 fi
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4806 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4807 if test "$ac_cv_sys_largefile_CC" != no; then
4808 CC=$CC$ac_cv_sys_largefile_CC
4809 fi
4810
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4812 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4813 if ${ac_cv_sys_file_offset_bits+:} false; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 while :; do
4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4819 #include <sys/types.h>
4820 /* Check that off_t can represent 2**63 - 1 correctly.
4821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4822 since some C++ compilers masquerading as C compilers
4823 incorrectly reject 9223372036854775807. */
4824 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4826 && LARGE_OFF_T % 2147483647 == 1)
4827 ? 1 : -1];
4828 int
4829 main ()
4830 {
4831
4832 ;
4833 return 0;
4834 }
4835 _ACEOF
4836 if ac_fn_c_try_compile "$LINENO"; then :
4837 ac_cv_sys_file_offset_bits=no; break
4838 fi
4839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4842 #define _FILE_OFFSET_BITS 64
4843 #include <sys/types.h>
4844 /* Check that off_t can represent 2**63 - 1 correctly.
4845 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4846 since some C++ compilers masquerading as C compilers
4847 incorrectly reject 9223372036854775807. */
4848 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4850 && LARGE_OFF_T % 2147483647 == 1)
4851 ? 1 : -1];
4852 int
4853 main ()
4854 {
4855
4856 ;
4857 return 0;
4858 }
4859 _ACEOF
4860 if ac_fn_c_try_compile "$LINENO"; then :
4861 ac_cv_sys_file_offset_bits=64; break
4862 fi
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 ac_cv_sys_file_offset_bits=unknown
4865 break
4866 done
4867 fi
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4869 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4870 case $ac_cv_sys_file_offset_bits in #(
4871 no | unknown) ;;
4872 *)
4873 cat >>confdefs.h <<_ACEOF
4874 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4875 _ACEOF
4876 ;;
4877 esac
4878 rm -rf conftest*
4879 if test $ac_cv_sys_file_offset_bits = unknown; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4881 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4882 if ${ac_cv_sys_large_files+:} false; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 while :; do
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4888 #include <sys/types.h>
4889 /* Check that off_t can represent 2**63 - 1 correctly.
4890 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4891 since some C++ compilers masquerading as C compilers
4892 incorrectly reject 9223372036854775807. */
4893 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4894 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4895 && LARGE_OFF_T % 2147483647 == 1)
4896 ? 1 : -1];
4897 int
4898 main ()
4899 {
4900
4901 ;
4902 return 0;
4903 }
4904 _ACEOF
4905 if ac_fn_c_try_compile "$LINENO"; then :
4906 ac_cv_sys_large_files=no; break
4907 fi
4908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4911 #define _LARGE_FILES 1
4912 #include <sys/types.h>
4913 /* Check that off_t can represent 2**63 - 1 correctly.
4914 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4915 since some C++ compilers masquerading as C compilers
4916 incorrectly reject 9223372036854775807. */
4917 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4918 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4919 && LARGE_OFF_T % 2147483647 == 1)
4920 ? 1 : -1];
4921 int
4922 main ()
4923 {
4924
4925 ;
4926 return 0;
4927 }
4928 _ACEOF
4929 if ac_fn_c_try_compile "$LINENO"; then :
4930 ac_cv_sys_large_files=1; break
4931 fi
4932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933 ac_cv_sys_large_files=unknown
4934 break
4935 done
4936 fi
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4938 $as_echo "$ac_cv_sys_large_files" >&6; }
4939 case $ac_cv_sys_large_files in #(
4940 no | unknown) ;;
4941 *)
4942 cat >>confdefs.h <<_ACEOF
4943 #define _LARGE_FILES $ac_cv_sys_large_files
4944 _ACEOF
4945 ;;
4946 esac
4947 rm -rf conftest*
4948 fi
4949
4950
4951 fi
4952
4953
4954 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile"
4955
4956 cat >confcache <<\_ACEOF
4957 # This file is a shell script that caches the results of configure
4958 # tests run on this system so they can be shared between configure
4959 # scripts and configure runs, see configure's option --config-cache.
4960 # It is not useful on other systems. If it contains results you don't
4961 # want to keep, you may remove or edit it.
4962 #
4963 # config.status only pays attention to the cache file if you give it
4964 # the --recheck option to rerun configure.
4965 #
4966 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4967 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4968 # following values.
4969
4970 _ACEOF
4971
4972 # The following way of writing the cache mishandles newlines in values,
4973 # but we know of no workaround that is simple, portable, and efficient.
4974 # So, we kill variables containing newlines.
4975 # Ultrix sh set writes to stderr and can't be redirected directly,
4976 # and sets the high bit in the cache file unless we assign to the vars.
4977 (
4978 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4979 eval ac_val=\$$ac_var
4980 case $ac_val in #(
4981 *${as_nl}*)
4982 case $ac_var in #(
4983 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4984 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4985 esac
4986 case $ac_var in #(
4987 _ | IFS | as_nl) ;; #(
4988 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4989 *) { eval $ac_var=; unset $ac_var;} ;;
4990 esac ;;
4991 esac
4992 done
4993
4994 (set) 2>&1 |
4995 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4996 *${as_nl}ac_space=\ *)
4997 # `set' does not quote correctly, so add quotes: double-quote
4998 # substitution turns \\\\ into \\, and sed turns \\ into \.
4999 sed -n \
5000 "s/'/'\\\\''/g;
5001 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5002 ;; #(
5003 *)
5004 # `set' quotes correctly as required by POSIX, so do not add quotes.
5005 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5006 ;;
5007 esac |
5008 sort
5009 ) |
5010 sed '
5011 /^ac_cv_env_/b end
5012 t clear
5013 :clear
5014 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5015 t end
5016 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5017 :end' >>confcache
5018 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5019 if test -w "$cache_file"; then
5020 if test "x$cache_file" != "x/dev/null"; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5022 $as_echo "$as_me: updating cache $cache_file" >&6;}
5023 if test ! -f "$cache_file" || test -h "$cache_file"; then
5024 cat confcache >"$cache_file"
5025 else
5026 case $cache_file in #(
5027 */* | ?:*)
5028 mv -f confcache "$cache_file"$$ &&
5029 mv -f "$cache_file"$$ "$cache_file" ;; #(
5030 *)
5031 mv -f confcache "$cache_file" ;;
5032 esac
5033 fi
5034 fi
5035 else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5037 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5038 fi
5039 fi
5040 rm -f confcache
5041
5042 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5043 # Let make expand exec_prefix.
5044 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5045
5046 DEFS=-DHAVE_CONFIG_H
5047
5048 ac_libobjs=
5049 ac_ltlibobjs=
5050 U=
5051 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5052 # 1. Remove the extension, and $U if already installed.
5053 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5054 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5055 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5056 # will be set to the directory where LIBOBJS objects are built.
5057 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5058 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5059 done
5060 LIBOBJS=$ac_libobjs
5061
5062 LTLIBOBJS=$ac_ltlibobjs
5063
5064
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5066 $as_echo_n "checking that generated files are newer than configure... " >&6; }
5067 if test -n "$am_sleep_pid"; then
5068 # Hide warnings about reused PIDs.
5069 wait $am_sleep_pid 2>/dev/null
5070 fi
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5072 $as_echo "done" >&6; }
5073 if test -n "$EXEEXT"; then
5074 am__EXEEXT_TRUE=
5075 am__EXEEXT_FALSE='#'
5076 else
5077 am__EXEEXT_TRUE='#'
5078 am__EXEEXT_FALSE=
5079 fi
5080
5081 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5082 as_fn_error $? "conditional \"AMDEP\" was never defined.
5083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5084 fi
5085 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5086 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5088 fi
5089
5090 : "${CONFIG_STATUS=./config.status}"
5091 ac_write_fail=0
5092 ac_clean_files_save=$ac_clean_files
5093 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5095 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5096 as_write_fail=0
5097 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5098 #! $SHELL
5099 # Generated by $as_me.
5100 # Run this file to recreate the current configuration.
5101 # Compiler output produced by configure, useful for debugging
5102 # configure, is in config.log if it exists.
5103
5104 debug=false
5105 ac_cs_recheck=false
5106 ac_cs_silent=false
5107
5108 SHELL=\${CONFIG_SHELL-$SHELL}
5109 export SHELL
5110 _ASEOF
5111 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5112 ## -------------------- ##
5113 ## M4sh Initialization. ##
5114 ## -------------------- ##
5115
5116 # Be more Bourne compatible
5117 DUALCASE=1; export DUALCASE # for MKS sh
5118 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5119 emulate sh
5120 NULLCMD=:
5121 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5122 # is contrary to our usage. Disable this feature.
5123 alias -g '${1+"$@"}'='"$@"'
5124 setopt NO_GLOB_SUBST
5125 else
5126 case `(set -o) 2>/dev/null` in #(
5127 *posix*) :
5128 set -o posix ;; #(
5129 *) :
5130 ;;
5131 esac
5132 fi
5133
5134
5135 as_nl='
5136 '
5137 export as_nl
5138 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5139 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5141 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5142 # Prefer a ksh shell builtin over an external printf program on Solaris,
5143 # but without wasting forks for bash or zsh.
5144 if test -z "$BASH_VERSION$ZSH_VERSION" \
5145 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5146 as_echo='print -r --'
5147 as_echo_n='print -rn --'
5148 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5149 as_echo='printf %s\n'
5150 as_echo_n='printf %s'
5151 else
5152 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5153 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5154 as_echo_n='/usr/ucb/echo -n'
5155 else
5156 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5157 as_echo_n_body='eval
5158 arg=$1;
5159 case $arg in #(
5160 *"$as_nl"*)
5161 expr "X$arg" : "X\\(.*\\)$as_nl";
5162 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5163 esac;
5164 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5165 '
5166 export as_echo_n_body
5167 as_echo_n='sh -c $as_echo_n_body as_echo'
5168 fi
5169 export as_echo_body
5170 as_echo='sh -c $as_echo_body as_echo'
5171 fi
5172
5173 # The user is always right.
5174 if test "${PATH_SEPARATOR+set}" != set; then
5175 PATH_SEPARATOR=:
5176 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5177 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5178 PATH_SEPARATOR=';'
5179 }
5180 fi
5181
5182
5183 # IFS
5184 # We need space, tab and new line, in precisely that order. Quoting is
5185 # there to prevent editors from complaining about space-tab.
5186 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5187 # splitting by setting IFS to empty value.)
5188 IFS=" "" $as_nl"
5189
5190 # Find who we are. Look in the path if we contain no directory separator.
5191 as_myself=
5192 case $0 in #((
5193 *[\\/]* ) as_myself=$0 ;;
5194 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5196 do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5200 done
5201 IFS=$as_save_IFS
5202
5203 ;;
5204 esac
5205 # We did not find ourselves, most probably we were run as `sh COMMAND'
5206 # in which case we are not to be found in the path.
5207 if test "x$as_myself" = x; then
5208 as_myself=$0
5209 fi
5210 if test ! -f "$as_myself"; then
5211 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5212 exit 1
5213 fi
5214
5215 # Unset variables that we do not need and which cause bugs (e.g. in
5216 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5217 # suppresses any "Segmentation fault" message there. '((' could
5218 # trigger a bug in pdksh 5.2.14.
5219 for as_var in BASH_ENV ENV MAIL MAILPATH
5220 do eval test x\${$as_var+set} = xset \
5221 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5222 done
5223 PS1='$ '
5224 PS2='> '
5225 PS4='+ '
5226
5227 # NLS nuisances.
5228 LC_ALL=C
5229 export LC_ALL
5230 LANGUAGE=C
5231 export LANGUAGE
5232
5233 # CDPATH.
5234 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5235
5236
5237 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5238 # ----------------------------------------
5239 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5240 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5241 # script with STATUS, using 1 if that was 0.
5242 as_fn_error ()
5243 {
5244 as_status=$1; test $as_status -eq 0 && as_status=1
5245 if test "$4"; then
5246 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5247 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5248 fi
5249 $as_echo "$as_me: error: $2" >&2
5250 as_fn_exit $as_status
5251 } # as_fn_error
5252
5253
5254 # as_fn_set_status STATUS
5255 # -----------------------
5256 # Set $? to STATUS, without forking.
5257 as_fn_set_status ()
5258 {
5259 return $1
5260 } # as_fn_set_status
5261
5262 # as_fn_exit STATUS
5263 # -----------------
5264 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5265 as_fn_exit ()
5266 {
5267 set +e
5268 as_fn_set_status $1
5269 exit $1
5270 } # as_fn_exit
5271
5272 # as_fn_unset VAR
5273 # ---------------
5274 # Portably unset VAR.
5275 as_fn_unset ()
5276 {
5277 { eval $1=; unset $1;}
5278 }
5279 as_unset=as_fn_unset
5280 # as_fn_append VAR VALUE
5281 # ----------------------
5282 # Append the text in VALUE to the end of the definition contained in VAR. Take
5283 # advantage of any shell optimizations that allow amortized linear growth over
5284 # repeated appends, instead of the typical quadratic growth present in naive
5285 # implementations.
5286 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5287 eval 'as_fn_append ()
5288 {
5289 eval $1+=\$2
5290 }'
5291 else
5292 as_fn_append ()
5293 {
5294 eval $1=\$$1\$2
5295 }
5296 fi # as_fn_append
5297
5298 # as_fn_arith ARG...
5299 # ------------------
5300 # Perform arithmetic evaluation on the ARGs, and store the result in the
5301 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5302 # must be portable across $(()) and expr.
5303 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5304 eval 'as_fn_arith ()
5305 {
5306 as_val=$(( $* ))
5307 }'
5308 else
5309 as_fn_arith ()
5310 {
5311 as_val=`expr "$@" || test $? -eq 1`
5312 }
5313 fi # as_fn_arith
5314
5315
5316 if expr a : '\(a\)' >/dev/null 2>&1 &&
5317 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5318 as_expr=expr
5319 else
5320 as_expr=false
5321 fi
5322
5323 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5324 as_basename=basename
5325 else
5326 as_basename=false
5327 fi
5328
5329 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5330 as_dirname=dirname
5331 else
5332 as_dirname=false
5333 fi
5334
5335 as_me=`$as_basename -- "$0" ||
5336 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5337 X"$0" : 'X\(//\)$' \| \
5338 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5339 $as_echo X/"$0" |
5340 sed '/^.*\/\([^/][^/]*\)\/*$/{
5341 s//\1/
5342 q
5343 }
5344 /^X\/\(\/\/\)$/{
5345 s//\1/
5346 q
5347 }
5348 /^X\/\(\/\).*/{
5349 s//\1/
5350 q
5351 }
5352 s/.*/./; q'`
5353
5354 # Avoid depending upon Character Ranges.
5355 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5356 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5357 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5358 as_cr_digits='0123456789'
5359 as_cr_alnum=$as_cr_Letters$as_cr_digits
5360
5361 ECHO_C= ECHO_N= ECHO_T=
5362 case `echo -n x` in #(((((
5363 -n*)
5364 case `echo 'xy\c'` in
5365 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5366 xy) ECHO_C='\c';;
5367 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5368 ECHO_T=' ';;
5369 esac;;
5370 *)
5371 ECHO_N='-n';;
5372 esac
5373
5374 rm -f conf$$ conf$$.exe conf$$.file
5375 if test -d conf$$.dir; then
5376 rm -f conf$$.dir/conf$$.file
5377 else
5378 rm -f conf$$.dir
5379 mkdir conf$$.dir 2>/dev/null
5380 fi
5381 if (echo >conf$$.file) 2>/dev/null; then
5382 if ln -s conf$$.file conf$$ 2>/dev/null; then
5383 as_ln_s='ln -s'
5384 # ... but there are two gotchas:
5385 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5386 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5387 # In both cases, we have to default to `cp -pR'.
5388 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5389 as_ln_s='cp -pR'
5390 elif ln conf$$.file conf$$ 2>/dev/null; then
5391 as_ln_s=ln
5392 else
5393 as_ln_s='cp -pR'
5394 fi
5395 else
5396 as_ln_s='cp -pR'
5397 fi
5398 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5399 rmdir conf$$.dir 2>/dev/null
5400
5401
5402 # as_fn_mkdir_p
5403 # -------------
5404 # Create "$as_dir" as a directory, including parents if necessary.
5405 as_fn_mkdir_p ()
5406 {
5407
5408 case $as_dir in #(
5409 -*) as_dir=./$as_dir;;
5410 esac
5411 test -d "$as_dir" || eval $as_mkdir_p || {
5412 as_dirs=
5413 while :; do
5414 case $as_dir in #(
5415 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5416 *) as_qdir=$as_dir;;
5417 esac
5418 as_dirs="'$as_qdir' $as_dirs"
5419 as_dir=`$as_dirname -- "$as_dir" ||
5420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5421 X"$as_dir" : 'X\(//\)[^/]' \| \
5422 X"$as_dir" : 'X\(//\)$' \| \
5423 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5424 $as_echo X"$as_dir" |
5425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5426 s//\1/
5427 q
5428 }
5429 /^X\(\/\/\)[^/].*/{
5430 s//\1/
5431 q
5432 }
5433 /^X\(\/\/\)$/{
5434 s//\1/
5435 q
5436 }
5437 /^X\(\/\).*/{
5438 s//\1/
5439 q
5440 }
5441 s/.*/./; q'`
5442 test -d "$as_dir" && break
5443 done
5444 test -z "$as_dirs" || eval "mkdir $as_dirs"
5445 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5446
5447
5448 } # as_fn_mkdir_p
5449 if mkdir -p . 2>/dev/null; then
5450 as_mkdir_p='mkdir -p "$as_dir"'
5451 else
5452 test -d ./-p && rmdir ./-p
5453 as_mkdir_p=false
5454 fi
5455
5456
5457 # as_fn_executable_p FILE
5458 # -----------------------
5459 # Test if FILE is an executable regular file.
5460 as_fn_executable_p ()
5461 {
5462 test -f "$1" && test -x "$1"
5463 } # as_fn_executable_p
5464 as_test_x='test -x'
5465 as_executable_p=as_fn_executable_p
5466
5467 # Sed expression to map a string onto a valid CPP name.
5468 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5469
5470 # Sed expression to map a string onto a valid variable name.
5471 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5472
5473
5474 exec 6>&1
5475 ## ----------------------------------- ##
5476 ## Main body of $CONFIG_STATUS script. ##
5477 ## ----------------------------------- ##
5478 _ASEOF
5479 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5480
5481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5482 # Save the log message, to keep $0 and so on meaningful, and to
5483 # report actual input values of CONFIG_FILES etc. instead of their
5484 # values after options handling.
5485 ac_log="
5486 This file was extended by dfu-util $as_me 0.11, which was
5487 generated by GNU Autoconf 2.69. Invocation command line was
5488
5489 CONFIG_FILES = $CONFIG_FILES
5490 CONFIG_HEADERS = $CONFIG_HEADERS
5491 CONFIG_LINKS = $CONFIG_LINKS
5492 CONFIG_COMMANDS = $CONFIG_COMMANDS
5493 $ $0 $@
5494
5495 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5496 "
5497
5498 _ACEOF
5499
5500 case $ac_config_files in *"
5501 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5502 esac
5503
5504 case $ac_config_headers in *"
5505 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5506 esac
5507
5508
5509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5510 # Files that config.status was made for.
5511 config_files="$ac_config_files"
5512 config_headers="$ac_config_headers"
5513 config_commands="$ac_config_commands"
5514
5515 _ACEOF
5516
5517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5518 ac_cs_usage="\
5519 \`$as_me' instantiates files and other configuration actions
5520 from templates according to the current configuration. Unless the files
5521 and actions are specified as TAGs, all are instantiated by default.
5522
5523 Usage: $0 [OPTION]... [TAG]...
5524
5525 -h, --help print this help, then exit
5526 -V, --version print version number and configuration settings, then exit
5527 --config print configuration, then exit
5528 -q, --quiet, --silent
5529 do not print progress messages
5530 -d, --debug don't remove temporary files
5531 --recheck update $as_me by reconfiguring in the same conditions
5532 --file=FILE[:TEMPLATE]
5533 instantiate the configuration file FILE
5534 --header=FILE[:TEMPLATE]
5535 instantiate the configuration header FILE
5536
5537 Configuration files:
5538 $config_files
5539
5540 Configuration headers:
5541 $config_headers
5542
5543 Configuration commands:
5544 $config_commands
5545
5546 Report bugs to <http://sourceforge.net/p/dfu-util/tickets/>.
5547 dfu-util home page: <http://dfu-util.sourceforge.net>."
5548
5549 _ACEOF
5550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5551 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5552 ac_cs_version="\\
5553 dfu-util config.status 0.11
5554 configured by $0, generated by GNU Autoconf 2.69,
5555 with options \\"\$ac_cs_config\\"
5556
5557 Copyright (C) 2012 Free Software Foundation, Inc.
5558 This config.status script is free software; the Free Software Foundation
5559 gives unlimited permission to copy, distribute and modify it."
5560
5561 ac_pwd='$ac_pwd'
5562 srcdir='$srcdir'
5563 INSTALL='$INSTALL'
5564 MKDIR_P='$MKDIR_P'
5565 AWK='$AWK'
5566 test -n "\$AWK" || AWK=awk
5567 _ACEOF
5568
5569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5570 # The default lists apply if the user does not specify any file.
5571 ac_need_defaults=:
5572 while test $# != 0
5573 do
5574 case $1 in
5575 --*=?*)
5576 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5577 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5578 ac_shift=:
5579 ;;
5580 --*=)
5581 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5582 ac_optarg=
5583 ac_shift=:
5584 ;;
5585 *)
5586 ac_option=$1
5587 ac_optarg=$2
5588 ac_shift=shift
5589 ;;
5590 esac
5591
5592 case $ac_option in
5593 # Handling of the options.
5594 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5595 ac_cs_recheck=: ;;
5596 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5597 $as_echo "$ac_cs_version"; exit ;;
5598 --config | --confi | --conf | --con | --co | --c )
5599 $as_echo "$ac_cs_config"; exit ;;
5600 --debug | --debu | --deb | --de | --d | -d )
5601 debug=: ;;
5602 --file | --fil | --fi | --f )
5603 $ac_shift
5604 case $ac_optarg in
5605 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5606 '') as_fn_error $? "missing file argument" ;;
5607 esac
5608 as_fn_append CONFIG_FILES " '$ac_optarg'"
5609 ac_need_defaults=false;;
5610 --header | --heade | --head | --hea )
5611 $ac_shift
5612 case $ac_optarg in
5613 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5614 esac
5615 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5616 ac_need_defaults=false;;
5617 --he | --h)
5618 # Conflict between --help and --header
5619 as_fn_error $? "ambiguous option: \`$1'
5620 Try \`$0 --help' for more information.";;
5621 --help | --hel | -h )
5622 $as_echo "$ac_cs_usage"; exit ;;
5623 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5624 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5625 ac_cs_silent=: ;;
5626
5627 # This is an error.
5628 -*) as_fn_error $? "unrecognized option: \`$1'
5629 Try \`$0 --help' for more information." ;;
5630
5631 *) as_fn_append ac_config_targets " $1"
5632 ac_need_defaults=false ;;
5633
5634 esac
5635 shift
5636 done
5637
5638 ac_configure_extra_args=
5639
5640 if $ac_cs_silent; then
5641 exec 6>/dev/null
5642 ac_configure_extra_args="$ac_configure_extra_args --silent"
5643 fi
5644
5645 _ACEOF
5646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5647 if \$ac_cs_recheck; then
5648 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5649 shift
5650 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5651 CONFIG_SHELL='$SHELL'
5652 export CONFIG_SHELL
5653 exec "\$@"
5654 fi
5655
5656 _ACEOF
5657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5658 exec 5>>config.log
5659 {
5660 echo
5661 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5662 ## Running $as_me. ##
5663 _ASBOX
5664 $as_echo "$ac_log"
5665 } >&5
5666
5667 _ACEOF
5668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5669 #
5670 # INIT-COMMANDS
5671 #
5672 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
5673
5674 _ACEOF
5675
5676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5677
5678 # Handling of arguments.
5679 for ac_config_target in $ac_config_targets
5680 do
5681 case $ac_config_target in
5682 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5683 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5684 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5685 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5686 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5687
5688 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5689 esac
5690 done
5691
5692
5693 # If the user did not use the arguments to specify the items to instantiate,
5694 # then the envvar interface is used. Set only those that are not.
5695 # We use the long form for the default assignment because of an extremely
5696 # bizarre bug on SunOS 4.1.3.
5697 if $ac_need_defaults; then
5698 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5699 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5700 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5701 fi
5702
5703 # Have a temporary directory for convenience. Make it in the build tree
5704 # simply because there is no reason against having it here, and in addition,
5705 # creating and moving files from /tmp can sometimes cause problems.
5706 # Hook for its removal unless debugging.
5707 # Note that there is a small window in which the directory will not be cleaned:
5708 # after its creation but before its name has been assigned to `$tmp'.
5709 $debug ||
5710 {
5711 tmp= ac_tmp=
5712 trap 'exit_status=$?
5713 : "${ac_tmp:=$tmp}"
5714 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5715 ' 0
5716 trap 'as_fn_exit 1' 1 2 13 15
5717 }
5718 # Create a (secure) tmp directory for tmp files.
5719
5720 {
5721 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5722 test -d "$tmp"
5723 } ||
5724 {
5725 tmp=./conf$$-$RANDOM
5726 (umask 077 && mkdir "$tmp")
5727 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5728 ac_tmp=$tmp
5729
5730 # Set up the scripts for CONFIG_FILES section.
5731 # No need to generate them if there are no CONFIG_FILES.
5732 # This happens for instance with `./config.status config.h'.
5733 if test -n "$CONFIG_FILES"; then
5734
5735
5736 ac_cr=`echo X | tr X '\015'`
5737 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5738 # But we know of no other shell where ac_cr would be empty at this
5739 # point, so we can use a bashism as a fallback.
5740 if test "x$ac_cr" = x; then
5741 eval ac_cr=\$\'\\r\'
5742 fi
5743 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5744 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5745 ac_cs_awk_cr='\\r'
5746 else
5747 ac_cs_awk_cr=$ac_cr
5748 fi
5749
5750 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5751 _ACEOF
5752
5753
5754 {
5755 echo "cat >conf$$subs.awk <<_ACEOF" &&
5756 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5757 echo "_ACEOF"
5758 } >conf$$subs.sh ||
5759 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5760 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5761 ac_delim='%!_!# '
5762 for ac_last_try in false false false false false :; do
5763 . ./conf$$subs.sh ||
5764 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5765
5766 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5767 if test $ac_delim_n = $ac_delim_num; then
5768 break
5769 elif $ac_last_try; then
5770 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5771 else
5772 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5773 fi
5774 done
5775 rm -f conf$$subs.sh
5776
5777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5778 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5779 _ACEOF
5780 sed -n '
5781 h
5782 s/^/S["/; s/!.*/"]=/
5783 p
5784 g
5785 s/^[^!]*!//
5786 :repl
5787 t repl
5788 s/'"$ac_delim"'$//
5789 t delim
5790 :nl
5791 h
5792 s/\(.\{148\}\)..*/\1/
5793 t more1
5794 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5795 p
5796 n
5797 b repl
5798 :more1
5799 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5800 p
5801 g
5802 s/.\{148\}//
5803 t nl
5804 :delim
5805 h
5806 s/\(.\{148\}\)..*/\1/
5807 t more2
5808 s/["\\]/\\&/g; s/^/"/; s/$/"/
5809 p
5810 b
5811 :more2
5812 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5813 p
5814 g
5815 s/.\{148\}//
5816 t delim
5817 ' <conf$$subs.awk | sed '
5818 /^[^""]/{
5819 N
5820 s/\n//
5821 }
5822 ' >>$CONFIG_STATUS || ac_write_fail=1
5823 rm -f conf$$subs.awk
5824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5825 _ACAWK
5826 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5827 for (key in S) S_is_set[key] = 1
5828 FS = ""
5829
5830 }
5831 {
5832 line = $ 0
5833 nfields = split(line, field, "@")
5834 substed = 0
5835 len = length(field[1])
5836 for (i = 2; i < nfields; i++) {
5837 key = field[i]
5838 keylen = length(key)
5839 if (S_is_set[key]) {
5840 value = S[key]
5841 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5842 len += length(value) + length(field[++i])
5843 substed = 1
5844 } else
5845 len += 1 + keylen
5846 }
5847
5848 print line
5849 }
5850
5851 _ACAWK
5852 _ACEOF
5853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5854 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5855 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5856 else
5857 cat
5858 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5859 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5860 _ACEOF
5861
5862 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5863 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5864 # trailing colons and then remove the whole line if VPATH becomes empty
5865 # (actually we leave an empty line to preserve line numbers).
5866 if test "x$srcdir" = x.; then
5867 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5868 h
5869 s///
5870 s/^/:/
5871 s/[ ]*$/:/
5872 s/:\$(srcdir):/:/g
5873 s/:\${srcdir}:/:/g
5874 s/:@srcdir@:/:/g
5875 s/^:*//
5876 s/:*$//
5877 x
5878 s/\(=[ ]*\).*/\1/
5879 G
5880 s/\n//
5881 s/^[^=]*=[ ]*$//
5882 }'
5883 fi
5884
5885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5886 fi # test -n "$CONFIG_FILES"
5887
5888 # Set up the scripts for CONFIG_HEADERS section.
5889 # No need to generate them if there are no CONFIG_HEADERS.
5890 # This happens for instance with `./config.status Makefile'.
5891 if test -n "$CONFIG_HEADERS"; then
5892 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5893 BEGIN {
5894 _ACEOF
5895
5896 # Transform confdefs.h into an awk script `defines.awk', embedded as
5897 # here-document in config.status, that substitutes the proper values into
5898 # config.h.in to produce config.h.
5899
5900 # Create a delimiter string that does not exist in confdefs.h, to ease
5901 # handling of long lines.
5902 ac_delim='%!_!# '
5903 for ac_last_try in false false :; do
5904 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5905 if test -z "$ac_tt"; then
5906 break
5907 elif $ac_last_try; then
5908 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5909 else
5910 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5911 fi
5912 done
5913
5914 # For the awk script, D is an array of macro values keyed by name,
5915 # likewise P contains macro parameters if any. Preserve backslash
5916 # newline sequences.
5917
5918 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5919 sed -n '
5920 s/.\{148\}/&'"$ac_delim"'/g
5921 t rset
5922 :rset
5923 s/^[ ]*#[ ]*define[ ][ ]*/ /
5924 t def
5925 d
5926 :def
5927 s/\\$//
5928 t bsnl
5929 s/["\\]/\\&/g
5930 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5931 D["\1"]=" \3"/p
5932 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5933 d
5934 :bsnl
5935 s/["\\]/\\&/g
5936 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5937 D["\1"]=" \3\\\\\\n"\\/p
5938 t cont
5939 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5940 t cont
5941 d
5942 :cont
5943 n
5944 s/.\{148\}/&'"$ac_delim"'/g
5945 t clear
5946 :clear
5947 s/\\$//
5948 t bsnlc
5949 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5950 d
5951 :bsnlc
5952 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5953 b cont
5954 ' <confdefs.h | sed '
5955 s/'"$ac_delim"'/"\\\
5956 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5957
5958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5959 for (key in D) D_is_set[key] = 1
5960 FS = ""
5961 }
5962 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5963 line = \$ 0
5964 split(line, arg, " ")
5965 if (arg[1] == "#") {
5966 defundef = arg[2]
5967 mac1 = arg[3]
5968 } else {
5969 defundef = substr(arg[1], 2)
5970 mac1 = arg[2]
5971 }
5972 split(mac1, mac2, "(") #)
5973 macro = mac2[1]
5974 prefix = substr(line, 1, index(line, defundef) - 1)
5975 if (D_is_set[macro]) {
5976 # Preserve the white space surrounding the "#".
5977 print prefix "define", macro P[macro] D[macro]
5978 next
5979 } else {
5980 # Replace #undef with comments. This is necessary, for example,
5981 # in the case of _POSIX_SOURCE, which is predefined and required
5982 # on some systems where configure will not decide to define it.
5983 if (defundef == "undef") {
5984 print "/*", prefix defundef, macro, "*/"
5985 next
5986 }
5987 }
5988 }
5989 { print }
5990 _ACAWK
5991 _ACEOF
5992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5993 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5994 fi # test -n "$CONFIG_HEADERS"
5995
5996
5997 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5998 shift
5999 for ac_tag
6000 do
6001 case $ac_tag in
6002 :[FHLC]) ac_mode=$ac_tag; continue;;
6003 esac
6004 case $ac_mode$ac_tag in
6005 :[FHL]*:*);;
6006 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6007 :[FH]-) ac_tag=-:-;;
6008 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6009 esac
6010 ac_save_IFS=$IFS
6011 IFS=:
6012 set x $ac_tag
6013 IFS=$ac_save_IFS
6014 shift
6015 ac_file=$1
6016 shift
6017
6018 case $ac_mode in
6019 :L) ac_source=$1;;
6020 :[FH])
6021 ac_file_inputs=
6022 for ac_f
6023 do
6024 case $ac_f in
6025 -) ac_f="$ac_tmp/stdin";;
6026 *) # Look for the file first in the build tree, then in the source tree
6027 # (if the path is not absolute). The absolute path cannot be DOS-style,
6028 # because $ac_f cannot contain `:'.
6029 test -f "$ac_f" ||
6030 case $ac_f in
6031 [\\/$]*) false;;
6032 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6033 esac ||
6034 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6035 esac
6036 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6037 as_fn_append ac_file_inputs " '$ac_f'"
6038 done
6039
6040 # Let's still pretend it is `configure' which instantiates (i.e., don't
6041 # use $as_me), people would be surprised to read:
6042 # /* config.h. Generated by config.status. */
6043 configure_input='Generated from '`
6044 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6045 `' by configure.'
6046 if test x"$ac_file" != x-; then
6047 configure_input="$ac_file. $configure_input"
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6049 $as_echo "$as_me: creating $ac_file" >&6;}
6050 fi
6051 # Neutralize special characters interpreted by sed in replacement strings.
6052 case $configure_input in #(
6053 *\&* | *\|* | *\\* )
6054 ac_sed_conf_input=`$as_echo "$configure_input" |
6055 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6056 *) ac_sed_conf_input=$configure_input;;
6057 esac
6058
6059 case $ac_tag in
6060 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6061 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6062 esac
6063 ;;
6064 esac
6065
6066 ac_dir=`$as_dirname -- "$ac_file" ||
6067 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6068 X"$ac_file" : 'X\(//\)[^/]' \| \
6069 X"$ac_file" : 'X\(//\)$' \| \
6070 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6071 $as_echo X"$ac_file" |
6072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6073 s//\1/
6074 q
6075 }
6076 /^X\(\/\/\)[^/].*/{
6077 s//\1/
6078 q
6079 }
6080 /^X\(\/\/\)$/{
6081 s//\1/
6082 q
6083 }
6084 /^X\(\/\).*/{
6085 s//\1/
6086 q
6087 }
6088 s/.*/./; q'`
6089 as_dir="$ac_dir"; as_fn_mkdir_p
6090 ac_builddir=.
6091
6092 case "$ac_dir" in
6093 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6094 *)
6095 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6096 # A ".." for each directory in $ac_dir_suffix.
6097 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6098 case $ac_top_builddir_sub in
6099 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6100 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6101 esac ;;
6102 esac
6103 ac_abs_top_builddir=$ac_pwd
6104 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6105 # for backward compatibility:
6106 ac_top_builddir=$ac_top_build_prefix
6107
6108 case $srcdir in
6109 .) # We are building in place.
6110 ac_srcdir=.
6111 ac_top_srcdir=$ac_top_builddir_sub
6112 ac_abs_top_srcdir=$ac_pwd ;;
6113 [\\/]* | ?:[\\/]* ) # Absolute name.
6114 ac_srcdir=$srcdir$ac_dir_suffix;
6115 ac_top_srcdir=$srcdir
6116 ac_abs_top_srcdir=$srcdir ;;
6117 *) # Relative name.
6118 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6119 ac_top_srcdir=$ac_top_build_prefix$srcdir
6120 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6121 esac
6122 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6123
6124
6125 case $ac_mode in
6126 :F)
6127 #
6128 # CONFIG_FILE
6129 #
6130
6131 case $INSTALL in
6132 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6133 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6134 esac
6135 ac_MKDIR_P=$MKDIR_P
6136 case $MKDIR_P in
6137 [\\/$]* | ?:[\\/]* ) ;;
6138 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6139 esac
6140 _ACEOF
6141
6142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6143 # If the template does not know about datarootdir, expand it.
6144 # FIXME: This hack should be removed a few years after 2.60.
6145 ac_datarootdir_hack=; ac_datarootdir_seen=
6146 ac_sed_dataroot='
6147 /datarootdir/ {
6148 p
6149 q
6150 }
6151 /@datadir@/p
6152 /@docdir@/p
6153 /@infodir@/p
6154 /@localedir@/p
6155 /@mandir@/p'
6156 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6157 *datarootdir*) ac_datarootdir_seen=yes;;
6158 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6160 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6161 _ACEOF
6162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6163 ac_datarootdir_hack='
6164 s&@datadir@&$datadir&g
6165 s&@docdir@&$docdir&g
6166 s&@infodir@&$infodir&g
6167 s&@localedir@&$localedir&g
6168 s&@mandir@&$mandir&g
6169 s&\\\${datarootdir}&$datarootdir&g' ;;
6170 esac
6171 _ACEOF
6172
6173 # Neutralize VPATH when `$srcdir' = `.'.
6174 # Shell code in configure.ac might set extrasub.
6175 # FIXME: do we really want to maintain this feature?
6176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6177 ac_sed_extra="$ac_vpsub
6178 $extrasub
6179 _ACEOF
6180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6181 :t
6182 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6183 s|@configure_input@|$ac_sed_conf_input|;t t
6184 s&@top_builddir@&$ac_top_builddir_sub&;t t
6185 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6186 s&@srcdir@&$ac_srcdir&;t t
6187 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6188 s&@top_srcdir@&$ac_top_srcdir&;t t
6189 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6190 s&@builddir@&$ac_builddir&;t t
6191 s&@abs_builddir@&$ac_abs_builddir&;t t
6192 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6193 s&@INSTALL@&$ac_INSTALL&;t t
6194 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6195 $ac_datarootdir_hack
6196 "
6197 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6198 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6199
6200 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6201 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6202 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6203 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6205 which seems to be undefined. Please make sure it is defined" >&5
6206 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6207 which seems to be undefined. Please make sure it is defined" >&2;}
6208
6209 rm -f "$ac_tmp/stdin"
6210 case $ac_file in
6211 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6212 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6213 esac \
6214 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6215 ;;
6216 :H)
6217 #
6218 # CONFIG_HEADER
6219 #
6220 if test x"$ac_file" != x-; then
6221 {
6222 $as_echo "/* $configure_input */" \
6223 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6224 } >"$ac_tmp/config.h" \
6225 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6226 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6228 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6229 else
6230 rm -f "$ac_file"
6231 mv "$ac_tmp/config.h" "$ac_file" \
6232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6233 fi
6234 else
6235 $as_echo "/* $configure_input */" \
6236 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6237 || as_fn_error $? "could not create -" "$LINENO" 5
6238 fi
6239 # Compute "$ac_file"'s index in $config_headers.
6240 _am_arg="$ac_file"
6241 _am_stamp_count=1
6242 for _am_header in $config_headers :; do
6243 case $_am_header in
6244 $_am_arg | $_am_arg:* )
6245 break ;;
6246 * )
6247 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6248 esac
6249 done
6250 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6251 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6252 X"$_am_arg" : 'X\(//\)[^/]' \| \
6253 X"$_am_arg" : 'X\(//\)$' \| \
6254 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6255 $as_echo X"$_am_arg" |
6256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6257 s//\1/
6258 q
6259 }
6260 /^X\(\/\/\)[^/].*/{
6261 s//\1/
6262 q
6263 }
6264 /^X\(\/\/\)$/{
6265 s//\1/
6266 q
6267 }
6268 /^X\(\/\).*/{
6269 s//\1/
6270 q
6271 }
6272 s/.*/./; q'`/stamp-h$_am_stamp_count
6273 ;;
6274
6275 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6276 $as_echo "$as_me: executing $ac_file commands" >&6;}
6277 ;;
6278 esac
6279
6280
6281 case $ac_file$ac_mode in
6282 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6283 # Older Autoconf quotes --file arguments for eval, but not when files
6284 # are listed without --file. Let's play safe and only enable the eval
6285 # if we detect the quoting.
6286 # TODO: see whether this extra hack can be removed once we start
6287 # requiring Autoconf 2.70 or later.
6288 case $CONFIG_FILES in #(
6289 *\'*) :
6290 eval set x "$CONFIG_FILES" ;; #(
6291 *) :
6292 set x $CONFIG_FILES ;; #(
6293 *) :
6294 ;;
6295 esac
6296 shift
6297 # Used to flag and report bootstrapping failures.
6298 am_rc=0
6299 for am_mf
6300 do
6301 # Strip MF so we end up with the name of the file.
6302 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
6303 # Check whether this is an Automake generated Makefile which includes
6304 # dependency-tracking related rules and includes.
6305 # Grep'ing the whole file directly is not great: AIX grep has a line
6306 # limit of 2048, but all sed's we know have understand at least 4000.
6307 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
6308 || continue
6309 am_dirpart=`$as_dirname -- "$am_mf" ||
6310 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6311 X"$am_mf" : 'X\(//\)[^/]' \| \
6312 X"$am_mf" : 'X\(//\)$' \| \
6313 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
6314 $as_echo X"$am_mf" |
6315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6316 s//\1/
6317 q
6318 }
6319 /^X\(\/\/\)[^/].*/{
6320 s//\1/
6321 q
6322 }
6323 /^X\(\/\/\)$/{
6324 s//\1/
6325 q
6326 }
6327 /^X\(\/\).*/{
6328 s//\1/
6329 q
6330 }
6331 s/.*/./; q'`
6332 am_filepart=`$as_basename -- "$am_mf" ||
6333 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
6334 X"$am_mf" : 'X\(//\)$' \| \
6335 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
6336 $as_echo X/"$am_mf" |
6337 sed '/^.*\/\([^/][^/]*\)\/*$/{
6338 s//\1/
6339 q
6340 }
6341 /^X\/\(\/\/\)$/{
6342 s//\1/
6343 q
6344 }
6345 /^X\/\(\/\).*/{
6346 s//\1/
6347 q
6348 }
6349 s/.*/./; q'`
6350 { echo "$as_me:$LINENO: cd "$am_dirpart" \
6351 && sed -e '/# am--include-marker/d' "$am_filepart" \
6352 | $MAKE -f - am--depfiles" >&5
6353 (cd "$am_dirpart" \
6354 && sed -e '/# am--include-marker/d' "$am_filepart" \
6355 | $MAKE -f - am--depfiles) >&5 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } || am_rc=$?
6359 done
6360 if test $am_rc -ne 0; then
6361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6363 as_fn_error $? "Something went wrong bootstrapping makefile fragments
6364 for automatic dependency tracking. Try re-running configure with the
6365 '--disable-dependency-tracking' option to at least be able to build
6366 the package (albeit without support for automatic dependency tracking).
6367 See \`config.log' for more details" "$LINENO" 5; }
6368 fi
6369 { am_dirpart=; unset am_dirpart;}
6370 { am_filepart=; unset am_filepart;}
6371 { am_mf=; unset am_mf;}
6372 { am_rc=; unset am_rc;}
6373 rm -f conftest-deps.mk
6374 }
6375 ;;
6376
6377 esac
6378 done # for ac_tag
6379
6380
6381 as_fn_exit 0
6382 _ACEOF
6383 ac_clean_files=$ac_clean_files_save
6384
6385 test $ac_write_fail = 0 ||
6386 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6387
6388
6389 # configure is writing to config.log, and then calls config.status.
6390 # config.status does its own redirection, appending to config.log.
6391 # Unfortunately, on DOS this fails, as config.log is still kept open
6392 # by configure, so config.status won't be able to write to it; its
6393 # output is simply discarded. So we exec the FD to /dev/null,
6394 # effectively closing config.log, so it can be properly (re)opened and
6395 # appended to by config.status. When coming back to configure, we
6396 # need to make the FD available again.
6397 if test "$no_create" != yes; then
6398 ac_cs_success=:
6399 ac_config_status_args=
6400 test "$silent" = yes &&
6401 ac_config_status_args="$ac_config_status_args --quiet"
6402 exec 5>/dev/null
6403 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6404 exec 5>>config.log
6405 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6406 # would make configure fail if this is the last instruction.
6407 $ac_cs_success || as_fn_exit 1
6408 fi
6409 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6411 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6412 fi
6413