Reorder and rename Tracker list context menu option
[qBittorrent.git] / configure
blob629bbba1e48015c34296fec44166782e8f21b465
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for qbittorrent v4.2.0alpha.
5 # Report bugs to <bugs.qbittorrent.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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 *) :
176 esac
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; }
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 :
192 else
193 exitcode=1; echo positional parameters were not saved.
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
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
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
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
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
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 bug-autoconf@gnu.org and
270 $0: bugs.qbittorrent.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
275 exit 1
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
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
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 ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
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/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
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"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
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 ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
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 ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
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 ()
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
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
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
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
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
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/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
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
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 '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
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; }
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
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;;
513 ECHO_N='-n';;
514 esac
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
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'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
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
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
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'"
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'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
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`
569 # Initializations.
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=
580 # Identity of this package.
581 PACKAGE_NAME='qbittorrent'
582 PACKAGE_TARNAME='qbittorrent'
583 PACKAGE_VERSION='v4.2.0alpha'
584 PACKAGE_STRING='qbittorrent v4.2.0alpha'
585 PACKAGE_BUGREPORT='bugs.qbittorrent.org'
586 PACKAGE_URL='https://www.qbittorrent.org/'
588 ac_subst_vars='am__EXEEXT_FALSE
589 am__EXEEXT_TRUE
590 LTLIBOBJS
591 LIBOBJS
592 QBT_REMOVE_DEFINES
593 QBT_ADD_DEFINES
594 QBT_REMOVE_CONFIG
595 QBT_ADD_CONFIG
596 QBT_CONF_EXTRA_CFLAGS
597 QBT_CONF_INCLUDES
598 QBT_CXX
599 QBT_CC
600 EXPAND_MANDIR
601 EXPAND_DATADIR
602 EXPAND_BINDIR
603 EXPAND_PREFIX
604 zlib_LIBS
605 zlib_CFLAGS
606 openssl_LIBS
607 openssl_CFLAGS
608 libtorrent_LIBS
609 libtorrent_CFLAGS
610 BOOST_SYSTEM_LIB
611 BOOST_LDFLAGS
612 BOOST_CPPFLAGS
613 Qt5Svg_LIBS
614 Qt5Svg_CFLAGS
615 QT_QMAKE
616 PKG_CONFIG_LIBDIR
617 PKG_CONFIG_PATH
618 PKG_CONFIG
619 AM_BACKSLASH
620 AM_DEFAULT_VERBOSITY
621 AM_DEFAULT_V
622 AM_V
623 am__fastdepCXX_FALSE
624 am__fastdepCXX_TRUE
625 CXXDEPMODE
626 am__fastdepCC_FALSE
627 am__fastdepCC_TRUE
628 CCDEPMODE
629 am__nodep
630 AMDEPBACKSLASH
631 AMDEP_FALSE
632 AMDEP_TRUE
633 am__include
634 DEPDIR
635 am__untar
636 am__tar
637 AMTAR
638 am__leading_dot
639 SET_MAKE
641 mkdir_p
642 MKDIR_P
643 INSTALL_STRIP_PROGRAM
644 STRIP
645 install_sh
646 MAKEINFO
647 AUTOHEADER
648 AUTOMAKE
649 AUTOCONF
650 ACLOCAL
651 VERSION
652 PACKAGE
653 CYGPATH_W
654 am__isrc
655 INSTALL_DATA
656 INSTALL_SCRIPT
657 INSTALL_PROGRAM
658 host_os
659 host_vendor
660 host_cpu
661 host
662 build_os
663 build_vendor
664 build_cpu
665 build
667 ac_ct_CXX
668 CXXFLAGS
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
677 target_alias
678 host_alias
679 build_alias
680 LIBS
681 ECHO_T
682 ECHO_N
683 ECHO_C
684 DEFS
685 mandir
686 localedir
687 libdir
688 psdir
689 pdfdir
690 dvidir
691 htmldir
692 infodir
693 docdir
694 oldincludedir
695 includedir
696 runstatedir
697 localstatedir
698 sharedstatedir
699 sysconfdir
700 datadir
701 datarootdir
702 libexecdir
703 sbindir
704 bindir
705 program_transform_name
706 prefix
707 exec_prefix
708 PACKAGE_URL
709 PACKAGE_BUGREPORT
710 PACKAGE_STRING
711 PACKAGE_VERSION
712 PACKAGE_TARNAME
713 PACKAGE_NAME
714 PATH_SEPARATOR
715 SHELL
716 am__quote'
717 ac_subst_files=''
718 ac_user_opts='
719 enable_option_checking
720 enable_dependency_tracking
721 enable_silent_rules
722 with_qtsingleapplication
723 enable_debug
724 enable_stacktrace
725 enable_gui
726 enable_systemd
727 enable_webui
728 enable_qt_dbus
729 with_boost
730 with_boost_libdir
731 with_boost_system
733 ac_precious_vars='build_alias
734 host_alias
735 target_alias
737 CFLAGS
738 LDFLAGS
739 LIBS
740 CPPFLAGS
742 CXXFLAGS
744 PKG_CONFIG
745 PKG_CONFIG_PATH
746 PKG_CONFIG_LIBDIR
747 QT_QMAKE
748 Qt5Svg_CFLAGS
749 Qt5Svg_LIBS
750 libtorrent_CFLAGS
751 libtorrent_LIBS
752 openssl_CFLAGS
753 openssl_LIBS
754 zlib_CFLAGS
755 zlib_LIBS'
758 # Initialize some variables set by options.
759 ac_init_help=
760 ac_init_version=false
761 ac_unrecognized_opts=
762 ac_unrecognized_sep=
763 # The variables have the same names as the options, with
764 # dashes changed to underlines.
765 cache_file=/dev/null
766 exec_prefix=NONE
767 no_create=
768 no_recursion=
769 prefix=NONE
770 program_prefix=NONE
771 program_suffix=NONE
772 program_transform_name=s,x,x,
773 silent=
774 site=
775 srcdir=
776 verbose=
777 x_includes=NONE
778 x_libraries=NONE
780 # Installation directory options.
781 # These are left unexpanded so users can "make install exec_prefix=/foo"
782 # and all the variables that are supposed to be based on exec_prefix
783 # by default will actually change.
784 # Use braces instead of parens because sh, perl, etc. also accept them.
785 # (The list follows the same order as the GNU Coding Standards.)
786 bindir='${exec_prefix}/bin'
787 sbindir='${exec_prefix}/sbin'
788 libexecdir='${exec_prefix}/libexec'
789 datarootdir='${prefix}/share'
790 datadir='${datarootdir}'
791 sysconfdir='${prefix}/etc'
792 sharedstatedir='${prefix}/com'
793 localstatedir='${prefix}/var'
794 runstatedir='${localstatedir}/run'
795 includedir='${prefix}/include'
796 oldincludedir='/usr/include'
797 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
798 infodir='${datarootdir}/info'
799 htmldir='${docdir}'
800 dvidir='${docdir}'
801 pdfdir='${docdir}'
802 psdir='${docdir}'
803 libdir='${exec_prefix}/lib'
804 localedir='${datarootdir}/locale'
805 mandir='${datarootdir}/man'
807 ac_prev=
808 ac_dashdash=
809 for ac_option
811 # If the previous option needs an argument, assign it.
812 if test -n "$ac_prev"; then
813 eval $ac_prev=\$ac_option
814 ac_prev=
815 continue
818 case $ac_option in
819 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820 *=) ac_optarg= ;;
821 *) ac_optarg=yes ;;
822 esac
824 # Accept the important Cygnus configure options, so we can diagnose typos.
826 case $ac_dashdash$ac_option in
828 ac_dashdash=yes ;;
830 -bindir | --bindir | --bindi | --bind | --bin | --bi)
831 ac_prev=bindir ;;
832 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833 bindir=$ac_optarg ;;
835 -build | --build | --buil | --bui | --bu)
836 ac_prev=build_alias ;;
837 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838 build_alias=$ac_optarg ;;
840 -cache-file | --cache-file | --cache-fil | --cache-fi \
841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842 ac_prev=cache_file ;;
843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845 cache_file=$ac_optarg ;;
847 --config-cache | -C)
848 cache_file=config.cache ;;
850 -datadir | --datadir | --datadi | --datad)
851 ac_prev=datadir ;;
852 -datadir=* | --datadir=* | --datadi=* | --datad=*)
853 datadir=$ac_optarg ;;
855 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856 | --dataroo | --dataro | --datar)
857 ac_prev=datarootdir ;;
858 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860 datarootdir=$ac_optarg ;;
862 -disable-* | --disable-*)
863 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 as_fn_error $? "invalid feature name: $ac_useropt"
867 ac_useropt_orig=$ac_useropt
868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869 case $ac_user_opts in
871 "enable_$ac_useropt"
872 "*) ;;
873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874 ac_unrecognized_sep=', ';;
875 esac
876 eval enable_$ac_useropt=no ;;
878 -docdir | --docdir | --docdi | --doc | --do)
879 ac_prev=docdir ;;
880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881 docdir=$ac_optarg ;;
883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884 ac_prev=dvidir ;;
885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886 dvidir=$ac_optarg ;;
888 -enable-* | --enable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=\$ac_optarg ;;
904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906 | --exec | --exe | --ex)
907 ac_prev=exec_prefix ;;
908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910 | --exec=* | --exe=* | --ex=*)
911 exec_prefix=$ac_optarg ;;
913 -gas | --gas | --ga | --g)
914 # Obsolete; use --with-gas.
915 with_gas=yes ;;
917 -help | --help | --hel | --he | -h)
918 ac_init_help=long ;;
919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920 ac_init_help=recursive ;;
921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922 ac_init_help=short ;;
924 -host | --host | --hos | --ho)
925 ac_prev=host_alias ;;
926 -host=* | --host=* | --hos=* | --ho=*)
927 host_alias=$ac_optarg ;;
929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930 ac_prev=htmldir ;;
931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932 | --ht=*)
933 htmldir=$ac_optarg ;;
935 -includedir | --includedir | --includedi | --included | --include \
936 | --includ | --inclu | --incl | --inc)
937 ac_prev=includedir ;;
938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939 | --includ=* | --inclu=* | --incl=* | --inc=*)
940 includedir=$ac_optarg ;;
942 -infodir | --infodir | --infodi | --infod | --info | --inf)
943 ac_prev=infodir ;;
944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945 infodir=$ac_optarg ;;
947 -libdir | --libdir | --libdi | --libd)
948 ac_prev=libdir ;;
949 -libdir=* | --libdir=* | --libdi=* | --libd=*)
950 libdir=$ac_optarg ;;
952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953 | --libexe | --libex | --libe)
954 ac_prev=libexecdir ;;
955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956 | --libexe=* | --libex=* | --libe=*)
957 libexecdir=$ac_optarg ;;
959 -localedir | --localedir | --localedi | --localed | --locale)
960 ac_prev=localedir ;;
961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962 localedir=$ac_optarg ;;
964 -localstatedir | --localstatedir | --localstatedi | --localstated \
965 | --localstate | --localstat | --localsta | --localst | --locals)
966 ac_prev=localstatedir ;;
967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969 localstatedir=$ac_optarg ;;
971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972 ac_prev=mandir ;;
973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974 mandir=$ac_optarg ;;
976 -nfp | --nfp | --nf)
977 # Obsolete; use --without-fp.
978 with_fp=no ;;
980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981 | --no-cr | --no-c | -n)
982 no_create=yes ;;
984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986 no_recursion=yes ;;
988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990 | --oldin | --oldi | --old | --ol | --o)
991 ac_prev=oldincludedir ;;
992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995 oldincludedir=$ac_optarg ;;
997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998 ac_prev=prefix ;;
999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 prefix=$ac_optarg ;;
1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003 | --program-pre | --program-pr | --program-p)
1004 ac_prev=program_prefix ;;
1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007 program_prefix=$ac_optarg ;;
1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010 | --program-suf | --program-su | --program-s)
1011 ac_prev=program_suffix ;;
1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014 program_suffix=$ac_optarg ;;
1016 -program-transform-name | --program-transform-name \
1017 | --program-transform-nam | --program-transform-na \
1018 | --program-transform-n | --program-transform- \
1019 | --program-transform | --program-transfor \
1020 | --program-transfo | --program-transf \
1021 | --program-trans | --program-tran \
1022 | --progr-tra | --program-tr | --program-t)
1023 ac_prev=program_transform_name ;;
1024 -program-transform-name=* | --program-transform-name=* \
1025 | --program-transform-nam=* | --program-transform-na=* \
1026 | --program-transform-n=* | --program-transform-=* \
1027 | --program-transform=* | --program-transfor=* \
1028 | --program-transfo=* | --program-transf=* \
1029 | --program-trans=* | --program-tran=* \
1030 | --progr-tra=* | --program-tr=* | --program-t=*)
1031 program_transform_name=$ac_optarg ;;
1033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034 ac_prev=pdfdir ;;
1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036 pdfdir=$ac_optarg ;;
1038 -psdir | --psdir | --psdi | --psd | --ps)
1039 ac_prev=psdir ;;
1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041 psdir=$ac_optarg ;;
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1045 silent=yes ;;
1047 -runstatedir | --runstatedir | --runstatedi | --runstated \
1048 | --runstate | --runstat | --runsta | --runst | --runs \
1049 | --run | --ru | --r)
1050 ac_prev=runstatedir ;;
1051 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1052 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1053 | --run=* | --ru=* | --r=*)
1054 runstatedir=$ac_optarg ;;
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1101 -with-* | --with-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=\$ac_optarg ;;
1117 -without-* | --without-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1126 "with_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=no ;;
1133 --x)
1134 # Obsolete; use --with-x.
1135 with_x=yes ;;
1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138 | --x-incl | --x-inc | --x-in | --x-i)
1139 ac_prev=x_includes ;;
1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142 x_includes=$ac_optarg ;;
1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146 ac_prev=x_libraries ;;
1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149 x_libraries=$ac_optarg ;;
1151 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1152 Try \`$0 --help' for more information"
1155 *=*)
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 case $ac_envvar in #(
1159 '' | [0-9]* | *[!_$as_cr_alnum]* )
1160 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1161 esac
1162 eval $ac_envvar=\$ac_optarg
1163 export $ac_envvar ;;
1166 # FIXME: should be removed in autoconf 3.0.
1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1173 esac
1174 done
1176 if test -n "$ac_prev"; then
1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1178 as_fn_error $? "missing argument to $ac_option"
1181 if test -n "$ac_unrecognized_opts"; then
1182 case $enable_option_checking in
1183 no) ;;
1184 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 esac
1189 # Check all directory arguments for consistency.
1190 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir runstatedir
1195 eval ac_val=\$$ac_var
1196 # Remove trailing slashes.
1197 case $ac_val in
1198 */ )
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\$ac_val;;
1201 esac
1202 # Be sure to have absolute directory names.
1203 case $ac_val in
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 esac
1207 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1208 done
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1213 build=$build_alias
1214 host=$host_alias
1215 target=$target_alias
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
1221 elif test "x$build_alias" != "x$host_alias"; then
1222 cross_compiling=yes
1226 ac_tool_prefix=
1227 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1229 test "$silent" = yes && exec 6>/dev/null
1232 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1233 ac_ls_di=`ls -di .` &&
1234 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1235 as_fn_error $? "working directory cannot be determined"
1236 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237 as_fn_error $? "pwd does not report name of working directory"
1240 # Find the source files, if location was not specified.
1241 if test -z "$srcdir"; then
1242 ac_srcdir_defaulted=yes
1243 # Try the directory containing this script, then the parent directory.
1244 ac_confdir=`$as_dirname -- "$as_myself" ||
1245 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246 X"$as_myself" : 'X\(//\)[^/]' \| \
1247 X"$as_myself" : 'X\(//\)$' \| \
1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249 $as_echo X"$as_myself" |
1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 s//\1/
1254 /^X\(\/\/\)[^/].*/{
1255 s//\1/
1258 /^X\(\/\/\)$/{
1259 s//\1/
1262 /^X\(\/\).*/{
1263 s//\1/
1266 s/.*/./; q'`
1267 srcdir=$ac_confdir
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 srcdir=..
1271 else
1272 ac_srcdir_defaulted=no
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1276 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1278 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279 ac_abs_confdir=`(
1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1281 pwd)`
1282 # When building in place, set srcdir=.
1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 srcdir=.
1286 # Remove unnecessary trailing slashes from srcdir.
1287 # Double slashes in file names in object file debugging info
1288 # mess up M-x gdb in Emacs.
1289 case $srcdir in
1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 esac
1292 for ac_var in $ac_precious_vars; do
1293 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_env_${ac_var}_value=\$${ac_var}
1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 done
1300 # Report the --help message.
1302 if test "$ac_init_help" = "long"; then
1303 # Omit some internal or obsolete options to make the list less imposing.
1304 # This message is too long to be a string in the A/UX 3.1 sh.
1305 cat <<_ACEOF
1306 \`configure' configures qbittorrent v4.2.0alpha to adapt to many kinds of systems.
1308 Usage: $0 [OPTION]... [VAR=VALUE]...
1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 VAR=VALUE. See below for descriptions of some of the useful variables.
1313 Defaults for the options are specified in brackets.
1315 Configuration:
1316 -h, --help display this help and exit
1317 --help=short display options specific to this package
1318 --help=recursive display the short help of all the included packages
1319 -V, --version display version information and exit
1320 -q, --quiet, --silent do not print \`checking ...' messages
1321 --cache-file=FILE cache test results in FILE [disabled]
1322 -C, --config-cache alias for \`--cache-file=config.cache'
1323 -n, --no-create do not create output files
1324 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1326 Installation directories:
1327 --prefix=PREFIX install architecture-independent files in PREFIX
1328 [$ac_default_prefix]
1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 [PREFIX]
1332 By default, \`make install' will install all the files in
1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 for instance \`--prefix=\$HOME'.
1337 For better control, use the options below.
1339 Fine tuning of the installation directories:
1340 --bindir=DIR user executables [EPREFIX/bin]
1341 --sbindir=DIR system admin executables [EPREFIX/sbin]
1342 --libexecdir=DIR program executables [EPREFIX/libexec]
1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1346 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1347 --libdir=DIR object code libraries [EPREFIX/lib]
1348 --includedir=DIR C header files [PREFIX/include]
1349 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1350 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1351 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1352 --infodir=DIR info documentation [DATAROOTDIR/info]
1353 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1354 --mandir=DIR man documentation [DATAROOTDIR/man]
1355 --docdir=DIR documentation root [DATAROOTDIR/doc/qbittorrent]
1356 --htmldir=DIR html documentation [DOCDIR]
1357 --dvidir=DIR dvi documentation [DOCDIR]
1358 --pdfdir=DIR pdf documentation [DOCDIR]
1359 --psdir=DIR ps documentation [DOCDIR]
1360 _ACEOF
1362 cat <<\_ACEOF
1364 Program names:
1365 --program-prefix=PREFIX prepend PREFIX to installed program names
1366 --program-suffix=SUFFIX append SUFFIX to installed program names
1367 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1369 System types:
1370 --build=BUILD configure for building on BUILD [guessed]
1371 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1372 _ACEOF
1375 if test -n "$ac_init_help"; then
1376 case $ac_init_help in
1377 short | recursive ) echo "Configuration of qbittorrent v4.2.0alpha:";;
1378 esac
1379 cat <<\_ACEOF
1381 Optional Features:
1382 --disable-option-checking ignore unrecognized --enable/--with options
1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1385 --enable-dependency-tracking
1386 do not reject slow dependency extractors
1387 --disable-dependency-tracking
1388 speeds up one-time build
1389 --enable-silent-rules less verbose build output (undo: "make V=1")
1390 --disable-silent-rules verbose build output (undo: "make V=0")
1391 --enable-debug Enable debug build
1392 --enable-stacktrace Enable stacktrace feature (default=auto)
1393 --disable-gui Disable the GUI for headless running. Disables
1394 QtDBus and the GeoIP Database.
1395 --enable-systemd Install the systemd service file (headless only).
1396 --disable-webui Disable the WebUI.
1397 --disable-qt-dbus Disable use of QtDBus (GUI only)
1399 Optional Packages:
1400 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1401 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1402 --with-qtsingleapplication=[system|shipped]
1403 Use the shipped qtsingleapplication library or the
1404 system one (default=shipped)
1405 --with-boost[=ARG] use Boost library from a standard location
1406 (ARG=yes), from the specified location (ARG=<path>),
1407 or disable it (ARG=no) [ARG=yes]
1408 --with-boost-libdir=LIB_DIR
1409 Force given directory for boost libraries. Note that
1410 this will override library path detection, so use
1411 this parameter only if default library detection
1412 fails and you know exactly where your boost
1413 libraries are located.
1414 --with-boost-system[=special-lib]
1415 use the System library from boost - it is possible
1416 to specify a certain library for the linker e.g.
1417 --with-boost-system=boost_system-gcc-mt
1419 Some influential environment variables:
1420 CC C compiler command
1421 CFLAGS C compiler flags
1422 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1423 nonstandard directory <lib dir>
1424 LIBS libraries to pass to the linker, e.g. -l<library>
1425 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1426 you have headers in a nonstandard directory <include dir>
1427 CXX C++ compiler command
1428 CXXFLAGS C++ compiler flags
1429 PKG_CONFIG path to pkg-config utility
1430 PKG_CONFIG_PATH
1431 directories to add to pkg-config's search path
1432 PKG_CONFIG_LIBDIR
1433 path overriding pkg-config's built-in search path
1434 QT_QMAKE value of host_bins for Qt5Core >= 5.5.1, overriding pkg-config
1435 Qt5Svg_CFLAGS
1436 C compiler flags for Qt5Svg, overriding pkg-config
1437 Qt5Svg_LIBS linker flags for Qt5Svg, overriding pkg-config
1438 libtorrent_CFLAGS
1439 C compiler flags for libtorrent, overriding pkg-config
1440 libtorrent_LIBS
1441 linker flags for libtorrent, overriding pkg-config
1442 openssl_CFLAGS
1443 C compiler flags for openssl, overriding pkg-config
1444 openssl_LIBS
1445 linker flags for openssl, overriding pkg-config
1446 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
1447 zlib_LIBS linker flags for zlib, overriding pkg-config
1449 Use these variables to override the choices made by `configure' or to help
1450 it to find libraries and programs with nonstandard names/locations.
1452 Report bugs to <bugs.qbittorrent.org>.
1453 qbittorrent home page: <https://www.qbittorrent.org/>.
1454 _ACEOF
1455 ac_status=$?
1458 if test "$ac_init_help" = "recursive"; then
1459 # If there are subdirs, report their specific --help.
1460 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461 test -d "$ac_dir" ||
1462 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463 continue
1464 ac_builddir=.
1466 case "$ac_dir" in
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475 esac ;;
1476 esac
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1482 case $srcdir in
1483 .) # We are building in place.
1484 ac_srcdir=.
1485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
1488 ac_srcdir=$srcdir$ac_dir_suffix;
1489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1491 *) # Relative name.
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495 esac
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure" --help=recursive
1506 else
1507 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508 fi || ac_status=$?
1509 cd "$ac_pwd" || { ac_status=$?; break; }
1510 done
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1515 cat <<\_ACEOF
1516 qbittorrent configure v4.2.0alpha
1517 generated by GNU Autoconf 2.69
1519 Copyright (C) 2012 Free Software Foundation, Inc.
1520 This configure script is free software; the Free Software Foundation
1521 gives unlimited permission to copy, distribute and modify it.
1522 _ACEOF
1523 exit
1526 ## ------------------------ ##
1527 ## Autoconf initialization. ##
1528 ## ------------------------ ##
1530 # ac_fn_c_try_compile LINENO
1531 # --------------------------
1532 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1533 ac_fn_c_try_compile ()
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 rm -f conftest.$ac_objext
1537 if { { ac_try="$ac_compile"
1538 case "(($ac_try" in
1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540 *) ac_try_echo=$ac_try;;
1541 esac
1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_compile") 2>conftest.err
1545 ac_status=$?
1546 if test -s conftest.err; then
1547 grep -v '^ *+' conftest.err >conftest.er1
1548 cat conftest.er1 >&5
1549 mv -f conftest.er1 conftest.err
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } && {
1553 test -z "$ac_c_werror_flag" ||
1554 test ! -s conftest.err
1555 } && test -s conftest.$ac_objext; then :
1556 ac_retval=0
1557 else
1558 $as_echo "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1561 ac_retval=1
1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564 as_fn_set_status $ac_retval
1566 } # ac_fn_c_try_compile
1568 # ac_fn_cxx_try_compile LINENO
1569 # ----------------------------
1570 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1571 ac_fn_cxx_try_compile ()
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 rm -f conftest.$ac_objext
1575 if { { ac_try="$ac_compile"
1576 case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579 esac
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_compile") 2>conftest.err
1583 ac_status=$?
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && {
1591 test -z "$ac_cxx_werror_flag" ||
1592 test ! -s conftest.err
1593 } && test -s conftest.$ac_objext; then :
1594 ac_retval=0
1595 else
1596 $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1599 ac_retval=1
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 as_fn_set_status $ac_retval
1604 } # ac_fn_cxx_try_compile
1606 # ac_fn_cxx_try_link LINENO
1607 # -------------------------
1608 # Try to link conftest.$ac_ext, and return whether this succeeded.
1609 ac_fn_cxx_try_link ()
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext conftest$ac_exeext
1613 if { { ac_try="$ac_link"
1614 case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_link") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_cxx_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest$ac_exeext && {
1632 test "$cross_compiling" = yes ||
1633 test -x conftest$ac_exeext
1634 }; then :
1635 ac_retval=0
1636 else
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1640 ac_retval=1
1642 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1643 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1644 # interfere with the next link command; also delete a directory that is
1645 # left behind by Apple's compiler. We do this before executing the actions.
1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1650 } # ac_fn_cxx_try_link
1651 cat >config.log <<_ACEOF
1652 This file contains any messages produced by compilers while
1653 running configure, to aid debugging if configure makes a mistake.
1655 It was created by qbittorrent $as_me v4.2.0alpha, which was
1656 generated by GNU Autoconf 2.69. Invocation command line was
1658 $ $0 $@
1660 _ACEOF
1661 exec 5>>config.log
1663 cat <<_ASUNAME
1664 ## --------- ##
1665 ## Platform. ##
1666 ## --------- ##
1668 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1669 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1670 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1671 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1672 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1674 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1675 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1677 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1678 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1679 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1680 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1681 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1682 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1683 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1685 _ASUNAME
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1690 IFS=$as_save_IFS
1691 test -z "$as_dir" && as_dir=.
1692 $as_echo "PATH: $as_dir"
1693 done
1694 IFS=$as_save_IFS
1696 } >&5
1698 cat >&5 <<_ACEOF
1701 ## ----------- ##
1702 ## Core tests. ##
1703 ## ----------- ##
1705 _ACEOF
1708 # Keep a trace of the command line.
1709 # Strip out --no-create and --no-recursion so they do not pile up.
1710 # Strip out --silent because we don't want to record it for future runs.
1711 # Also quote any args containing shell meta-characters.
1712 # Make two passes to allow for proper duplicate-argument suppression.
1713 ac_configure_args=
1714 ac_configure_args0=
1715 ac_configure_args1=
1716 ac_must_keep_next=false
1717 for ac_pass in 1 2
1719 for ac_arg
1721 case $ac_arg in
1722 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1724 | -silent | --silent | --silen | --sile | --sil)
1725 continue ;;
1726 *\'*)
1727 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1728 esac
1729 case $ac_pass in
1730 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1732 as_fn_append ac_configure_args1 " '$ac_arg'"
1733 if test $ac_must_keep_next = true; then
1734 ac_must_keep_next=false # Got value, back to normal.
1735 else
1736 case $ac_arg in
1737 *=* | --config-cache | -C | -disable-* | --disable-* \
1738 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1739 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1740 | -with-* | --with-* | -without-* | --without-* | --x)
1741 case "$ac_configure_args0 " in
1742 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1743 esac
1745 -* ) ac_must_keep_next=true ;;
1746 esac
1748 as_fn_append ac_configure_args " '$ac_arg'"
1750 esac
1751 done
1752 done
1753 { ac_configure_args0=; unset ac_configure_args0;}
1754 { ac_configure_args1=; unset ac_configure_args1;}
1756 # When interrupted or exit'd, cleanup temporary files, and complete
1757 # config.log. We remove comments because anyway the quotes in there
1758 # would cause problems or look ugly.
1759 # WARNING: Use '\'' to represent an apostrophe within the trap.
1760 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1761 trap 'exit_status=$?
1762 # Save into config.log some information that might help in debugging.
1764 echo
1766 $as_echo "## ---------------- ##
1767 ## Cache variables. ##
1768 ## ---------------- ##"
1769 echo
1770 # The following way of writing the cache mishandles newlines in values,
1772 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1773 eval ac_val=\$$ac_var
1774 case $ac_val in #(
1775 *${as_nl}*)
1776 case $ac_var in #(
1777 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1778 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1779 esac
1780 case $ac_var in #(
1781 _ | IFS | as_nl) ;; #(
1782 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1783 *) { eval $ac_var=; unset $ac_var;} ;;
1784 esac ;;
1785 esac
1786 done
1787 (set) 2>&1 |
1788 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1789 *${as_nl}ac_space=\ *)
1790 sed -n \
1791 "s/'\''/'\''\\\\'\'''\''/g;
1792 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1793 ;; #(
1795 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1797 esac |
1798 sort
1800 echo
1802 $as_echo "## ----------------- ##
1803 ## Output variables. ##
1804 ## ----------------- ##"
1805 echo
1806 for ac_var in $ac_subst_vars
1808 eval ac_val=\$$ac_var
1809 case $ac_val in
1810 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1811 esac
1812 $as_echo "$ac_var='\''$ac_val'\''"
1813 done | sort
1814 echo
1816 if test -n "$ac_subst_files"; then
1817 $as_echo "## ------------------- ##
1818 ## File substitutions. ##
1819 ## ------------------- ##"
1820 echo
1821 for ac_var in $ac_subst_files
1823 eval ac_val=\$$ac_var
1824 case $ac_val in
1825 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826 esac
1827 $as_echo "$ac_var='\''$ac_val'\''"
1828 done | sort
1829 echo
1832 if test -s confdefs.h; then
1833 $as_echo "## ----------- ##
1834 ## confdefs.h. ##
1835 ## ----------- ##"
1836 echo
1837 cat confdefs.h
1838 echo
1840 test "$ac_signal" != 0 &&
1841 $as_echo "$as_me: caught signal $ac_signal"
1842 $as_echo "$as_me: exit $exit_status"
1843 } >&5
1844 rm -f core *.core core.conftest.* &&
1845 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1846 exit $exit_status
1848 for ac_signal in 1 2 13 15; do
1849 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1850 done
1851 ac_signal=0
1853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1854 rm -f -r conftest* confdefs.h
1856 $as_echo "/* confdefs.h */" > confdefs.h
1858 # Predefined preprocessor variables.
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_NAME "$PACKAGE_NAME"
1862 _ACEOF
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1866 _ACEOF
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1870 _ACEOF
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_STRING "$PACKAGE_STRING"
1874 _ACEOF
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1878 _ACEOF
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_URL "$PACKAGE_URL"
1882 _ACEOF
1885 # Let the site file select an alternate cache file if it wants to.
1886 # Prefer an explicitly selected file to automatically selected ones.
1887 ac_site_file1=NONE
1888 ac_site_file2=NONE
1889 if test -n "$CONFIG_SITE"; then
1890 # We do not want a PATH search for config.site.
1891 case $CONFIG_SITE in #((
1892 -*) ac_site_file1=./$CONFIG_SITE;;
1893 */*) ac_site_file1=$CONFIG_SITE;;
1894 *) ac_site_file1=./$CONFIG_SITE;;
1895 esac
1896 elif test "x$prefix" != xNONE; then
1897 ac_site_file1=$prefix/share/config.site
1898 ac_site_file2=$prefix/etc/config.site
1899 else
1900 ac_site_file1=$ac_default_prefix/share/config.site
1901 ac_site_file2=$ac_default_prefix/etc/config.site
1903 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1905 test "x$ac_site_file" = xNONE && continue
1906 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1908 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1909 sed 's/^/| /' "$ac_site_file" >&5
1910 . "$ac_site_file" \
1911 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1913 as_fn_error $? "failed to load site script $ac_site_file
1914 See \`config.log' for more details" "$LINENO" 5; }
1916 done
1918 if test -r "$cache_file"; then
1919 # Some versions of bash will fail to source /dev/null (special files
1920 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1921 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1923 $as_echo "$as_me: loading cache $cache_file" >&6;}
1924 case $cache_file in
1925 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1926 *) . "./$cache_file";;
1927 esac
1929 else
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1931 $as_echo "$as_me: creating cache $cache_file" >&6;}
1932 >$cache_file
1935 # Check that the precious variables saved in the cache have kept the same
1936 # value.
1937 ac_cache_corrupted=false
1938 for ac_var in $ac_precious_vars; do
1939 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1940 eval ac_new_set=\$ac_env_${ac_var}_set
1941 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1942 eval ac_new_val=\$ac_env_${ac_var}_value
1943 case $ac_old_set,$ac_new_set in
1944 set,)
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1946 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1947 ac_cache_corrupted=: ;;
1948 ,set)
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1950 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1951 ac_cache_corrupted=: ;;
1952 ,);;
1954 if test "x$ac_old_val" != "x$ac_new_val"; then
1955 # differences in whitespace do not lead to failure.
1956 ac_old_val_w=`echo x $ac_old_val`
1957 ac_new_val_w=`echo x $ac_new_val`
1958 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1960 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1961 ac_cache_corrupted=:
1962 else
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1964 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1965 eval $ac_var=\$ac_old_val
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1968 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1970 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1971 fi;;
1972 esac
1973 # Pass precious variables to config.status.
1974 if test "$ac_new_set" = set; then
1975 case $ac_new_val in
1976 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1977 *) ac_arg=$ac_var=$ac_new_val ;;
1978 esac
1979 case " $ac_configure_args " in
1980 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1981 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1982 esac
1984 done
1985 if $ac_cache_corrupted; then
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1989 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1990 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1992 ## -------------------- ##
1993 ## Main body of script. ##
1994 ## -------------------- ##
1996 ac_ext=c
1997 ac_cpp='$CPP $CPPFLAGS'
1998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003 ac_aux_dir=
2004 for ac_dir in build-aux "$srcdir"/build-aux; do
2005 if test -f "$ac_dir/install-sh"; then
2006 ac_aux_dir=$ac_dir
2007 ac_install_sh="$ac_aux_dir/install-sh -c"
2008 break
2009 elif test -f "$ac_dir/install.sh"; then
2010 ac_aux_dir=$ac_dir
2011 ac_install_sh="$ac_aux_dir/install.sh -c"
2012 break
2013 elif test -f "$ac_dir/shtool"; then
2014 ac_aux_dir=$ac_dir
2015 ac_install_sh="$ac_aux_dir/shtool install -c"
2016 break
2018 done
2019 if test -z "$ac_aux_dir"; then
2020 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2023 # These three variables are undocumented and unsupported,
2024 # and are intended to be withdrawn in a future Autoconf release.
2025 # They can cause serious problems if a builder's source tree is in a directory
2026 # whose full name contains unusual characters.
2027 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2028 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2029 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2033 ac_ext=c
2034 ac_cpp='$CPP $CPPFLAGS'
2035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038 if test -n "$ac_tool_prefix"; then
2039 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2040 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2042 $as_echo_n "checking for $ac_word... " >&6; }
2043 if ${ac_cv_prog_CC+:} false; then :
2044 $as_echo_n "(cached) " >&6
2045 else
2046 if test -n "$CC"; then
2047 ac_cv_prog_CC="$CC" # Let the user override the test.
2048 else
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2052 IFS=$as_save_IFS
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2058 break 2
2060 done
2061 done
2062 IFS=$as_save_IFS
2066 CC=$ac_cv_prog_CC
2067 if test -n "$CC"; then
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2069 $as_echo "$CC" >&6; }
2070 else
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2072 $as_echo "no" >&6; }
2077 if test -z "$ac_cv_prog_CC"; then
2078 ac_ct_CC=$CC
2079 # Extract the first word of "gcc", so it can be a program name with args.
2080 set dummy gcc; ac_word=$2
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2082 $as_echo_n "checking for $ac_word... " >&6; }
2083 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2084 $as_echo_n "(cached) " >&6
2085 else
2086 if test -n "$ac_ct_CC"; then
2087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2088 else
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_ac_ct_CC="gcc"
2097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 break 2
2100 done
2101 done
2102 IFS=$as_save_IFS
2106 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2107 if test -n "$ac_ct_CC"; then
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2109 $as_echo "$ac_ct_CC" >&6; }
2110 else
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2112 $as_echo "no" >&6; }
2115 if test "x$ac_ct_CC" = x; then
2116 CC=""
2117 else
2118 case $cross_compiling:$ac_tool_warned in
2119 yes:)
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2122 ac_tool_warned=yes ;;
2123 esac
2124 CC=$ac_ct_CC
2126 else
2127 CC="$ac_cv_prog_CC"
2130 if test -z "$CC"; then
2131 if test -n "$ac_tool_prefix"; then
2132 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2133 set dummy ${ac_tool_prefix}cc; ac_word=$2
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2135 $as_echo_n "checking for $ac_word... " >&6; }
2136 if ${ac_cv_prog_CC+:} false; then :
2137 $as_echo_n "(cached) " >&6
2138 else
2139 if test -n "$CC"; then
2140 ac_cv_prog_CC="$CC" # Let the user override the test.
2141 else
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
2147 for ac_exec_ext in '' $ac_executable_extensions; do
2148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2149 ac_cv_prog_CC="${ac_tool_prefix}cc"
2150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2151 break 2
2153 done
2154 done
2155 IFS=$as_save_IFS
2159 CC=$ac_cv_prog_CC
2160 if test -n "$CC"; then
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2162 $as_echo "$CC" >&6; }
2163 else
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2165 $as_echo "no" >&6; }
2171 if test -z "$CC"; then
2172 # Extract the first word of "cc", so it can be a program name with args.
2173 set dummy cc; ac_word=$2
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2175 $as_echo_n "checking for $ac_word... " >&6; }
2176 if ${ac_cv_prog_CC+:} false; then :
2177 $as_echo_n "(cached) " >&6
2178 else
2179 if test -n "$CC"; then
2180 ac_cv_prog_CC="$CC" # Let the user override the test.
2181 else
2182 ac_prog_rejected=no
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
2189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2190 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2191 ac_prog_rejected=yes
2192 continue
2194 ac_cv_prog_CC="cc"
2195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 break 2
2198 done
2199 done
2200 IFS=$as_save_IFS
2202 if test $ac_prog_rejected = yes; then
2203 # We found a bogon in the path, so make sure we never use it.
2204 set dummy $ac_cv_prog_CC
2205 shift
2206 if test $# != 0; then
2207 # We chose a different compiler from the bogus one.
2208 # However, it has the same basename, so the bogon will be chosen
2209 # first if we set CC to just the basename; use the full file name.
2210 shift
2211 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2216 CC=$ac_cv_prog_CC
2217 if test -n "$CC"; then
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2219 $as_echo "$CC" >&6; }
2220 else
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2222 $as_echo "no" >&6; }
2227 if test -z "$CC"; then
2228 if test -n "$ac_tool_prefix"; then
2229 for ac_prog in cl.exe
2231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2232 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2234 $as_echo_n "checking for $ac_word... " >&6; }
2235 if ${ac_cv_prog_CC+:} false; then :
2236 $as_echo_n "(cached) " >&6
2237 else
2238 if test -n "$CC"; then
2239 ac_cv_prog_CC="$CC" # Let the user override the test.
2240 else
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH
2244 IFS=$as_save_IFS
2245 test -z "$as_dir" && as_dir=.
2246 for ac_exec_ext in '' $ac_executable_extensions; do
2247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2248 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 break 2
2252 done
2253 done
2254 IFS=$as_save_IFS
2258 CC=$ac_cv_prog_CC
2259 if test -n "$CC"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2261 $as_echo "$CC" >&6; }
2262 else
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2264 $as_echo "no" >&6; }
2268 test -n "$CC" && break
2269 done
2271 if test -z "$CC"; then
2272 ac_ct_CC=$CC
2273 for ac_prog in cl.exe
2275 # Extract the first word of "$ac_prog", so it can be a program name with args.
2276 set dummy $ac_prog; ac_word=$2
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2278 $as_echo_n "checking for $ac_word... " >&6; }
2279 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2280 $as_echo_n "(cached) " >&6
2281 else
2282 if test -n "$ac_ct_CC"; then
2283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2284 else
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2292 ac_cv_prog_ac_ct_CC="$ac_prog"
2293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 break 2
2296 done
2297 done
2298 IFS=$as_save_IFS
2302 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2303 if test -n "$ac_ct_CC"; then
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2305 $as_echo "$ac_ct_CC" >&6; }
2306 else
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2308 $as_echo "no" >&6; }
2312 test -n "$ac_ct_CC" && break
2313 done
2315 if test "x$ac_ct_CC" = x; then
2316 CC=""
2317 else
2318 case $cross_compiling:$ac_tool_warned in
2319 yes:)
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2322 ac_tool_warned=yes ;;
2323 esac
2324 CC=$ac_ct_CC
2331 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2333 as_fn_error $? "no acceptable C compiler found in \$PATH
2334 See \`config.log' for more details" "$LINENO" 5; }
2336 # Provide some information about the compiler.
2337 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2338 set X $ac_compile
2339 ac_compiler=$2
2340 for ac_option in --version -v -V -qversion; do
2341 { { ac_try="$ac_compiler $ac_option >&5"
2342 case "(($ac_try" in
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2345 esac
2346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2347 $as_echo "$ac_try_echo"; } >&5
2348 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2349 ac_status=$?
2350 if test -s conftest.err; then
2351 sed '10a\
2352 ... rest of stderr output deleted ...
2353 10q' conftest.err >conftest.er1
2354 cat conftest.er1 >&5
2356 rm -f conftest.er1 conftest.err
2357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2358 test $ac_status = 0; }
2359 done
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2365 main ()
2369 return 0;
2371 _ACEOF
2372 ac_clean_files_save=$ac_clean_files
2373 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2374 # Try to create an executable without -o first, disregard a.out.
2375 # It will help us diagnose broken compilers, and finding out an intuition
2376 # of exeext.
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2378 $as_echo_n "checking whether the C compiler works... " >&6; }
2379 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2381 # The possible output files:
2382 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2384 ac_rmfiles=
2385 for ac_file in $ac_files
2387 case $ac_file in
2388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2389 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2390 esac
2391 done
2392 rm -f $ac_rmfiles
2394 if { { ac_try="$ac_link_default"
2395 case "(($ac_try" in
2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397 *) ac_try_echo=$ac_try;;
2398 esac
2399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2400 $as_echo "$ac_try_echo"; } >&5
2401 (eval "$ac_link_default") 2>&5
2402 ac_status=$?
2403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2404 test $ac_status = 0; }; then :
2405 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2406 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2407 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2408 # so that the user can short-circuit this test for compilers unknown to
2409 # Autoconf.
2410 for ac_file in $ac_files ''
2412 test -f "$ac_file" || continue
2413 case $ac_file in
2414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2416 [ab].out )
2417 # We found the default executable, but exeext='' is most
2418 # certainly right.
2419 break;;
2420 *.* )
2421 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2422 then :; else
2423 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2425 # We set ac_cv_exeext here because the later test for it is not
2426 # safe: cross compilers may not add the suffix if given an `-o'
2427 # argument, so we may need to know it at that point already.
2428 # Even if this section looks crufty: it has the advantage of
2429 # actually working.
2430 break;;
2432 break;;
2433 esac
2434 done
2435 test "$ac_cv_exeext" = no && ac_cv_exeext=
2437 else
2438 ac_file=''
2440 if test -z "$ac_file"; then :
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2442 $as_echo "no" >&6; }
2443 $as_echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448 as_fn_error 77 "C compiler cannot create executables
2449 See \`config.log' for more details" "$LINENO" 5; }
2450 else
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2452 $as_echo "yes" >&6; }
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2455 $as_echo_n "checking for C compiler default output file name... " >&6; }
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2457 $as_echo "$ac_file" >&6; }
2458 ac_exeext=$ac_cv_exeext
2460 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2461 ac_clean_files=$ac_clean_files_save
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2463 $as_echo_n "checking for suffix of executables... " >&6; }
2464 if { { ac_try="$ac_link"
2465 case "(($ac_try" in
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2468 esac
2469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2470 $as_echo "$ac_try_echo"; } >&5
2471 (eval "$ac_link") 2>&5
2472 ac_status=$?
2473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2474 test $ac_status = 0; }; then :
2475 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2476 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2477 # work properly (i.e., refer to `conftest.exe'), while it won't with
2478 # `rm'.
2479 for ac_file in conftest.exe conftest conftest.*; do
2480 test -f "$ac_file" || continue
2481 case $ac_file in
2482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2483 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2484 break;;
2485 * ) break;;
2486 esac
2487 done
2488 else
2489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2491 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2492 See \`config.log' for more details" "$LINENO" 5; }
2494 rm -f conftest conftest$ac_cv_exeext
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2496 $as_echo "$ac_cv_exeext" >&6; }
2498 rm -f conftest.$ac_ext
2499 EXEEXT=$ac_cv_exeext
2500 ac_exeext=$EXEEXT
2501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2502 /* end confdefs.h. */
2503 #include <stdio.h>
2505 main ()
2507 FILE *f = fopen ("conftest.out", "w");
2508 return ferror (f) || fclose (f) != 0;
2511 return 0;
2513 _ACEOF
2514 ac_clean_files="$ac_clean_files conftest.out"
2515 # Check that the compiler produces executables we can run. If not, either
2516 # the compiler is broken, or we cross compile.
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2518 $as_echo_n "checking whether we are cross compiling... " >&6; }
2519 if test "$cross_compiling" != yes; then
2520 { { ac_try="$ac_link"
2521 case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524 esac
2525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2526 $as_echo "$ac_try_echo"; } >&5
2527 (eval "$ac_link") 2>&5
2528 ac_status=$?
2529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2530 test $ac_status = 0; }
2531 if { ac_try='./conftest$ac_cv_exeext'
2532 { { case "(($ac_try" in
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2535 esac
2536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2537 $as_echo "$ac_try_echo"; } >&5
2538 (eval "$ac_try") 2>&5
2539 ac_status=$?
2540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2541 test $ac_status = 0; }; }; then
2542 cross_compiling=no
2543 else
2544 if test "$cross_compiling" = maybe; then
2545 cross_compiling=yes
2546 else
2547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2549 as_fn_error $? "cannot run C compiled programs.
2550 If you meant to cross compile, use \`--host'.
2551 See \`config.log' for more details" "$LINENO" 5; }
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2556 $as_echo "$cross_compiling" >&6; }
2558 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2559 ac_clean_files=$ac_clean_files_save
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2561 $as_echo_n "checking for suffix of object files... " >&6; }
2562 if ${ac_cv_objext+:} false; then :
2563 $as_echo_n "(cached) " >&6
2564 else
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566 /* end confdefs.h. */
2569 main ()
2573 return 0;
2575 _ACEOF
2576 rm -f conftest.o conftest.obj
2577 if { { ac_try="$ac_compile"
2578 case "(($ac_try" in
2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580 *) ac_try_echo=$ac_try;;
2581 esac
2582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2583 $as_echo "$ac_try_echo"; } >&5
2584 (eval "$ac_compile") 2>&5
2585 ac_status=$?
2586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2587 test $ac_status = 0; }; then :
2588 for ac_file in conftest.o conftest.obj conftest.*; do
2589 test -f "$ac_file" || continue;
2590 case $ac_file in
2591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2592 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2593 break;;
2594 esac
2595 done
2596 else
2597 $as_echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2602 as_fn_error $? "cannot compute suffix of object files: cannot compile
2603 See \`config.log' for more details" "$LINENO" 5; }
2605 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2608 $as_echo "$ac_cv_objext" >&6; }
2609 OBJEXT=$ac_cv_objext
2610 ac_objext=$OBJEXT
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2612 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2613 if ${ac_cv_c_compiler_gnu+:} false; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h. */
2620 main ()
2622 #ifndef __GNUC__
2623 choke me
2624 #endif
2627 return 0;
2629 _ACEOF
2630 if ac_fn_c_try_compile "$LINENO"; then :
2631 ac_compiler_gnu=yes
2632 else
2633 ac_compiler_gnu=no
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2640 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2641 if test $ac_compiler_gnu = yes; then
2642 GCC=yes
2643 else
2644 GCC=
2646 ac_test_CFLAGS=${CFLAGS+set}
2647 ac_save_CFLAGS=$CFLAGS
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2649 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2650 if ${ac_cv_prog_cc_g+:} false; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 ac_save_c_werror_flag=$ac_c_werror_flag
2654 ac_c_werror_flag=yes
2655 ac_cv_prog_cc_g=no
2656 CFLAGS="-g"
2657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2658 /* end confdefs.h. */
2661 main ()
2665 return 0;
2667 _ACEOF
2668 if ac_fn_c_try_compile "$LINENO"; then :
2669 ac_cv_prog_cc_g=yes
2670 else
2671 CFLAGS=""
2672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2673 /* end confdefs.h. */
2676 main ()
2680 return 0;
2682 _ACEOF
2683 if ac_fn_c_try_compile "$LINENO"; then :
2685 else
2686 ac_c_werror_flag=$ac_save_c_werror_flag
2687 CFLAGS="-g"
2688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2689 /* end confdefs.h. */
2692 main ()
2696 return 0;
2698 _ACEOF
2699 if ac_fn_c_try_compile "$LINENO"; then :
2700 ac_cv_prog_cc_g=yes
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707 ac_c_werror_flag=$ac_save_c_werror_flag
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2710 $as_echo "$ac_cv_prog_cc_g" >&6; }
2711 if test "$ac_test_CFLAGS" = set; then
2712 CFLAGS=$ac_save_CFLAGS
2713 elif test $ac_cv_prog_cc_g = yes; then
2714 if test "$GCC" = yes; then
2715 CFLAGS="-g -O2"
2716 else
2717 CFLAGS="-g"
2719 else
2720 if test "$GCC" = yes; then
2721 CFLAGS="-O2"
2722 else
2723 CFLAGS=
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2727 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2728 if ${ac_cv_prog_cc_c89+:} false; then :
2729 $as_echo_n "(cached) " >&6
2730 else
2731 ac_cv_prog_cc_c89=no
2732 ac_save_CC=$CC
2733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2734 /* end confdefs.h. */
2735 #include <stdarg.h>
2736 #include <stdio.h>
2737 struct stat;
2738 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2739 struct buf { int x; };
2740 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2741 static char *e (p, i)
2742 char **p;
2743 int i;
2745 return p[i];
2747 static char *f (char * (*g) (char **, int), char **p, ...)
2749 char *s;
2750 va_list v;
2751 va_start (v,p);
2752 s = g (p, va_arg (v,int));
2753 va_end (v);
2754 return s;
2757 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2758 function prototypes and stuff, but not '\xHH' hex character constants.
2759 These don't provoke an error unfortunately, instead are silently treated
2760 as 'x'. The following induces an error, until -std is added to get
2761 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2762 array size at least. It's necessary to write '\x00'==0 to get something
2763 that's true only with -std. */
2764 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2766 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2767 inside strings and character constants. */
2768 #define FOO(x) 'x'
2769 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2771 int test (int i, double x);
2772 struct s1 {int (*f) (int a);};
2773 struct s2 {int (*f) (double a);};
2774 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2775 int argc;
2776 char **argv;
2778 main ()
2780 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2782 return 0;
2784 _ACEOF
2785 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2786 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2788 CC="$ac_save_CC $ac_arg"
2789 if ac_fn_c_try_compile "$LINENO"; then :
2790 ac_cv_prog_cc_c89=$ac_arg
2792 rm -f core conftest.err conftest.$ac_objext
2793 test "x$ac_cv_prog_cc_c89" != "xno" && break
2794 done
2795 rm -f conftest.$ac_ext
2796 CC=$ac_save_CC
2799 # AC_CACHE_VAL
2800 case "x$ac_cv_prog_cc_c89" in
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2803 $as_echo "none needed" >&6; } ;;
2804 xno)
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2806 $as_echo "unsupported" >&6; } ;;
2808 CC="$CC $ac_cv_prog_cc_c89"
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2810 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2811 esac
2812 if test "x$ac_cv_prog_cc_c89" != xno; then :
2816 ac_ext=c
2817 ac_cpp='$CPP $CPPFLAGS'
2818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822 # Expand $ac_aux_dir to an absolute path.
2823 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2825 ac_ext=c
2826 ac_cpp='$CPP $CPPFLAGS'
2827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
2831 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
2832 if ${am_cv_prog_cc_c_o+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834 else
2835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2836 /* end confdefs.h. */
2839 main ()
2843 return 0;
2845 _ACEOF
2846 # Make sure it works both with $CC and with simple cc.
2847 # Following AC_PROG_CC_C_O, we do the test twice because some
2848 # compilers refuse to overwrite an existing .o file with -o,
2849 # though they will create one.
2850 am_cv_prog_cc_c_o=yes
2851 for am_i in 1 2; do
2852 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
2853 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } \
2857 && test -f conftest2.$ac_objext; then
2858 : OK
2859 else
2860 am_cv_prog_cc_c_o=no
2861 break
2863 done
2864 rm -f core conftest*
2865 unset am_i
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
2868 $as_echo "$am_cv_prog_cc_c_o" >&6; }
2869 if test "$am_cv_prog_cc_c_o" != yes; then
2870 # Losing compiler, so override with the script.
2871 # FIXME: It is wrong to rewrite CC.
2872 # But if we don't then we get into trouble of one sort or another.
2873 # A longer-term fix would be to have automake use am__CC in this case,
2874 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2875 CC="$am_aux_dir/compile $CC"
2877 ac_ext=c
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884 ac_ext=cpp
2885 ac_cpp='$CXXCPP $CPPFLAGS'
2886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2889 if test -z "$CXX"; then
2890 if test -n "$CCC"; then
2891 CXX=$CCC
2892 else
2893 if test -n "$ac_tool_prefix"; then
2894 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if ${ac_cv_prog_CXX+:} false; then :
2901 $as_echo_n "(cached) " >&6
2902 else
2903 if test -n "$CXX"; then
2904 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2917 done
2918 done
2919 IFS=$as_save_IFS
2923 CXX=$ac_cv_prog_CXX
2924 if test -n "$CXX"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2926 $as_echo "$CXX" >&6; }
2927 else
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2933 test -n "$CXX" && break
2934 done
2936 if test -z "$CXX"; then
2937 ac_ct_CXX=$CXX
2938 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2940 # Extract the first word of "$ac_prog", so it can be a program name with args.
2941 set dummy $ac_prog; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2945 $as_echo_n "(cached) " >&6
2946 else
2947 if test -n "$ac_ct_CXX"; then
2948 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_ac_ct_CXX="$ac_prog"
2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 break 2
2961 done
2962 done
2963 IFS=$as_save_IFS
2967 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2968 if test -n "$ac_ct_CXX"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2970 $as_echo "$ac_ct_CXX" >&6; }
2971 else
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2977 test -n "$ac_ct_CXX" && break
2978 done
2980 if test "x$ac_ct_CXX" = x; then
2981 CXX="g++"
2982 else
2983 case $cross_compiling:$ac_tool_warned in
2984 yes:)
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2987 ac_tool_warned=yes ;;
2988 esac
2989 CXX=$ac_ct_CXX
2995 # Provide some information about the compiler.
2996 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2997 set X $ac_compile
2998 ac_compiler=$2
2999 for ac_option in --version -v -V -qversion; do
3000 { { ac_try="$ac_compiler $ac_option >&5"
3001 case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004 esac
3005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006 $as_echo "$ac_try_echo"; } >&5
3007 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3008 ac_status=$?
3009 if test -s conftest.err; then
3010 sed '10a\
3011 ... rest of stderr output deleted ...
3012 10q' conftest.err >conftest.er1
3013 cat conftest.er1 >&5
3015 rm -f conftest.er1 conftest.err
3016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3017 test $ac_status = 0; }
3018 done
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3021 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3022 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3023 $as_echo_n "(cached) " >&6
3024 else
3025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3026 /* end confdefs.h. */
3029 main ()
3031 #ifndef __GNUC__
3032 choke me
3033 #endif
3036 return 0;
3038 _ACEOF
3039 if ac_fn_cxx_try_compile "$LINENO"; then :
3040 ac_compiler_gnu=yes
3041 else
3042 ac_compiler_gnu=no
3044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3045 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3049 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3050 if test $ac_compiler_gnu = yes; then
3051 GXX=yes
3052 else
3053 GXX=
3055 ac_test_CXXFLAGS=${CXXFLAGS+set}
3056 ac_save_CXXFLAGS=$CXXFLAGS
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3058 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3059 if ${ac_cv_prog_cxx_g+:} false; then :
3060 $as_echo_n "(cached) " >&6
3061 else
3062 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3063 ac_cxx_werror_flag=yes
3064 ac_cv_prog_cxx_g=no
3065 CXXFLAGS="-g"
3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h. */
3070 main ()
3074 return 0;
3076 _ACEOF
3077 if ac_fn_cxx_try_compile "$LINENO"; then :
3078 ac_cv_prog_cxx_g=yes
3079 else
3080 CXXFLAGS=""
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h. */
3085 main ()
3089 return 0;
3091 _ACEOF
3092 if ac_fn_cxx_try_compile "$LINENO"; then :
3094 else
3095 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3096 CXXFLAGS="-g"
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h. */
3101 main ()
3105 return 0;
3107 _ACEOF
3108 if ac_fn_cxx_try_compile "$LINENO"; then :
3109 ac_cv_prog_cxx_g=yes
3111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3116 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3119 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3120 if test "$ac_test_CXXFLAGS" = set; then
3121 CXXFLAGS=$ac_save_CXXFLAGS
3122 elif test $ac_cv_prog_cxx_g = yes; then
3123 if test "$GXX" = yes; then
3124 CXXFLAGS="-g -O2"
3125 else
3126 CXXFLAGS="-g"
3128 else
3129 if test "$GXX" = yes; then
3130 CXXFLAGS="-O2"
3131 else
3132 CXXFLAGS=
3135 ac_ext=c
3136 ac_cpp='$CPP $CPPFLAGS'
3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3142 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3143 if ${ac_cv_path_SED+:} false; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3147 for ac_i in 1 2 3 4 5 6 7; do
3148 ac_script="$ac_script$as_nl$ac_script"
3149 done
3150 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3151 { ac_script=; unset ac_script;}
3152 if test -z "$SED"; then
3153 ac_path_SED_found=false
3154 # Loop through the user's path and test for each of PROGNAME-LIST
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
3160 for ac_prog in sed gsed; do
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3163 as_fn_executable_p "$ac_path_SED" || continue
3164 # Check for GNU ac_path_SED and select it if it is found.
3165 # Check for GNU $ac_path_SED
3166 case `"$ac_path_SED" --version 2>&1` in
3167 *GNU*)
3168 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3170 ac_count=0
3171 $as_echo_n 0123456789 >"conftest.in"
3172 while :
3174 cat "conftest.in" "conftest.in" >"conftest.tmp"
3175 mv "conftest.tmp" "conftest.in"
3176 cp "conftest.in" "conftest.nl"
3177 $as_echo '' >> "conftest.nl"
3178 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3180 as_fn_arith $ac_count + 1 && ac_count=$as_val
3181 if test $ac_count -gt ${ac_path_SED_max-0}; then
3182 # Best one so far, save it but keep looking for a better one
3183 ac_cv_path_SED="$ac_path_SED"
3184 ac_path_SED_max=$ac_count
3186 # 10*(2^10) chars as input seems more than enough
3187 test $ac_count -gt 10 && break
3188 done
3189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3190 esac
3192 $ac_path_SED_found && break 3
3193 done
3194 done
3195 done
3196 IFS=$as_save_IFS
3197 if test -z "$ac_cv_path_SED"; then
3198 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3200 else
3201 ac_cv_path_SED=$SED
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3206 $as_echo "$ac_cv_path_SED" >&6; }
3207 SED="$ac_cv_path_SED"
3208 rm -f conftest.sed
3210 ac_ext=cpp
3211 ac_cpp='$CXXCPP $CPPFLAGS'
3212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3216 # Make sure we can run config.sub.
3217 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3218 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3221 $as_echo_n "checking build system type... " >&6; }
3222 if ${ac_cv_build+:} false; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 ac_build_alias=$build_alias
3226 test "x$ac_build_alias" = x &&
3227 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3228 test "x$ac_build_alias" = x &&
3229 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3230 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3231 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3235 $as_echo "$ac_cv_build" >&6; }
3236 case $ac_cv_build in
3237 *-*-*) ;;
3238 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3239 esac
3240 build=$ac_cv_build
3241 ac_save_IFS=$IFS; IFS='-'
3242 set x $ac_cv_build
3243 shift
3244 build_cpu=$1
3245 build_vendor=$2
3246 shift; shift
3247 # Remember, the first character of IFS is used to create $*,
3248 # except with old shells:
3249 build_os=$*
3250 IFS=$ac_save_IFS
3251 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3255 $as_echo_n "checking host system type... " >&6; }
3256 if ${ac_cv_host+:} false; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 if test "x$host_alias" = x; then
3260 ac_cv_host=$ac_cv_build
3261 else
3262 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3263 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3268 $as_echo "$ac_cv_host" >&6; }
3269 case $ac_cv_host in
3270 *-*-*) ;;
3271 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3272 esac
3273 host=$ac_cv_host
3274 ac_save_IFS=$IFS; IFS='-'
3275 set x $ac_cv_host
3276 shift
3277 host_cpu=$1
3278 host_vendor=$2
3279 shift; shift
3280 # Remember, the first character of IFS is used to create $*,
3281 # except with old shells:
3282 host_os=$*
3283 IFS=$ac_save_IFS
3284 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3287 am__api_version='1.16'
3289 # Find a good install program. We prefer a C program (faster),
3290 # so one script is as good as another. But avoid the broken or
3291 # incompatible versions:
3292 # SysV /etc/install, /usr/sbin/install
3293 # SunOS /usr/etc/install
3294 # IRIX /sbin/install
3295 # AIX /bin/install
3296 # AmigaOS /C/install, which installs bootblocks on floppy discs
3297 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3298 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3299 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3300 # OS/2's system install, which has a completely different semantic
3301 # ./install, which can be erroneously created by make from ./install.sh.
3302 # Reject install programs that cannot install multiple files.
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3304 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3305 if test -z "$INSTALL"; then
3306 if ${ac_cv_path_install+:} false; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3312 IFS=$as_save_IFS
3313 test -z "$as_dir" && as_dir=.
3314 # Account for people who put trailing slashes in PATH elements.
3315 case $as_dir/ in #((
3316 ./ | .// | /[cC]/* | \
3317 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3318 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3319 /usr/ucb/* ) ;;
3321 # OSF1 and SCO ODT 3.0 have their own names for install.
3322 # Don't use installbsd from OSF since it installs stuff as root
3323 # by default.
3324 for ac_prog in ginstall scoinst install; do
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3327 if test $ac_prog = install &&
3328 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3329 # AIX install. It has an incompatible calling convention.
3331 elif test $ac_prog = install &&
3332 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3333 # program-specific install script used by HP pwplus--don't use.
3335 else
3336 rm -rf conftest.one conftest.two conftest.dir
3337 echo one > conftest.one
3338 echo two > conftest.two
3339 mkdir conftest.dir
3340 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3341 test -s conftest.one && test -s conftest.two &&
3342 test -s conftest.dir/conftest.one &&
3343 test -s conftest.dir/conftest.two
3344 then
3345 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3346 break 3
3350 done
3351 done
3353 esac
3355 done
3356 IFS=$as_save_IFS
3358 rm -rf conftest.one conftest.two conftest.dir
3361 if test "${ac_cv_path_install+set}" = set; then
3362 INSTALL=$ac_cv_path_install
3363 else
3364 # As a last resort, use the slow shell script. Don't cache a
3365 # value for INSTALL within a source directory, because that will
3366 # break other packages using the cache if that directory is
3367 # removed, or if the value is a relative name.
3368 INSTALL=$ac_install_sh
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3372 $as_echo "$INSTALL" >&6; }
3374 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3375 # It thinks the first close brace ends the variable substitution.
3376 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3378 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3380 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3383 $as_echo_n "checking whether build environment is sane... " >&6; }
3384 # Reject unsafe characters in $srcdir or the absolute working directory
3385 # name. Accept space and tab only in the latter.
3386 am_lf='
3388 case `pwd` in
3389 *[\\\"\#\$\&\'\`$am_lf]*)
3390 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3391 esac
3392 case $srcdir in
3393 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3394 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3395 esac
3397 # Do 'set' in a subshell so we don't clobber the current shell's
3398 # arguments. Must try -L first in case configure is actually a
3399 # symlink; some systems play weird games with the mod time of symlinks
3400 # (eg FreeBSD returns the mod time of the symlink's containing
3401 # directory).
3402 if (
3403 am_has_slept=no
3404 for am_try in 1 2; do
3405 echo "timestamp, slept: $am_has_slept" > conftest.file
3406 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3407 if test "$*" = "X"; then
3408 # -L didn't work.
3409 set X `ls -t "$srcdir/configure" conftest.file`
3411 if test "$*" != "X $srcdir/configure conftest.file" \
3412 && test "$*" != "X conftest.file $srcdir/configure"; then
3414 # If neither matched, then we have a broken ls. This can happen
3415 # if, for instance, CONFIG_SHELL is bash and it inherits a
3416 # broken ls alias from the environment. This has actually
3417 # happened. Such a system could not be considered "sane".
3418 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3419 alias in your environment" "$LINENO" 5
3421 if test "$2" = conftest.file || test $am_try -eq 2; then
3422 break
3424 # Just in case.
3425 sleep 1
3426 am_has_slept=yes
3427 done
3428 test "$2" = conftest.file
3430 then
3431 # Ok.
3433 else
3434 as_fn_error $? "newly created file is older than distributed files!
3435 Check your system clock" "$LINENO" 5
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3438 $as_echo "yes" >&6; }
3439 # If we didn't sleep, we still need to ensure time stamps of config.status and
3440 # generated files are strictly newer.
3441 am_sleep_pid=
3442 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3443 ( sleep 1 ) &
3444 am_sleep_pid=$!
3447 rm -f conftest.file
3449 test "$program_prefix" != NONE &&
3450 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3451 # Use a double $ so make ignores it.
3452 test "$program_suffix" != NONE &&
3453 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3454 # Double any \ or $.
3455 # By default was `s,x,x', remove it if useless.
3456 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3457 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3459 if test x"${MISSING+set}" != xset; then
3460 case $am_aux_dir in
3461 *\ * | *\ *)
3462 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3464 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3465 esac
3467 # Use eval to expand $SHELL
3468 if eval "$MISSING --is-lightweight"; then
3469 am_missing_run="$MISSING "
3470 else
3471 am_missing_run=
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3473 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3476 if test x"${install_sh+set}" != xset; then
3477 case $am_aux_dir in
3478 *\ * | *\ *)
3479 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3481 install_sh="\${SHELL} $am_aux_dir/install-sh"
3482 esac
3485 # Installed binaries are usually stripped using 'strip' when the user
3486 # run "make install-strip". However 'strip' might not be the right
3487 # tool to use in cross-compilation environments, therefore Automake
3488 # will honor the 'STRIP' environment variable to overrule this program.
3489 if test "$cross_compiling" != no; then
3490 if test -n "$ac_tool_prefix"; then
3491 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3492 set dummy ${ac_tool_prefix}strip; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if ${ac_cv_prog_STRIP+:} false; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 if test -n "$STRIP"; then
3499 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 break 2
3512 done
3513 done
3514 IFS=$as_save_IFS
3518 STRIP=$ac_cv_prog_STRIP
3519 if test -n "$STRIP"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3521 $as_echo "$STRIP" >&6; }
3522 else
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3529 if test -z "$ac_cv_prog_STRIP"; then
3530 ac_ct_STRIP=$STRIP
3531 # Extract the first word of "strip", so it can be a program name with args.
3532 set dummy strip; ac_word=$2
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 if test -n "$ac_ct_STRIP"; then
3539 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_prog_ac_ct_STRIP="strip"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3552 done
3553 done
3554 IFS=$as_save_IFS
3558 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3559 if test -n "$ac_ct_STRIP"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3561 $as_echo "$ac_ct_STRIP" >&6; }
3562 else
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3567 if test "x$ac_ct_STRIP" = x; then
3568 STRIP=":"
3569 else
3570 case $cross_compiling:$ac_tool_warned in
3571 yes:)
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3574 ac_tool_warned=yes ;;
3575 esac
3576 STRIP=$ac_ct_STRIP
3578 else
3579 STRIP="$ac_cv_prog_STRIP"
3583 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3586 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3587 if test -z "$MKDIR_P"; then
3588 if ${ac_cv_path_mkdir+:} false; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_prog in mkdir gmkdir; do
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3599 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3600 'mkdir (GNU coreutils) '* | \
3601 'mkdir (coreutils) '* | \
3602 'mkdir (fileutils) '4.1*)
3603 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3604 break 3;;
3605 esac
3606 done
3607 done
3608 done
3609 IFS=$as_save_IFS
3613 test -d ./--version && rmdir ./--version
3614 if test "${ac_cv_path_mkdir+set}" = set; then
3615 MKDIR_P="$ac_cv_path_mkdir -p"
3616 else
3617 # As a last resort, use the slow shell script. Don't cache a
3618 # value for MKDIR_P within a source directory, because that will
3619 # break other packages using the cache if that directory is
3620 # removed, or if the value is a relative name.
3621 MKDIR_P="$ac_install_sh -d"
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3625 $as_echo "$MKDIR_P" >&6; }
3627 for ac_prog in gawk mawk nawk awk
3629 # Extract the first word of "$ac_prog", so it can be a program name with args.
3630 set dummy $ac_prog; ac_word=$2
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 $as_echo_n "checking for $ac_word... " >&6; }
3633 if ${ac_cv_prog_AWK+:} false; then :
3634 $as_echo_n "(cached) " >&6
3635 else
3636 if test -n "$AWK"; then
3637 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3638 else
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3646 ac_cv_prog_AWK="$ac_prog"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 break 2
3650 done
3651 done
3652 IFS=$as_save_IFS
3656 AWK=$ac_cv_prog_AWK
3657 if test -n "$AWK"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3659 $as_echo "$AWK" >&6; }
3660 else
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3666 test -n "$AWK" && break
3667 done
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3670 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3671 set x ${MAKE-make}
3672 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3673 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 cat >conftest.make <<\_ACEOF
3677 SHELL = /bin/sh
3678 all:
3679 @echo '@@@%%%=$(MAKE)=@@@%%%'
3680 _ACEOF
3681 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3682 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3683 *@@@%%%=?*=@@@%%%*)
3684 eval ac_cv_prog_make_${ac_make}_set=yes;;
3686 eval ac_cv_prog_make_${ac_make}_set=no;;
3687 esac
3688 rm -f conftest.make
3690 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3692 $as_echo "yes" >&6; }
3693 SET_MAKE=
3694 else
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696 $as_echo "no" >&6; }
3697 SET_MAKE="MAKE=${MAKE-make}"
3700 rm -rf .tst 2>/dev/null
3701 mkdir .tst 2>/dev/null
3702 if test -d .tst; then
3703 am__leading_dot=.
3704 else
3705 am__leading_dot=_
3707 rmdir .tst 2>/dev/null
3709 DEPDIR="${am__leading_dot}deps"
3711 ac_config_commands="$ac_config_commands depfiles"
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3714 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3715 cat > confinc.mk << 'END'
3716 am__doit:
3717 @echo this is the am__doit target >confinc.out
3718 .PHONY: am__doit
3720 am__include="#"
3721 am__quote=
3722 # BSD make does it like this.
3723 echo '.include "confinc.mk" # ignored' > confmf.BSD
3724 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3725 echo 'include confinc.mk # ignored' > confmf.GNU
3726 _am_result=no
3727 for s in GNU BSD; do
3728 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3729 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }
3733 case $?:`cat confinc.out 2>/dev/null` in #(
3734 '0:this is the am__doit target') :
3735 case $s in #(
3736 BSD) :
3737 am__include='.include' am__quote='"' ;; #(
3738 *) :
3739 am__include='include' am__quote='' ;;
3740 esac ;; #(
3741 *) :
3743 esac
3744 if test "$am__include" != "#"; then
3745 _am_result="yes ($s style)"
3746 break
3748 done
3749 rm -f confinc.* confmf.*
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3751 $as_echo "${_am_result}" >&6; }
3753 # Check whether --enable-dependency-tracking was given.
3754 if test "${enable_dependency_tracking+set}" = set; then :
3755 enableval=$enable_dependency_tracking;
3758 if test "x$enable_dependency_tracking" != xno; then
3759 am_depcomp="$ac_aux_dir/depcomp"
3760 AMDEPBACKSLASH='\'
3761 am__nodep='_no'
3763 if test "x$enable_dependency_tracking" != xno; then
3764 AMDEP_TRUE=
3765 AMDEP_FALSE='#'
3766 else
3767 AMDEP_TRUE='#'
3768 AMDEP_FALSE=
3772 # Check whether --enable-silent-rules was given.
3773 if test "${enable_silent_rules+set}" = set; then :
3774 enableval=$enable_silent_rules;
3777 case $enable_silent_rules in # (((
3778 yes) AM_DEFAULT_VERBOSITY=0;;
3779 no) AM_DEFAULT_VERBOSITY=1;;
3780 *) AM_DEFAULT_VERBOSITY=1;;
3781 esac
3782 am_make=${MAKE-make}
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3784 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3785 if ${am_cv_make_support_nested_variables+:} false; then :
3786 $as_echo_n "(cached) " >&6
3787 else
3788 if $as_echo 'TRUE=$(BAR$(V))
3789 BAR0=false
3790 BAR1=true
3792 am__doit:
3793 @$(TRUE)
3794 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3795 am_cv_make_support_nested_variables=yes
3796 else
3797 am_cv_make_support_nested_variables=no
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3801 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3802 if test $am_cv_make_support_nested_variables = yes; then
3803 AM_V='$(V)'
3804 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3805 else
3806 AM_V=$AM_DEFAULT_VERBOSITY
3807 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3809 AM_BACKSLASH='\'
3811 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3812 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3813 # is not polluted with repeated "-I."
3814 am__isrc=' -I$(srcdir)'
3815 # test to see if srcdir already configured
3816 if test -f $srcdir/config.status; then
3817 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3821 # test whether we have cygpath
3822 if test -z "$CYGPATH_W"; then
3823 if (cygpath --version) >/dev/null 2>/dev/null; then
3824 CYGPATH_W='cygpath -w'
3825 else
3826 CYGPATH_W=echo
3831 # Define the identity of the package.
3832 PACKAGE='qbittorrent'
3833 VERSION='v4.2.0alpha'
3836 cat >>confdefs.h <<_ACEOF
3837 #define PACKAGE "$PACKAGE"
3838 _ACEOF
3841 cat >>confdefs.h <<_ACEOF
3842 #define VERSION "$VERSION"
3843 _ACEOF
3845 # Some tools Automake needs.
3847 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3850 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3853 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3856 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3859 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3861 # For better backward compatibility. To be removed once Automake 1.9.x
3862 # dies out for good. For more background, see:
3863 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3864 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3865 mkdir_p='$(MKDIR_P)'
3867 # We need awk for the "check" target (and possibly the TAP driver). The
3868 # system "awk" is bad on some platforms.
3869 # Always define AMTAR for backward compatibility. Yes, it's still used
3870 # in the wild :-( We should find a proper way to deprecate it ...
3871 AMTAR='$${TAR-tar}'
3874 # We'll loop over all known methods to create a tar archive until one works.
3875 _am_tools='gnutar pax cpio none'
3877 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3883 depcc="$CC" am_compiler_list=
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3886 $as_echo_n "checking dependency style of $depcc... " >&6; }
3887 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3888 $as_echo_n "(cached) " >&6
3889 else
3890 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3891 # We make a subdir and do the tests there. Otherwise we can end up
3892 # making bogus files that we don't know about and never remove. For
3893 # instance it was reported that on HP-UX the gcc test will end up
3894 # making a dummy file named 'D' -- because '-MD' means "put the output
3895 # in D".
3896 rm -rf conftest.dir
3897 mkdir conftest.dir
3898 # Copy depcomp to subdir because otherwise we won't find it if we're
3899 # using a relative directory.
3900 cp "$am_depcomp" conftest.dir
3901 cd conftest.dir
3902 # We will build objects and dependencies in a subdirectory because
3903 # it helps to detect inapplicable dependency modes. For instance
3904 # both Tru64's cc and ICC support -MD to output dependencies as a
3905 # side effect of compilation, but ICC will put the dependencies in
3906 # the current directory while Tru64 will put them in the object
3907 # directory.
3908 mkdir sub
3910 am_cv_CC_dependencies_compiler_type=none
3911 if test "$am_compiler_list" = ""; then
3912 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3914 am__universal=false
3915 case " $depcc " in #(
3916 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3917 esac
3919 for depmode in $am_compiler_list; do
3920 # Setup a source with many dependencies, because some compilers
3921 # like to wrap large dependency lists on column 80 (with \), and
3922 # we should not choose a depcomp mode which is confused by this.
3924 # We need to recreate these files for each test, as the compiler may
3925 # overwrite some of them when testing with obscure command lines.
3926 # This happens at least with the AIX C compiler.
3927 : > sub/conftest.c
3928 for i in 1 2 3 4 5 6; do
3929 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3930 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3931 # Solaris 10 /bin/sh.
3932 echo '/* dummy */' > sub/conftst$i.h
3933 done
3934 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3936 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3937 # mode. It turns out that the SunPro C++ compiler does not properly
3938 # handle '-M -o', and we need to detect this. Also, some Intel
3939 # versions had trouble with output in subdirs.
3940 am__obj=sub/conftest.${OBJEXT-o}
3941 am__minus_obj="-o $am__obj"
3942 case $depmode in
3943 gcc)
3944 # This depmode causes a compiler race in universal mode.
3945 test "$am__universal" = false || continue
3947 nosideeffect)
3948 # After this tag, mechanisms are not by side-effect, so they'll
3949 # only be used when explicitly requested.
3950 if test "x$enable_dependency_tracking" = xyes; then
3951 continue
3952 else
3953 break
3956 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3957 # This compiler won't grok '-c -o', but also, the minuso test has
3958 # not run yet. These depmodes are late enough in the game, and
3959 # so weak that their functioning should not be impacted.
3960 am__obj=conftest.${OBJEXT-o}
3961 am__minus_obj=
3963 none) break ;;
3964 esac
3965 if depmode=$depmode \
3966 source=sub/conftest.c object=$am__obj \
3967 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3968 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3969 >/dev/null 2>conftest.err &&
3970 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3971 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3972 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3973 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3974 # icc doesn't choke on unknown options, it will just issue warnings
3975 # or remarks (even with -Werror). So we grep stderr for any message
3976 # that says an option was ignored or not supported.
3977 # When given -MP, icc 7.0 and 7.1 complain thusly:
3978 # icc: Command line warning: ignoring option '-M'; no argument required
3979 # The diagnosis changed in icc 8.0:
3980 # icc: Command line remark: option '-MP' not supported
3981 if (grep 'ignoring option' conftest.err ||
3982 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3983 am_cv_CC_dependencies_compiler_type=$depmode
3984 break
3987 done
3989 cd ..
3990 rm -rf conftest.dir
3991 else
3992 am_cv_CC_dependencies_compiler_type=none
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3997 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3998 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4001 test "x$enable_dependency_tracking" != xno \
4002 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4003 am__fastdepCC_TRUE=
4004 am__fastdepCC_FALSE='#'
4005 else
4006 am__fastdepCC_TRUE='#'
4007 am__fastdepCC_FALSE=
4011 depcc="$CXX" am_compiler_list=
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4014 $as_echo_n "checking dependency style of $depcc... " >&6; }
4015 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4019 # We make a subdir and do the tests there. Otherwise we can end up
4020 # making bogus files that we don't know about and never remove. For
4021 # instance it was reported that on HP-UX the gcc test will end up
4022 # making a dummy file named 'D' -- because '-MD' means "put the output
4023 # in D".
4024 rm -rf conftest.dir
4025 mkdir conftest.dir
4026 # Copy depcomp to subdir because otherwise we won't find it if we're
4027 # using a relative directory.
4028 cp "$am_depcomp" conftest.dir
4029 cd conftest.dir
4030 # We will build objects and dependencies in a subdirectory because
4031 # it helps to detect inapplicable dependency modes. For instance
4032 # both Tru64's cc and ICC support -MD to output dependencies as a
4033 # side effect of compilation, but ICC will put the dependencies in
4034 # the current directory while Tru64 will put them in the object
4035 # directory.
4036 mkdir sub
4038 am_cv_CXX_dependencies_compiler_type=none
4039 if test "$am_compiler_list" = ""; then
4040 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4042 am__universal=false
4043 case " $depcc " in #(
4044 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4045 esac
4047 for depmode in $am_compiler_list; do
4048 # Setup a source with many dependencies, because some compilers
4049 # like to wrap large dependency lists on column 80 (with \), and
4050 # we should not choose a depcomp mode which is confused by this.
4052 # We need to recreate these files for each test, as the compiler may
4053 # overwrite some of them when testing with obscure command lines.
4054 # This happens at least with the AIX C compiler.
4055 : > sub/conftest.c
4056 for i in 1 2 3 4 5 6; do
4057 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4058 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4059 # Solaris 10 /bin/sh.
4060 echo '/* dummy */' > sub/conftst$i.h
4061 done
4062 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4064 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4065 # mode. It turns out that the SunPro C++ compiler does not properly
4066 # handle '-M -o', and we need to detect this. Also, some Intel
4067 # versions had trouble with output in subdirs.
4068 am__obj=sub/conftest.${OBJEXT-o}
4069 am__minus_obj="-o $am__obj"
4070 case $depmode in
4071 gcc)
4072 # This depmode causes a compiler race in universal mode.
4073 test "$am__universal" = false || continue
4075 nosideeffect)
4076 # After this tag, mechanisms are not by side-effect, so they'll
4077 # only be used when explicitly requested.
4078 if test "x$enable_dependency_tracking" = xyes; then
4079 continue
4080 else
4081 break
4084 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4085 # This compiler won't grok '-c -o', but also, the minuso test has
4086 # not run yet. These depmodes are late enough in the game, and
4087 # so weak that their functioning should not be impacted.
4088 am__obj=conftest.${OBJEXT-o}
4089 am__minus_obj=
4091 none) break ;;
4092 esac
4093 if depmode=$depmode \
4094 source=sub/conftest.c object=$am__obj \
4095 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4096 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4097 >/dev/null 2>conftest.err &&
4098 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4099 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4100 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4101 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4102 # icc doesn't choke on unknown options, it will just issue warnings
4103 # or remarks (even with -Werror). So we grep stderr for any message
4104 # that says an option was ignored or not supported.
4105 # When given -MP, icc 7.0 and 7.1 complain thusly:
4106 # icc: Command line warning: ignoring option '-M'; no argument required
4107 # The diagnosis changed in icc 8.0:
4108 # icc: Command line remark: option '-MP' not supported
4109 if (grep 'ignoring option' conftest.err ||
4110 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4111 am_cv_CXX_dependencies_compiler_type=$depmode
4112 break
4115 done
4117 cd ..
4118 rm -rf conftest.dir
4119 else
4120 am_cv_CXX_dependencies_compiler_type=none
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4125 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4126 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4129 test "x$enable_dependency_tracking" != xno \
4130 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4131 am__fastdepCXX_TRUE=
4132 am__fastdepCXX_FALSE='#'
4133 else
4134 am__fastdepCXX_TRUE='#'
4135 am__fastdepCXX_FALSE=
4140 # POSIX will say in a future version that running "rm -f" with no argument
4141 # is OK; and we want to be able to make that assumption in our Makefile
4142 # recipes. So use an aggressive probe to check that the usage we want is
4143 # actually supported "in the wild" to an acceptable degree.
4144 # See automake bug#10828.
4145 # To make any issue more visible, cause the running configure to be aborted
4146 # by default if the 'rm' program in use doesn't match our expectations; the
4147 # user can still override this though.
4148 if rm -f && rm -fr && rm -rf; then : OK; else
4149 cat >&2 <<'END'
4150 Oops!
4152 Your 'rm' program seems unable to run without file operands specified
4153 on the command line, even when the '-f' option is present. This is contrary
4154 to the behaviour of most rm programs out there, and not conforming with
4155 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4157 Please tell bug-automake@gnu.org about your system, including the value
4158 of your $PATH and any error possibly output before this message. This
4159 can help us improve future automake versions.
4162 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4163 echo 'Configuration will proceed anyway, since you have set the' >&2
4164 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4165 echo >&2
4166 else
4167 cat >&2 <<'END'
4168 Aborting the configuration process, to ensure you take notice of the issue.
4170 You can download and install GNU coreutils to get an 'rm' implementation
4171 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4173 If you want to complete the configuration process using your problematic
4174 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4175 to "yes", and re-run configure.
4178 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4183 # use compiler from env variables if available
4184 QBT_CC="$CC"
4185 QBT_CXX="$CXX"
4187 # Define --wth-* and --enable-* arguments
4190 # Check whether --with-qtsingleapplication was given.
4191 if test "${with_qtsingleapplication+set}" = set; then :
4192 withval=$with_qtsingleapplication;
4193 else
4194 with_qtsingleapplication=shipped
4198 # Check whether --enable-debug was given.
4199 if test "${enable_debug+set}" = set; then :
4200 enableval=$enable_debug;
4201 else
4202 enable_debug=no
4206 # Check whether --enable-stacktrace was given.
4207 if test "${enable_stacktrace+set}" = set; then :
4208 enableval=$enable_stacktrace;
4209 else
4210 enable_stacktrace=auto
4214 # Check whether --enable-gui was given.
4215 if test "${enable_gui+set}" = set; then :
4216 enableval=$enable_gui;
4217 else
4218 enable_gui=yes
4222 # Check whether --enable-systemd was given.
4223 if test "${enable_systemd+set}" = set; then :
4224 enableval=$enable_systemd;
4225 else
4226 enable_systemd=no
4230 # Check whether --enable-webui was given.
4231 if test "${enable_webui+set}" = set; then :
4232 enableval=$enable_webui;
4233 else
4234 enable_webui=yes
4238 # Check whether --enable-qt-dbus was given.
4239 if test "${enable_qt_dbus+set}" = set; then :
4240 enableval=$enable_qt_dbus;
4241 else
4242 enable_qt_dbus=yes
4246 # Detect OS
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS is FreeBSD" >&5
4248 $as_echo_n "checking whether OS is FreeBSD... " >&6; }
4249 if expr "$host_os" : ".*freebsd.*" > /dev/null; then :
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4251 $as_echo "yes" >&6; }
4252 LIBS="-lexecinfo $LIBS"
4253 else
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS is macOS" >&5
4259 $as_echo_n "checking whether OS is macOS... " >&6; }
4260 if expr "$host_os" : ".*darwin.*" > /dev/null; then :
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4262 $as_echo "yes" >&6; }
4263 enable_qt_dbus=no
4264 else
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4269 # Require 0.23 pkg-config
4277 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4278 if test -n "$ac_tool_prefix"; then
4279 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4280 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4282 $as_echo_n "checking for $ac_word... " >&6; }
4283 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4284 $as_echo_n "(cached) " >&6
4285 else
4286 case $PKG_CONFIG in
4287 [\\/]* | ?:[\\/]*)
4288 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4294 IFS=$as_save_IFS
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4300 break 2
4302 done
4303 done
4304 IFS=$as_save_IFS
4307 esac
4309 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4310 if test -n "$PKG_CONFIG"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4312 $as_echo "$PKG_CONFIG" >&6; }
4313 else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4320 if test -z "$ac_cv_path_PKG_CONFIG"; then
4321 ac_pt_PKG_CONFIG=$PKG_CONFIG
4322 # Extract the first word of "pkg-config", so it can be a program name with args.
4323 set dummy pkg-config; ac_word=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 case $ac_pt_PKG_CONFIG in
4330 [\\/]* | ?:[\\/]*)
4331 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4341 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4345 done
4346 done
4347 IFS=$as_save_IFS
4350 esac
4352 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4353 if test -n "$ac_pt_PKG_CONFIG"; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4355 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4356 else
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4361 if test "x$ac_pt_PKG_CONFIG" = x; then
4362 PKG_CONFIG=""
4363 else
4364 case $cross_compiling:$ac_tool_warned in
4365 yes:)
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4368 ac_tool_warned=yes ;;
4369 esac
4370 PKG_CONFIG=$ac_pt_PKG_CONFIG
4372 else
4373 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4377 if test -n "$PKG_CONFIG"; then
4378 _pkg_min_version=0.23
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4380 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4381 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4383 $as_echo "yes" >&6; }
4384 else
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4387 PKG_CONFIG=""
4390 if test "x$PKG_CONFIG" = "x"; then :
4391 as_fn_error $? "Could not find pkg-config" "$LINENO" 5
4394 # Check which arguments were set and act accordingly
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the Debug build" >&5
4396 $as_echo_n "checking whether to enable the Debug build... " >&6; }
4397 case "x$enable_debug" in #(
4398 "xno") :
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4401 QBT_ADD_CONFIG="$QBT_ADD_CONFIG release"
4402 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG debug" ;; #(
4403 "xyes") :
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4405 $as_echo "yes" >&6; }
4406 QBT_ADD_CONFIG="$QBT_ADD_CONFIG debug"
4407 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG release" ;; #(
4408 *) :
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
4410 $as_echo "$enable_debug" >&6; }
4411 as_fn_error $? "Unknown option \"$enable_debug\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
4412 esac
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the stacktrace feature" >&5
4415 $as_echo_n "checking whether to enable the stacktrace feature... " >&6; }
4417 case "x$enable_stacktrace" in #(
4418 "xno") :
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4421 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG stacktrace" ;; #(
4422 "xyes") :
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4424 $as_echo "yes" >&6; }
4425 QBT_ADD_CONFIG="$QBT_ADD_CONFIG stacktrace" ;; #(
4426 "xauto") :
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4429 #include <execinfo.h>
4430 _ACEOF
4431 if ac_fn_cxx_try_compile "$LINENO"; then :
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4433 $as_echo "yes" >&6; }
4434 QBT_ADD_CONFIG="$QBT_ADD_CONFIG stacktrace"
4435 else
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 $as_echo "no" >&6; }
4438 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG stacktrace"
4440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
4441 *) :
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stacktrace" >&5
4443 $as_echo "$enable_stacktrace" >&6; }
4444 as_fn_error $? "Unknown option \"$enable_stacktrace\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
4445 esac
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the GUI" >&5
4448 $as_echo_n "checking whether to enable the GUI... " >&6; }
4449 case "x$enable_gui" in #(
4450 "xyes") :
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4452 $as_echo "yes" >&6; }
4453 enable_systemd=no
4454 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG nogui" ;; #(
4455 "xno") :
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 $as_echo "no" >&6; }
4458 enable_qt_dbus=no
4459 QBT_ADD_CONFIG="$QBT_ADD_CONFIG nogui" ;; #(
4460 *) :
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gui" >&5
4462 $as_echo "$enable_gui" >&6; }
4463 as_fn_error $? "Unknown option \"$enable_gui\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
4464 esac
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install the systemd service file" >&5
4467 $as_echo_n "checking whether to install the systemd service file... " >&6; }
4468 case "x$enable_systemd" in #(
4469 "xyes") :
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4471 $as_echo "yes" >&6; }
4472 QBT_ADD_CONFIG="$QBT_ADD_CONFIG systemd" ;; #(
4473 "xno") :
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4476 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG systemd" ;; #(
4477 *) :
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_systemd" >&5
4479 $as_echo "$enable_systemd" >&6; }
4480 as_fn_error $? "Unknown option \"$enable_systemd\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
4481 esac
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the WebUI" >&5
4484 $as_echo_n "checking whether to enable the WebUI... " >&6; }
4485 case "x$enable_webui" in #(
4486 "xyes") :
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4488 $as_echo "yes" >&6; }
4489 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG nowebui" ;; #(
4490 "xno") :
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492 $as_echo "no" >&6; }
4493 QBT_ADD_CONFIG="$QBT_ADD_CONFIG nowebui" ;; #(
4494 *) :
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_webui" >&5
4496 $as_echo "$enable_webui" >&6; }
4497 as_fn_error $? "Unknown option \"$enable_webui\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
4498 esac
4500 if test -n "$PKG_CONFIG" && \
4501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.5.1\""; } >&5
4502 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.5.1") 2>&5
4503 ac_status=$?
4504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4505 test $ac_status = 0; }; then
4507 if test -n "$QT_QMAKE"; then
4508 pkg_cv_QT_QMAKE="$QT_QMAKE"
4509 elif test -n "$PKG_CONFIG"; then
4510 if test -n "$PKG_CONFIG" && \
4511 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.5.1\""; } >&5
4512 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.5.1") 2>&5
4513 ac_status=$?
4514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; }; then
4516 pkg_cv_QT_QMAKE=`$PKG_CONFIG --variable="host_bins" "Qt5Core >= 5.5.1" 2>/dev/null`
4517 test "x$?" != "x0" && pkg_failed=yes
4518 else
4519 pkg_failed=yes
4521 else
4522 pkg_failed=untried
4524 QT_QMAKE=$pkg_cv_QT_QMAKE
4526 if test "x$QT_QMAKE" = x""; then :
4532 if test -f "$QT_QMAKE/qmake"; then :
4533 QT_QMAKE="$QT_QMAKE/qmake"
4534 else
4535 if test -f "$QT_QMAKE/qmake-qt5"; then :
4536 QT_QMAKE="$QT_QMAKE/qmake-qt5"
4537 else
4538 QT_QMAKE=""
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt5 qmake >= 5.5.1" >&5
4544 $as_echo_n "checking for Qt5 qmake >= 5.5.1... " >&6; }
4545 if test "x$QT_QMAKE" != "x"; then :
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_QMAKE" >&5
4547 $as_echo "$QT_QMAKE" >&6; }
4548 else
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4550 $as_echo "not found" >&6; }
4554 if test "x$QT_QMAKE" = "x"; then :
4555 as_fn_error $? "Could not find qmake" "$LINENO" 5
4558 if test "x$enable_gui" = "xyes"; then :
4560 pkg_failed=no
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt5Svg" >&5
4562 $as_echo_n "checking for Qt5Svg... " >&6; }
4564 if test -n "$Qt5Svg_CFLAGS"; then
4565 pkg_cv_Qt5Svg_CFLAGS="$Qt5Svg_CFLAGS"
4566 elif test -n "$PKG_CONFIG"; then
4567 if test -n "$PKG_CONFIG" && \
4568 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Svg >= 5.5.1\""; } >&5
4569 ($PKG_CONFIG --exists --print-errors "Qt5Svg >= 5.5.1") 2>&5
4570 ac_status=$?
4571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4572 test $ac_status = 0; }; then
4573 pkg_cv_Qt5Svg_CFLAGS=`$PKG_CONFIG --cflags "Qt5Svg >= 5.5.1" 2>/dev/null`
4574 test "x$?" != "x0" && pkg_failed=yes
4575 else
4576 pkg_failed=yes
4578 else
4579 pkg_failed=untried
4581 if test -n "$Qt5Svg_LIBS"; then
4582 pkg_cv_Qt5Svg_LIBS="$Qt5Svg_LIBS"
4583 elif test -n "$PKG_CONFIG"; then
4584 if test -n "$PKG_CONFIG" && \
4585 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Svg >= 5.5.1\""; } >&5
4586 ($PKG_CONFIG --exists --print-errors "Qt5Svg >= 5.5.1") 2>&5
4587 ac_status=$?
4588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4589 test $ac_status = 0; }; then
4590 pkg_cv_Qt5Svg_LIBS=`$PKG_CONFIG --libs "Qt5Svg >= 5.5.1" 2>/dev/null`
4591 test "x$?" != "x0" && pkg_failed=yes
4592 else
4593 pkg_failed=yes
4595 else
4596 pkg_failed=untried
4601 if test $pkg_failed = yes; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 $as_echo "no" >&6; }
4605 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4606 _pkg_short_errors_supported=yes
4607 else
4608 _pkg_short_errors_supported=no
4610 if test $_pkg_short_errors_supported = yes; then
4611 Qt5Svg_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Qt5Svg >= 5.5.1" 2>&1`
4612 else
4613 Qt5Svg_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "Qt5Svg >= 5.5.1" 2>&1`
4615 # Put the nasty error message in config.log where it belongs
4616 echo "$Qt5Svg_PKG_ERRORS" >&5
4618 as_fn_error $? "Package requirements (Qt5Svg >= 5.5.1) were not met:
4620 $Qt5Svg_PKG_ERRORS
4622 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4623 installed software in a non-standard prefix.
4625 Alternatively, you may set the environment variables Qt5Svg_CFLAGS
4626 and Qt5Svg_LIBS to avoid the need to call pkg-config.
4627 See the pkg-config man page for more details." "$LINENO" 5
4628 elif test $pkg_failed = untried; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4633 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4634 is in your PATH or set the PKG_CONFIG environment variable to the full
4635 path to pkg-config.
4637 Alternatively, you may set the environment variables Qt5Svg_CFLAGS
4638 and Qt5Svg_LIBS to avoid the need to call pkg-config.
4639 See the pkg-config man page for more details.
4641 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4642 See \`config.log' for more details" "$LINENO" 5; }
4643 else
4644 Qt5Svg_CFLAGS=$pkg_cv_Qt5Svg_CFLAGS
4645 Qt5Svg_LIBS=$pkg_cv_Qt5Svg_LIBS
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4647 $as_echo "yes" >&6; }
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether QtDBus should be enabled" >&5
4653 $as_echo_n "checking whether QtDBus should be enabled... " >&6; }
4654 case "x$enable_qt_dbus" in #(
4655 "xyes") :
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4657 $as_echo "yes" >&6; }
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt5DBus >= 5.5.1" >&5
4659 $as_echo_n "checking for Qt5DBus >= 5.5.1... " >&6; }
4660 if test -n "$PKG_CONFIG" && \
4661 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5DBus >= 5.5.1\""; } >&5
4662 ($PKG_CONFIG --exists --print-errors "Qt5DBus >= 5.5.1") 2>&5
4663 ac_status=$?
4664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4665 test $ac_status = 0; }; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
4667 $as_echo "found" >&6; }
4668 HAVE_QTDBUS=true
4669 else
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4671 $as_echo "not found" >&6; }
4672 HAVE_QTDBUS=false
4675 if test "x$HAVE_QTDBUS" = "xfalse"; then :
4676 as_fn_error $? "Could not find QtDBus" "$LINENO" 5
4677 else
4678 QBT_ADD_CONFIG="$QBT_ADD_CONFIG dbus"
4680 fi ;; #(
4681 "xno") :
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 $as_echo "no" >&6; }
4684 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG dbus" ;; #(
4685 *) :
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_qt_dbus" >&5
4687 $as_echo "$enable_qt_dbus" >&6; }
4688 as_fn_error $? "Unknown option \"$enable_qt_dbus\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
4689 esac
4694 # Check whether --with-boost was given.
4695 if test "${with_boost+set}" = set; then :
4696 withval=$with_boost;
4697 case $withval in #(
4698 no) :
4699 want_boost="no";_AX_BOOST_BASE_boost_path="" ;; #(
4700 yes) :
4701 want_boost="yes";_AX_BOOST_BASE_boost_path="" ;; #(
4702 *) :
4703 want_boost="yes";_AX_BOOST_BASE_boost_path="$withval" ;;
4704 esac
4706 else
4707 want_boost="yes"
4713 # Check whether --with-boost-libdir was given.
4714 if test "${with_boost_libdir+set}" = set; then :
4715 withval=$with_boost_libdir;
4716 if test -d "$withval"; then :
4717 _AX_BOOST_BASE_boost_lib_path="$withval"
4718 else
4719 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
4722 else
4723 _AX_BOOST_BASE_boost_lib_path=""
4727 BOOST_LDFLAGS=""
4728 BOOST_CPPFLAGS=""
4729 if test "x$want_boost" = "xyes"; then :
4732 if test "x1.35" = "x"; then :
4733 _AX_BOOST_BASE_TONUMERICVERSION_req="1.20.0"
4734 else
4735 _AX_BOOST_BASE_TONUMERICVERSION_req="1.35"
4737 _AX_BOOST_BASE_TONUMERICVERSION_req_shorten=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\.[0-9]*\)'`
4738 _AX_BOOST_BASE_TONUMERICVERSION_req_major=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\)'`
4739 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_major" = "x"; then :
4740 as_fn_error $? "You should at least specify libboost major version" "$LINENO" 5
4742 _AX_BOOST_BASE_TONUMERICVERSION_req_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.\([0-9]*\)'`
4743 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_minor" = "x"; then :
4744 _AX_BOOST_BASE_TONUMERICVERSION_req_minor="0"
4746 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
4747 if test "X$_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor" = "X"; then :
4748 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor="0"
4750 _AX_BOOST_BASE_TONUMERICVERSION_RET=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req_major \* 100000 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_minor \* 100 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor`
4751 WANT_BOOST_VERSION=$_AX_BOOST_BASE_TONUMERICVERSION_RET
4753 succeeded=no
4757 case ${host_cpu} in #(
4758 x86_64) :
4759 libsubdirs="lib64 libx32 lib lib64" ;; #(
4760 ppc64|s390x|sparc64|aarch64|ppc64le) :
4761 libsubdirs="lib64 lib lib64" ;; #(
4762 *) :
4763 libsubdirs="lib"
4765 esac
4767 case ${host_cpu} in #(
4768 i?86) :
4769 multiarch_libsubdir="lib/i386-${host_os}" ;; #(
4770 *) :
4771 multiarch_libsubdir="lib/${host_cpu}-${host_os}"
4773 esac
4775 if test "x$_AX_BOOST_BASE_boost_path" != "x"; then :
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.35 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"" >&5
4778 $as_echo_n "checking for boostlib >= 1.35 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"... " >&6; }
4779 if test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"; then :
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4782 $as_echo "yes" >&6; }
4783 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include"
4784 for _AX_BOOST_BASE_boost_path_tmp in $multiarch_libsubdir $libsubdirs; do
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.35 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"" >&5
4786 $as_echo_n "checking for boostlib >= 1.35 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"... " >&6; }
4787 if test -d "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" && test -r "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" ; then :
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4790 $as_echo "yes" >&6; }
4791 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp";
4792 break;
4794 else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4798 done
4799 else
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4805 else
4807 if test X"$cross_compiling" = Xyes; then
4808 search_libsubdirs=$multiarch_libsubdir
4809 else
4810 search_libsubdirs="$multiarch_libsubdir $libsubdirs"
4812 for _AX_BOOST_BASE_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
4813 if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then
4814 for libsubdir in $search_libsubdirs ; do
4815 if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
4816 done
4817 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir"
4818 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path_tmp/include"
4819 break;
4821 done
4825 if test "x$_AX_BOOST_BASE_boost_lib_path" != "x"; then :
4826 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path"
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.35 ($WANT_BOOST_VERSION)" >&5
4830 $as_echo_n "checking for boostlib >= 1.35 ($WANT_BOOST_VERSION)... " >&6; }
4831 CPPFLAGS_SAVED="$CPPFLAGS"
4832 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
4833 export CPPFLAGS
4835 LDFLAGS_SAVED="$LDFLAGS"
4836 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
4837 export LDFLAGS
4840 ac_ext=cpp
4841 ac_cpp='$CXXCPP $CPPFLAGS'
4842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4849 #include <boost/version.hpp>
4852 main ()
4855 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
4858 return 0;
4860 _ACEOF
4861 if ac_fn_cxx_try_compile "$LINENO"; then :
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4864 $as_echo "yes" >&6; }
4865 succeeded=yes
4866 found_system=yes
4869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870 ac_ext=cpp
4871 ac_cpp='$CXXCPP $CPPFLAGS'
4872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4879 if test "x$succeeded" != "xyes" ; then
4880 CPPFLAGS="$CPPFLAGS_SAVED"
4881 LDFLAGS="$LDFLAGS_SAVED"
4882 BOOST_CPPFLAGS=
4883 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
4884 BOOST_LDFLAGS=
4886 _version=0
4887 if test -n "$_AX_BOOST_BASE_boost_path" ; then
4888 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then
4889 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
4890 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
4891 V_CHECK=`expr $_version_tmp \> $_version`
4892 if test "x$V_CHECK" = "x1" ; then
4893 _version=$_version_tmp
4895 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
4896 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include/boost-$VERSION_UNDERSCORE"
4897 done
4898 if test -z "$BOOST_CPPFLAGS"; then
4899 if test -d "$_AX_BOOST_BASE_boost_path/boost" && test -r "$_AX_BOOST_BASE_boost_path/boost"; then
4900 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path"
4903 if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then
4904 for libsubdir in $libsubdirs ; do
4905 if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
4906 done
4907 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$libsubdir"
4910 else
4911 if test "x$cross_compiling" != "xyes" ; then
4912 for _AX_BOOST_BASE_boost_path in /usr /usr/local /opt /opt/local ; do
4913 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then
4914 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
4915 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
4916 V_CHECK=`expr $_version_tmp \> $_version`
4917 if test "x$V_CHECK" = "x1" ; then
4918 _version=$_version_tmp
4919 best_path=$_AX_BOOST_BASE_boost_path
4921 done
4923 done
4925 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
4926 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
4927 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
4928 for libsubdir in $libsubdirs ; do
4929 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
4930 done
4931 BOOST_LDFLAGS="-L$best_path/$libsubdir"
4935 if test -n "$BOOST_ROOT" ; then
4936 for libsubdir in $libsubdirs ; do
4937 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
4938 done
4939 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
4940 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
4941 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
4942 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
4943 V_CHECK=`expr $stage_version_shorten \>\= $_version`
4944 if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
4946 $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
4947 BOOST_CPPFLAGS="-I$BOOST_ROOT"
4948 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
4954 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
4955 export CPPFLAGS
4956 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
4957 export LDFLAGS
4959 ac_ext=cpp
4960 ac_cpp='$CXXCPP $CPPFLAGS'
4961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4968 #include <boost/version.hpp>
4971 main ()
4974 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
4977 return 0;
4979 _ACEOF
4980 if ac_fn_cxx_try_compile "$LINENO"; then :
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4983 $as_echo "yes" >&6; }
4984 succeeded=yes
4985 found_system=yes
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 ac_ext=cpp
4990 ac_cpp='$CXXCPP $CPPFLAGS'
4991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4997 if test "x$succeeded" != "xyes" ; then
4998 if test "x$_version" = "x0" ; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version 1.35 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
5000 $as_echo "$as_me: We could not detect the boost libraries (version 1.35 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
5001 else
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
5003 $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
5005 # execute ACTION-IF-NOT-FOUND (if present):
5006 as_fn_error $? "Could not find Boost" "$LINENO" 5
5007 else
5009 $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
5011 # execute ACTION-IF-FOUND (if present):
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost CXXFLAGS: \"$BOOST_CPPFLAGS\"" >&5
5013 $as_echo "$as_me: Boost CXXFLAGS: \"$BOOST_CPPFLAGS\"" >&6;}
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost LDFLAGS: \"$BOOST_LDFLAGS\"" >&5
5015 $as_echo "$as_me: Boost LDFLAGS: \"$BOOST_LDFLAGS\"" >&6;}
5018 CPPFLAGS="$CPPFLAGS_SAVED"
5019 LDFLAGS="$LDFLAGS_SAVED"
5026 CXXFLAGS="$BOOST_CPPFLAGS $CXXFLAGS"
5027 LDFLAGS="$BOOST_LDFLAGS $LDFLAGS"
5029 # add workaround for problematic boost version
5030 # taken from ax_boost_base.m4
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5035 #include <boost/version.hpp>
5037 main ()
5039 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < (106000))]));
5041 return 0;
5043 _ACEOF
5044 if ac_fn_cxx_try_compile "$LINENO"; then :
5046 else
5047 QBT_ADD_DEFINES="$QBT_ADD_DEFINES BOOST_NO_CXX11_RVALUE_REFERENCES"
5049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053 # Check whether --with-boost-system was given.
5054 if test "${with_boost_system+set}" = set; then :
5055 withval=$with_boost_system;
5056 if test "$withval" = "no"; then
5057 want_boost="no"
5058 elif test "$withval" = "yes"; then
5059 want_boost="yes"
5060 ax_boost_user_system_lib=""
5061 else
5062 want_boost="yes"
5063 ax_boost_user_system_lib="$withval"
5066 else
5067 want_boost="yes"
5072 if test "x$want_boost" = "xyes"; then
5075 CPPFLAGS_SAVED="$CPPFLAGS"
5076 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
5077 export CPPFLAGS
5079 LDFLAGS_SAVED="$LDFLAGS"
5080 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
5081 export LDFLAGS
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
5084 $as_echo_n "checking whether the Boost::System library is available... " >&6; }
5085 if ${ax_cv_boost_system+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 ac_ext=cpp
5089 ac_cpp='$CXXCPP $CPPFLAGS'
5090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5094 CXXFLAGS_SAVE=$CXXFLAGS
5095 CXXFLAGS=
5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098 /* end confdefs.h. */
5099 #include <boost/system/error_code.hpp>
5101 main ()
5103 boost::system::error_category *a = 0;
5105 return 0;
5107 _ACEOF
5108 if ac_fn_cxx_try_compile "$LINENO"; then :
5109 ax_cv_boost_system=yes
5110 else
5111 ax_cv_boost_system=no
5113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114 CXXFLAGS=$CXXFLAGS_SAVE
5115 ac_ext=cpp
5116 ac_cpp='$CXXCPP $CPPFLAGS'
5117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
5124 $as_echo "$ax_cv_boost_system" >&6; }
5125 if test "x$ax_cv_boost_system" = "xyes"; then
5129 $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
5131 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
5133 LDFLAGS_SAVE=$LDFLAGS
5134 if test "x$ax_boost_user_system_lib" = "x"; then
5135 for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
5136 ax_lib=${libextension}
5137 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
5139 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
5140 if eval \${$as_ac_Lib+:} false; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 ac_check_lib_save_LIBS=$LIBS
5144 LIBS="-l$ax_lib $LIBS"
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5148 /* Override any GCC internal prototype to avoid an error.
5149 Use char because int might match the return type of a GCC
5150 builtin and then its argument prototype would still apply. */
5151 #ifdef __cplusplus
5152 extern "C"
5153 #endif
5154 char exit ();
5156 main ()
5158 return exit ();
5160 return 0;
5162 _ACEOF
5163 if ac_fn_cxx_try_link "$LINENO"; then :
5164 eval "$as_ac_Lib=yes"
5165 else
5166 eval "$as_ac_Lib=no"
5168 rm -f core conftest.err conftest.$ac_objext \
5169 conftest$ac_exeext conftest.$ac_ext
5170 LIBS=$ac_check_lib_save_LIBS
5172 eval ac_res=\$$as_ac_Lib
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5174 $as_echo "$ac_res" >&6; }
5175 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5176 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
5177 else
5178 link_system="no"
5181 done
5182 if test "x$link_system" != "xyes"; then
5183 for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
5184 ax_lib=${libextension}
5185 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
5187 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
5188 if eval \${$as_ac_Lib+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 ac_check_lib_save_LIBS=$LIBS
5192 LIBS="-l$ax_lib $LIBS"
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5196 /* Override any GCC internal prototype to avoid an error.
5197 Use char because int might match the return type of a GCC
5198 builtin and then its argument prototype would still apply. */
5199 #ifdef __cplusplus
5200 extern "C"
5201 #endif
5202 char exit ();
5204 main ()
5206 return exit ();
5208 return 0;
5210 _ACEOF
5211 if ac_fn_cxx_try_link "$LINENO"; then :
5212 eval "$as_ac_Lib=yes"
5213 else
5214 eval "$as_ac_Lib=no"
5216 rm -f core conftest.err conftest.$ac_objext \
5217 conftest$ac_exeext conftest.$ac_ext
5218 LIBS=$ac_check_lib_save_LIBS
5220 eval ac_res=\$$as_ac_Lib
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5222 $as_echo "$ac_res" >&6; }
5223 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5224 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
5225 else
5226 link_system="no"
5229 done
5232 else
5233 for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
5234 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
5236 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
5237 if eval \${$as_ac_Lib+:} false; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 ac_check_lib_save_LIBS=$LIBS
5241 LIBS="-l$ax_lib $LIBS"
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5245 /* Override any GCC internal prototype to avoid an error.
5246 Use char because int might match the return type of a GCC
5247 builtin and then its argument prototype would still apply. */
5248 #ifdef __cplusplus
5249 extern "C"
5250 #endif
5251 char exit ();
5253 main ()
5255 return exit ();
5257 return 0;
5259 _ACEOF
5260 if ac_fn_cxx_try_link "$LINENO"; then :
5261 eval "$as_ac_Lib=yes"
5262 else
5263 eval "$as_ac_Lib=no"
5265 rm -f core conftest.err conftest.$ac_objext \
5266 conftest$ac_exeext conftest.$ac_ext
5267 LIBS=$ac_check_lib_save_LIBS
5269 eval ac_res=\$$as_ac_Lib
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5271 $as_echo "$ac_res" >&6; }
5272 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5273 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
5274 else
5275 link_system="no"
5278 done
5281 if test "x$ax_lib" = "x"; then
5282 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
5284 if test "x$link_system" = "xno"; then
5285 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
5289 CPPFLAGS="$CPPFLAGS_SAVED"
5290 LDFLAGS="$LDFLAGS_SAVED"
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost.System LIB: \"$BOOST_SYSTEM_LIB\"" >&5
5294 $as_echo "$as_me: Boost.System LIB: \"$BOOST_SYSTEM_LIB\"" >&6;}
5295 LIBS="$BOOST_SYSTEM_LIB $LIBS"
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which qtsingleapplication to use" >&5
5298 $as_echo_n "checking which qtsingleapplication to use... " >&6; }
5299 case "x$with_qtsingleapplication" in #(
5300 "xshipped") :
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: shipped" >&5
5302 $as_echo "shipped" >&6; }
5303 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG usesystemqtsingleapplication" ;; #(
5304 "xsystem") :
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
5306 $as_echo "system" >&6; }
5307 QBT_ADD_CONFIG="$QBT_ADD_CONFIG usesystemqtsingleapplication" ;; #(
5308 *) :
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_qtsingleapplication" >&5
5310 $as_echo "$with_qtsingleapplication" >&6; }
5311 as_fn_error $? "Unknown option \"$with_qtsingleapplication\". Use either \"system\" or \"shipped\"." "$LINENO" 5 ;;
5312 esac
5315 pkg_failed=no
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtorrent" >&5
5317 $as_echo_n "checking for libtorrent... " >&6; }
5319 if test -n "$libtorrent_CFLAGS"; then
5320 pkg_cv_libtorrent_CFLAGS="$libtorrent_CFLAGS"
5321 elif test -n "$PKG_CONFIG"; then
5322 if test -n "$PKG_CONFIG" && \
5323 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.0.6\""; } >&5
5324 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.0.6") 2>&5
5325 ac_status=$?
5326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5327 test $ac_status = 0; }; then
5328 pkg_cv_libtorrent_CFLAGS=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 1.0.6" 2>/dev/null`
5329 test "x$?" != "x0" && pkg_failed=yes
5330 else
5331 pkg_failed=yes
5333 else
5334 pkg_failed=untried
5336 if test -n "$libtorrent_LIBS"; then
5337 pkg_cv_libtorrent_LIBS="$libtorrent_LIBS"
5338 elif test -n "$PKG_CONFIG"; then
5339 if test -n "$PKG_CONFIG" && \
5340 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.0.6\""; } >&5
5341 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.0.6") 2>&5
5342 ac_status=$?
5343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5344 test $ac_status = 0; }; then
5345 pkg_cv_libtorrent_LIBS=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 1.0.6" 2>/dev/null`
5346 test "x$?" != "x0" && pkg_failed=yes
5347 else
5348 pkg_failed=yes
5350 else
5351 pkg_failed=untried
5356 if test $pkg_failed = yes; then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5360 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5361 _pkg_short_errors_supported=yes
5362 else
5363 _pkg_short_errors_supported=no
5365 if test $_pkg_short_errors_supported = yes; then
5366 libtorrent_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 1.0.6" 2>&1`
5367 else
5368 libtorrent_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 1.0.6" 2>&1`
5370 # Put the nasty error message in config.log where it belongs
5371 echo "$libtorrent_PKG_ERRORS" >&5
5373 as_fn_error $? "Package requirements (libtorrent-rasterbar >= 1.0.6) were not met:
5375 $libtorrent_PKG_ERRORS
5377 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5378 installed software in a non-standard prefix.
5380 Alternatively, you may set the environment variables libtorrent_CFLAGS
5381 and libtorrent_LIBS to avoid the need to call pkg-config.
5382 See the pkg-config man page for more details." "$LINENO" 5
5383 elif test $pkg_failed = untried; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5388 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5389 is in your PATH or set the PKG_CONFIG environment variable to the full
5390 path to pkg-config.
5392 Alternatively, you may set the environment variables libtorrent_CFLAGS
5393 and libtorrent_LIBS to avoid the need to call pkg-config.
5394 See the pkg-config man page for more details.
5396 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5397 See \`config.log' for more details" "$LINENO" 5; }
5398 else
5399 libtorrent_CFLAGS=$pkg_cv_libtorrent_CFLAGS
5400 libtorrent_LIBS=$pkg_cv_libtorrent_LIBS
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5402 $as_echo "yes" >&6; }
5403 CXXFLAGS="$libtorrent_CFLAGS $CXXFLAGS"
5404 LIBS="$libtorrent_LIBS $LIBS"
5408 pkg_failed=no
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
5410 $as_echo_n "checking for openssl... " >&6; }
5412 if test -n "$openssl_CFLAGS"; then
5413 pkg_cv_openssl_CFLAGS="$openssl_CFLAGS"
5414 elif test -n "$PKG_CONFIG"; then
5415 if test -n "$PKG_CONFIG" && \
5416 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0\""; } >&5
5417 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0") 2>&5
5418 ac_status=$?
5419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5420 test $ac_status = 0; }; then
5421 pkg_cv_openssl_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0" 2>/dev/null`
5422 test "x$?" != "x0" && pkg_failed=yes
5423 else
5424 pkg_failed=yes
5426 else
5427 pkg_failed=untried
5429 if test -n "$openssl_LIBS"; then
5430 pkg_cv_openssl_LIBS="$openssl_LIBS"
5431 elif test -n "$PKG_CONFIG"; then
5432 if test -n "$PKG_CONFIG" && \
5433 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0\""; } >&5
5434 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0") 2>&5
5435 ac_status=$?
5436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5437 test $ac_status = 0; }; then
5438 pkg_cv_openssl_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0" 2>/dev/null`
5439 test "x$?" != "x0" && pkg_failed=yes
5440 else
5441 pkg_failed=yes
5443 else
5444 pkg_failed=untried
5449 if test $pkg_failed = yes; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5453 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5454 _pkg_short_errors_supported=yes
5455 else
5456 _pkg_short_errors_supported=no
5458 if test $_pkg_short_errors_supported = yes; then
5459 openssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0" 2>&1`
5460 else
5461 openssl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0" 2>&1`
5463 # Put the nasty error message in config.log where it belongs
5464 echo "$openssl_PKG_ERRORS" >&5
5466 as_fn_error $? "Package requirements (openssl >= 1.0) were not met:
5468 $openssl_PKG_ERRORS
5470 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5471 installed software in a non-standard prefix.
5473 Alternatively, you may set the environment variables openssl_CFLAGS
5474 and openssl_LIBS to avoid the need to call pkg-config.
5475 See the pkg-config man page for more details." "$LINENO" 5
5476 elif test $pkg_failed = untried; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5481 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5482 is in your PATH or set the PKG_CONFIG environment variable to the full
5483 path to pkg-config.
5485 Alternatively, you may set the environment variables openssl_CFLAGS
5486 and openssl_LIBS to avoid the need to call pkg-config.
5487 See the pkg-config man page for more details.
5489 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5490 See \`config.log' for more details" "$LINENO" 5; }
5491 else
5492 openssl_CFLAGS=$pkg_cv_openssl_CFLAGS
5493 openssl_LIBS=$pkg_cv_openssl_LIBS
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5495 $as_echo "yes" >&6; }
5496 CXXFLAGS="$openssl_CFLAGS $CXXFLAGS"
5497 LIBS="$openssl_LIBS $LIBS"
5501 pkg_failed=no
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
5503 $as_echo_n "checking for zlib... " >&6; }
5505 if test -n "$zlib_CFLAGS"; then
5506 pkg_cv_zlib_CFLAGS="$zlib_CFLAGS"
5507 elif test -n "$PKG_CONFIG"; then
5508 if test -n "$PKG_CONFIG" && \
5509 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.5.2\""; } >&5
5510 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.5.2") 2>&5
5511 ac_status=$?
5512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5513 test $ac_status = 0; }; then
5514 pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.5.2" 2>/dev/null`
5515 test "x$?" != "x0" && pkg_failed=yes
5516 else
5517 pkg_failed=yes
5519 else
5520 pkg_failed=untried
5522 if test -n "$zlib_LIBS"; then
5523 pkg_cv_zlib_LIBS="$zlib_LIBS"
5524 elif test -n "$PKG_CONFIG"; then
5525 if test -n "$PKG_CONFIG" && \
5526 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.5.2\""; } >&5
5527 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.5.2") 2>&5
5528 ac_status=$?
5529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5530 test $ac_status = 0; }; then
5531 pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.5.2" 2>/dev/null`
5532 test "x$?" != "x0" && pkg_failed=yes
5533 else
5534 pkg_failed=yes
5536 else
5537 pkg_failed=untried
5542 if test $pkg_failed = yes; then
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5546 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5547 _pkg_short_errors_supported=yes
5548 else
5549 _pkg_short_errors_supported=no
5551 if test $_pkg_short_errors_supported = yes; then
5552 zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.5.2" 2>&1`
5553 else
5554 zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.5.2" 2>&1`
5556 # Put the nasty error message in config.log where it belongs
5557 echo "$zlib_PKG_ERRORS" >&5
5559 as_fn_error $? "Package requirements (zlib >= 1.2.5.2) were not met:
5561 $zlib_PKG_ERRORS
5563 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5564 installed software in a non-standard prefix.
5566 Alternatively, you may set the environment variables zlib_CFLAGS
5567 and zlib_LIBS to avoid the need to call pkg-config.
5568 See the pkg-config man page for more details." "$LINENO" 5
5569 elif test $pkg_failed = untried; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5574 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5575 is in your PATH or set the PKG_CONFIG environment variable to the full
5576 path to pkg-config.
5578 Alternatively, you may set the environment variables zlib_CFLAGS
5579 and zlib_LIBS to avoid the need to call pkg-config.
5580 See the pkg-config man page for more details.
5582 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5583 See \`config.log' for more details" "$LINENO" 5; }
5584 else
5585 zlib_CFLAGS=$pkg_cv_zlib_CFLAGS
5586 zlib_LIBS=$pkg_cv_zlib_LIBS
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5588 $as_echo "yes" >&6; }
5589 CXXFLAGS="$zlib_CFLAGS $CXXFLAGS"
5590 LIBS="$zlib_LIBS $LIBS"
5593 # Check if already in >= C++11 mode because of the flags returned by one of the above packages
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is using C++11 or later mode" >&5
5595 $as_echo_n "checking if compiler is using C++11 or later mode... " >&6; }
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5599 #ifndef __cplusplus
5600 #error "This is not a C++ compiler"
5601 #elif __cplusplus < 201103L
5602 #error "This is not a C++11 compiler"
5603 #endif
5605 main ()
5609 return 0;
5612 _ACEOF
5613 if ac_fn_cxx_try_compile "$LINENO"; then :
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5615 $as_echo "yes" >&6; }
5616 QBT_CXX11_FOUND="yes"
5617 else
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619 $as_echo "no" >&6; }
5620 QBT_CXX11_FOUND="no"
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 # In case of no, check if the compiler can support at least C++11
5625 # and if yes, enable it leaving a warning to the user
5626 if test "x$QBT_CXX11_FOUND" = "xno"; then :
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports C++11" >&5
5628 $as_echo_n "checking if compiler supports C++11... " >&6; }
5629 TMP_CXXFLAGS="$CXXFLAGS"
5630 CXXFLAGS="$CXXFLAGS -std=c++11"
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5634 #ifndef __cplusplus
5635 #error "This is not a C++ compiler"
5636 #elif __cplusplus < 201103L
5637 #error "This is not a C++11 compiler"
5638 #endif
5640 main ()
5644 return 0;
5647 _ACEOF
5648 if ac_fn_cxx_try_compile "$LINENO"; then :
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5650 $as_echo "yes" >&6; }
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++11 is disabled by the set compiler flags" >&5
5652 $as_echo_n "checking if C++11 is disabled by the set compiler flags... " >&6; }
5653 # prepend the flag so it won't override conflicting user defined flags
5654 CXXFLAGS="-std=c++11 $TMP_CXXFLAGS"
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5658 #ifndef __cplusplus
5659 #error "This is not a C++ compiler"
5660 #elif __cplusplus < 201103L
5661 #error "This is not a C++11 compiler"
5662 #endif
5664 main ()
5668 return 0;
5671 _ACEOF
5672 if ac_fn_cxx_try_compile "$LINENO"; then :
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674 $as_echo "no" >&6; }
5675 CXXFLAGS="$TMP_CXXFLAGS -std=c++11"
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++11 mode is now force enabled.
5677 Make sure you use the same C++ mode for qBittorrent and its dependencies.
5678 To explicitly set qBittorrent to a later mode use CXXFLAGS.
5679 Example: \`CXXFLAGS=\"\$CXXFLAGS -std=c++14\" ./configure\`" >&5
5680 $as_echo "$as_me: WARNING: C++11 mode is now force enabled.
5681 Make sure you use the same C++ mode for qBittorrent and its dependencies.
5682 To explicitly set qBittorrent to a later mode use CXXFLAGS.
5683 Example: \`CXXFLAGS=\"\$CXXFLAGS -std=c++14\" ./configure\`" >&2;}
5684 else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5686 $as_echo "yes" >&6; }
5687 as_fn_error $? "The compiler supports C++11 but the user or a dependency has explicitly enabled a lower mode." "$LINENO" 5
5689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690 else
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5693 as_fn_error $? "A compiler supporting C++11 is required." "$LINENO" 5
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699 # These are required because autoconf doesn't expand these **particular**
5700 # vars automatically. And qmake cannot autoexpand them.
5702 prefix_NONE=
5703 exec_prefix_NONE=
5704 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
5705 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
5706 eval ax_define_dir="\"$prefix\""
5707 eval ax_define_dir="\"$ax_define_dir\""
5708 EXPAND_PREFIX="$ax_define_dir"
5710 cat >>confdefs.h <<_ACEOF
5711 #define EXPAND_PREFIX "$ax_define_dir"
5712 _ACEOF
5714 test "$prefix_NONE" && prefix=NONE
5715 test "$exec_prefix_NONE" && exec_prefix=NONE
5718 prefix_NONE=
5719 exec_prefix_NONE=
5720 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
5721 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
5722 eval ax_define_dir="\"$bindir\""
5723 eval ax_define_dir="\"$ax_define_dir\""
5724 EXPAND_BINDIR="$ax_define_dir"
5726 cat >>confdefs.h <<_ACEOF
5727 #define EXPAND_BINDIR "$ax_define_dir"
5728 _ACEOF
5730 test "$prefix_NONE" && prefix=NONE
5731 test "$exec_prefix_NONE" && exec_prefix=NONE
5734 prefix_NONE=
5735 exec_prefix_NONE=
5736 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
5737 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
5738 eval ax_define_dir="\"$datadir\""
5739 eval ax_define_dir="\"$ax_define_dir\""
5740 EXPAND_DATADIR="$ax_define_dir"
5742 cat >>confdefs.h <<_ACEOF
5743 #define EXPAND_DATADIR "$ax_define_dir"
5744 _ACEOF
5746 test "$prefix_NONE" && prefix=NONE
5747 test "$exec_prefix_NONE" && exec_prefix=NONE
5750 prefix_NONE=
5751 exec_prefix_NONE=
5752 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
5753 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
5754 eval ax_define_dir="\"$mandir\""
5755 eval ax_define_dir="\"$ax_define_dir\""
5756 EXPAND_MANDIR="$ax_define_dir"
5758 cat >>confdefs.h <<_ACEOF
5759 #define EXPAND_MANDIR "$ax_define_dir"
5760 _ACEOF
5762 test "$prefix_NONE" && prefix=NONE
5763 test "$exec_prefix_NONE" && exec_prefix=NONE
5766 # Original extract() function contributed by pmzqla
5767 # $*: Strings to parse
5768 # Set $QBT_CONF_DEFINES, $QBT_CONF_INCLUDES, $QBT_CONF_EXTRA_CFLAGS
5769 extract() {
5770 if [ -z "$*" ]; then
5771 echo "Input string required"
5772 return 1
5775 # BSD sed needs an actual newline character in the substitute command
5776 new_line='
5778 # Convert " -" to "\n" if not between quotes and remove possible leading white spaces
5779 string=$(echo " $*" | $SED -e "s: -:\\${new_line}:g" -e 's:"\(.*\)\n\(.*\)":\"\1 -\2":g' -e "s:'\(.*\)\n\(.*\)':\'\1 -\2':g" -e 's/^[[:space:]]*//')
5780 SAVEIFS=$IFS
5781 IFS=$(printf "\n\b")
5782 for i in $string; do
5783 case "$(echo "$i" | cut -c1)" in
5784 '') ;;
5785 D) QBT_CONF_DEFINES="$QBT_CONF_DEFINES $(echo $i | cut -c2-)";;
5786 I) QBT_CONF_INCLUDES="$QBT_CONF_INCLUDES $(echo $i | cut -c2-)";;
5787 *) QBT_CONF_EXTRA_CFLAGS="$QBT_CONF_EXTRA_CFLAGS -$i";;
5788 esac
5789 done
5790 IFS=$SAVEIFS
5793 extract "$CFLAGS $CXXFLAGS"
5794 QBT_ADD_DEFINES="$QBT_ADD_DEFINES $QBT_CONF_DEFINES"
5796 # Substitute the values of these vars in conf.pri.in
5806 ac_config_files="$ac_config_files conf.pri"
5808 cat >confcache <<\_ACEOF
5809 # This file is a shell script that caches the results of configure
5810 # tests run on this system so they can be shared between configure
5811 # scripts and configure runs, see configure's option --config-cache.
5812 # It is not useful on other systems. If it contains results you don't
5813 # want to keep, you may remove or edit it.
5815 # config.status only pays attention to the cache file if you give it
5816 # the --recheck option to rerun configure.
5818 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5819 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5820 # following values.
5822 _ACEOF
5824 # The following way of writing the cache mishandles newlines in values,
5825 # but we know of no workaround that is simple, portable, and efficient.
5826 # So, we kill variables containing newlines.
5827 # Ultrix sh set writes to stderr and can't be redirected directly,
5828 # and sets the high bit in the cache file unless we assign to the vars.
5830 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5831 eval ac_val=\$$ac_var
5832 case $ac_val in #(
5833 *${as_nl}*)
5834 case $ac_var in #(
5835 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5836 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5837 esac
5838 case $ac_var in #(
5839 _ | IFS | as_nl) ;; #(
5840 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5841 *) { eval $ac_var=; unset $ac_var;} ;;
5842 esac ;;
5843 esac
5844 done
5846 (set) 2>&1 |
5847 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5848 *${as_nl}ac_space=\ *)
5849 # `set' does not quote correctly, so add quotes: double-quote
5850 # substitution turns \\\\ into \\, and sed turns \\ into \.
5851 sed -n \
5852 "s/'/'\\\\''/g;
5853 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5854 ;; #(
5856 # `set' quotes correctly as required by POSIX, so do not add quotes.
5857 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5859 esac |
5860 sort
5862 sed '
5863 /^ac_cv_env_/b end
5864 t clear
5865 :clear
5866 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5867 t end
5868 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5869 :end' >>confcache
5870 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5871 if test -w "$cache_file"; then
5872 if test "x$cache_file" != "x/dev/null"; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5874 $as_echo "$as_me: updating cache $cache_file" >&6;}
5875 if test ! -f "$cache_file" || test -h "$cache_file"; then
5876 cat confcache >"$cache_file"
5877 else
5878 case $cache_file in #(
5879 */* | ?:*)
5880 mv -f confcache "$cache_file"$$ &&
5881 mv -f "$cache_file"$$ "$cache_file" ;; #(
5883 mv -f confcache "$cache_file" ;;
5884 esac
5887 else
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5889 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5892 rm -f confcache
5894 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5895 # Let make expand exec_prefix.
5896 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5898 # Transform confdefs.h into DEFS.
5899 # Protect against shell expansion while executing Makefile rules.
5900 # Protect against Makefile macro expansion.
5902 # If the first sed substitution is executed (which looks for macros that
5903 # take arguments), then branch to the quote section. Otherwise,
5904 # look for a macro that doesn't take arguments.
5905 ac_script='
5906 :mline
5907 /\\$/{
5909 s,\\\n,,
5910 b mline
5912 t clear
5913 :clear
5914 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
5915 t quote
5916 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
5917 t quote
5918 b any
5919 :quote
5920 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5921 s/\[/\\&/g
5922 s/\]/\\&/g
5923 s/\$/$$/g
5925 :any
5928 s/^\n//
5929 s/\n/ /g
5933 DEFS=`sed -n "$ac_script" confdefs.h`
5936 ac_libobjs=
5937 ac_ltlibobjs=
5939 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5940 # 1. Remove the extension, and $U if already installed.
5941 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5942 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5943 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5944 # will be set to the directory where LIBOBJS objects are built.
5945 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5946 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5947 done
5948 LIBOBJS=$ac_libobjs
5950 LTLIBOBJS=$ac_ltlibobjs
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5954 $as_echo_n "checking that generated files are newer than configure... " >&6; }
5955 if test -n "$am_sleep_pid"; then
5956 # Hide warnings about reused PIDs.
5957 wait $am_sleep_pid 2>/dev/null
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5960 $as_echo "done" >&6; }
5961 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5962 as_fn_error $? "conditional \"AMDEP\" was never defined.
5963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5965 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5966 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5969 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5970 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
5971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5973 if test -n "$EXEEXT"; then
5974 am__EXEEXT_TRUE=
5975 am__EXEEXT_FALSE='#'
5976 else
5977 am__EXEEXT_TRUE='#'
5978 am__EXEEXT_FALSE=
5982 : "${CONFIG_STATUS=./config.status}"
5983 ac_write_fail=0
5984 ac_clean_files_save=$ac_clean_files
5985 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5987 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5988 as_write_fail=0
5989 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5990 #! $SHELL
5991 # Generated by $as_me.
5992 # Run this file to recreate the current configuration.
5993 # Compiler output produced by configure, useful for debugging
5994 # configure, is in config.log if it exists.
5996 debug=false
5997 ac_cs_recheck=false
5998 ac_cs_silent=false
6000 SHELL=\${CONFIG_SHELL-$SHELL}
6001 export SHELL
6002 _ASEOF
6003 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6004 ## -------------------- ##
6005 ## M4sh Initialization. ##
6006 ## -------------------- ##
6008 # Be more Bourne compatible
6009 DUALCASE=1; export DUALCASE # for MKS sh
6010 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6011 emulate sh
6012 NULLCMD=:
6013 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6014 # is contrary to our usage. Disable this feature.
6015 alias -g '${1+"$@"}'='"$@"'
6016 setopt NO_GLOB_SUBST
6017 else
6018 case `(set -o) 2>/dev/null` in #(
6019 *posix*) :
6020 set -o posix ;; #(
6021 *) :
6023 esac
6027 as_nl='
6029 export as_nl
6030 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6031 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6032 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6033 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6034 # Prefer a ksh shell builtin over an external printf program on Solaris,
6035 # but without wasting forks for bash or zsh.
6036 if test -z "$BASH_VERSION$ZSH_VERSION" \
6037 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6038 as_echo='print -r --'
6039 as_echo_n='print -rn --'
6040 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6041 as_echo='printf %s\n'
6042 as_echo_n='printf %s'
6043 else
6044 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6045 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6046 as_echo_n='/usr/ucb/echo -n'
6047 else
6048 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6049 as_echo_n_body='eval
6050 arg=$1;
6051 case $arg in #(
6052 *"$as_nl"*)
6053 expr "X$arg" : "X\\(.*\\)$as_nl";
6054 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6055 esac;
6056 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6058 export as_echo_n_body
6059 as_echo_n='sh -c $as_echo_n_body as_echo'
6061 export as_echo_body
6062 as_echo='sh -c $as_echo_body as_echo'
6065 # The user is always right.
6066 if test "${PATH_SEPARATOR+set}" != set; then
6067 PATH_SEPARATOR=:
6068 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6069 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6070 PATH_SEPARATOR=';'
6075 # IFS
6076 # We need space, tab and new line, in precisely that order. Quoting is
6077 # there to prevent editors from complaining about space-tab.
6078 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6079 # splitting by setting IFS to empty value.)
6080 IFS=" "" $as_nl"
6082 # Find who we are. Look in the path if we contain no directory separator.
6083 as_myself=
6084 case $0 in #((
6085 *[\\/]* ) as_myself=$0 ;;
6086 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 for as_dir in $PATH
6089 IFS=$as_save_IFS
6090 test -z "$as_dir" && as_dir=.
6091 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6092 done
6093 IFS=$as_save_IFS
6096 esac
6097 # We did not find ourselves, most probably we were run as `sh COMMAND'
6098 # in which case we are not to be found in the path.
6099 if test "x$as_myself" = x; then
6100 as_myself=$0
6102 if test ! -f "$as_myself"; then
6103 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6104 exit 1
6107 # Unset variables that we do not need and which cause bugs (e.g. in
6108 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6109 # suppresses any "Segmentation fault" message there. '((' could
6110 # trigger a bug in pdksh 5.2.14.
6111 for as_var in BASH_ENV ENV MAIL MAILPATH
6112 do eval test x\${$as_var+set} = xset \
6113 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6114 done
6115 PS1='$ '
6116 PS2='> '
6117 PS4='+ '
6119 # NLS nuisances.
6120 LC_ALL=C
6121 export LC_ALL
6122 LANGUAGE=C
6123 export LANGUAGE
6125 # CDPATH.
6126 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6129 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6130 # ----------------------------------------
6131 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6132 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6133 # script with STATUS, using 1 if that was 0.
6134 as_fn_error ()
6136 as_status=$1; test $as_status -eq 0 && as_status=1
6137 if test "$4"; then
6138 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6139 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6141 $as_echo "$as_me: error: $2" >&2
6142 as_fn_exit $as_status
6143 } # as_fn_error
6146 # as_fn_set_status STATUS
6147 # -----------------------
6148 # Set $? to STATUS, without forking.
6149 as_fn_set_status ()
6151 return $1
6152 } # as_fn_set_status
6154 # as_fn_exit STATUS
6155 # -----------------
6156 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6157 as_fn_exit ()
6159 set +e
6160 as_fn_set_status $1
6161 exit $1
6162 } # as_fn_exit
6164 # as_fn_unset VAR
6165 # ---------------
6166 # Portably unset VAR.
6167 as_fn_unset ()
6169 { eval $1=; unset $1;}
6171 as_unset=as_fn_unset
6172 # as_fn_append VAR VALUE
6173 # ----------------------
6174 # Append the text in VALUE to the end of the definition contained in VAR. Take
6175 # advantage of any shell optimizations that allow amortized linear growth over
6176 # repeated appends, instead of the typical quadratic growth present in naive
6177 # implementations.
6178 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6179 eval 'as_fn_append ()
6181 eval $1+=\$2
6183 else
6184 as_fn_append ()
6186 eval $1=\$$1\$2
6188 fi # as_fn_append
6190 # as_fn_arith ARG...
6191 # ------------------
6192 # Perform arithmetic evaluation on the ARGs, and store the result in the
6193 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6194 # must be portable across $(()) and expr.
6195 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6196 eval 'as_fn_arith ()
6198 as_val=$(( $* ))
6200 else
6201 as_fn_arith ()
6203 as_val=`expr "$@" || test $? -eq 1`
6205 fi # as_fn_arith
6208 if expr a : '\(a\)' >/dev/null 2>&1 &&
6209 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6210 as_expr=expr
6211 else
6212 as_expr=false
6215 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6216 as_basename=basename
6217 else
6218 as_basename=false
6221 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6222 as_dirname=dirname
6223 else
6224 as_dirname=false
6227 as_me=`$as_basename -- "$0" ||
6228 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6229 X"$0" : 'X\(//\)$' \| \
6230 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6231 $as_echo X/"$0" |
6232 sed '/^.*\/\([^/][^/]*\)\/*$/{
6233 s//\1/
6236 /^X\/\(\/\/\)$/{
6237 s//\1/
6240 /^X\/\(\/\).*/{
6241 s//\1/
6244 s/.*/./; q'`
6246 # Avoid depending upon Character Ranges.
6247 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6248 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6249 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6250 as_cr_digits='0123456789'
6251 as_cr_alnum=$as_cr_Letters$as_cr_digits
6253 ECHO_C= ECHO_N= ECHO_T=
6254 case `echo -n x` in #(((((
6255 -n*)
6256 case `echo 'xy\c'` in
6257 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6258 xy) ECHO_C='\c';;
6259 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6260 ECHO_T=' ';;
6261 esac;;
6263 ECHO_N='-n';;
6264 esac
6266 rm -f conf$$ conf$$.exe conf$$.file
6267 if test -d conf$$.dir; then
6268 rm -f conf$$.dir/conf$$.file
6269 else
6270 rm -f conf$$.dir
6271 mkdir conf$$.dir 2>/dev/null
6273 if (echo >conf$$.file) 2>/dev/null; then
6274 if ln -s conf$$.file conf$$ 2>/dev/null; then
6275 as_ln_s='ln -s'
6276 # ... but there are two gotchas:
6277 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6278 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6279 # In both cases, we have to default to `cp -pR'.
6280 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6281 as_ln_s='cp -pR'
6282 elif ln conf$$.file conf$$ 2>/dev/null; then
6283 as_ln_s=ln
6284 else
6285 as_ln_s='cp -pR'
6287 else
6288 as_ln_s='cp -pR'
6290 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6291 rmdir conf$$.dir 2>/dev/null
6294 # as_fn_mkdir_p
6295 # -------------
6296 # Create "$as_dir" as a directory, including parents if necessary.
6297 as_fn_mkdir_p ()
6300 case $as_dir in #(
6301 -*) as_dir=./$as_dir;;
6302 esac
6303 test -d "$as_dir" || eval $as_mkdir_p || {
6304 as_dirs=
6305 while :; do
6306 case $as_dir in #(
6307 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6308 *) as_qdir=$as_dir;;
6309 esac
6310 as_dirs="'$as_qdir' $as_dirs"
6311 as_dir=`$as_dirname -- "$as_dir" ||
6312 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6313 X"$as_dir" : 'X\(//\)[^/]' \| \
6314 X"$as_dir" : 'X\(//\)$' \| \
6315 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6316 $as_echo X"$as_dir" |
6317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6318 s//\1/
6321 /^X\(\/\/\)[^/].*/{
6322 s//\1/
6325 /^X\(\/\/\)$/{
6326 s//\1/
6329 /^X\(\/\).*/{
6330 s//\1/
6333 s/.*/./; q'`
6334 test -d "$as_dir" && break
6335 done
6336 test -z "$as_dirs" || eval "mkdir $as_dirs"
6337 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6340 } # as_fn_mkdir_p
6341 if mkdir -p . 2>/dev/null; then
6342 as_mkdir_p='mkdir -p "$as_dir"'
6343 else
6344 test -d ./-p && rmdir ./-p
6345 as_mkdir_p=false
6349 # as_fn_executable_p FILE
6350 # -----------------------
6351 # Test if FILE is an executable regular file.
6352 as_fn_executable_p ()
6354 test -f "$1" && test -x "$1"
6355 } # as_fn_executable_p
6356 as_test_x='test -x'
6357 as_executable_p=as_fn_executable_p
6359 # Sed expression to map a string onto a valid CPP name.
6360 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6362 # Sed expression to map a string onto a valid variable name.
6363 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6366 exec 6>&1
6367 ## ----------------------------------- ##
6368 ## Main body of $CONFIG_STATUS script. ##
6369 ## ----------------------------------- ##
6370 _ASEOF
6371 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6374 # Save the log message, to keep $0 and so on meaningful, and to
6375 # report actual input values of CONFIG_FILES etc. instead of their
6376 # values after options handling.
6377 ac_log="
6378 This file was extended by qbittorrent $as_me v4.2.0alpha, which was
6379 generated by GNU Autoconf 2.69. Invocation command line was
6381 CONFIG_FILES = $CONFIG_FILES
6382 CONFIG_HEADERS = $CONFIG_HEADERS
6383 CONFIG_LINKS = $CONFIG_LINKS
6384 CONFIG_COMMANDS = $CONFIG_COMMANDS
6385 $ $0 $@
6387 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6390 _ACEOF
6392 case $ac_config_files in *"
6393 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6394 esac
6398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6399 # Files that config.status was made for.
6400 config_files="$ac_config_files"
6401 config_commands="$ac_config_commands"
6403 _ACEOF
6405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6406 ac_cs_usage="\
6407 \`$as_me' instantiates files and other configuration actions
6408 from templates according to the current configuration. Unless the files
6409 and actions are specified as TAGs, all are instantiated by default.
6411 Usage: $0 [OPTION]... [TAG]...
6413 -h, --help print this help, then exit
6414 -V, --version print version number and configuration settings, then exit
6415 --config print configuration, then exit
6416 -q, --quiet, --silent
6417 do not print progress messages
6418 -d, --debug don't remove temporary files
6419 --recheck update $as_me by reconfiguring in the same conditions
6420 --file=FILE[:TEMPLATE]
6421 instantiate the configuration file FILE
6423 Configuration files:
6424 $config_files
6426 Configuration commands:
6427 $config_commands
6429 Report bugs to <bugs.qbittorrent.org>.
6430 qbittorrent home page: <https://www.qbittorrent.org/>."
6432 _ACEOF
6433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6434 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6435 ac_cs_version="\\
6436 qbittorrent config.status v4.2.0alpha
6437 configured by $0, generated by GNU Autoconf 2.69,
6438 with options \\"\$ac_cs_config\\"
6440 Copyright (C) 2012 Free Software Foundation, Inc.
6441 This config.status script is free software; the Free Software Foundation
6442 gives unlimited permission to copy, distribute and modify it."
6444 ac_pwd='$ac_pwd'
6445 srcdir='$srcdir'
6446 INSTALL='$INSTALL'
6447 MKDIR_P='$MKDIR_P'
6448 AWK='$AWK'
6449 test -n "\$AWK" || AWK=awk
6450 _ACEOF
6452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6453 # The default lists apply if the user does not specify any file.
6454 ac_need_defaults=:
6455 while test $# != 0
6457 case $1 in
6458 --*=?*)
6459 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6460 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6461 ac_shift=:
6463 --*=)
6464 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6465 ac_optarg=
6466 ac_shift=:
6469 ac_option=$1
6470 ac_optarg=$2
6471 ac_shift=shift
6473 esac
6475 case $ac_option in
6476 # Handling of the options.
6477 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6478 ac_cs_recheck=: ;;
6479 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6480 $as_echo "$ac_cs_version"; exit ;;
6481 --config | --confi | --conf | --con | --co | --c )
6482 $as_echo "$ac_cs_config"; exit ;;
6483 --debug | --debu | --deb | --de | --d | -d )
6484 debug=: ;;
6485 --file | --fil | --fi | --f )
6486 $ac_shift
6487 case $ac_optarg in
6488 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6489 '') as_fn_error $? "missing file argument" ;;
6490 esac
6491 as_fn_append CONFIG_FILES " '$ac_optarg'"
6492 ac_need_defaults=false;;
6493 --he | --h | --help | --hel | -h )
6494 $as_echo "$ac_cs_usage"; exit ;;
6495 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6496 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6497 ac_cs_silent=: ;;
6499 # This is an error.
6500 -*) as_fn_error $? "unrecognized option: \`$1'
6501 Try \`$0 --help' for more information." ;;
6503 *) as_fn_append ac_config_targets " $1"
6504 ac_need_defaults=false ;;
6506 esac
6507 shift
6508 done
6510 ac_configure_extra_args=
6512 if $ac_cs_silent; then
6513 exec 6>/dev/null
6514 ac_configure_extra_args="$ac_configure_extra_args --silent"
6517 _ACEOF
6518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6519 if \$ac_cs_recheck; then
6520 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6521 shift
6522 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6523 CONFIG_SHELL='$SHELL'
6524 export CONFIG_SHELL
6525 exec "\$@"
6528 _ACEOF
6529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6530 exec 5>>config.log
6532 echo
6533 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6534 ## Running $as_me. ##
6535 _ASBOX
6536 $as_echo "$ac_log"
6537 } >&5
6539 _ACEOF
6540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6542 # INIT-COMMANDS
6544 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
6546 _ACEOF
6548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6550 # Handling of arguments.
6551 for ac_config_target in $ac_config_targets
6553 case $ac_config_target in
6554 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6555 "conf.pri") CONFIG_FILES="$CONFIG_FILES conf.pri" ;;
6557 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6558 esac
6559 done
6562 # If the user did not use the arguments to specify the items to instantiate,
6563 # then the envvar interface is used. Set only those that are not.
6564 # We use the long form for the default assignment because of an extremely
6565 # bizarre bug on SunOS 4.1.3.
6566 if $ac_need_defaults; then
6567 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6568 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6571 # Have a temporary directory for convenience. Make it in the build tree
6572 # simply because there is no reason against having it here, and in addition,
6573 # creating and moving files from /tmp can sometimes cause problems.
6574 # Hook for its removal unless debugging.
6575 # Note that there is a small window in which the directory will not be cleaned:
6576 # after its creation but before its name has been assigned to `$tmp'.
6577 $debug ||
6579 tmp= ac_tmp=
6580 trap 'exit_status=$?
6581 : "${ac_tmp:=$tmp}"
6582 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6584 trap 'as_fn_exit 1' 1 2 13 15
6586 # Create a (secure) tmp directory for tmp files.
6589 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6590 test -d "$tmp"
6591 } ||
6593 tmp=./conf$$-$RANDOM
6594 (umask 077 && mkdir "$tmp")
6595 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6596 ac_tmp=$tmp
6598 # Set up the scripts for CONFIG_FILES section.
6599 # No need to generate them if there are no CONFIG_FILES.
6600 # This happens for instance with `./config.status config.h'.
6601 if test -n "$CONFIG_FILES"; then
6604 ac_cr=`echo X | tr X '\015'`
6605 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6606 # But we know of no other shell where ac_cr would be empty at this
6607 # point, so we can use a bashism as a fallback.
6608 if test "x$ac_cr" = x; then
6609 eval ac_cr=\$\'\\r\'
6611 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6612 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6613 ac_cs_awk_cr='\\r'
6614 else
6615 ac_cs_awk_cr=$ac_cr
6618 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6619 _ACEOF
6623 echo "cat >conf$$subs.awk <<_ACEOF" &&
6624 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6625 echo "_ACEOF"
6626 } >conf$$subs.sh ||
6627 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6628 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6629 ac_delim='%!_!# '
6630 for ac_last_try in false false false false false :; do
6631 . ./conf$$subs.sh ||
6632 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6634 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6635 if test $ac_delim_n = $ac_delim_num; then
6636 break
6637 elif $ac_last_try; then
6638 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6639 else
6640 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6642 done
6643 rm -f conf$$subs.sh
6645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6646 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6647 _ACEOF
6648 sed -n '
6650 s/^/S["/; s/!.*/"]=/
6653 s/^[^!]*!//
6654 :repl
6655 t repl
6656 s/'"$ac_delim"'$//
6657 t delim
6660 s/\(.\{148\}\)..*/\1/
6661 t more1
6662 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6665 b repl
6666 :more1
6667 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6670 s/.\{148\}//
6671 t nl
6672 :delim
6674 s/\(.\{148\}\)..*/\1/
6675 t more2
6676 s/["\\]/\\&/g; s/^/"/; s/$/"/
6679 :more2
6680 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6683 s/.\{148\}//
6684 t delim
6685 ' <conf$$subs.awk | sed '
6686 /^[^""]/{
6688 s/\n//
6690 ' >>$CONFIG_STATUS || ac_write_fail=1
6691 rm -f conf$$subs.awk
6692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6693 _ACAWK
6694 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6695 for (key in S) S_is_set[key] = 1
6696 FS = "\a"
6700 line = $ 0
6701 nfields = split(line, field, "@")
6702 substed = 0
6703 len = length(field[1])
6704 for (i = 2; i < nfields; i++) {
6705 key = field[i]
6706 keylen = length(key)
6707 if (S_is_set[key]) {
6708 value = S[key]
6709 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6710 len += length(value) + length(field[++i])
6711 substed = 1
6712 } else
6713 len += 1 + keylen
6716 print line
6719 _ACAWK
6720 _ACEOF
6721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6722 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6723 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6724 else
6726 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6727 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6728 _ACEOF
6730 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6731 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6732 # trailing colons and then remove the whole line if VPATH becomes empty
6733 # (actually we leave an empty line to preserve line numbers).
6734 if test "x$srcdir" = x.; then
6735 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6737 s///
6738 s/^/:/
6739 s/[ ]*$/:/
6740 s/:\$(srcdir):/:/g
6741 s/:\${srcdir}:/:/g
6742 s/:@srcdir@:/:/g
6743 s/^:*//
6744 s/:*$//
6746 s/\(=[ ]*\).*/\1/
6748 s/\n//
6749 s/^[^=]*=[ ]*$//
6753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6754 fi # test -n "$CONFIG_FILES"
6757 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
6758 shift
6759 for ac_tag
6761 case $ac_tag in
6762 :[FHLC]) ac_mode=$ac_tag; continue;;
6763 esac
6764 case $ac_mode$ac_tag in
6765 :[FHL]*:*);;
6766 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6767 :[FH]-) ac_tag=-:-;;
6768 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6769 esac
6770 ac_save_IFS=$IFS
6771 IFS=:
6772 set x $ac_tag
6773 IFS=$ac_save_IFS
6774 shift
6775 ac_file=$1
6776 shift
6778 case $ac_mode in
6779 :L) ac_source=$1;;
6780 :[FH])
6781 ac_file_inputs=
6782 for ac_f
6784 case $ac_f in
6785 -) ac_f="$ac_tmp/stdin";;
6786 *) # Look for the file first in the build tree, then in the source tree
6787 # (if the path is not absolute). The absolute path cannot be DOS-style,
6788 # because $ac_f cannot contain `:'.
6789 test -f "$ac_f" ||
6790 case $ac_f in
6791 [\\/$]*) false;;
6792 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6793 esac ||
6794 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6795 esac
6796 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6797 as_fn_append ac_file_inputs " '$ac_f'"
6798 done
6800 # Let's still pretend it is `configure' which instantiates (i.e., don't
6801 # use $as_me), people would be surprised to read:
6802 # /* config.h. Generated by config.status. */
6803 configure_input='Generated from '`
6804 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6805 `' by configure.'
6806 if test x"$ac_file" != x-; then
6807 configure_input="$ac_file. $configure_input"
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6809 $as_echo "$as_me: creating $ac_file" >&6;}
6811 # Neutralize special characters interpreted by sed in replacement strings.
6812 case $configure_input in #(
6813 *\&* | *\|* | *\\* )
6814 ac_sed_conf_input=`$as_echo "$configure_input" |
6815 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6816 *) ac_sed_conf_input=$configure_input;;
6817 esac
6819 case $ac_tag in
6820 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6821 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6822 esac
6824 esac
6826 ac_dir=`$as_dirname -- "$ac_file" ||
6827 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6828 X"$ac_file" : 'X\(//\)[^/]' \| \
6829 X"$ac_file" : 'X\(//\)$' \| \
6830 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6831 $as_echo X"$ac_file" |
6832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6833 s//\1/
6836 /^X\(\/\/\)[^/].*/{
6837 s//\1/
6840 /^X\(\/\/\)$/{
6841 s//\1/
6844 /^X\(\/\).*/{
6845 s//\1/
6848 s/.*/./; q'`
6849 as_dir="$ac_dir"; as_fn_mkdir_p
6850 ac_builddir=.
6852 case "$ac_dir" in
6853 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6855 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6856 # A ".." for each directory in $ac_dir_suffix.
6857 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6858 case $ac_top_builddir_sub in
6859 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6860 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6861 esac ;;
6862 esac
6863 ac_abs_top_builddir=$ac_pwd
6864 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6865 # for backward compatibility:
6866 ac_top_builddir=$ac_top_build_prefix
6868 case $srcdir in
6869 .) # We are building in place.
6870 ac_srcdir=.
6871 ac_top_srcdir=$ac_top_builddir_sub
6872 ac_abs_top_srcdir=$ac_pwd ;;
6873 [\\/]* | ?:[\\/]* ) # Absolute name.
6874 ac_srcdir=$srcdir$ac_dir_suffix;
6875 ac_top_srcdir=$srcdir
6876 ac_abs_top_srcdir=$srcdir ;;
6877 *) # Relative name.
6878 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6879 ac_top_srcdir=$ac_top_build_prefix$srcdir
6880 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6881 esac
6882 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6885 case $ac_mode in
6888 # CONFIG_FILE
6891 case $INSTALL in
6892 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6893 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6894 esac
6895 ac_MKDIR_P=$MKDIR_P
6896 case $MKDIR_P in
6897 [\\/$]* | ?:[\\/]* ) ;;
6898 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6899 esac
6900 _ACEOF
6902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6903 # If the template does not know about datarootdir, expand it.
6904 # FIXME: This hack should be removed a few years after 2.60.
6905 ac_datarootdir_hack=; ac_datarootdir_seen=
6906 ac_sed_dataroot='
6907 /datarootdir/ {
6911 /@datadir@/p
6912 /@docdir@/p
6913 /@infodir@/p
6914 /@localedir@/p
6915 /@mandir@/p'
6916 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6917 *datarootdir*) ac_datarootdir_seen=yes;;
6918 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6920 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6921 _ACEOF
6922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6923 ac_datarootdir_hack='
6924 s&@datadir@&$datadir&g
6925 s&@docdir@&$docdir&g
6926 s&@infodir@&$infodir&g
6927 s&@localedir@&$localedir&g
6928 s&@mandir@&$mandir&g
6929 s&\\\${datarootdir}&$datarootdir&g' ;;
6930 esac
6931 _ACEOF
6933 # Neutralize VPATH when `$srcdir' = `.'.
6934 # Shell code in configure.ac might set extrasub.
6935 # FIXME: do we really want to maintain this feature?
6936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6937 ac_sed_extra="$ac_vpsub
6938 $extrasub
6939 _ACEOF
6940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6942 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6943 s|@configure_input@|$ac_sed_conf_input|;t t
6944 s&@top_builddir@&$ac_top_builddir_sub&;t t
6945 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6946 s&@srcdir@&$ac_srcdir&;t t
6947 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6948 s&@top_srcdir@&$ac_top_srcdir&;t t
6949 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6950 s&@builddir@&$ac_builddir&;t t
6951 s&@abs_builddir@&$ac_abs_builddir&;t t
6952 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6953 s&@INSTALL@&$ac_INSTALL&;t t
6954 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6955 $ac_datarootdir_hack
6957 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6958 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6960 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6961 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6962 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6963 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6965 which seems to be undefined. Please make sure it is defined" >&5
6966 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6967 which seems to be undefined. Please make sure it is defined" >&2;}
6969 rm -f "$ac_tmp/stdin"
6970 case $ac_file in
6971 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6972 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6973 esac \
6974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6978 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6979 $as_echo "$as_me: executing $ac_file commands" >&6;}
6981 esac
6984 case $ac_file$ac_mode in
6985 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6986 # Older Autoconf quotes --file arguments for eval, but not when files
6987 # are listed without --file. Let's play safe and only enable the eval
6988 # if we detect the quoting.
6989 # TODO: see whether this extra hack can be removed once we start
6990 # requiring Autoconf 2.70 or later.
6991 case $CONFIG_FILES in #(
6992 *\'*) :
6993 eval set x "$CONFIG_FILES" ;; #(
6994 *) :
6995 set x $CONFIG_FILES ;; #(
6996 *) :
6998 esac
6999 shift
7000 # Used to flag and report bootstrapping failures.
7001 am_rc=0
7002 for am_mf
7004 # Strip MF so we end up with the name of the file.
7005 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
7006 # Check whether this is an Automake generated Makefile which includes
7007 # dependency-tracking related rules and includes.
7008 # Grep'ing the whole file directly is not great: AIX grep has a line
7009 # limit of 2048, but all sed's we know have understand at least 4000.
7010 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
7011 || continue
7012 am_dirpart=`$as_dirname -- "$am_mf" ||
7013 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7014 X"$am_mf" : 'X\(//\)[^/]' \| \
7015 X"$am_mf" : 'X\(//\)$' \| \
7016 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7017 $as_echo X"$am_mf" |
7018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7019 s//\1/
7022 /^X\(\/\/\)[^/].*/{
7023 s//\1/
7026 /^X\(\/\/\)$/{
7027 s//\1/
7030 /^X\(\/\).*/{
7031 s//\1/
7034 s/.*/./; q'`
7035 am_filepart=`$as_basename -- "$am_mf" ||
7036 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
7037 X"$am_mf" : 'X\(//\)$' \| \
7038 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7039 $as_echo X/"$am_mf" |
7040 sed '/^.*\/\([^/][^/]*\)\/*$/{
7041 s//\1/
7044 /^X\/\(\/\/\)$/{
7045 s//\1/
7048 /^X\/\(\/\).*/{
7049 s//\1/
7052 s/.*/./; q'`
7053 { echo "$as_me:$LINENO: cd "$am_dirpart" \
7054 && sed -e '/# am--include-marker/d' "$am_filepart" \
7055 | $MAKE -f - am--depfiles" >&5
7056 (cd "$am_dirpart" \
7057 && sed -e '/# am--include-marker/d' "$am_filepart" \
7058 | $MAKE -f - am--depfiles) >&5 2>&5
7059 ac_status=$?
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } || am_rc=$?
7062 done
7063 if test $am_rc -ne 0; then
7064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7066 as_fn_error $? "Something went wrong bootstrapping makefile fragments
7067 for automatic dependency tracking. Try re-running configure with the
7068 '--disable-dependency-tracking' option to at least be able to build
7069 the package (albeit without support for automatic dependency tracking).
7070 See \`config.log' for more details" "$LINENO" 5; }
7072 { am_dirpart=; unset am_dirpart;}
7073 { am_filepart=; unset am_filepart;}
7074 { am_mf=; unset am_mf;}
7075 { am_rc=; unset am_rc;}
7076 rm -f conftest-deps.mk
7080 esac
7081 done # for ac_tag
7084 as_fn_exit 0
7085 _ACEOF
7086 ac_clean_files=$ac_clean_files_save
7088 test $ac_write_fail = 0 ||
7089 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7092 # configure is writing to config.log, and then calls config.status.
7093 # config.status does its own redirection, appending to config.log.
7094 # Unfortunately, on DOS this fails, as config.log is still kept open
7095 # by configure, so config.status won't be able to write to it; its
7096 # output is simply discarded. So we exec the FD to /dev/null,
7097 # effectively closing config.log, so it can be properly (re)opened and
7098 # appended to by config.status. When coming back to configure, we
7099 # need to make the FD available again.
7100 if test "$no_create" != yes; then
7101 ac_cs_success=:
7102 ac_config_status_args=
7103 test "$silent" = yes &&
7104 ac_config_status_args="$ac_config_status_args --quiet"
7105 exec 5>/dev/null
7106 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7107 exec 5>>config.log
7108 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7109 # would make configure fail if this is the last instruction.
7110 $ac_cs_success || as_fn_exit 1
7112 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7114 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7117 if test "x$enable_systemd" = "xyes"; then :
7118 ac_config_files="$ac_config_files dist/unix/systemd/qbittorrent-nox@.service"
7120 cat >confcache <<\_ACEOF
7121 # This file is a shell script that caches the results of configure
7122 # tests run on this system so they can be shared between configure
7123 # scripts and configure runs, see configure's option --config-cache.
7124 # It is not useful on other systems. If it contains results you don't
7125 # want to keep, you may remove or edit it.
7127 # config.status only pays attention to the cache file if you give it
7128 # the --recheck option to rerun configure.
7130 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7131 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7132 # following values.
7134 _ACEOF
7136 # The following way of writing the cache mishandles newlines in values,
7137 # but we know of no workaround that is simple, portable, and efficient.
7138 # So, we kill variables containing newlines.
7139 # Ultrix sh set writes to stderr and can't be redirected directly,
7140 # and sets the high bit in the cache file unless we assign to the vars.
7142 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7143 eval ac_val=\$$ac_var
7144 case $ac_val in #(
7145 *${as_nl}*)
7146 case $ac_var in #(
7147 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7148 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7149 esac
7150 case $ac_var in #(
7151 _ | IFS | as_nl) ;; #(
7152 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7153 *) { eval $ac_var=; unset $ac_var;} ;;
7154 esac ;;
7155 esac
7156 done
7158 (set) 2>&1 |
7159 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7160 *${as_nl}ac_space=\ *)
7161 # `set' does not quote correctly, so add quotes: double-quote
7162 # substitution turns \\\\ into \\, and sed turns \\ into \.
7163 sed -n \
7164 "s/'/'\\\\''/g;
7165 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7166 ;; #(
7168 # `set' quotes correctly as required by POSIX, so do not add quotes.
7169 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7171 esac |
7172 sort
7174 sed '
7175 /^ac_cv_env_/b end
7176 t clear
7177 :clear
7178 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7179 t end
7180 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7181 :end' >>confcache
7182 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7183 if test -w "$cache_file"; then
7184 if test "x$cache_file" != "x/dev/null"; then
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7186 $as_echo "$as_me: updating cache $cache_file" >&6;}
7187 if test ! -f "$cache_file" || test -h "$cache_file"; then
7188 cat confcache >"$cache_file"
7189 else
7190 case $cache_file in #(
7191 */* | ?:*)
7192 mv -f confcache "$cache_file"$$ &&
7193 mv -f "$cache_file"$$ "$cache_file" ;; #(
7195 mv -f confcache "$cache_file" ;;
7196 esac
7199 else
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7201 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7204 rm -f confcache
7206 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7207 # Let make expand exec_prefix.
7208 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7210 # Transform confdefs.h into DEFS.
7211 # Protect against shell expansion while executing Makefile rules.
7212 # Protect against Makefile macro expansion.
7214 # If the first sed substitution is executed (which looks for macros that
7215 # take arguments), then branch to the quote section. Otherwise,
7216 # look for a macro that doesn't take arguments.
7217 ac_script='
7218 :mline
7219 /\\$/{
7221 s,\\\n,,
7222 b mline
7224 t clear
7225 :clear
7226 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7227 t quote
7228 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7229 t quote
7230 b any
7231 :quote
7232 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7233 s/\[/\\&/g
7234 s/\]/\\&/g
7235 s/\$/$$/g
7237 :any
7240 s/^\n//
7241 s/\n/ /g
7245 DEFS=`sed -n "$ac_script" confdefs.h`
7248 ac_libobjs=
7249 ac_ltlibobjs=
7251 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7252 # 1. Remove the extension, and $U if already installed.
7253 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7254 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7255 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7256 # will be set to the directory where LIBOBJS objects are built.
7257 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7258 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7259 done
7260 LIBOBJS=$ac_libobjs
7262 LTLIBOBJS=$ac_ltlibobjs
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7266 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7267 if test -n "$am_sleep_pid"; then
7268 # Hide warnings about reused PIDs.
7269 wait $am_sleep_pid 2>/dev/null
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7272 $as_echo "done" >&6; }
7273 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7274 as_fn_error $? "conditional \"AMDEP\" was never defined.
7275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7277 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7278 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7281 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7282 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
7283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7285 if test -n "$EXEEXT"; then
7286 am__EXEEXT_TRUE=
7287 am__EXEEXT_FALSE='#'
7288 else
7289 am__EXEEXT_TRUE='#'
7290 am__EXEEXT_FALSE=
7293 if test -z "${am__EXEEXT_TRUE}" && test -z "${am__EXEEXT_FALSE}"; then
7294 as_fn_error $? "conditional \"am__EXEEXT\" was never defined.
7295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7298 : "${CONFIG_STATUS=./config.status}"
7299 ac_write_fail=0
7300 ac_clean_files_save=$ac_clean_files
7301 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7303 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7304 as_write_fail=0
7305 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7306 #! $SHELL
7307 # Generated by $as_me.
7308 # Run this file to recreate the current configuration.
7309 # Compiler output produced by configure, useful for debugging
7310 # configure, is in config.log if it exists.
7312 debug=false
7313 ac_cs_recheck=false
7314 ac_cs_silent=false
7316 SHELL=\${CONFIG_SHELL-$SHELL}
7317 export SHELL
7318 _ASEOF
7319 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7320 ## -------------------- ##
7321 ## M4sh Initialization. ##
7322 ## -------------------- ##
7324 # Be more Bourne compatible
7325 DUALCASE=1; export DUALCASE # for MKS sh
7326 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7327 emulate sh
7328 NULLCMD=:
7329 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7330 # is contrary to our usage. Disable this feature.
7331 alias -g '${1+"$@"}'='"$@"'
7332 setopt NO_GLOB_SUBST
7333 else
7334 case `(set -o) 2>/dev/null` in #(
7335 *posix*) :
7336 set -o posix ;; #(
7337 *) :
7339 esac
7343 as_nl='
7345 export as_nl
7346 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7347 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7348 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7349 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7350 # Prefer a ksh shell builtin over an external printf program on Solaris,
7351 # but without wasting forks for bash or zsh.
7352 if test -z "$BASH_VERSION$ZSH_VERSION" \
7353 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7354 as_echo='print -r --'
7355 as_echo_n='print -rn --'
7356 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7357 as_echo='printf %s\n'
7358 as_echo_n='printf %s'
7359 else
7360 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7361 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7362 as_echo_n='/usr/ucb/echo -n'
7363 else
7364 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7365 as_echo_n_body='eval
7366 arg=$1;
7367 case $arg in #(
7368 *"$as_nl"*)
7369 expr "X$arg" : "X\\(.*\\)$as_nl";
7370 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7371 esac;
7372 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7374 export as_echo_n_body
7375 as_echo_n='sh -c $as_echo_n_body as_echo'
7377 export as_echo_body
7378 as_echo='sh -c $as_echo_body as_echo'
7381 # The user is always right.
7382 if test "${PATH_SEPARATOR+set}" != set; then
7383 PATH_SEPARATOR=:
7384 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7385 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7386 PATH_SEPARATOR=';'
7391 # IFS
7392 # We need space, tab and new line, in precisely that order. Quoting is
7393 # there to prevent editors from complaining about space-tab.
7394 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7395 # splitting by setting IFS to empty value.)
7396 IFS=" "" $as_nl"
7398 # Find who we are. Look in the path if we contain no directory separator.
7399 as_myself=
7400 case $0 in #((
7401 *[\\/]* ) as_myself=$0 ;;
7402 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7405 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
7407 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7408 done
7409 IFS=$as_save_IFS
7412 esac
7413 # We did not find ourselves, most probably we were run as `sh COMMAND'
7414 # in which case we are not to be found in the path.
7415 if test "x$as_myself" = x; then
7416 as_myself=$0
7418 if test ! -f "$as_myself"; then
7419 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7420 exit 1
7423 # Unset variables that we do not need and which cause bugs (e.g. in
7424 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7425 # suppresses any "Segmentation fault" message there. '((' could
7426 # trigger a bug in pdksh 5.2.14.
7427 for as_var in BASH_ENV ENV MAIL MAILPATH
7428 do eval test x\${$as_var+set} = xset \
7429 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7430 done
7431 PS1='$ '
7432 PS2='> '
7433 PS4='+ '
7435 # NLS nuisances.
7436 LC_ALL=C
7437 export LC_ALL
7438 LANGUAGE=C
7439 export LANGUAGE
7441 # CDPATH.
7442 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7445 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7446 # ----------------------------------------
7447 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7448 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7449 # script with STATUS, using 1 if that was 0.
7450 as_fn_error ()
7452 as_status=$1; test $as_status -eq 0 && as_status=1
7453 if test "$4"; then
7454 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7455 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7457 $as_echo "$as_me: error: $2" >&2
7458 as_fn_exit $as_status
7459 } # as_fn_error
7462 # as_fn_set_status STATUS
7463 # -----------------------
7464 # Set $? to STATUS, without forking.
7465 as_fn_set_status ()
7467 return $1
7468 } # as_fn_set_status
7470 # as_fn_exit STATUS
7471 # -----------------
7472 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7473 as_fn_exit ()
7475 set +e
7476 as_fn_set_status $1
7477 exit $1
7478 } # as_fn_exit
7480 # as_fn_unset VAR
7481 # ---------------
7482 # Portably unset VAR.
7483 as_fn_unset ()
7485 { eval $1=; unset $1;}
7487 as_unset=as_fn_unset
7488 # as_fn_append VAR VALUE
7489 # ----------------------
7490 # Append the text in VALUE to the end of the definition contained in VAR. Take
7491 # advantage of any shell optimizations that allow amortized linear growth over
7492 # repeated appends, instead of the typical quadratic growth present in naive
7493 # implementations.
7494 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7495 eval 'as_fn_append ()
7497 eval $1+=\$2
7499 else
7500 as_fn_append ()
7502 eval $1=\$$1\$2
7504 fi # as_fn_append
7506 # as_fn_arith ARG...
7507 # ------------------
7508 # Perform arithmetic evaluation on the ARGs, and store the result in the
7509 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7510 # must be portable across $(()) and expr.
7511 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7512 eval 'as_fn_arith ()
7514 as_val=$(( $* ))
7516 else
7517 as_fn_arith ()
7519 as_val=`expr "$@" || test $? -eq 1`
7521 fi # as_fn_arith
7524 if expr a : '\(a\)' >/dev/null 2>&1 &&
7525 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7526 as_expr=expr
7527 else
7528 as_expr=false
7531 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7532 as_basename=basename
7533 else
7534 as_basename=false
7537 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7538 as_dirname=dirname
7539 else
7540 as_dirname=false
7543 as_me=`$as_basename -- "$0" ||
7544 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7545 X"$0" : 'X\(//\)$' \| \
7546 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7547 $as_echo X/"$0" |
7548 sed '/^.*\/\([^/][^/]*\)\/*$/{
7549 s//\1/
7552 /^X\/\(\/\/\)$/{
7553 s//\1/
7556 /^X\/\(\/\).*/{
7557 s//\1/
7560 s/.*/./; q'`
7562 # Avoid depending upon Character Ranges.
7563 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7564 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7565 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7566 as_cr_digits='0123456789'
7567 as_cr_alnum=$as_cr_Letters$as_cr_digits
7569 ECHO_C= ECHO_N= ECHO_T=
7570 case `echo -n x` in #(((((
7571 -n*)
7572 case `echo 'xy\c'` in
7573 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7574 xy) ECHO_C='\c';;
7575 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7576 ECHO_T=' ';;
7577 esac;;
7579 ECHO_N='-n';;
7580 esac
7582 rm -f conf$$ conf$$.exe conf$$.file
7583 if test -d conf$$.dir; then
7584 rm -f conf$$.dir/conf$$.file
7585 else
7586 rm -f conf$$.dir
7587 mkdir conf$$.dir 2>/dev/null
7589 if (echo >conf$$.file) 2>/dev/null; then
7590 if ln -s conf$$.file conf$$ 2>/dev/null; then
7591 as_ln_s='ln -s'
7592 # ... but there are two gotchas:
7593 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7594 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7595 # In both cases, we have to default to `cp -pR'.
7596 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7597 as_ln_s='cp -pR'
7598 elif ln conf$$.file conf$$ 2>/dev/null; then
7599 as_ln_s=ln
7600 else
7601 as_ln_s='cp -pR'
7603 else
7604 as_ln_s='cp -pR'
7606 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7607 rmdir conf$$.dir 2>/dev/null
7610 # as_fn_mkdir_p
7611 # -------------
7612 # Create "$as_dir" as a directory, including parents if necessary.
7613 as_fn_mkdir_p ()
7616 case $as_dir in #(
7617 -*) as_dir=./$as_dir;;
7618 esac
7619 test -d "$as_dir" || eval $as_mkdir_p || {
7620 as_dirs=
7621 while :; do
7622 case $as_dir in #(
7623 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7624 *) as_qdir=$as_dir;;
7625 esac
7626 as_dirs="'$as_qdir' $as_dirs"
7627 as_dir=`$as_dirname -- "$as_dir" ||
7628 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7629 X"$as_dir" : 'X\(//\)[^/]' \| \
7630 X"$as_dir" : 'X\(//\)$' \| \
7631 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7632 $as_echo X"$as_dir" |
7633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7634 s//\1/
7637 /^X\(\/\/\)[^/].*/{
7638 s//\1/
7641 /^X\(\/\/\)$/{
7642 s//\1/
7645 /^X\(\/\).*/{
7646 s//\1/
7649 s/.*/./; q'`
7650 test -d "$as_dir" && break
7651 done
7652 test -z "$as_dirs" || eval "mkdir $as_dirs"
7653 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7656 } # as_fn_mkdir_p
7657 if mkdir -p . 2>/dev/null; then
7658 as_mkdir_p='mkdir -p "$as_dir"'
7659 else
7660 test -d ./-p && rmdir ./-p
7661 as_mkdir_p=false
7665 # as_fn_executable_p FILE
7666 # -----------------------
7667 # Test if FILE is an executable regular file.
7668 as_fn_executable_p ()
7670 test -f "$1" && test -x "$1"
7671 } # as_fn_executable_p
7672 as_test_x='test -x'
7673 as_executable_p=as_fn_executable_p
7675 # Sed expression to map a string onto a valid CPP name.
7676 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7678 # Sed expression to map a string onto a valid variable name.
7679 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7682 exec 6>&1
7683 ## ----------------------------------- ##
7684 ## Main body of $CONFIG_STATUS script. ##
7685 ## ----------------------------------- ##
7686 _ASEOF
7687 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7690 # Save the log message, to keep $0 and so on meaningful, and to
7691 # report actual input values of CONFIG_FILES etc. instead of their
7692 # values after options handling.
7693 ac_log="
7694 This file was extended by qbittorrent $as_me v4.2.0alpha, which was
7695 generated by GNU Autoconf 2.69. Invocation command line was
7697 CONFIG_FILES = $CONFIG_FILES
7698 CONFIG_HEADERS = $CONFIG_HEADERS
7699 CONFIG_LINKS = $CONFIG_LINKS
7700 CONFIG_COMMANDS = $CONFIG_COMMANDS
7701 $ $0 $@
7703 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7706 _ACEOF
7708 case $ac_config_files in *"
7709 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7710 esac
7714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7715 # Files that config.status was made for.
7716 config_files="$ac_config_files"
7717 config_commands="$ac_config_commands"
7719 _ACEOF
7721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7722 ac_cs_usage="\
7723 \`$as_me' instantiates files and other configuration actions
7724 from templates according to the current configuration. Unless the files
7725 and actions are specified as TAGs, all are instantiated by default.
7727 Usage: $0 [OPTION]... [TAG]...
7729 -h, --help print this help, then exit
7730 -V, --version print version number and configuration settings, then exit
7731 --config print configuration, then exit
7732 -q, --quiet, --silent
7733 do not print progress messages
7734 -d, --debug don't remove temporary files
7735 --recheck update $as_me by reconfiguring in the same conditions
7736 --file=FILE[:TEMPLATE]
7737 instantiate the configuration file FILE
7739 Configuration files:
7740 $config_files
7742 Configuration commands:
7743 $config_commands
7745 Report bugs to <bugs.qbittorrent.org>.
7746 qbittorrent home page: <https://www.qbittorrent.org/>."
7748 _ACEOF
7749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7750 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7751 ac_cs_version="\\
7752 qbittorrent config.status v4.2.0alpha
7753 configured by $0, generated by GNU Autoconf 2.69,
7754 with options \\"\$ac_cs_config\\"
7756 Copyright (C) 2012 Free Software Foundation, Inc.
7757 This config.status script is free software; the Free Software Foundation
7758 gives unlimited permission to copy, distribute and modify it."
7760 ac_pwd='$ac_pwd'
7761 srcdir='$srcdir'
7762 INSTALL='$INSTALL'
7763 MKDIR_P='$MKDIR_P'
7764 AWK='$AWK'
7765 test -n "\$AWK" || AWK=awk
7766 _ACEOF
7768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7769 # The default lists apply if the user does not specify any file.
7770 ac_need_defaults=:
7771 while test $# != 0
7773 case $1 in
7774 --*=?*)
7775 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7776 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7777 ac_shift=:
7779 --*=)
7780 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7781 ac_optarg=
7782 ac_shift=:
7785 ac_option=$1
7786 ac_optarg=$2
7787 ac_shift=shift
7789 esac
7791 case $ac_option in
7792 # Handling of the options.
7793 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7794 ac_cs_recheck=: ;;
7795 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7796 $as_echo "$ac_cs_version"; exit ;;
7797 --config | --confi | --conf | --con | --co | --c )
7798 $as_echo "$ac_cs_config"; exit ;;
7799 --debug | --debu | --deb | --de | --d | -d )
7800 debug=: ;;
7801 --file | --fil | --fi | --f )
7802 $ac_shift
7803 case $ac_optarg in
7804 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7805 '') as_fn_error $? "missing file argument" ;;
7806 esac
7807 as_fn_append CONFIG_FILES " '$ac_optarg'"
7808 ac_need_defaults=false;;
7809 --he | --h | --help | --hel | -h )
7810 $as_echo "$ac_cs_usage"; exit ;;
7811 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7812 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7813 ac_cs_silent=: ;;
7815 # This is an error.
7816 -*) as_fn_error $? "unrecognized option: \`$1'
7817 Try \`$0 --help' for more information." ;;
7819 *) as_fn_append ac_config_targets " $1"
7820 ac_need_defaults=false ;;
7822 esac
7823 shift
7824 done
7826 ac_configure_extra_args=
7828 if $ac_cs_silent; then
7829 exec 6>/dev/null
7830 ac_configure_extra_args="$ac_configure_extra_args --silent"
7833 _ACEOF
7834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7835 if \$ac_cs_recheck; then
7836 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7837 shift
7838 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7839 CONFIG_SHELL='$SHELL'
7840 export CONFIG_SHELL
7841 exec "\$@"
7844 _ACEOF
7845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7846 exec 5>>config.log
7848 echo
7849 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7850 ## Running $as_me. ##
7851 _ASBOX
7852 $as_echo "$ac_log"
7853 } >&5
7855 _ACEOF
7856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7858 # INIT-COMMANDS
7860 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
7862 _ACEOF
7864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7866 # Handling of arguments.
7867 for ac_config_target in $ac_config_targets
7869 case $ac_config_target in
7870 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7871 "conf.pri") CONFIG_FILES="$CONFIG_FILES conf.pri" ;;
7872 "dist/unix/systemd/qbittorrent-nox@.service") CONFIG_FILES="$CONFIG_FILES dist/unix/systemd/qbittorrent-nox@.service" ;;
7874 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7875 esac
7876 done
7879 # If the user did not use the arguments to specify the items to instantiate,
7880 # then the envvar interface is used. Set only those that are not.
7881 # We use the long form for the default assignment because of an extremely
7882 # bizarre bug on SunOS 4.1.3.
7883 if $ac_need_defaults; then
7884 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7885 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7888 # Have a temporary directory for convenience. Make it in the build tree
7889 # simply because there is no reason against having it here, and in addition,
7890 # creating and moving files from /tmp can sometimes cause problems.
7891 # Hook for its removal unless debugging.
7892 # Note that there is a small window in which the directory will not be cleaned:
7893 # after its creation but before its name has been assigned to `$tmp'.
7894 $debug ||
7896 tmp= ac_tmp=
7897 trap 'exit_status=$?
7898 : "${ac_tmp:=$tmp}"
7899 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7901 trap 'as_fn_exit 1' 1 2 13 15
7903 # Create a (secure) tmp directory for tmp files.
7906 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7907 test -d "$tmp"
7908 } ||
7910 tmp=./conf$$-$RANDOM
7911 (umask 077 && mkdir "$tmp")
7912 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7913 ac_tmp=$tmp
7915 # Set up the scripts for CONFIG_FILES section.
7916 # No need to generate them if there are no CONFIG_FILES.
7917 # This happens for instance with `./config.status config.h'.
7918 if test -n "$CONFIG_FILES"; then
7921 ac_cr=`echo X | tr X '\015'`
7922 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7923 # But we know of no other shell where ac_cr would be empty at this
7924 # point, so we can use a bashism as a fallback.
7925 if test "x$ac_cr" = x; then
7926 eval ac_cr=\$\'\\r\'
7928 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7929 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7930 ac_cs_awk_cr='\\r'
7931 else
7932 ac_cs_awk_cr=$ac_cr
7935 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7936 _ACEOF
7940 echo "cat >conf$$subs.awk <<_ACEOF" &&
7941 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7942 echo "_ACEOF"
7943 } >conf$$subs.sh ||
7944 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7945 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7946 ac_delim='%!_!# '
7947 for ac_last_try in false false false false false :; do
7948 . ./conf$$subs.sh ||
7949 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7951 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7952 if test $ac_delim_n = $ac_delim_num; then
7953 break
7954 elif $ac_last_try; then
7955 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7956 else
7957 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7959 done
7960 rm -f conf$$subs.sh
7962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7963 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7964 _ACEOF
7965 sed -n '
7967 s/^/S["/; s/!.*/"]=/
7970 s/^[^!]*!//
7971 :repl
7972 t repl
7973 s/'"$ac_delim"'$//
7974 t delim
7977 s/\(.\{148\}\)..*/\1/
7978 t more1
7979 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7982 b repl
7983 :more1
7984 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7987 s/.\{148\}//
7988 t nl
7989 :delim
7991 s/\(.\{148\}\)..*/\1/
7992 t more2
7993 s/["\\]/\\&/g; s/^/"/; s/$/"/
7996 :more2
7997 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8000 s/.\{148\}//
8001 t delim
8002 ' <conf$$subs.awk | sed '
8003 /^[^""]/{
8005 s/\n//
8007 ' >>$CONFIG_STATUS || ac_write_fail=1
8008 rm -f conf$$subs.awk
8009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8010 _ACAWK
8011 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8012 for (key in S) S_is_set[key] = 1
8013 FS = "\a"
8017 line = $ 0
8018 nfields = split(line, field, "@")
8019 substed = 0
8020 len = length(field[1])
8021 for (i = 2; i < nfields; i++) {
8022 key = field[i]
8023 keylen = length(key)
8024 if (S_is_set[key]) {
8025 value = S[key]
8026 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8027 len += length(value) + length(field[++i])
8028 substed = 1
8029 } else
8030 len += 1 + keylen
8033 print line
8036 _ACAWK
8037 _ACEOF
8038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8039 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8040 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8041 else
8043 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8044 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8045 _ACEOF
8047 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8048 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8049 # trailing colons and then remove the whole line if VPATH becomes empty
8050 # (actually we leave an empty line to preserve line numbers).
8051 if test "x$srcdir" = x.; then
8052 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8054 s///
8055 s/^/:/
8056 s/[ ]*$/:/
8057 s/:\$(srcdir):/:/g
8058 s/:\${srcdir}:/:/g
8059 s/:@srcdir@:/:/g
8060 s/^:*//
8061 s/:*$//
8063 s/\(=[ ]*\).*/\1/
8065 s/\n//
8066 s/^[^=]*=[ ]*$//
8070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8071 fi # test -n "$CONFIG_FILES"
8074 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
8075 shift
8076 for ac_tag
8078 case $ac_tag in
8079 :[FHLC]) ac_mode=$ac_tag; continue;;
8080 esac
8081 case $ac_mode$ac_tag in
8082 :[FHL]*:*);;
8083 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8084 :[FH]-) ac_tag=-:-;;
8085 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8086 esac
8087 ac_save_IFS=$IFS
8088 IFS=:
8089 set x $ac_tag
8090 IFS=$ac_save_IFS
8091 shift
8092 ac_file=$1
8093 shift
8095 case $ac_mode in
8096 :L) ac_source=$1;;
8097 :[FH])
8098 ac_file_inputs=
8099 for ac_f
8101 case $ac_f in
8102 -) ac_f="$ac_tmp/stdin";;
8103 *) # Look for the file first in the build tree, then in the source tree
8104 # (if the path is not absolute). The absolute path cannot be DOS-style,
8105 # because $ac_f cannot contain `:'.
8106 test -f "$ac_f" ||
8107 case $ac_f in
8108 [\\/$]*) false;;
8109 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8110 esac ||
8111 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8112 esac
8113 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8114 as_fn_append ac_file_inputs " '$ac_f'"
8115 done
8117 # Let's still pretend it is `configure' which instantiates (i.e., don't
8118 # use $as_me), people would be surprised to read:
8119 # /* config.h. Generated by config.status. */
8120 configure_input='Generated from '`
8121 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8122 `' by configure.'
8123 if test x"$ac_file" != x-; then
8124 configure_input="$ac_file. $configure_input"
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8126 $as_echo "$as_me: creating $ac_file" >&6;}
8128 # Neutralize special characters interpreted by sed in replacement strings.
8129 case $configure_input in #(
8130 *\&* | *\|* | *\\* )
8131 ac_sed_conf_input=`$as_echo "$configure_input" |
8132 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8133 *) ac_sed_conf_input=$configure_input;;
8134 esac
8136 case $ac_tag in
8137 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8139 esac
8141 esac
8143 ac_dir=`$as_dirname -- "$ac_file" ||
8144 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8145 X"$ac_file" : 'X\(//\)[^/]' \| \
8146 X"$ac_file" : 'X\(//\)$' \| \
8147 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8148 $as_echo X"$ac_file" |
8149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8150 s//\1/
8153 /^X\(\/\/\)[^/].*/{
8154 s//\1/
8157 /^X\(\/\/\)$/{
8158 s//\1/
8161 /^X\(\/\).*/{
8162 s//\1/
8165 s/.*/./; q'`
8166 as_dir="$ac_dir"; as_fn_mkdir_p
8167 ac_builddir=.
8169 case "$ac_dir" in
8170 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8172 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8173 # A ".." for each directory in $ac_dir_suffix.
8174 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8175 case $ac_top_builddir_sub in
8176 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8177 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8178 esac ;;
8179 esac
8180 ac_abs_top_builddir=$ac_pwd
8181 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8182 # for backward compatibility:
8183 ac_top_builddir=$ac_top_build_prefix
8185 case $srcdir in
8186 .) # We are building in place.
8187 ac_srcdir=.
8188 ac_top_srcdir=$ac_top_builddir_sub
8189 ac_abs_top_srcdir=$ac_pwd ;;
8190 [\\/]* | ?:[\\/]* ) # Absolute name.
8191 ac_srcdir=$srcdir$ac_dir_suffix;
8192 ac_top_srcdir=$srcdir
8193 ac_abs_top_srcdir=$srcdir ;;
8194 *) # Relative name.
8195 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8196 ac_top_srcdir=$ac_top_build_prefix$srcdir
8197 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8198 esac
8199 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8202 case $ac_mode in
8205 # CONFIG_FILE
8208 case $INSTALL in
8209 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8210 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8211 esac
8212 ac_MKDIR_P=$MKDIR_P
8213 case $MKDIR_P in
8214 [\\/$]* | ?:[\\/]* ) ;;
8215 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8216 esac
8217 _ACEOF
8219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8220 # If the template does not know about datarootdir, expand it.
8221 # FIXME: This hack should be removed a few years after 2.60.
8222 ac_datarootdir_hack=; ac_datarootdir_seen=
8223 ac_sed_dataroot='
8224 /datarootdir/ {
8228 /@datadir@/p
8229 /@docdir@/p
8230 /@infodir@/p
8231 /@localedir@/p
8232 /@mandir@/p'
8233 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8234 *datarootdir*) ac_datarootdir_seen=yes;;
8235 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8237 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8238 _ACEOF
8239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8240 ac_datarootdir_hack='
8241 s&@datadir@&$datadir&g
8242 s&@docdir@&$docdir&g
8243 s&@infodir@&$infodir&g
8244 s&@localedir@&$localedir&g
8245 s&@mandir@&$mandir&g
8246 s&\\\${datarootdir}&$datarootdir&g' ;;
8247 esac
8248 _ACEOF
8250 # Neutralize VPATH when `$srcdir' = `.'.
8251 # Shell code in configure.ac might set extrasub.
8252 # FIXME: do we really want to maintain this feature?
8253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8254 ac_sed_extra="$ac_vpsub
8255 $extrasub
8256 _ACEOF
8257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8259 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8260 s|@configure_input@|$ac_sed_conf_input|;t t
8261 s&@top_builddir@&$ac_top_builddir_sub&;t t
8262 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8263 s&@srcdir@&$ac_srcdir&;t t
8264 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8265 s&@top_srcdir@&$ac_top_srcdir&;t t
8266 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8267 s&@builddir@&$ac_builddir&;t t
8268 s&@abs_builddir@&$ac_abs_builddir&;t t
8269 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8270 s&@INSTALL@&$ac_INSTALL&;t t
8271 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8272 $ac_datarootdir_hack
8274 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8275 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8277 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8278 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8279 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8280 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8282 which seems to be undefined. Please make sure it is defined" >&5
8283 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8284 which seems to be undefined. Please make sure it is defined" >&2;}
8286 rm -f "$ac_tmp/stdin"
8287 case $ac_file in
8288 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8289 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8290 esac \
8291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8295 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8296 $as_echo "$as_me: executing $ac_file commands" >&6;}
8298 esac
8301 case $ac_file$ac_mode in
8302 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8303 # Older Autoconf quotes --file arguments for eval, but not when files
8304 # are listed without --file. Let's play safe and only enable the eval
8305 # if we detect the quoting.
8306 # TODO: see whether this extra hack can be removed once we start
8307 # requiring Autoconf 2.70 or later.
8308 case $CONFIG_FILES in #(
8309 *\'*) :
8310 eval set x "$CONFIG_FILES" ;; #(
8311 *) :
8312 set x $CONFIG_FILES ;; #(
8313 *) :
8315 esac
8316 shift
8317 # Used to flag and report bootstrapping failures.
8318 am_rc=0
8319 for am_mf
8321 # Strip MF so we end up with the name of the file.
8322 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
8323 # Check whether this is an Automake generated Makefile which includes
8324 # dependency-tracking related rules and includes.
8325 # Grep'ing the whole file directly is not great: AIX grep has a line
8326 # limit of 2048, but all sed's we know have understand at least 4000.
8327 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
8328 || continue
8329 am_dirpart=`$as_dirname -- "$am_mf" ||
8330 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8331 X"$am_mf" : 'X\(//\)[^/]' \| \
8332 X"$am_mf" : 'X\(//\)$' \| \
8333 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8334 $as_echo X"$am_mf" |
8335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8336 s//\1/
8339 /^X\(\/\/\)[^/].*/{
8340 s//\1/
8343 /^X\(\/\/\)$/{
8344 s//\1/
8347 /^X\(\/\).*/{
8348 s//\1/
8351 s/.*/./; q'`
8352 am_filepart=`$as_basename -- "$am_mf" ||
8353 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
8354 X"$am_mf" : 'X\(//\)$' \| \
8355 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8356 $as_echo X/"$am_mf" |
8357 sed '/^.*\/\([^/][^/]*\)\/*$/{
8358 s//\1/
8361 /^X\/\(\/\/\)$/{
8362 s//\1/
8365 /^X\/\(\/\).*/{
8366 s//\1/
8369 s/.*/./; q'`
8370 { echo "$as_me:$LINENO: cd "$am_dirpart" \
8371 && sed -e '/# am--include-marker/d' "$am_filepart" \
8372 | $MAKE -f - am--depfiles" >&5
8373 (cd "$am_dirpart" \
8374 && sed -e '/# am--include-marker/d' "$am_filepart" \
8375 | $MAKE -f - am--depfiles) >&5 2>&5
8376 ac_status=$?
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } || am_rc=$?
8379 done
8380 if test $am_rc -ne 0; then
8381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8383 as_fn_error $? "Something went wrong bootstrapping makefile fragments
8384 for automatic dependency tracking. Try re-running configure with the
8385 '--disable-dependency-tracking' option to at least be able to build
8386 the package (albeit without support for automatic dependency tracking).
8387 See \`config.log' for more details" "$LINENO" 5; }
8389 { am_dirpart=; unset am_dirpart;}
8390 { am_filepart=; unset am_filepart;}
8391 { am_mf=; unset am_mf;}
8392 { am_rc=; unset am_rc;}
8393 rm -f conftest-deps.mk
8397 esac
8398 done # for ac_tag
8401 as_fn_exit 0
8402 _ACEOF
8403 ac_clean_files=$ac_clean_files_save
8405 test $ac_write_fail = 0 ||
8406 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8409 # configure is writing to config.log, and then calls config.status.
8410 # config.status does its own redirection, appending to config.log.
8411 # Unfortunately, on DOS this fails, as config.log is still kept open
8412 # by configure, so config.status won't be able to write to it; its
8413 # output is simply discarded. So we exec the FD to /dev/null,
8414 # effectively closing config.log, so it can be properly (re)opened and
8415 # appended to by config.status. When coming back to configure, we
8416 # need to make the FD available again.
8417 if test "$no_create" != yes; then
8418 ac_cs_success=:
8419 ac_config_status_args=
8420 test "$silent" = yes &&
8421 ac_config_status_args="$ac_config_status_args --quiet"
8422 exec 5>/dev/null
8423 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8424 exec 5>>config.log
8425 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8426 # would make configure fail if this is the last instruction.
8427 $ac_cs_success || as_fn_exit 1
8429 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8431 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: Running qmake to generate the makefile..." >&5
8439 $as_echo "$as_me: Running qmake to generate the makefile..." >&6;}
8440 CONFDIR="$( cd "$( dirname "$0" )" && pwd )"
8442 $QT_QMAKE -r $CONFDIR/qbittorrent.pro "QMAKE_LRELEASE=$QMAKE_LRELEASE"
8444 ret="$?"
8446 $as_echo
8447 if test "x$ret" = "x0"; then :
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: Good, your configure finished." >&5
8449 $as_echo "$as_me: Good, your configure finished." >&6;}
8450 else
8451 as_fn_error $? "Failed running $QT_QMAKE to generate the makefile" "$LINENO" 5
8453 $as_echo