Switch TravisCI to bionic
[qBittorrent.git] / configure
blob43f34e619b43f08510d31a9114a9e06c3c150286
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for qbittorrent v4.3.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.3.0alpha'
584 PACKAGE_STRING='qbittorrent v4.3.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 enable_debug
723 enable_stacktrace
724 enable_gui
725 enable_systemd
726 enable_webui
727 enable_qt_dbus
728 with_boost
729 with_boost_libdir
730 with_boost_system
732 ac_precious_vars='build_alias
733 host_alias
734 target_alias
736 CFLAGS
737 LDFLAGS
738 LIBS
739 CPPFLAGS
741 CXXFLAGS
743 PKG_CONFIG
744 PKG_CONFIG_PATH
745 PKG_CONFIG_LIBDIR
746 QT_QMAKE
747 Qt5Svg_CFLAGS
748 Qt5Svg_LIBS
749 libtorrent_CFLAGS
750 libtorrent_LIBS
751 openssl_CFLAGS
752 openssl_LIBS
753 zlib_CFLAGS
754 zlib_LIBS'
757 # Initialize some variables set by options.
758 ac_init_help=
759 ac_init_version=false
760 ac_unrecognized_opts=
761 ac_unrecognized_sep=
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
764 cache_file=/dev/null
765 exec_prefix=NONE
766 no_create=
767 no_recursion=
768 prefix=NONE
769 program_prefix=NONE
770 program_suffix=NONE
771 program_transform_name=s,x,x,
772 silent=
773 site=
774 srcdir=
775 verbose=
776 x_includes=NONE
777 x_libraries=NONE
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 runstatedir='${localstatedir}/run'
794 includedir='${prefix}/include'
795 oldincludedir='/usr/include'
796 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
797 infodir='${datarootdir}/info'
798 htmldir='${docdir}'
799 dvidir='${docdir}'
800 pdfdir='${docdir}'
801 psdir='${docdir}'
802 libdir='${exec_prefix}/lib'
803 localedir='${datarootdir}/locale'
804 mandir='${datarootdir}/man'
806 ac_prev=
807 ac_dashdash=
808 for ac_option
810 # If the previous option needs an argument, assign it.
811 if test -n "$ac_prev"; then
812 eval $ac_prev=\$ac_option
813 ac_prev=
814 continue
817 case $ac_option in
818 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819 *=) ac_optarg= ;;
820 *) ac_optarg=yes ;;
821 esac
823 # Accept the important Cygnus configure options, so we can diagnose typos.
825 case $ac_dashdash$ac_option in
827 ac_dashdash=yes ;;
829 -bindir | --bindir | --bindi | --bind | --bin | --bi)
830 ac_prev=bindir ;;
831 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
832 bindir=$ac_optarg ;;
834 -build | --build | --buil | --bui | --bu)
835 ac_prev=build_alias ;;
836 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
837 build_alias=$ac_optarg ;;
839 -cache-file | --cache-file | --cache-fil | --cache-fi \
840 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
841 ac_prev=cache_file ;;
842 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
843 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
844 cache_file=$ac_optarg ;;
846 --config-cache | -C)
847 cache_file=config.cache ;;
849 -datadir | --datadir | --datadi | --datad)
850 ac_prev=datadir ;;
851 -datadir=* | --datadir=* | --datadi=* | --datad=*)
852 datadir=$ac_optarg ;;
854 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
855 | --dataroo | --dataro | --datar)
856 ac_prev=datarootdir ;;
857 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
858 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
859 datarootdir=$ac_optarg ;;
861 -disable-* | --disable-*)
862 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
863 # Reject names that are not valid shell variable names.
864 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865 as_fn_error $? "invalid feature name: $ac_useropt"
866 ac_useropt_orig=$ac_useropt
867 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868 case $ac_user_opts in
870 "enable_$ac_useropt"
871 "*) ;;
872 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873 ac_unrecognized_sep=', ';;
874 esac
875 eval enable_$ac_useropt=no ;;
877 -docdir | --docdir | --docdi | --doc | --do)
878 ac_prev=docdir ;;
879 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
880 docdir=$ac_optarg ;;
882 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
883 ac_prev=dvidir ;;
884 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
885 dvidir=$ac_optarg ;;
887 -enable-* | --enable-*)
888 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891 as_fn_error $? "invalid feature name: $ac_useropt"
892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
896 "enable_$ac_useropt"
897 "*) ;;
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
900 esac
901 eval enable_$ac_useropt=\$ac_optarg ;;
903 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905 | --exec | --exe | --ex)
906 ac_prev=exec_prefix ;;
907 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909 | --exec=* | --exe=* | --ex=*)
910 exec_prefix=$ac_optarg ;;
912 -gas | --gas | --ga | --g)
913 # Obsolete; use --with-gas.
914 with_gas=yes ;;
916 -help | --help | --hel | --he | -h)
917 ac_init_help=long ;;
918 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919 ac_init_help=recursive ;;
920 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921 ac_init_help=short ;;
923 -host | --host | --hos | --ho)
924 ac_prev=host_alias ;;
925 -host=* | --host=* | --hos=* | --ho=*)
926 host_alias=$ac_optarg ;;
928 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929 ac_prev=htmldir ;;
930 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931 | --ht=*)
932 htmldir=$ac_optarg ;;
934 -includedir | --includedir | --includedi | --included | --include \
935 | --includ | --inclu | --incl | --inc)
936 ac_prev=includedir ;;
937 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938 | --includ=* | --inclu=* | --incl=* | --inc=*)
939 includedir=$ac_optarg ;;
941 -infodir | --infodir | --infodi | --infod | --info | --inf)
942 ac_prev=infodir ;;
943 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944 infodir=$ac_optarg ;;
946 -libdir | --libdir | --libdi | --libd)
947 ac_prev=libdir ;;
948 -libdir=* | --libdir=* | --libdi=* | --libd=*)
949 libdir=$ac_optarg ;;
951 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952 | --libexe | --libex | --libe)
953 ac_prev=libexecdir ;;
954 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955 | --libexe=* | --libex=* | --libe=*)
956 libexecdir=$ac_optarg ;;
958 -localedir | --localedir | --localedi | --localed | --locale)
959 ac_prev=localedir ;;
960 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961 localedir=$ac_optarg ;;
963 -localstatedir | --localstatedir | --localstatedi | --localstated \
964 | --localstate | --localstat | --localsta | --localst | --locals)
965 ac_prev=localstatedir ;;
966 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968 localstatedir=$ac_optarg ;;
970 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971 ac_prev=mandir ;;
972 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973 mandir=$ac_optarg ;;
975 -nfp | --nfp | --nf)
976 # Obsolete; use --without-fp.
977 with_fp=no ;;
979 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980 | --no-cr | --no-c | -n)
981 no_create=yes ;;
983 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985 no_recursion=yes ;;
987 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989 | --oldin | --oldi | --old | --ol | --o)
990 ac_prev=oldincludedir ;;
991 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994 oldincludedir=$ac_optarg ;;
996 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997 ac_prev=prefix ;;
998 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999 prefix=$ac_optarg ;;
1001 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002 | --program-pre | --program-pr | --program-p)
1003 ac_prev=program_prefix ;;
1004 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006 program_prefix=$ac_optarg ;;
1008 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009 | --program-suf | --program-su | --program-s)
1010 ac_prev=program_suffix ;;
1011 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013 program_suffix=$ac_optarg ;;
1015 -program-transform-name | --program-transform-name \
1016 | --program-transform-nam | --program-transform-na \
1017 | --program-transform-n | --program-transform- \
1018 | --program-transform | --program-transfor \
1019 | --program-transfo | --program-transf \
1020 | --program-trans | --program-tran \
1021 | --progr-tra | --program-tr | --program-t)
1022 ac_prev=program_transform_name ;;
1023 -program-transform-name=* | --program-transform-name=* \
1024 | --program-transform-nam=* | --program-transform-na=* \
1025 | --program-transform-n=* | --program-transform-=* \
1026 | --program-transform=* | --program-transfor=* \
1027 | --program-transfo=* | --program-transf=* \
1028 | --program-trans=* | --program-tran=* \
1029 | --progr-tra=* | --program-tr=* | --program-t=*)
1030 program_transform_name=$ac_optarg ;;
1032 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033 ac_prev=pdfdir ;;
1034 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035 pdfdir=$ac_optarg ;;
1037 -psdir | --psdir | --psdi | --psd | --ps)
1038 ac_prev=psdir ;;
1039 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040 psdir=$ac_optarg ;;
1042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043 | -silent | --silent | --silen | --sile | --sil)
1044 silent=yes ;;
1046 -runstatedir | --runstatedir | --runstatedi | --runstated \
1047 | --runstate | --runstat | --runsta | --runst | --runs \
1048 | --run | --ru | --r)
1049 ac_prev=runstatedir ;;
1050 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1051 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1052 | --run=* | --ru=* | --r=*)
1053 runstatedir=$ac_optarg ;;
1055 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056 ac_prev=sbindir ;;
1057 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058 | --sbi=* | --sb=*)
1059 sbindir=$ac_optarg ;;
1061 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063 | --sharedst | --shareds | --shared | --share | --shar \
1064 | --sha | --sh)
1065 ac_prev=sharedstatedir ;;
1066 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069 | --sha=* | --sh=*)
1070 sharedstatedir=$ac_optarg ;;
1072 -site | --site | --sit)
1073 ac_prev=site ;;
1074 -site=* | --site=* | --sit=*)
1075 site=$ac_optarg ;;
1077 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078 ac_prev=srcdir ;;
1079 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080 srcdir=$ac_optarg ;;
1082 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083 | --syscon | --sysco | --sysc | --sys | --sy)
1084 ac_prev=sysconfdir ;;
1085 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087 sysconfdir=$ac_optarg ;;
1089 -target | --target | --targe | --targ | --tar | --ta | --t)
1090 ac_prev=target_alias ;;
1091 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092 target_alias=$ac_optarg ;;
1094 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095 verbose=yes ;;
1097 -version | --version | --versio | --versi | --vers | -V)
1098 ac_init_version=: ;;
1100 -with-* | --with-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error $? "invalid package name: $ac_useropt"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1109 "with_$ac_useropt"
1110 "*) ;;
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1113 esac
1114 eval with_$ac_useropt=\$ac_optarg ;;
1116 -without-* | --without-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1125 "with_$ac_useropt"
1126 "*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=no ;;
1132 --x)
1133 # Obsolete; use --with-x.
1134 with_x=yes ;;
1136 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137 | --x-incl | --x-inc | --x-in | --x-i)
1138 ac_prev=x_includes ;;
1139 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141 x_includes=$ac_optarg ;;
1143 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145 ac_prev=x_libraries ;;
1146 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148 x_libraries=$ac_optarg ;;
1150 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1151 Try \`$0 --help' for more information"
1154 *=*)
1155 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156 # Reject names that are not valid shell variable names.
1157 case $ac_envvar in #(
1158 '' | [0-9]* | *[!_$as_cr_alnum]* )
1159 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1160 esac
1161 eval $ac_envvar=\$ac_optarg
1162 export $ac_envvar ;;
1165 # FIXME: should be removed in autoconf 3.0.
1166 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1172 esac
1173 done
1175 if test -n "$ac_prev"; then
1176 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177 as_fn_error $? "missing argument to $ac_option"
1180 if test -n "$ac_unrecognized_opts"; then
1181 case $enable_option_checking in
1182 no) ;;
1183 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1184 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185 esac
1188 # Check all directory arguments for consistency.
1189 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190 datadir sysconfdir sharedstatedir localstatedir includedir \
1191 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192 libdir localedir mandir runstatedir
1194 eval ac_val=\$$ac_var
1195 # Remove trailing slashes.
1196 case $ac_val in
1197 */ )
1198 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199 eval $ac_var=\$ac_val;;
1200 esac
1201 # Be sure to have absolute directory names.
1202 case $ac_val in
1203 [\\/$]* | ?:[\\/]* ) continue;;
1204 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205 esac
1206 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1207 done
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1212 build=$build_alias
1213 host=$host_alias
1214 target=$target_alias
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x; then
1218 if test "x$build_alias" = x; then
1219 cross_compiling=maybe
1220 elif test "x$build_alias" != "x$host_alias"; then
1221 cross_compiling=yes
1225 ac_tool_prefix=
1226 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1228 test "$silent" = yes && exec 6>/dev/null
1231 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1232 ac_ls_di=`ls -di .` &&
1233 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1234 as_fn_error $? "working directory cannot be determined"
1235 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1236 as_fn_error $? "pwd does not report name of working directory"
1239 # Find the source files, if location was not specified.
1240 if test -z "$srcdir"; then
1241 ac_srcdir_defaulted=yes
1242 # Try the directory containing this script, then the parent directory.
1243 ac_confdir=`$as_dirname -- "$as_myself" ||
1244 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1245 X"$as_myself" : 'X\(//\)[^/]' \| \
1246 X"$as_myself" : 'X\(//\)$' \| \
1247 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1248 $as_echo X"$as_myself" |
1249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250 s//\1/
1253 /^X\(\/\/\)[^/].*/{
1254 s//\1/
1257 /^X\(\/\/\)$/{
1258 s//\1/
1261 /^X\(\/\).*/{
1262 s//\1/
1265 s/.*/./; q'`
1266 srcdir=$ac_confdir
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268 srcdir=..
1270 else
1271 ac_srcdir_defaulted=no
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1274 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1275 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1277 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 ac_abs_confdir=`(
1279 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1280 pwd)`
1281 # When building in place, set srcdir=.
1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
1283 srcdir=.
1285 # Remove unnecessary trailing slashes from srcdir.
1286 # Double slashes in file names in object file debugging info
1287 # mess up M-x gdb in Emacs.
1288 case $srcdir in
1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 esac
1291 for ac_var in $ac_precious_vars; do
1292 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_env_${ac_var}_value=\$${ac_var}
1294 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296 done
1299 # Report the --help message.
1301 if test "$ac_init_help" = "long"; then
1302 # Omit some internal or obsolete options to make the list less imposing.
1303 # This message is too long to be a string in the A/UX 3.1 sh.
1304 cat <<_ACEOF
1305 \`configure' configures qbittorrent v4.3.0alpha to adapt to many kinds of systems.
1307 Usage: $0 [OPTION]... [VAR=VALUE]...
1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310 VAR=VALUE. See below for descriptions of some of the useful variables.
1312 Defaults for the options are specified in brackets.
1314 Configuration:
1315 -h, --help display this help and exit
1316 --help=short display options specific to this package
1317 --help=recursive display the short help of all the included packages
1318 -V, --version display version information and exit
1319 -q, --quiet, --silent do not print \`checking ...' messages
1320 --cache-file=FILE cache test results in FILE [disabled]
1321 -C, --config-cache alias for \`--cache-file=config.cache'
1322 -n, --no-create do not create output files
1323 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1325 Installation directories:
1326 --prefix=PREFIX install architecture-independent files in PREFIX
1327 [$ac_default_prefix]
1328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1329 [PREFIX]
1331 By default, \`make install' will install all the files in
1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334 for instance \`--prefix=\$HOME'.
1336 For better control, use the options below.
1338 Fine tuning of the installation directories:
1339 --bindir=DIR user executables [EPREFIX/bin]
1340 --sbindir=DIR system admin executables [EPREFIX/sbin]
1341 --libexecdir=DIR program executables [EPREFIX/libexec]
1342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1345 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1346 --libdir=DIR object code libraries [EPREFIX/lib]
1347 --includedir=DIR C header files [PREFIX/include]
1348 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1351 --infodir=DIR info documentation [DATAROOTDIR/info]
1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1353 --mandir=DIR man documentation [DATAROOTDIR/man]
1354 --docdir=DIR documentation root [DATAROOTDIR/doc/qbittorrent]
1355 --htmldir=DIR html documentation [DOCDIR]
1356 --dvidir=DIR dvi documentation [DOCDIR]
1357 --pdfdir=DIR pdf documentation [DOCDIR]
1358 --psdir=DIR ps documentation [DOCDIR]
1359 _ACEOF
1361 cat <<\_ACEOF
1363 Program names:
1364 --program-prefix=PREFIX prepend PREFIX to installed program names
1365 --program-suffix=SUFFIX append SUFFIX to installed program names
1366 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1368 System types:
1369 --build=BUILD configure for building on BUILD [guessed]
1370 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1371 _ACEOF
1374 if test -n "$ac_init_help"; then
1375 case $ac_init_help in
1376 short | recursive ) echo "Configuration of qbittorrent v4.3.0alpha:";;
1377 esac
1378 cat <<\_ACEOF
1380 Optional Features:
1381 --disable-option-checking ignore unrecognized --enable/--with options
1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1384 --enable-dependency-tracking
1385 do not reject slow dependency extractors
1386 --disable-dependency-tracking
1387 speeds up one-time build
1388 --enable-silent-rules less verbose build output (undo: "make V=1")
1389 --disable-silent-rules verbose build output (undo: "make V=0")
1390 --enable-debug Enable debug build
1391 --enable-stacktrace Enable stacktrace feature (default=auto)
1392 --disable-gui Disable the GUI for headless running. Disables
1393 QtDBus and the GeoIP Database.
1394 --enable-systemd Install the systemd service file (headless only).
1395 --disable-webui Disable the WebUI.
1396 --disable-qt-dbus Disable use of QtDBus (GUI only)
1398 Optional Packages:
1399 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1400 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1401 --with-boost[=ARG] use Boost library from a standard location
1402 (ARG=yes), from the specified location (ARG=<path>),
1403 or disable it (ARG=no) [ARG=yes]
1404 --with-boost-libdir=LIB_DIR
1405 Force given directory for boost libraries. Note that
1406 this will override library path detection, so use
1407 this parameter only if default library detection
1408 fails and you know exactly where your boost
1409 libraries are located.
1410 --with-boost-system[=special-lib]
1411 use the System library from boost - it is possible
1412 to specify a certain library for the linker e.g.
1413 --with-boost-system=boost_system-gcc-mt
1415 Some influential environment variables:
1416 CC C compiler command
1417 CFLAGS C compiler flags
1418 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1419 nonstandard directory <lib dir>
1420 LIBS libraries to pass to the linker, e.g. -l<library>
1421 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1422 you have headers in a nonstandard directory <include dir>
1423 CXX C++ compiler command
1424 CXXFLAGS C++ compiler flags
1425 PKG_CONFIG path to pkg-config utility
1426 PKG_CONFIG_PATH
1427 directories to add to pkg-config's search path
1428 PKG_CONFIG_LIBDIR
1429 path overriding pkg-config's built-in search path
1430 QT_QMAKE value of host_bins for Qt5Core >= 5.9.0, overriding pkg-config
1431 Qt5Svg_CFLAGS
1432 C compiler flags for Qt5Svg, overriding pkg-config
1433 Qt5Svg_LIBS linker flags for Qt5Svg, overriding pkg-config
1434 libtorrent_CFLAGS
1435 C compiler flags for libtorrent, overriding pkg-config
1436 libtorrent_LIBS
1437 linker flags for libtorrent, overriding pkg-config
1438 openssl_CFLAGS
1439 C compiler flags for openssl, overriding pkg-config
1440 openssl_LIBS
1441 linker flags for openssl, overriding pkg-config
1442 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
1443 zlib_LIBS linker flags for zlib, overriding pkg-config
1445 Use these variables to override the choices made by `configure' or to help
1446 it to find libraries and programs with nonstandard names/locations.
1448 Report bugs to <bugs.qbittorrent.org>.
1449 qbittorrent home page: <https://www.qbittorrent.org/>.
1450 _ACEOF
1451 ac_status=$?
1454 if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457 test -d "$ac_dir" ||
1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 continue
1460 ac_builddir=.
1462 case "$ac_dir" in
1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 esac ;;
1472 esac
1473 ac_abs_top_builddir=$ac_pwd
1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475 # for backward compatibility:
1476 ac_top_builddir=$ac_top_build_prefix
1478 case $srcdir in
1479 .) # We are building in place.
1480 ac_srcdir=.
1481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
1484 ac_srcdir=$srcdir$ac_dir_suffix;
1485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1487 *) # Relative name.
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491 esac
1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure" --help=recursive
1502 else
1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504 fi || ac_status=$?
1505 cd "$ac_pwd" || { ac_status=$?; break; }
1506 done
1509 test -n "$ac_init_help" && exit $ac_status
1510 if $ac_init_version; then
1511 cat <<\_ACEOF
1512 qbittorrent configure v4.3.0alpha
1513 generated by GNU Autoconf 2.69
1515 Copyright (C) 2012 Free Software Foundation, Inc.
1516 This configure script is free software; the Free Software Foundation
1517 gives unlimited permission to copy, distribute and modify it.
1518 _ACEOF
1519 exit
1522 ## ------------------------ ##
1523 ## Autoconf initialization. ##
1524 ## ------------------------ ##
1526 # ac_fn_c_try_compile LINENO
1527 # --------------------------
1528 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1529 ac_fn_c_try_compile ()
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 rm -f conftest.$ac_objext
1533 if { { ac_try="$ac_compile"
1534 case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_compile") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest.$ac_objext; then :
1552 ac_retval=0
1553 else
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1557 ac_retval=1
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560 as_fn_set_status $ac_retval
1562 } # ac_fn_c_try_compile
1564 # ac_fn_cxx_try_compile LINENO
1565 # ----------------------------
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_cxx_try_compile ()
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext
1571 if { { ac_try="$ac_compile"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_compile") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_cxx_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest.$ac_objext; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1595 ac_retval=1
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
1600 } # ac_fn_cxx_try_compile
1602 # ac_fn_cxx_try_link LINENO
1603 # -------------------------
1604 # Try to link conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_cxx_try_link ()
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 rm -f conftest.$ac_objext conftest$ac_exeext
1609 if { { ac_try="$ac_link"
1610 case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_link") 2>conftest.err
1617 ac_status=$?
1618 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && {
1625 test -z "$ac_cxx_werror_flag" ||
1626 test ! -s conftest.err
1627 } && test -s conftest$ac_exeext && {
1628 test "$cross_compiling" = yes ||
1629 test -x conftest$ac_exeext
1630 }; then :
1631 ac_retval=0
1632 else
1633 $as_echo "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1636 ac_retval=1
1638 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1639 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1640 # interfere with the next link command; also delete a directory that is
1641 # left behind by Apple's compiler. We do this before executing the actions.
1642 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1646 } # ac_fn_cxx_try_link
1647 cat >config.log <<_ACEOF
1648 This file contains any messages produced by compilers while
1649 running configure, to aid debugging if configure makes a mistake.
1651 It was created by qbittorrent $as_me v4.3.0alpha, which was
1652 generated by GNU Autoconf 2.69. Invocation command line was
1654 $ $0 $@
1656 _ACEOF
1657 exec 5>>config.log
1659 cat <<_ASUNAME
1660 ## --------- ##
1661 ## Platform. ##
1662 ## --------- ##
1664 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1665 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1666 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1667 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1668 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1670 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1671 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1673 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1674 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1675 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1676 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1677 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1678 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1679 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1681 _ASUNAME
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 for as_dir in $PATH
1686 IFS=$as_save_IFS
1687 test -z "$as_dir" && as_dir=.
1688 $as_echo "PATH: $as_dir"
1689 done
1690 IFS=$as_save_IFS
1692 } >&5
1694 cat >&5 <<_ACEOF
1697 ## ----------- ##
1698 ## Core tests. ##
1699 ## ----------- ##
1701 _ACEOF
1704 # Keep a trace of the command line.
1705 # Strip out --no-create and --no-recursion so they do not pile up.
1706 # Strip out --silent because we don't want to record it for future runs.
1707 # Also quote any args containing shell meta-characters.
1708 # Make two passes to allow for proper duplicate-argument suppression.
1709 ac_configure_args=
1710 ac_configure_args0=
1711 ac_configure_args1=
1712 ac_must_keep_next=false
1713 for ac_pass in 1 2
1715 for ac_arg
1717 case $ac_arg in
1718 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1719 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1720 | -silent | --silent | --silen | --sile | --sil)
1721 continue ;;
1722 *\'*)
1723 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1724 esac
1725 case $ac_pass in
1726 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1728 as_fn_append ac_configure_args1 " '$ac_arg'"
1729 if test $ac_must_keep_next = true; then
1730 ac_must_keep_next=false # Got value, back to normal.
1731 else
1732 case $ac_arg in
1733 *=* | --config-cache | -C | -disable-* | --disable-* \
1734 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1735 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1736 | -with-* | --with-* | -without-* | --without-* | --x)
1737 case "$ac_configure_args0 " in
1738 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1739 esac
1741 -* ) ac_must_keep_next=true ;;
1742 esac
1744 as_fn_append ac_configure_args " '$ac_arg'"
1746 esac
1747 done
1748 done
1749 { ac_configure_args0=; unset ac_configure_args0;}
1750 { ac_configure_args1=; unset ac_configure_args1;}
1752 # When interrupted or exit'd, cleanup temporary files, and complete
1753 # config.log. We remove comments because anyway the quotes in there
1754 # would cause problems or look ugly.
1755 # WARNING: Use '\'' to represent an apostrophe within the trap.
1756 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1757 trap 'exit_status=$?
1758 # Save into config.log some information that might help in debugging.
1760 echo
1762 $as_echo "## ---------------- ##
1763 ## Cache variables. ##
1764 ## ---------------- ##"
1765 echo
1766 # The following way of writing the cache mishandles newlines in values,
1768 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1769 eval ac_val=\$$ac_var
1770 case $ac_val in #(
1771 *${as_nl}*)
1772 case $ac_var in #(
1773 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1774 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1775 esac
1776 case $ac_var in #(
1777 _ | IFS | as_nl) ;; #(
1778 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1779 *) { eval $ac_var=; unset $ac_var;} ;;
1780 esac ;;
1781 esac
1782 done
1783 (set) 2>&1 |
1784 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1785 *${as_nl}ac_space=\ *)
1786 sed -n \
1787 "s/'\''/'\''\\\\'\'''\''/g;
1788 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1789 ;; #(
1791 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1793 esac |
1794 sort
1796 echo
1798 $as_echo "## ----------------- ##
1799 ## Output variables. ##
1800 ## ----------------- ##"
1801 echo
1802 for ac_var in $ac_subst_vars
1804 eval ac_val=\$$ac_var
1805 case $ac_val in
1806 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 esac
1808 $as_echo "$ac_var='\''$ac_val'\''"
1809 done | sort
1810 echo
1812 if test -n "$ac_subst_files"; then
1813 $as_echo "## ------------------- ##
1814 ## File substitutions. ##
1815 ## ------------------- ##"
1816 echo
1817 for ac_var in $ac_subst_files
1819 eval ac_val=\$$ac_var
1820 case $ac_val in
1821 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1822 esac
1823 $as_echo "$ac_var='\''$ac_val'\''"
1824 done | sort
1825 echo
1828 if test -s confdefs.h; then
1829 $as_echo "## ----------- ##
1830 ## confdefs.h. ##
1831 ## ----------- ##"
1832 echo
1833 cat confdefs.h
1834 echo
1836 test "$ac_signal" != 0 &&
1837 $as_echo "$as_me: caught signal $ac_signal"
1838 $as_echo "$as_me: exit $exit_status"
1839 } >&5
1840 rm -f core *.core core.conftest.* &&
1841 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1842 exit $exit_status
1844 for ac_signal in 1 2 13 15; do
1845 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1846 done
1847 ac_signal=0
1849 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1850 rm -f -r conftest* confdefs.h
1852 $as_echo "/* confdefs.h */" > confdefs.h
1854 # Predefined preprocessor variables.
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_NAME "$PACKAGE_NAME"
1858 _ACEOF
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1862 _ACEOF
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1866 _ACEOF
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_STRING "$PACKAGE_STRING"
1870 _ACEOF
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1874 _ACEOF
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_URL "$PACKAGE_URL"
1878 _ACEOF
1881 # Let the site file select an alternate cache file if it wants to.
1882 # Prefer an explicitly selected file to automatically selected ones.
1883 ac_site_file1=NONE
1884 ac_site_file2=NONE
1885 if test -n "$CONFIG_SITE"; then
1886 # We do not want a PATH search for config.site.
1887 case $CONFIG_SITE in #((
1888 -*) ac_site_file1=./$CONFIG_SITE;;
1889 */*) ac_site_file1=$CONFIG_SITE;;
1890 *) ac_site_file1=./$CONFIG_SITE;;
1891 esac
1892 elif test "x$prefix" != xNONE; then
1893 ac_site_file1=$prefix/share/config.site
1894 ac_site_file2=$prefix/etc/config.site
1895 else
1896 ac_site_file1=$ac_default_prefix/share/config.site
1897 ac_site_file2=$ac_default_prefix/etc/config.site
1899 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1901 test "x$ac_site_file" = xNONE && continue
1902 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1904 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1905 sed 's/^/| /' "$ac_site_file" >&5
1906 . "$ac_site_file" \
1907 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1909 as_fn_error $? "failed to load site script $ac_site_file
1910 See \`config.log' for more details" "$LINENO" 5; }
1912 done
1914 if test -r "$cache_file"; then
1915 # Some versions of bash will fail to source /dev/null (special files
1916 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1917 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1919 $as_echo "$as_me: loading cache $cache_file" >&6;}
1920 case $cache_file in
1921 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1922 *) . "./$cache_file";;
1923 esac
1925 else
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1927 $as_echo "$as_me: creating cache $cache_file" >&6;}
1928 >$cache_file
1931 # Check that the precious variables saved in the cache have kept the same
1932 # value.
1933 ac_cache_corrupted=false
1934 for ac_var in $ac_precious_vars; do
1935 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1936 eval ac_new_set=\$ac_env_${ac_var}_set
1937 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1938 eval ac_new_val=\$ac_env_${ac_var}_value
1939 case $ac_old_set,$ac_new_set in
1940 set,)
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1942 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1943 ac_cache_corrupted=: ;;
1944 ,set)
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1946 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1947 ac_cache_corrupted=: ;;
1948 ,);;
1950 if test "x$ac_old_val" != "x$ac_new_val"; then
1951 # differences in whitespace do not lead to failure.
1952 ac_old_val_w=`echo x $ac_old_val`
1953 ac_new_val_w=`echo x $ac_new_val`
1954 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1956 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1957 ac_cache_corrupted=:
1958 else
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1960 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1961 eval $ac_var=\$ac_old_val
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1964 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1966 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1967 fi;;
1968 esac
1969 # Pass precious variables to config.status.
1970 if test "$ac_new_set" = set; then
1971 case $ac_new_val in
1972 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1973 *) ac_arg=$ac_var=$ac_new_val ;;
1974 esac
1975 case " $ac_configure_args " in
1976 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1977 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1978 esac
1980 done
1981 if $ac_cache_corrupted; then
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1985 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1986 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1988 ## -------------------- ##
1989 ## Main body of script. ##
1990 ## -------------------- ##
1992 ac_ext=c
1993 ac_cpp='$CPP $CPPFLAGS'
1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1999 ac_aux_dir=
2000 for ac_dir in build-aux "$srcdir"/build-aux; do
2001 if test -f "$ac_dir/install-sh"; then
2002 ac_aux_dir=$ac_dir
2003 ac_install_sh="$ac_aux_dir/install-sh -c"
2004 break
2005 elif 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/shtool"; then
2010 ac_aux_dir=$ac_dir
2011 ac_install_sh="$ac_aux_dir/shtool install -c"
2012 break
2014 done
2015 if test -z "$ac_aux_dir"; then
2016 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2019 # These three variables are undocumented and unsupported,
2020 # and are intended to be withdrawn in a future Autoconf release.
2021 # They can cause serious problems if a builder's source tree is in a directory
2022 # whose full name contains unusual characters.
2023 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2024 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2025 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2029 ac_ext=c
2030 ac_cpp='$CPP $CPPFLAGS'
2031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2034 if test -n "$ac_tool_prefix"; then
2035 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2036 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2038 $as_echo_n "checking for $ac_word... " >&6; }
2039 if ${ac_cv_prog_CC+:} false; then :
2040 $as_echo_n "(cached) " >&6
2041 else
2042 if test -n "$CC"; then
2043 ac_cv_prog_CC="$CC" # Let the user override the test.
2044 else
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2048 IFS=$as_save_IFS
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 break 2
2056 done
2057 done
2058 IFS=$as_save_IFS
2062 CC=$ac_cv_prog_CC
2063 if test -n "$CC"; then
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2065 $as_echo "$CC" >&6; }
2066 else
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2068 $as_echo "no" >&6; }
2073 if test -z "$ac_cv_prog_CC"; then
2074 ac_ct_CC=$CC
2075 # Extract the first word of "gcc", so it can be a program name with args.
2076 set dummy gcc; ac_word=$2
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2078 $as_echo_n "checking for $ac_word... " >&6; }
2079 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2080 $as_echo_n "(cached) " >&6
2081 else
2082 if test -n "$ac_ct_CC"; then
2083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2084 else
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2088 IFS=$as_save_IFS
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092 ac_cv_prog_ac_ct_CC="gcc"
2093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 break 2
2096 done
2097 done
2098 IFS=$as_save_IFS
2102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103 if test -n "$ac_ct_CC"; then
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2105 $as_echo "$ac_ct_CC" >&6; }
2106 else
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2108 $as_echo "no" >&6; }
2111 if test "x$ac_ct_CC" = x; then
2112 CC=""
2113 else
2114 case $cross_compiling:$ac_tool_warned in
2115 yes:)
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2118 ac_tool_warned=yes ;;
2119 esac
2120 CC=$ac_ct_CC
2122 else
2123 CC="$ac_cv_prog_CC"
2126 if test -z "$CC"; then
2127 if test -n "$ac_tool_prefix"; then
2128 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2129 set dummy ${ac_tool_prefix}cc; ac_word=$2
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2131 $as_echo_n "checking for $ac_word... " >&6; }
2132 if ${ac_cv_prog_CC+:} false; then :
2133 $as_echo_n "(cached) " >&6
2134 else
2135 if test -n "$CC"; then
2136 ac_cv_prog_CC="$CC" # Let the user override the test.
2137 else
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139 for as_dir in $PATH
2141 IFS=$as_save_IFS
2142 test -z "$as_dir" && as_dir=.
2143 for ac_exec_ext in '' $ac_executable_extensions; do
2144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2145 ac_cv_prog_CC="${ac_tool_prefix}cc"
2146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2147 break 2
2149 done
2150 done
2151 IFS=$as_save_IFS
2155 CC=$ac_cv_prog_CC
2156 if test -n "$CC"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2158 $as_echo "$CC" >&6; }
2159 else
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2161 $as_echo "no" >&6; }
2167 if test -z "$CC"; then
2168 # Extract the first word of "cc", so it can be a program name with args.
2169 set dummy cc; ac_word=$2
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2171 $as_echo_n "checking for $ac_word... " >&6; }
2172 if ${ac_cv_prog_CC+:} false; then :
2173 $as_echo_n "(cached) " >&6
2174 else
2175 if test -n "$CC"; then
2176 ac_cv_prog_CC="$CC" # Let the user override the test.
2177 else
2178 ac_prog_rejected=no
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 for as_dir in $PATH
2182 IFS=$as_save_IFS
2183 test -z "$as_dir" && as_dir=.
2184 for ac_exec_ext in '' $ac_executable_extensions; do
2185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2186 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2187 ac_prog_rejected=yes
2188 continue
2190 ac_cv_prog_CC="cc"
2191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 break 2
2194 done
2195 done
2196 IFS=$as_save_IFS
2198 if test $ac_prog_rejected = yes; then
2199 # We found a bogon in the path, so make sure we never use it.
2200 set dummy $ac_cv_prog_CC
2201 shift
2202 if test $# != 0; then
2203 # We chose a different compiler from the bogus one.
2204 # However, it has the same basename, so the bogon will be chosen
2205 # first if we set CC to just the basename; use the full file name.
2206 shift
2207 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2212 CC=$ac_cv_prog_CC
2213 if test -n "$CC"; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2215 $as_echo "$CC" >&6; }
2216 else
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2218 $as_echo "no" >&6; }
2223 if test -z "$CC"; then
2224 if test -n "$ac_tool_prefix"; then
2225 for ac_prog in cl.exe
2227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2230 $as_echo_n "checking for $ac_word... " >&6; }
2231 if ${ac_cv_prog_CC+:} false; then :
2232 $as_echo_n "(cached) " >&6
2233 else
2234 if test -n "$CC"; then
2235 ac_cv_prog_CC="$CC" # Let the user override the test.
2236 else
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2240 IFS=$as_save_IFS
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2246 break 2
2248 done
2249 done
2250 IFS=$as_save_IFS
2254 CC=$ac_cv_prog_CC
2255 if test -n "$CC"; then
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2257 $as_echo "$CC" >&6; }
2258 else
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2260 $as_echo "no" >&6; }
2264 test -n "$CC" && break
2265 done
2267 if test -z "$CC"; then
2268 ac_ct_CC=$CC
2269 for ac_prog in cl.exe
2271 # Extract the first word of "$ac_prog", so it can be a program name with args.
2272 set dummy $ac_prog; ac_word=$2
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2274 $as_echo_n "checking for $ac_word... " >&6; }
2275 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2276 $as_echo_n "(cached) " >&6
2277 else
2278 if test -n "$ac_ct_CC"; then
2279 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2280 else
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 for as_dir in $PATH
2284 IFS=$as_save_IFS
2285 test -z "$as_dir" && as_dir=.
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2288 ac_cv_prog_ac_ct_CC="$ac_prog"
2289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2290 break 2
2292 done
2293 done
2294 IFS=$as_save_IFS
2298 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2299 if test -n "$ac_ct_CC"; then
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2301 $as_echo "$ac_ct_CC" >&6; }
2302 else
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2304 $as_echo "no" >&6; }
2308 test -n "$ac_ct_CC" && break
2309 done
2311 if test "x$ac_ct_CC" = x; then
2312 CC=""
2313 else
2314 case $cross_compiling:$ac_tool_warned in
2315 yes:)
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2318 ac_tool_warned=yes ;;
2319 esac
2320 CC=$ac_ct_CC
2327 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2329 as_fn_error $? "no acceptable C compiler found in \$PATH
2330 See \`config.log' for more details" "$LINENO" 5; }
2332 # Provide some information about the compiler.
2333 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2334 set X $ac_compile
2335 ac_compiler=$2
2336 for ac_option in --version -v -V -qversion; do
2337 { { ac_try="$ac_compiler $ac_option >&5"
2338 case "(($ac_try" in
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2341 esac
2342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2343 $as_echo "$ac_try_echo"; } >&5
2344 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2345 ac_status=$?
2346 if test -s conftest.err; then
2347 sed '10a\
2348 ... rest of stderr output deleted ...
2349 10q' conftest.err >conftest.er1
2350 cat conftest.er1 >&5
2352 rm -f conftest.er1 conftest.err
2353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2354 test $ac_status = 0; }
2355 done
2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h. */
2361 main ()
2365 return 0;
2367 _ACEOF
2368 ac_clean_files_save=$ac_clean_files
2369 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2370 # Try to create an executable without -o first, disregard a.out.
2371 # It will help us diagnose broken compilers, and finding out an intuition
2372 # of exeext.
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2374 $as_echo_n "checking whether the C compiler works... " >&6; }
2375 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2377 # The possible output files:
2378 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2380 ac_rmfiles=
2381 for ac_file in $ac_files
2383 case $ac_file in
2384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2385 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2386 esac
2387 done
2388 rm -f $ac_rmfiles
2390 if { { ac_try="$ac_link_default"
2391 case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2394 esac
2395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2396 $as_echo "$ac_try_echo"; } >&5
2397 (eval "$ac_link_default") 2>&5
2398 ac_status=$?
2399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400 test $ac_status = 0; }; then :
2401 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2402 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2403 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2404 # so that the user can short-circuit this test for compilers unknown to
2405 # Autoconf.
2406 for ac_file in $ac_files ''
2408 test -f "$ac_file" || continue
2409 case $ac_file in
2410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2412 [ab].out )
2413 # We found the default executable, but exeext='' is most
2414 # certainly right.
2415 break;;
2416 *.* )
2417 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2418 then :; else
2419 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2421 # We set ac_cv_exeext here because the later test for it is not
2422 # safe: cross compilers may not add the suffix if given an `-o'
2423 # argument, so we may need to know it at that point already.
2424 # Even if this section looks crufty: it has the advantage of
2425 # actually working.
2426 break;;
2428 break;;
2429 esac
2430 done
2431 test "$ac_cv_exeext" = no && ac_cv_exeext=
2433 else
2434 ac_file=''
2436 if test -z "$ac_file"; then :
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2438 $as_echo "no" >&6; }
2439 $as_echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2444 as_fn_error 77 "C compiler cannot create executables
2445 See \`config.log' for more details" "$LINENO" 5; }
2446 else
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2448 $as_echo "yes" >&6; }
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2451 $as_echo_n "checking for C compiler default output file name... " >&6; }
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2453 $as_echo "$ac_file" >&6; }
2454 ac_exeext=$ac_cv_exeext
2456 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2457 ac_clean_files=$ac_clean_files_save
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2459 $as_echo_n "checking for suffix of executables... " >&6; }
2460 if { { ac_try="$ac_link"
2461 case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2464 esac
2465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2466 $as_echo "$ac_try_echo"; } >&5
2467 (eval "$ac_link") 2>&5
2468 ac_status=$?
2469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2470 test $ac_status = 0; }; then :
2471 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2472 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2473 # work properly (i.e., refer to `conftest.exe'), while it won't with
2474 # `rm'.
2475 for ac_file in conftest.exe conftest conftest.*; do
2476 test -f "$ac_file" || continue
2477 case $ac_file in
2478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2479 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2480 break;;
2481 * ) break;;
2482 esac
2483 done
2484 else
2485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2487 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2488 See \`config.log' for more details" "$LINENO" 5; }
2490 rm -f conftest conftest$ac_cv_exeext
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2492 $as_echo "$ac_cv_exeext" >&6; }
2494 rm -f conftest.$ac_ext
2495 EXEEXT=$ac_cv_exeext
2496 ac_exeext=$EXEEXT
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h. */
2499 #include <stdio.h>
2501 main ()
2503 FILE *f = fopen ("conftest.out", "w");
2504 return ferror (f) || fclose (f) != 0;
2507 return 0;
2509 _ACEOF
2510 ac_clean_files="$ac_clean_files conftest.out"
2511 # Check that the compiler produces executables we can run. If not, either
2512 # the compiler is broken, or we cross compile.
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2514 $as_echo_n "checking whether we are cross compiling... " >&6; }
2515 if test "$cross_compiling" != yes; then
2516 { { ac_try="$ac_link"
2517 case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2520 esac
2521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2522 $as_echo "$ac_try_echo"; } >&5
2523 (eval "$ac_link") 2>&5
2524 ac_status=$?
2525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2526 test $ac_status = 0; }
2527 if { ac_try='./conftest$ac_cv_exeext'
2528 { { case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2531 esac
2532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2533 $as_echo "$ac_try_echo"; } >&5
2534 (eval "$ac_try") 2>&5
2535 ac_status=$?
2536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2537 test $ac_status = 0; }; }; then
2538 cross_compiling=no
2539 else
2540 if test "$cross_compiling" = maybe; then
2541 cross_compiling=yes
2542 else
2543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545 as_fn_error $? "cannot run C compiled programs.
2546 If you meant to cross compile, use \`--host'.
2547 See \`config.log' for more details" "$LINENO" 5; }
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2552 $as_echo "$cross_compiling" >&6; }
2554 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2555 ac_clean_files=$ac_clean_files_save
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2557 $as_echo_n "checking for suffix of object files... " >&6; }
2558 if ${ac_cv_objext+:} false; then :
2559 $as_echo_n "(cached) " >&6
2560 else
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2565 main ()
2569 return 0;
2571 _ACEOF
2572 rm -f conftest.o conftest.obj
2573 if { { ac_try="$ac_compile"
2574 case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577 esac
2578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2579 $as_echo "$ac_try_echo"; } >&5
2580 (eval "$ac_compile") 2>&5
2581 ac_status=$?
2582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2583 test $ac_status = 0; }; then :
2584 for ac_file in conftest.o conftest.obj conftest.*; do
2585 test -f "$ac_file" || continue;
2586 case $ac_file in
2587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2588 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2589 break;;
2590 esac
2591 done
2592 else
2593 $as_echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 as_fn_error $? "cannot compute suffix of object files: cannot compile
2599 See \`config.log' for more details" "$LINENO" 5; }
2601 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2604 $as_echo "$ac_cv_objext" >&6; }
2605 OBJEXT=$ac_cv_objext
2606 ac_objext=$OBJEXT
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2608 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2609 if ${ac_cv_c_compiler_gnu+:} false; then :
2610 $as_echo_n "(cached) " >&6
2611 else
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613 /* end confdefs.h. */
2616 main ()
2618 #ifndef __GNUC__
2619 choke me
2620 #endif
2623 return 0;
2625 _ACEOF
2626 if ac_fn_c_try_compile "$LINENO"; then :
2627 ac_compiler_gnu=yes
2628 else
2629 ac_compiler_gnu=no
2631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2632 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2636 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2637 if test $ac_compiler_gnu = yes; then
2638 GCC=yes
2639 else
2640 GCC=
2642 ac_test_CFLAGS=${CFLAGS+set}
2643 ac_save_CFLAGS=$CFLAGS
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2645 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2646 if ${ac_cv_prog_cc_g+:} false; then :
2647 $as_echo_n "(cached) " >&6
2648 else
2649 ac_save_c_werror_flag=$ac_c_werror_flag
2650 ac_c_werror_flag=yes
2651 ac_cv_prog_cc_g=no
2652 CFLAGS="-g"
2653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2654 /* end confdefs.h. */
2657 main ()
2661 return 0;
2663 _ACEOF
2664 if ac_fn_c_try_compile "$LINENO"; then :
2665 ac_cv_prog_cc_g=yes
2666 else
2667 CFLAGS=""
2668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669 /* end confdefs.h. */
2672 main ()
2676 return 0;
2678 _ACEOF
2679 if ac_fn_c_try_compile "$LINENO"; then :
2681 else
2682 ac_c_werror_flag=$ac_save_c_werror_flag
2683 CFLAGS="-g"
2684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2685 /* end confdefs.h. */
2688 main ()
2692 return 0;
2694 _ACEOF
2695 if ac_fn_c_try_compile "$LINENO"; then :
2696 ac_cv_prog_cc_g=yes
2698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2703 ac_c_werror_flag=$ac_save_c_werror_flag
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2706 $as_echo "$ac_cv_prog_cc_g" >&6; }
2707 if test "$ac_test_CFLAGS" = set; then
2708 CFLAGS=$ac_save_CFLAGS
2709 elif test $ac_cv_prog_cc_g = yes; then
2710 if test "$GCC" = yes; then
2711 CFLAGS="-g -O2"
2712 else
2713 CFLAGS="-g"
2715 else
2716 if test "$GCC" = yes; then
2717 CFLAGS="-O2"
2718 else
2719 CFLAGS=
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2723 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2724 if ${ac_cv_prog_cc_c89+:} false; then :
2725 $as_echo_n "(cached) " >&6
2726 else
2727 ac_cv_prog_cc_c89=no
2728 ac_save_CC=$CC
2729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2730 /* end confdefs.h. */
2731 #include <stdarg.h>
2732 #include <stdio.h>
2733 struct stat;
2734 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2735 struct buf { int x; };
2736 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2737 static char *e (p, i)
2738 char **p;
2739 int i;
2741 return p[i];
2743 static char *f (char * (*g) (char **, int), char **p, ...)
2745 char *s;
2746 va_list v;
2747 va_start (v,p);
2748 s = g (p, va_arg (v,int));
2749 va_end (v);
2750 return s;
2753 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2754 function prototypes and stuff, but not '\xHH' hex character constants.
2755 These don't provoke an error unfortunately, instead are silently treated
2756 as 'x'. The following induces an error, until -std is added to get
2757 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2758 array size at least. It's necessary to write '\x00'==0 to get something
2759 that's true only with -std. */
2760 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2762 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2763 inside strings and character constants. */
2764 #define FOO(x) 'x'
2765 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2767 int test (int i, double x);
2768 struct s1 {int (*f) (int a);};
2769 struct s2 {int (*f) (double a);};
2770 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2771 int argc;
2772 char **argv;
2774 main ()
2776 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2778 return 0;
2780 _ACEOF
2781 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2782 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2784 CC="$ac_save_CC $ac_arg"
2785 if ac_fn_c_try_compile "$LINENO"; then :
2786 ac_cv_prog_cc_c89=$ac_arg
2788 rm -f core conftest.err conftest.$ac_objext
2789 test "x$ac_cv_prog_cc_c89" != "xno" && break
2790 done
2791 rm -f conftest.$ac_ext
2792 CC=$ac_save_CC
2795 # AC_CACHE_VAL
2796 case "x$ac_cv_prog_cc_c89" in
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2799 $as_echo "none needed" >&6; } ;;
2800 xno)
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2802 $as_echo "unsupported" >&6; } ;;
2804 CC="$CC $ac_cv_prog_cc_c89"
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2806 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2807 esac
2808 if test "x$ac_cv_prog_cc_c89" != xno; then :
2812 ac_ext=c
2813 ac_cpp='$CPP $CPPFLAGS'
2814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818 # Expand $ac_aux_dir to an absolute path.
2819 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2821 ac_ext=c
2822 ac_cpp='$CPP $CPPFLAGS'
2823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
2827 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
2828 if ${am_cv_prog_cc_c_o+:} false; then :
2829 $as_echo_n "(cached) " >&6
2830 else
2831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832 /* end confdefs.h. */
2835 main ()
2839 return 0;
2841 _ACEOF
2842 # Make sure it works both with $CC and with simple cc.
2843 # Following AC_PROG_CC_C_O, we do the test twice because some
2844 # compilers refuse to overwrite an existing .o file with -o,
2845 # though they will create one.
2846 am_cv_prog_cc_c_o=yes
2847 for am_i in 1 2; do
2848 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
2849 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } \
2853 && test -f conftest2.$ac_objext; then
2854 : OK
2855 else
2856 am_cv_prog_cc_c_o=no
2857 break
2859 done
2860 rm -f core conftest*
2861 unset am_i
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
2864 $as_echo "$am_cv_prog_cc_c_o" >&6; }
2865 if test "$am_cv_prog_cc_c_o" != yes; then
2866 # Losing compiler, so override with the script.
2867 # FIXME: It is wrong to rewrite CC.
2868 # But if we don't then we get into trouble of one sort or another.
2869 # A longer-term fix would be to have automake use am__CC in this case,
2870 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2871 CC="$am_aux_dir/compile $CC"
2873 ac_ext=c
2874 ac_cpp='$CPP $CPPFLAGS'
2875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880 ac_ext=cpp
2881 ac_cpp='$CXXCPP $CPPFLAGS'
2882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2885 if test -z "$CXX"; then
2886 if test -n "$CCC"; then
2887 CXX=$CCC
2888 else
2889 if test -n "$ac_tool_prefix"; then
2890 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if ${ac_cv_prog_CXX+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 if test -n "$CXX"; then
2900 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2913 done
2914 done
2915 IFS=$as_save_IFS
2919 CXX=$ac_cv_prog_CXX
2920 if test -n "$CXX"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2922 $as_echo "$CXX" >&6; }
2923 else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2929 test -n "$CXX" && break
2930 done
2932 if test -z "$CXX"; then
2933 ac_ct_CXX=$CXX
2934 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2936 # Extract the first word of "$ac_prog", so it can be a program name with args.
2937 set dummy $ac_prog; ac_word=$2
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 $as_echo_n "checking for $ac_word... " >&6; }
2940 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2941 $as_echo_n "(cached) " >&6
2942 else
2943 if test -n "$ac_ct_CXX"; then
2944 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953 ac_cv_prog_ac_ct_CXX="$ac_prog"
2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 break 2
2957 done
2958 done
2959 IFS=$as_save_IFS
2963 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2964 if test -n "$ac_ct_CXX"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2966 $as_echo "$ac_ct_CXX" >&6; }
2967 else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2973 test -n "$ac_ct_CXX" && break
2974 done
2976 if test "x$ac_ct_CXX" = x; then
2977 CXX="g++"
2978 else
2979 case $cross_compiling:$ac_tool_warned in
2980 yes:)
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2983 ac_tool_warned=yes ;;
2984 esac
2985 CXX=$ac_ct_CXX
2991 # Provide some information about the compiler.
2992 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2993 set X $ac_compile
2994 ac_compiler=$2
2995 for ac_option in --version -v -V -qversion; do
2996 { { ac_try="$ac_compiler $ac_option >&5"
2997 case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000 esac
3001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3002 $as_echo "$ac_try_echo"; } >&5
3003 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3004 ac_status=$?
3005 if test -s conftest.err; then
3006 sed '10a\
3007 ... rest of stderr output deleted ...
3008 10q' conftest.err >conftest.er1
3009 cat conftest.er1 >&5
3011 rm -f conftest.er1 conftest.err
3012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3013 test $ac_status = 0; }
3014 done
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3017 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3018 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3019 $as_echo_n "(cached) " >&6
3020 else
3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022 /* end confdefs.h. */
3025 main ()
3027 #ifndef __GNUC__
3028 choke me
3029 #endif
3032 return 0;
3034 _ACEOF
3035 if ac_fn_cxx_try_compile "$LINENO"; then :
3036 ac_compiler_gnu=yes
3037 else
3038 ac_compiler_gnu=no
3040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3041 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3045 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3046 if test $ac_compiler_gnu = yes; then
3047 GXX=yes
3048 else
3049 GXX=
3051 ac_test_CXXFLAGS=${CXXFLAGS+set}
3052 ac_save_CXXFLAGS=$CXXFLAGS
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3054 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3055 if ${ac_cv_prog_cxx_g+:} false; then :
3056 $as_echo_n "(cached) " >&6
3057 else
3058 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3059 ac_cxx_werror_flag=yes
3060 ac_cv_prog_cxx_g=no
3061 CXXFLAGS="-g"
3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063 /* end confdefs.h. */
3066 main ()
3070 return 0;
3072 _ACEOF
3073 if ac_fn_cxx_try_compile "$LINENO"; then :
3074 ac_cv_prog_cxx_g=yes
3075 else
3076 CXXFLAGS=""
3077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078 /* end confdefs.h. */
3081 main ()
3085 return 0;
3087 _ACEOF
3088 if ac_fn_cxx_try_compile "$LINENO"; then :
3090 else
3091 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3092 CXXFLAGS="-g"
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3097 main ()
3101 return 0;
3103 _ACEOF
3104 if ac_fn_cxx_try_compile "$LINENO"; then :
3105 ac_cv_prog_cxx_g=yes
3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3115 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3116 if test "$ac_test_CXXFLAGS" = set; then
3117 CXXFLAGS=$ac_save_CXXFLAGS
3118 elif test $ac_cv_prog_cxx_g = yes; then
3119 if test "$GXX" = yes; then
3120 CXXFLAGS="-g -O2"
3121 else
3122 CXXFLAGS="-g"
3124 else
3125 if test "$GXX" = yes; then
3126 CXXFLAGS="-O2"
3127 else
3128 CXXFLAGS=
3131 ac_ext=c
3132 ac_cpp='$CPP $CPPFLAGS'
3133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3138 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3139 if ${ac_cv_path_SED+:} false; then :
3140 $as_echo_n "(cached) " >&6
3141 else
3142 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3143 for ac_i in 1 2 3 4 5 6 7; do
3144 ac_script="$ac_script$as_nl$ac_script"
3145 done
3146 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3147 { ac_script=; unset ac_script;}
3148 if test -z "$SED"; then
3149 ac_path_SED_found=false
3150 # Loop through the user's path and test for each of PROGNAME-LIST
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3154 IFS=$as_save_IFS
3155 test -z "$as_dir" && as_dir=.
3156 for ac_prog in sed gsed; do
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3159 as_fn_executable_p "$ac_path_SED" || continue
3160 # Check for GNU ac_path_SED and select it if it is found.
3161 # Check for GNU $ac_path_SED
3162 case `"$ac_path_SED" --version 2>&1` in
3163 *GNU*)
3164 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3166 ac_count=0
3167 $as_echo_n 0123456789 >"conftest.in"
3168 while :
3170 cat "conftest.in" "conftest.in" >"conftest.tmp"
3171 mv "conftest.tmp" "conftest.in"
3172 cp "conftest.in" "conftest.nl"
3173 $as_echo '' >> "conftest.nl"
3174 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3176 as_fn_arith $ac_count + 1 && ac_count=$as_val
3177 if test $ac_count -gt ${ac_path_SED_max-0}; then
3178 # Best one so far, save it but keep looking for a better one
3179 ac_cv_path_SED="$ac_path_SED"
3180 ac_path_SED_max=$ac_count
3182 # 10*(2^10) chars as input seems more than enough
3183 test $ac_count -gt 10 && break
3184 done
3185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3186 esac
3188 $ac_path_SED_found && break 3
3189 done
3190 done
3191 done
3192 IFS=$as_save_IFS
3193 if test -z "$ac_cv_path_SED"; then
3194 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3196 else
3197 ac_cv_path_SED=$SED
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3202 $as_echo "$ac_cv_path_SED" >&6; }
3203 SED="$ac_cv_path_SED"
3204 rm -f conftest.sed
3206 ac_ext=cpp
3207 ac_cpp='$CXXCPP $CPPFLAGS'
3208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3212 # Make sure we can run config.sub.
3213 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3214 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3217 $as_echo_n "checking build system type... " >&6; }
3218 if ${ac_cv_build+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 ac_build_alias=$build_alias
3222 test "x$ac_build_alias" = x &&
3223 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3224 test "x$ac_build_alias" = x &&
3225 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3226 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3227 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3231 $as_echo "$ac_cv_build" >&6; }
3232 case $ac_cv_build in
3233 *-*-*) ;;
3234 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3235 esac
3236 build=$ac_cv_build
3237 ac_save_IFS=$IFS; IFS='-'
3238 set x $ac_cv_build
3239 shift
3240 build_cpu=$1
3241 build_vendor=$2
3242 shift; shift
3243 # Remember, the first character of IFS is used to create $*,
3244 # except with old shells:
3245 build_os=$*
3246 IFS=$ac_save_IFS
3247 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3251 $as_echo_n "checking host system type... " >&6; }
3252 if ${ac_cv_host+:} false; then :
3253 $as_echo_n "(cached) " >&6
3254 else
3255 if test "x$host_alias" = x; then
3256 ac_cv_host=$ac_cv_build
3257 else
3258 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3259 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3264 $as_echo "$ac_cv_host" >&6; }
3265 case $ac_cv_host in
3266 *-*-*) ;;
3267 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3268 esac
3269 host=$ac_cv_host
3270 ac_save_IFS=$IFS; IFS='-'
3271 set x $ac_cv_host
3272 shift
3273 host_cpu=$1
3274 host_vendor=$2
3275 shift; shift
3276 # Remember, the first character of IFS is used to create $*,
3277 # except with old shells:
3278 host_os=$*
3279 IFS=$ac_save_IFS
3280 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3283 am__api_version='1.16'
3285 # Find a good install program. We prefer a C program (faster),
3286 # so one script is as good as another. But avoid the broken or
3287 # incompatible versions:
3288 # SysV /etc/install, /usr/sbin/install
3289 # SunOS /usr/etc/install
3290 # IRIX /sbin/install
3291 # AIX /bin/install
3292 # AmigaOS /C/install, which installs bootblocks on floppy discs
3293 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3294 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3295 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3296 # OS/2's system install, which has a completely different semantic
3297 # ./install, which can be erroneously created by make from ./install.sh.
3298 # Reject install programs that cannot install multiple files.
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3300 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3301 if test -z "$INSTALL"; then
3302 if ${ac_cv_path_install+:} false; then :
3303 $as_echo_n "(cached) " >&6
3304 else
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3308 IFS=$as_save_IFS
3309 test -z "$as_dir" && as_dir=.
3310 # Account for people who put trailing slashes in PATH elements.
3311 case $as_dir/ in #((
3312 ./ | .// | /[cC]/* | \
3313 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3314 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3315 /usr/ucb/* ) ;;
3317 # OSF1 and SCO ODT 3.0 have their own names for install.
3318 # Don't use installbsd from OSF since it installs stuff as root
3319 # by default.
3320 for ac_prog in ginstall scoinst install; do
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3323 if test $ac_prog = install &&
3324 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3325 # AIX install. It has an incompatible calling convention.
3327 elif test $ac_prog = install &&
3328 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3329 # program-specific install script used by HP pwplus--don't use.
3331 else
3332 rm -rf conftest.one conftest.two conftest.dir
3333 echo one > conftest.one
3334 echo two > conftest.two
3335 mkdir conftest.dir
3336 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3337 test -s conftest.one && test -s conftest.two &&
3338 test -s conftest.dir/conftest.one &&
3339 test -s conftest.dir/conftest.two
3340 then
3341 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3342 break 3
3346 done
3347 done
3349 esac
3351 done
3352 IFS=$as_save_IFS
3354 rm -rf conftest.one conftest.two conftest.dir
3357 if test "${ac_cv_path_install+set}" = set; then
3358 INSTALL=$ac_cv_path_install
3359 else
3360 # As a last resort, use the slow shell script. Don't cache a
3361 # value for INSTALL within a source directory, because that will
3362 # break other packages using the cache if that directory is
3363 # removed, or if the value is a relative name.
3364 INSTALL=$ac_install_sh
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3368 $as_echo "$INSTALL" >&6; }
3370 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3371 # It thinks the first close brace ends the variable substitution.
3372 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3374 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3376 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3379 $as_echo_n "checking whether build environment is sane... " >&6; }
3380 # Reject unsafe characters in $srcdir or the absolute working directory
3381 # name. Accept space and tab only in the latter.
3382 am_lf='
3384 case `pwd` in
3385 *[\\\"\#\$\&\'\`$am_lf]*)
3386 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3387 esac
3388 case $srcdir in
3389 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3390 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3391 esac
3393 # Do 'set' in a subshell so we don't clobber the current shell's
3394 # arguments. Must try -L first in case configure is actually a
3395 # symlink; some systems play weird games with the mod time of symlinks
3396 # (eg FreeBSD returns the mod time of the symlink's containing
3397 # directory).
3398 if (
3399 am_has_slept=no
3400 for am_try in 1 2; do
3401 echo "timestamp, slept: $am_has_slept" > conftest.file
3402 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3403 if test "$*" = "X"; then
3404 # -L didn't work.
3405 set X `ls -t "$srcdir/configure" conftest.file`
3407 if test "$*" != "X $srcdir/configure conftest.file" \
3408 && test "$*" != "X conftest.file $srcdir/configure"; then
3410 # If neither matched, then we have a broken ls. This can happen
3411 # if, for instance, CONFIG_SHELL is bash and it inherits a
3412 # broken ls alias from the environment. This has actually
3413 # happened. Such a system could not be considered "sane".
3414 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3415 alias in your environment" "$LINENO" 5
3417 if test "$2" = conftest.file || test $am_try -eq 2; then
3418 break
3420 # Just in case.
3421 sleep 1
3422 am_has_slept=yes
3423 done
3424 test "$2" = conftest.file
3426 then
3427 # Ok.
3429 else
3430 as_fn_error $? "newly created file is older than distributed files!
3431 Check your system clock" "$LINENO" 5
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3434 $as_echo "yes" >&6; }
3435 # If we didn't sleep, we still need to ensure time stamps of config.status and
3436 # generated files are strictly newer.
3437 am_sleep_pid=
3438 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3439 ( sleep 1 ) &
3440 am_sleep_pid=$!
3443 rm -f conftest.file
3445 test "$program_prefix" != NONE &&
3446 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3447 # Use a double $ so make ignores it.
3448 test "$program_suffix" != NONE &&
3449 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3450 # Double any \ or $.
3451 # By default was `s,x,x', remove it if useless.
3452 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3453 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3455 if test x"${MISSING+set}" != xset; then
3456 case $am_aux_dir in
3457 *\ * | *\ *)
3458 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3460 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3461 esac
3463 # Use eval to expand $SHELL
3464 if eval "$MISSING --is-lightweight"; then
3465 am_missing_run="$MISSING "
3466 else
3467 am_missing_run=
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3469 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3472 if test x"${install_sh+set}" != xset; then
3473 case $am_aux_dir in
3474 *\ * | *\ *)
3475 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3477 install_sh="\${SHELL} $am_aux_dir/install-sh"
3478 esac
3481 # Installed binaries are usually stripped using 'strip' when the user
3482 # run "make install-strip". However 'strip' might not be the right
3483 # tool to use in cross-compilation environments, therefore Automake
3484 # will honor the 'STRIP' environment variable to overrule this program.
3485 if test "$cross_compiling" != no; then
3486 if test -n "$ac_tool_prefix"; then
3487 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3488 set dummy ${ac_tool_prefix}strip; ac_word=$2
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3490 $as_echo_n "checking for $ac_word... " >&6; }
3491 if ${ac_cv_prog_STRIP+:} false; then :
3492 $as_echo_n "(cached) " >&6
3493 else
3494 if test -n "$STRIP"; then
3495 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3496 else
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 for as_dir in $PATH
3500 IFS=$as_save_IFS
3501 test -z "$as_dir" && as_dir=.
3502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3504 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 break 2
3508 done
3509 done
3510 IFS=$as_save_IFS
3514 STRIP=$ac_cv_prog_STRIP
3515 if test -n "$STRIP"; then
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3517 $as_echo "$STRIP" >&6; }
3518 else
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 $as_echo "no" >&6; }
3525 if test -z "$ac_cv_prog_STRIP"; then
3526 ac_ct_STRIP=$STRIP
3527 # Extract the first word of "strip", so it can be a program name with args.
3528 set dummy strip; ac_word=$2
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530 $as_echo_n "checking for $ac_word... " >&6; }
3531 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3532 $as_echo_n "(cached) " >&6
3533 else
3534 if test -n "$ac_ct_STRIP"; then
3535 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3536 else
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH
3540 IFS=$as_save_IFS
3541 test -z "$as_dir" && as_dir=.
3542 for ac_exec_ext in '' $ac_executable_extensions; do
3543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3544 ac_cv_prog_ac_ct_STRIP="strip"
3545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3546 break 2
3548 done
3549 done
3550 IFS=$as_save_IFS
3554 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3555 if test -n "$ac_ct_STRIP"; then
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3557 $as_echo "$ac_ct_STRIP" >&6; }
3558 else
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 $as_echo "no" >&6; }
3563 if test "x$ac_ct_STRIP" = x; then
3564 STRIP=":"
3565 else
3566 case $cross_compiling:$ac_tool_warned in
3567 yes:)
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3570 ac_tool_warned=yes ;;
3571 esac
3572 STRIP=$ac_ct_STRIP
3574 else
3575 STRIP="$ac_cv_prog_STRIP"
3579 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3582 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3583 if test -z "$MKDIR_P"; then
3584 if ${ac_cv_path_mkdir+:} false; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
3592 for ac_prog in mkdir gmkdir; do
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3595 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3596 'mkdir (GNU coreutils) '* | \
3597 'mkdir (coreutils) '* | \
3598 'mkdir (fileutils) '4.1*)
3599 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3600 break 3;;
3601 esac
3602 done
3603 done
3604 done
3605 IFS=$as_save_IFS
3609 test -d ./--version && rmdir ./--version
3610 if test "${ac_cv_path_mkdir+set}" = set; then
3611 MKDIR_P="$ac_cv_path_mkdir -p"
3612 else
3613 # As a last resort, use the slow shell script. Don't cache a
3614 # value for MKDIR_P within a source directory, because that will
3615 # break other packages using the cache if that directory is
3616 # removed, or if the value is a relative name.
3617 MKDIR_P="$ac_install_sh -d"
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3621 $as_echo "$MKDIR_P" >&6; }
3623 for ac_prog in gawk mawk nawk awk
3625 # Extract the first word of "$ac_prog", so it can be a program name with args.
3626 set dummy $ac_prog; ac_word=$2
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628 $as_echo_n "checking for $ac_word... " >&6; }
3629 if ${ac_cv_prog_AWK+:} false; then :
3630 $as_echo_n "(cached) " >&6
3631 else
3632 if test -n "$AWK"; then
3633 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3634 else
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3642 ac_cv_prog_AWK="$ac_prog"
3643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 break 2
3646 done
3647 done
3648 IFS=$as_save_IFS
3652 AWK=$ac_cv_prog_AWK
3653 if test -n "$AWK"; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3655 $as_echo "$AWK" >&6; }
3656 else
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658 $as_echo "no" >&6; }
3662 test -n "$AWK" && break
3663 done
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3666 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3667 set x ${MAKE-make}
3668 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3669 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672 cat >conftest.make <<\_ACEOF
3673 SHELL = /bin/sh
3674 all:
3675 @echo '@@@%%%=$(MAKE)=@@@%%%'
3676 _ACEOF
3677 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3678 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3679 *@@@%%%=?*=@@@%%%*)
3680 eval ac_cv_prog_make_${ac_make}_set=yes;;
3682 eval ac_cv_prog_make_${ac_make}_set=no;;
3683 esac
3684 rm -f conftest.make
3686 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3688 $as_echo "yes" >&6; }
3689 SET_MAKE=
3690 else
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692 $as_echo "no" >&6; }
3693 SET_MAKE="MAKE=${MAKE-make}"
3696 rm -rf .tst 2>/dev/null
3697 mkdir .tst 2>/dev/null
3698 if test -d .tst; then
3699 am__leading_dot=.
3700 else
3701 am__leading_dot=_
3703 rmdir .tst 2>/dev/null
3705 DEPDIR="${am__leading_dot}deps"
3707 ac_config_commands="$ac_config_commands depfiles"
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3710 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3711 cat > confinc.mk << 'END'
3712 am__doit:
3713 @echo this is the am__doit target >confinc.out
3714 .PHONY: am__doit
3716 am__include="#"
3717 am__quote=
3718 # BSD make does it like this.
3719 echo '.include "confinc.mk" # ignored' > confmf.BSD
3720 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3721 echo 'include confinc.mk # ignored' > confmf.GNU
3722 _am_result=no
3723 for s in GNU BSD; do
3724 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3725 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }
3729 case $?:`cat confinc.out 2>/dev/null` in #(
3730 '0:this is the am__doit target') :
3731 case $s in #(
3732 BSD) :
3733 am__include='.include' am__quote='"' ;; #(
3734 *) :
3735 am__include='include' am__quote='' ;;
3736 esac ;; #(
3737 *) :
3739 esac
3740 if test "$am__include" != "#"; then
3741 _am_result="yes ($s style)"
3742 break
3744 done
3745 rm -f confinc.* confmf.*
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3747 $as_echo "${_am_result}" >&6; }
3749 # Check whether --enable-dependency-tracking was given.
3750 if test "${enable_dependency_tracking+set}" = set; then :
3751 enableval=$enable_dependency_tracking;
3754 if test "x$enable_dependency_tracking" != xno; then
3755 am_depcomp="$ac_aux_dir/depcomp"
3756 AMDEPBACKSLASH='\'
3757 am__nodep='_no'
3759 if test "x$enable_dependency_tracking" != xno; then
3760 AMDEP_TRUE=
3761 AMDEP_FALSE='#'
3762 else
3763 AMDEP_TRUE='#'
3764 AMDEP_FALSE=
3768 # Check whether --enable-silent-rules was given.
3769 if test "${enable_silent_rules+set}" = set; then :
3770 enableval=$enable_silent_rules;
3773 case $enable_silent_rules in # (((
3774 yes) AM_DEFAULT_VERBOSITY=0;;
3775 no) AM_DEFAULT_VERBOSITY=1;;
3776 *) AM_DEFAULT_VERBOSITY=1;;
3777 esac
3778 am_make=${MAKE-make}
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3780 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3781 if ${am_cv_make_support_nested_variables+:} false; then :
3782 $as_echo_n "(cached) " >&6
3783 else
3784 if $as_echo 'TRUE=$(BAR$(V))
3785 BAR0=false
3786 BAR1=true
3788 am__doit:
3789 @$(TRUE)
3790 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3791 am_cv_make_support_nested_variables=yes
3792 else
3793 am_cv_make_support_nested_variables=no
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3797 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3798 if test $am_cv_make_support_nested_variables = yes; then
3799 AM_V='$(V)'
3800 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3801 else
3802 AM_V=$AM_DEFAULT_VERBOSITY
3803 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3805 AM_BACKSLASH='\'
3807 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3808 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3809 # is not polluted with repeated "-I."
3810 am__isrc=' -I$(srcdir)'
3811 # test to see if srcdir already configured
3812 if test -f $srcdir/config.status; then
3813 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3817 # test whether we have cygpath
3818 if test -z "$CYGPATH_W"; then
3819 if (cygpath --version) >/dev/null 2>/dev/null; then
3820 CYGPATH_W='cygpath -w'
3821 else
3822 CYGPATH_W=echo
3827 # Define the identity of the package.
3828 PACKAGE='qbittorrent'
3829 VERSION='v4.3.0alpha'
3832 cat >>confdefs.h <<_ACEOF
3833 #define PACKAGE "$PACKAGE"
3834 _ACEOF
3837 cat >>confdefs.h <<_ACEOF
3838 #define VERSION "$VERSION"
3839 _ACEOF
3841 # Some tools Automake needs.
3843 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3846 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3849 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3852 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3855 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3857 # For better backward compatibility. To be removed once Automake 1.9.x
3858 # dies out for good. For more background, see:
3859 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3860 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3861 mkdir_p='$(MKDIR_P)'
3863 # We need awk for the "check" target (and possibly the TAP driver). The
3864 # system "awk" is bad on some platforms.
3865 # Always define AMTAR for backward compatibility. Yes, it's still used
3866 # in the wild :-( We should find a proper way to deprecate it ...
3867 AMTAR='$${TAR-tar}'
3870 # We'll loop over all known methods to create a tar archive until one works.
3871 _am_tools='gnutar pax cpio none'
3873 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3879 depcc="$CC" am_compiler_list=
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3882 $as_echo_n "checking dependency style of $depcc... " >&6; }
3883 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3887 # We make a subdir and do the tests there. Otherwise we can end up
3888 # making bogus files that we don't know about and never remove. For
3889 # instance it was reported that on HP-UX the gcc test will end up
3890 # making a dummy file named 'D' -- because '-MD' means "put the output
3891 # in D".
3892 rm -rf conftest.dir
3893 mkdir conftest.dir
3894 # Copy depcomp to subdir because otherwise we won't find it if we're
3895 # using a relative directory.
3896 cp "$am_depcomp" conftest.dir
3897 cd conftest.dir
3898 # We will build objects and dependencies in a subdirectory because
3899 # it helps to detect inapplicable dependency modes. For instance
3900 # both Tru64's cc and ICC support -MD to output dependencies as a
3901 # side effect of compilation, but ICC will put the dependencies in
3902 # the current directory while Tru64 will put them in the object
3903 # directory.
3904 mkdir sub
3906 am_cv_CC_dependencies_compiler_type=none
3907 if test "$am_compiler_list" = ""; then
3908 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3910 am__universal=false
3911 case " $depcc " in #(
3912 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3913 esac
3915 for depmode in $am_compiler_list; do
3916 # Setup a source with many dependencies, because some compilers
3917 # like to wrap large dependency lists on column 80 (with \), and
3918 # we should not choose a depcomp mode which is confused by this.
3920 # We need to recreate these files for each test, as the compiler may
3921 # overwrite some of them when testing with obscure command lines.
3922 # This happens at least with the AIX C compiler.
3923 : > sub/conftest.c
3924 for i in 1 2 3 4 5 6; do
3925 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3926 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3927 # Solaris 10 /bin/sh.
3928 echo '/* dummy */' > sub/conftst$i.h
3929 done
3930 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3932 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3933 # mode. It turns out that the SunPro C++ compiler does not properly
3934 # handle '-M -o', and we need to detect this. Also, some Intel
3935 # versions had trouble with output in subdirs.
3936 am__obj=sub/conftest.${OBJEXT-o}
3937 am__minus_obj="-o $am__obj"
3938 case $depmode in
3939 gcc)
3940 # This depmode causes a compiler race in universal mode.
3941 test "$am__universal" = false || continue
3943 nosideeffect)
3944 # After this tag, mechanisms are not by side-effect, so they'll
3945 # only be used when explicitly requested.
3946 if test "x$enable_dependency_tracking" = xyes; then
3947 continue
3948 else
3949 break
3952 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3953 # This compiler won't grok '-c -o', but also, the minuso test has
3954 # not run yet. These depmodes are late enough in the game, and
3955 # so weak that their functioning should not be impacted.
3956 am__obj=conftest.${OBJEXT-o}
3957 am__minus_obj=
3959 none) break ;;
3960 esac
3961 if depmode=$depmode \
3962 source=sub/conftest.c object=$am__obj \
3963 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3964 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3965 >/dev/null 2>conftest.err &&
3966 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3967 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3968 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3969 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3970 # icc doesn't choke on unknown options, it will just issue warnings
3971 # or remarks (even with -Werror). So we grep stderr for any message
3972 # that says an option was ignored or not supported.
3973 # When given -MP, icc 7.0 and 7.1 complain thusly:
3974 # icc: Command line warning: ignoring option '-M'; no argument required
3975 # The diagnosis changed in icc 8.0:
3976 # icc: Command line remark: option '-MP' not supported
3977 if (grep 'ignoring option' conftest.err ||
3978 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3979 am_cv_CC_dependencies_compiler_type=$depmode
3980 break
3983 done
3985 cd ..
3986 rm -rf conftest.dir
3987 else
3988 am_cv_CC_dependencies_compiler_type=none
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3993 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3994 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3997 test "x$enable_dependency_tracking" != xno \
3998 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3999 am__fastdepCC_TRUE=
4000 am__fastdepCC_FALSE='#'
4001 else
4002 am__fastdepCC_TRUE='#'
4003 am__fastdepCC_FALSE=
4007 depcc="$CXX" am_compiler_list=
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4010 $as_echo_n "checking dependency style of $depcc... " >&6; }
4011 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4012 $as_echo_n "(cached) " >&6
4013 else
4014 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4015 # We make a subdir and do the tests there. Otherwise we can end up
4016 # making bogus files that we don't know about and never remove. For
4017 # instance it was reported that on HP-UX the gcc test will end up
4018 # making a dummy file named 'D' -- because '-MD' means "put the output
4019 # in D".
4020 rm -rf conftest.dir
4021 mkdir conftest.dir
4022 # Copy depcomp to subdir because otherwise we won't find it if we're
4023 # using a relative directory.
4024 cp "$am_depcomp" conftest.dir
4025 cd conftest.dir
4026 # We will build objects and dependencies in a subdirectory because
4027 # it helps to detect inapplicable dependency modes. For instance
4028 # both Tru64's cc and ICC support -MD to output dependencies as a
4029 # side effect of compilation, but ICC will put the dependencies in
4030 # the current directory while Tru64 will put them in the object
4031 # directory.
4032 mkdir sub
4034 am_cv_CXX_dependencies_compiler_type=none
4035 if test "$am_compiler_list" = ""; then
4036 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4038 am__universal=false
4039 case " $depcc " in #(
4040 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4041 esac
4043 for depmode in $am_compiler_list; do
4044 # Setup a source with many dependencies, because some compilers
4045 # like to wrap large dependency lists on column 80 (with \), and
4046 # we should not choose a depcomp mode which is confused by this.
4048 # We need to recreate these files for each test, as the compiler may
4049 # overwrite some of them when testing with obscure command lines.
4050 # This happens at least with the AIX C compiler.
4051 : > sub/conftest.c
4052 for i in 1 2 3 4 5 6; do
4053 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4054 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4055 # Solaris 10 /bin/sh.
4056 echo '/* dummy */' > sub/conftst$i.h
4057 done
4058 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4060 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4061 # mode. It turns out that the SunPro C++ compiler does not properly
4062 # handle '-M -o', and we need to detect this. Also, some Intel
4063 # versions had trouble with output in subdirs.
4064 am__obj=sub/conftest.${OBJEXT-o}
4065 am__minus_obj="-o $am__obj"
4066 case $depmode in
4067 gcc)
4068 # This depmode causes a compiler race in universal mode.
4069 test "$am__universal" = false || continue
4071 nosideeffect)
4072 # After this tag, mechanisms are not by side-effect, so they'll
4073 # only be used when explicitly requested.
4074 if test "x$enable_dependency_tracking" = xyes; then
4075 continue
4076 else
4077 break
4080 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4081 # This compiler won't grok '-c -o', but also, the minuso test has
4082 # not run yet. These depmodes are late enough in the game, and
4083 # so weak that their functioning should not be impacted.
4084 am__obj=conftest.${OBJEXT-o}
4085 am__minus_obj=
4087 none) break ;;
4088 esac
4089 if depmode=$depmode \
4090 source=sub/conftest.c object=$am__obj \
4091 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4092 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4093 >/dev/null 2>conftest.err &&
4094 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4095 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4096 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4097 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4098 # icc doesn't choke on unknown options, it will just issue warnings
4099 # or remarks (even with -Werror). So we grep stderr for any message
4100 # that says an option was ignored or not supported.
4101 # When given -MP, icc 7.0 and 7.1 complain thusly:
4102 # icc: Command line warning: ignoring option '-M'; no argument required
4103 # The diagnosis changed in icc 8.0:
4104 # icc: Command line remark: option '-MP' not supported
4105 if (grep 'ignoring option' conftest.err ||
4106 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4107 am_cv_CXX_dependencies_compiler_type=$depmode
4108 break
4111 done
4113 cd ..
4114 rm -rf conftest.dir
4115 else
4116 am_cv_CXX_dependencies_compiler_type=none
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4121 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4122 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4125 test "x$enable_dependency_tracking" != xno \
4126 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4127 am__fastdepCXX_TRUE=
4128 am__fastdepCXX_FALSE='#'
4129 else
4130 am__fastdepCXX_TRUE='#'
4131 am__fastdepCXX_FALSE=
4136 # POSIX will say in a future version that running "rm -f" with no argument
4137 # is OK; and we want to be able to make that assumption in our Makefile
4138 # recipes. So use an aggressive probe to check that the usage we want is
4139 # actually supported "in the wild" to an acceptable degree.
4140 # See automake bug#10828.
4141 # To make any issue more visible, cause the running configure to be aborted
4142 # by default if the 'rm' program in use doesn't match our expectations; the
4143 # user can still override this though.
4144 if rm -f && rm -fr && rm -rf; then : OK; else
4145 cat >&2 <<'END'
4146 Oops!
4148 Your 'rm' program seems unable to run without file operands specified
4149 on the command line, even when the '-f' option is present. This is contrary
4150 to the behaviour of most rm programs out there, and not conforming with
4151 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4153 Please tell bug-automake@gnu.org about your system, including the value
4154 of your $PATH and any error possibly output before this message. This
4155 can help us improve future automake versions.
4158 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4159 echo 'Configuration will proceed anyway, since you have set the' >&2
4160 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4161 echo >&2
4162 else
4163 cat >&2 <<'END'
4164 Aborting the configuration process, to ensure you take notice of the issue.
4166 You can download and install GNU coreutils to get an 'rm' implementation
4167 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4169 If you want to complete the configuration process using your problematic
4170 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4171 to "yes", and re-run configure.
4174 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4179 # use compiler from env variables if available
4180 QBT_CC="$CC"
4181 QBT_CXX="$CXX"
4183 # Define --wth-* and --enable-* arguments
4185 # Check whether --enable-debug was given.
4186 if test "${enable_debug+set}" = set; then :
4187 enableval=$enable_debug;
4188 else
4189 enable_debug=no
4193 # Check whether --enable-stacktrace was given.
4194 if test "${enable_stacktrace+set}" = set; then :
4195 enableval=$enable_stacktrace;
4196 else
4197 enable_stacktrace=auto
4201 # Check whether --enable-gui was given.
4202 if test "${enable_gui+set}" = set; then :
4203 enableval=$enable_gui;
4204 else
4205 enable_gui=yes
4209 # Check whether --enable-systemd was given.
4210 if test "${enable_systemd+set}" = set; then :
4211 enableval=$enable_systemd;
4212 else
4213 enable_systemd=no
4217 # Check whether --enable-webui was given.
4218 if test "${enable_webui+set}" = set; then :
4219 enableval=$enable_webui;
4220 else
4221 enable_webui=yes
4225 # Check whether --enable-qt-dbus was given.
4226 if test "${enable_qt_dbus+set}" = set; then :
4227 enableval=$enable_qt_dbus;
4228 else
4229 enable_qt_dbus=yes
4233 # Detect OS
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS is FreeBSD" >&5
4235 $as_echo_n "checking whether OS is FreeBSD... " >&6; }
4236 if expr "$host_os" : ".*freebsd.*" > /dev/null; then :
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4238 $as_echo "yes" >&6; }
4239 LIBS="-lexecinfo $LIBS"
4240 else
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS is macOS" >&5
4246 $as_echo_n "checking whether OS is macOS... " >&6; }
4247 if expr "$host_os" : ".*darwin.*" > /dev/null; then :
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4249 $as_echo "yes" >&6; }
4250 enable_qt_dbus=no
4251 else
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4256 # Require 0.23 pkg-config
4264 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4265 if test -n "$ac_tool_prefix"; then
4266 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4267 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269 $as_echo_n "checking for $ac_word... " >&6; }
4270 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 case $PKG_CONFIG in
4274 [\\/]* | ?:[\\/]*)
4275 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
4289 done
4290 done
4291 IFS=$as_save_IFS
4294 esac
4296 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4297 if test -n "$PKG_CONFIG"; then
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4299 $as_echo "$PKG_CONFIG" >&6; }
4300 else
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302 $as_echo "no" >&6; }
4307 if test -z "$ac_cv_path_PKG_CONFIG"; then
4308 ac_pt_PKG_CONFIG=$PKG_CONFIG
4309 # Extract the first word of "pkg-config", so it can be a program name with args.
4310 set dummy pkg-config; ac_word=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4314 $as_echo_n "(cached) " >&6
4315 else
4316 case $ac_pt_PKG_CONFIG in
4317 [\\/]* | ?:[\\/]*)
4318 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 break 2
4332 done
4333 done
4334 IFS=$as_save_IFS
4337 esac
4339 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4340 if test -n "$ac_pt_PKG_CONFIG"; then
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4342 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4343 else
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345 $as_echo "no" >&6; }
4348 if test "x$ac_pt_PKG_CONFIG" = x; then
4349 PKG_CONFIG=""
4350 else
4351 case $cross_compiling:$ac_tool_warned in
4352 yes:)
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4355 ac_tool_warned=yes ;;
4356 esac
4357 PKG_CONFIG=$ac_pt_PKG_CONFIG
4359 else
4360 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4364 if test -n "$PKG_CONFIG"; then
4365 _pkg_min_version=0.23
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4367 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4368 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4370 $as_echo "yes" >&6; }
4371 else
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373 $as_echo "no" >&6; }
4374 PKG_CONFIG=""
4377 if test "x$PKG_CONFIG" = "x"; then :
4378 as_fn_error $? "Could not find pkg-config" "$LINENO" 5
4381 # Check which arguments were set and act accordingly
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the Debug build" >&5
4383 $as_echo_n "checking whether to enable the Debug build... " >&6; }
4384 case "x$enable_debug" in #(
4385 "xno") :
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4388 QBT_ADD_CONFIG="$QBT_ADD_CONFIG release"
4389 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG debug" ;; #(
4390 "xyes") :
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4392 $as_echo "yes" >&6; }
4393 QBT_ADD_CONFIG="$QBT_ADD_CONFIG debug"
4394 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG release" ;; #(
4395 *) :
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
4397 $as_echo "$enable_debug" >&6; }
4398 as_fn_error $? "Unknown option \"$enable_debug\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
4399 esac
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the stacktrace feature" >&5
4402 $as_echo_n "checking whether to enable the stacktrace feature... " >&6; }
4404 case "x$enable_stacktrace" in #(
4405 "xno") :
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 $as_echo "no" >&6; }
4408 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG stacktrace" ;; #(
4409 "xyes") :
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4411 $as_echo "yes" >&6; }
4412 QBT_ADD_CONFIG="$QBT_ADD_CONFIG stacktrace" ;; #(
4413 "xauto") :
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4416 #include <execinfo.h>
4417 _ACEOF
4418 if ac_fn_cxx_try_compile "$LINENO"; then :
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4420 $as_echo "yes" >&6; }
4421 QBT_ADD_CONFIG="$QBT_ADD_CONFIG stacktrace"
4422 else
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4425 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG stacktrace"
4427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
4428 *) :
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stacktrace" >&5
4430 $as_echo "$enable_stacktrace" >&6; }
4431 as_fn_error $? "Unknown option \"$enable_stacktrace\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
4432 esac
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the GUI" >&5
4435 $as_echo_n "checking whether to enable the GUI... " >&6; }
4436 case "x$enable_gui" in #(
4437 "xyes") :
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4439 $as_echo "yes" >&6; }
4440 enable_systemd=no
4441 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG nogui" ;; #(
4442 "xno") :
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4445 enable_qt_dbus=no
4446 QBT_ADD_CONFIG="$QBT_ADD_CONFIG nogui" ;; #(
4447 *) :
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gui" >&5
4449 $as_echo "$enable_gui" >&6; }
4450 as_fn_error $? "Unknown option \"$enable_gui\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
4451 esac
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install the systemd service file" >&5
4454 $as_echo_n "checking whether to install the systemd service file... " >&6; }
4455 case "x$enable_systemd" in #(
4456 "xyes") :
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4458 $as_echo "yes" >&6; }
4459 QBT_ADD_CONFIG="$QBT_ADD_CONFIG systemd" ;; #(
4460 "xno") :
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462 $as_echo "no" >&6; }
4463 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG systemd" ;; #(
4464 *) :
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_systemd" >&5
4466 $as_echo "$enable_systemd" >&6; }
4467 as_fn_error $? "Unknown option \"$enable_systemd\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
4468 esac
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the WebUI" >&5
4471 $as_echo_n "checking whether to enable the WebUI... " >&6; }
4472 case "x$enable_webui" in #(
4473 "xyes") :
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4475 $as_echo "yes" >&6; }
4476 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG nowebui" ;; #(
4477 "xno") :
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4480 QBT_ADD_CONFIG="$QBT_ADD_CONFIG nowebui" ;; #(
4481 *) :
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_webui" >&5
4483 $as_echo "$enable_webui" >&6; }
4484 as_fn_error $? "Unknown option \"$enable_webui\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
4485 esac
4487 if test -n "$PKG_CONFIG" && \
4488 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.9.0\""; } >&5
4489 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.9.0") 2>&5
4490 ac_status=$?
4491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4492 test $ac_status = 0; }; then
4494 if test -n "$QT_QMAKE"; then
4495 pkg_cv_QT_QMAKE="$QT_QMAKE"
4496 elif test -n "$PKG_CONFIG"; then
4497 if test -n "$PKG_CONFIG" && \
4498 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.9.0\""; } >&5
4499 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.9.0") 2>&5
4500 ac_status=$?
4501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4502 test $ac_status = 0; }; then
4503 pkg_cv_QT_QMAKE=`$PKG_CONFIG --variable="host_bins" "Qt5Core >= 5.9.0" 2>/dev/null`
4504 test "x$?" != "x0" && pkg_failed=yes
4505 else
4506 pkg_failed=yes
4508 else
4509 pkg_failed=untried
4511 QT_QMAKE=$pkg_cv_QT_QMAKE
4513 if test "x$QT_QMAKE" = x""; then :
4519 if test -f "$QT_QMAKE/qmake"; then :
4520 QT_QMAKE="$QT_QMAKE/qmake"
4521 else
4522 if test -f "$QT_QMAKE/qmake-qt5"; then :
4523 QT_QMAKE="$QT_QMAKE/qmake-qt5"
4524 else
4525 QT_QMAKE=""
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt5 qmake >= 5.9.0" >&5
4531 $as_echo_n "checking for Qt5 qmake >= 5.9.0... " >&6; }
4532 if test "x$QT_QMAKE" != "x"; then :
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_QMAKE" >&5
4534 $as_echo "$QT_QMAKE" >&6; }
4535 else
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4537 $as_echo "not found" >&6; }
4541 if test "x$QT_QMAKE" = "x"; then :
4542 as_fn_error $? "Could not find qmake" "$LINENO" 5
4545 if test "x$enable_gui" = "xyes"; then :
4547 pkg_failed=no
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt5Svg" >&5
4549 $as_echo_n "checking for Qt5Svg... " >&6; }
4551 if test -n "$Qt5Svg_CFLAGS"; then
4552 pkg_cv_Qt5Svg_CFLAGS="$Qt5Svg_CFLAGS"
4553 elif test -n "$PKG_CONFIG"; then
4554 if test -n "$PKG_CONFIG" && \
4555 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Svg >= 5.5.1\""; } >&5
4556 ($PKG_CONFIG --exists --print-errors "Qt5Svg >= 5.5.1") 2>&5
4557 ac_status=$?
4558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4559 test $ac_status = 0; }; then
4560 pkg_cv_Qt5Svg_CFLAGS=`$PKG_CONFIG --cflags "Qt5Svg >= 5.5.1" 2>/dev/null`
4561 test "x$?" != "x0" && pkg_failed=yes
4562 else
4563 pkg_failed=yes
4565 else
4566 pkg_failed=untried
4568 if test -n "$Qt5Svg_LIBS"; then
4569 pkg_cv_Qt5Svg_LIBS="$Qt5Svg_LIBS"
4570 elif test -n "$PKG_CONFIG"; then
4571 if test -n "$PKG_CONFIG" && \
4572 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Svg >= 5.5.1\""; } >&5
4573 ($PKG_CONFIG --exists --print-errors "Qt5Svg >= 5.5.1") 2>&5
4574 ac_status=$?
4575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576 test $ac_status = 0; }; then
4577 pkg_cv_Qt5Svg_LIBS=`$PKG_CONFIG --libs "Qt5Svg >= 5.5.1" 2>/dev/null`
4578 test "x$?" != "x0" && pkg_failed=yes
4579 else
4580 pkg_failed=yes
4582 else
4583 pkg_failed=untried
4588 if test $pkg_failed = yes; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
4592 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4593 _pkg_short_errors_supported=yes
4594 else
4595 _pkg_short_errors_supported=no
4597 if test $_pkg_short_errors_supported = yes; then
4598 Qt5Svg_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Qt5Svg >= 5.5.1" 2>&1`
4599 else
4600 Qt5Svg_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "Qt5Svg >= 5.5.1" 2>&1`
4602 # Put the nasty error message in config.log where it belongs
4603 echo "$Qt5Svg_PKG_ERRORS" >&5
4605 as_fn_error $? "Package requirements (Qt5Svg >= 5.5.1) were not met:
4607 $Qt5Svg_PKG_ERRORS
4609 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4610 installed software in a non-standard prefix.
4612 Alternatively, you may set the environment variables Qt5Svg_CFLAGS
4613 and Qt5Svg_LIBS to avoid the need to call pkg-config.
4614 See the pkg-config man page for more details." "$LINENO" 5
4615 elif test $pkg_failed = untried; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617 $as_echo "no" >&6; }
4618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4620 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
4621 is in your PATH or set the PKG_CONFIG environment variable to the full
4622 path to pkg-config.
4624 Alternatively, you may set the environment variables Qt5Svg_CFLAGS
4625 and Qt5Svg_LIBS to avoid the need to call pkg-config.
4626 See the pkg-config man page for more details.
4628 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4629 See \`config.log' for more details" "$LINENO" 5; }
4630 else
4631 Qt5Svg_CFLAGS=$pkg_cv_Qt5Svg_CFLAGS
4632 Qt5Svg_LIBS=$pkg_cv_Qt5Svg_LIBS
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4634 $as_echo "yes" >&6; }
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether QtDBus should be enabled" >&5
4640 $as_echo_n "checking whether QtDBus should be enabled... " >&6; }
4641 case "x$enable_qt_dbus" in #(
4642 "xyes") :
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4644 $as_echo "yes" >&6; }
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt5DBus >= 5.9.0" >&5
4646 $as_echo_n "checking for Qt5DBus >= 5.9.0... " >&6; }
4647 if test -n "$PKG_CONFIG" && \
4648 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5DBus >= 5.9.0\""; } >&5
4649 ($PKG_CONFIG --exists --print-errors "Qt5DBus >= 5.9.0") 2>&5
4650 ac_status=$?
4651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4652 test $ac_status = 0; }; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
4654 $as_echo "found" >&6; }
4655 HAVE_QTDBUS=true
4656 else
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4658 $as_echo "not found" >&6; }
4659 HAVE_QTDBUS=false
4662 if test "x$HAVE_QTDBUS" = "xfalse"; then :
4663 as_fn_error $? "Could not find QtDBus" "$LINENO" 5
4664 else
4665 QBT_ADD_CONFIG="$QBT_ADD_CONFIG dbus"
4667 fi ;; #(
4668 "xno") :
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4671 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG dbus" ;; #(
4672 *) :
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_qt_dbus" >&5
4674 $as_echo "$enable_qt_dbus" >&6; }
4675 as_fn_error $? "Unknown option \"$enable_qt_dbus\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
4676 esac
4681 # Check whether --with-boost was given.
4682 if test "${with_boost+set}" = set; then :
4683 withval=$with_boost;
4684 case $withval in #(
4685 no) :
4686 want_boost="no";_AX_BOOST_BASE_boost_path="" ;; #(
4687 yes) :
4688 want_boost="yes";_AX_BOOST_BASE_boost_path="" ;; #(
4689 *) :
4690 want_boost="yes";_AX_BOOST_BASE_boost_path="$withval" ;;
4691 esac
4693 else
4694 want_boost="yes"
4700 # Check whether --with-boost-libdir was given.
4701 if test "${with_boost_libdir+set}" = set; then :
4702 withval=$with_boost_libdir;
4703 if test -d "$withval"; then :
4704 _AX_BOOST_BASE_boost_lib_path="$withval"
4705 else
4706 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
4709 else
4710 _AX_BOOST_BASE_boost_lib_path=""
4714 BOOST_LDFLAGS=""
4715 BOOST_CPPFLAGS=""
4716 if test "x$want_boost" = "xyes"; then :
4719 if test "x1.40" = "x"; then :
4720 _AX_BOOST_BASE_TONUMERICVERSION_req="1.20.0"
4721 else
4722 _AX_BOOST_BASE_TONUMERICVERSION_req="1.40"
4724 _AX_BOOST_BASE_TONUMERICVERSION_req_shorten=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\.[0-9]*\)'`
4725 _AX_BOOST_BASE_TONUMERICVERSION_req_major=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\)'`
4726 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_major" = "x"; then :
4727 as_fn_error $? "You should at least specify libboost major version" "$LINENO" 5
4729 _AX_BOOST_BASE_TONUMERICVERSION_req_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.\([0-9]*\)'`
4730 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_minor" = "x"; then :
4731 _AX_BOOST_BASE_TONUMERICVERSION_req_minor="0"
4733 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
4734 if test "X$_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor" = "X"; then :
4735 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor="0"
4737 _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`
4738 WANT_BOOST_VERSION=$_AX_BOOST_BASE_TONUMERICVERSION_RET
4740 succeeded=no
4744 case ${host_cpu} in #(
4745 x86_64) :
4746 libsubdirs="lib64 libx32 lib lib64" ;; #(
4747 mips*64*) :
4748 libsubdirs="lib64 lib32 lib lib64" ;; #(
4749 ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64) :
4750 libsubdirs="lib64 lib lib64" ;; #(
4751 *) :
4752 libsubdirs="lib"
4754 esac
4756 case ${host_cpu} in #(
4757 i?86) :
4758 multiarch_libsubdir="lib/i386-${host_os}" ;; #(
4759 *) :
4760 multiarch_libsubdir="lib/${host_cpu}-${host_os}"
4762 esac
4764 if test "x$_AX_BOOST_BASE_boost_path" != "x"; then :
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.40 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"" >&5
4767 $as_echo_n "checking for boostlib >= 1.40 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"... " >&6; }
4768 if test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"; then :
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4771 $as_echo "yes" >&6; }
4772 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include"
4773 for _AX_BOOST_BASE_boost_path_tmp in $multiarch_libsubdir $libsubdirs; do
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.40 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"" >&5
4775 $as_echo_n "checking for boostlib >= 1.40 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"... " >&6; }
4776 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 :
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4779 $as_echo "yes" >&6; }
4780 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp";
4781 break;
4783 else
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4787 done
4788 else
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 $as_echo "no" >&6; }
4794 else
4796 if test X"$cross_compiling" = Xyes; then
4797 search_libsubdirs=$multiarch_libsubdir
4798 else
4799 search_libsubdirs="$multiarch_libsubdir $libsubdirs"
4801 for _AX_BOOST_BASE_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
4802 if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then
4803 for libsubdir in $search_libsubdirs ; do
4804 if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
4805 done
4806 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir"
4807 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path_tmp/include"
4808 break;
4810 done
4814 if test "x$_AX_BOOST_BASE_boost_lib_path" != "x"; then :
4815 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.40 ($WANT_BOOST_VERSION)" >&5
4819 $as_echo_n "checking for boostlib >= 1.40 ($WANT_BOOST_VERSION)... " >&6; }
4820 CPPFLAGS_SAVED="$CPPFLAGS"
4821 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
4822 export CPPFLAGS
4824 LDFLAGS_SAVED="$LDFLAGS"
4825 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
4826 export LDFLAGS
4829 ac_ext=cpp
4830 ac_cpp='$CXXCPP $CPPFLAGS'
4831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4838 #include <boost/version.hpp>
4841 main ()
4844 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
4847 return 0;
4849 _ACEOF
4850 if ac_fn_cxx_try_compile "$LINENO"; then :
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4853 $as_echo "yes" >&6; }
4854 succeeded=yes
4855 found_system=yes
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 ac_ext=cpp
4860 ac_cpp='$CXXCPP $CPPFLAGS'
4861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4868 if test "x$succeeded" != "xyes" ; then
4869 CPPFLAGS="$CPPFLAGS_SAVED"
4870 LDFLAGS="$LDFLAGS_SAVED"
4871 BOOST_CPPFLAGS=
4872 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
4873 BOOST_LDFLAGS=
4875 _version=0
4876 if test -n "$_AX_BOOST_BASE_boost_path" ; then
4877 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then
4878 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
4879 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
4880 V_CHECK=`expr $_version_tmp \> $_version`
4881 if test "x$V_CHECK" = "x1" ; then
4882 _version=$_version_tmp
4884 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
4885 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include/boost-$VERSION_UNDERSCORE"
4886 done
4887 if test -z "$BOOST_CPPFLAGS"; then
4888 if test -d "$_AX_BOOST_BASE_boost_path/boost" && test -r "$_AX_BOOST_BASE_boost_path/boost"; then
4889 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path"
4892 if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then
4893 for libsubdir in $libsubdirs ; do
4894 if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
4895 done
4896 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$libsubdir"
4899 else
4900 if test "x$cross_compiling" != "xyes" ; then
4901 for _AX_BOOST_BASE_boost_path in /usr /usr/local /opt /opt/local ; do
4902 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then
4903 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
4904 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
4905 V_CHECK=`expr $_version_tmp \> $_version`
4906 if test "x$V_CHECK" = "x1" ; then
4907 _version=$_version_tmp
4908 best_path=$_AX_BOOST_BASE_boost_path
4910 done
4912 done
4914 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
4915 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
4916 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
4917 for libsubdir in $libsubdirs ; do
4918 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
4919 done
4920 BOOST_LDFLAGS="-L$best_path/$libsubdir"
4924 if test -n "$BOOST_ROOT" ; then
4925 for libsubdir in $libsubdirs ; do
4926 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
4927 done
4928 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
4929 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
4930 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
4931 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
4932 V_CHECK=`expr $stage_version_shorten \>\= $_version`
4933 if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
4935 $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
4936 BOOST_CPPFLAGS="-I$BOOST_ROOT"
4937 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
4943 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
4944 export CPPFLAGS
4945 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
4946 export LDFLAGS
4948 ac_ext=cpp
4949 ac_cpp='$CXXCPP $CPPFLAGS'
4950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4957 #include <boost/version.hpp>
4960 main ()
4963 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
4966 return 0;
4968 _ACEOF
4969 if ac_fn_cxx_try_compile "$LINENO"; then :
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4972 $as_echo "yes" >&6; }
4973 succeeded=yes
4974 found_system=yes
4977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4978 ac_ext=cpp
4979 ac_cpp='$CXXCPP $CPPFLAGS'
4980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4986 if test "x$succeeded" != "xyes" ; then
4987 if test "x$_version" = "x0" ; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version 1.40 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
4989 $as_echo "$as_me: We could not detect the boost libraries (version 1.40 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;}
4990 else
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
4992 $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
4994 # execute ACTION-IF-NOT-FOUND (if present):
4995 as_fn_error $? "Could not find Boost" "$LINENO" 5
4996 else
4998 $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
5000 # execute ACTION-IF-FOUND (if present):
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost CXXFLAGS: \"$BOOST_CPPFLAGS\"" >&5
5002 $as_echo "$as_me: Boost CXXFLAGS: \"$BOOST_CPPFLAGS\"" >&6;}
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost LDFLAGS: \"$BOOST_LDFLAGS\"" >&5
5004 $as_echo "$as_me: Boost LDFLAGS: \"$BOOST_LDFLAGS\"" >&6;}
5007 CPPFLAGS="$CPPFLAGS_SAVED"
5008 LDFLAGS="$LDFLAGS_SAVED"
5015 CXXFLAGS="$BOOST_CPPFLAGS $CXXFLAGS"
5016 LDFLAGS="$BOOST_LDFLAGS $LDFLAGS"
5018 # add workaround for problematic boost version
5019 # taken from ax_boost_base.m4
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5024 #include <boost/version.hpp>
5026 main ()
5028 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < (106000))]));
5030 return 0;
5032 _ACEOF
5033 if ac_fn_cxx_try_compile "$LINENO"; then :
5035 else
5036 QBT_ADD_DEFINES="$QBT_ADD_DEFINES BOOST_NO_CXX11_RVALUE_REFERENCES"
5038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5042 # Check whether --with-boost-system was given.
5043 if test "${with_boost_system+set}" = set; then :
5044 withval=$with_boost_system;
5045 if test "$withval" = "no"; then
5046 want_boost="no"
5047 elif test "$withval" = "yes"; then
5048 want_boost="yes"
5049 ax_boost_user_system_lib=""
5050 else
5051 want_boost="yes"
5052 ax_boost_user_system_lib="$withval"
5055 else
5056 want_boost="yes"
5061 if test "x$want_boost" = "xyes"; then
5064 CPPFLAGS_SAVED="$CPPFLAGS"
5065 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
5066 export CPPFLAGS
5068 LDFLAGS_SAVED="$LDFLAGS"
5069 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
5070 export LDFLAGS
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
5073 $as_echo_n "checking whether the Boost::System library is available... " >&6; }
5074 if ${ax_cv_boost_system+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 ac_ext=cpp
5078 ac_cpp='$CXXCPP $CPPFLAGS'
5079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5083 CXXFLAGS_SAVE=$CXXFLAGS
5084 CXXFLAGS=
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088 #include <boost/system/error_code.hpp>
5090 main ()
5092 boost::system::error_category *a = 0;
5094 return 0;
5096 _ACEOF
5097 if ac_fn_cxx_try_compile "$LINENO"; then :
5098 ax_cv_boost_system=yes
5099 else
5100 ax_cv_boost_system=no
5102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103 CXXFLAGS=$CXXFLAGS_SAVE
5104 ac_ext=cpp
5105 ac_cpp='$CXXCPP $CPPFLAGS'
5106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
5113 $as_echo "$ax_cv_boost_system" >&6; }
5114 if test "x$ax_cv_boost_system" = "xyes"; then
5118 $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
5120 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
5122 LDFLAGS_SAVE=$LDFLAGS
5123 if test "x$ax_boost_user_system_lib" = "x"; then
5124 for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
5125 ax_lib=${libextension}
5126 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
5128 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
5129 if eval \${$as_ac_Lib+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 ac_check_lib_save_LIBS=$LIBS
5133 LIBS="-l$ax_lib $LIBS"
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5137 /* Override any GCC internal prototype to avoid an error.
5138 Use char because int might match the return type of a GCC
5139 builtin and then its argument prototype would still apply. */
5140 #ifdef __cplusplus
5141 extern "C"
5142 #endif
5143 char exit ();
5145 main ()
5147 return exit ();
5149 return 0;
5151 _ACEOF
5152 if ac_fn_cxx_try_link "$LINENO"; then :
5153 eval "$as_ac_Lib=yes"
5154 else
5155 eval "$as_ac_Lib=no"
5157 rm -f core conftest.err conftest.$ac_objext \
5158 conftest$ac_exeext conftest.$ac_ext
5159 LIBS=$ac_check_lib_save_LIBS
5161 eval ac_res=\$$as_ac_Lib
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5163 $as_echo "$ac_res" >&6; }
5164 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5165 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
5166 else
5167 link_system="no"
5170 done
5171 if test "x$link_system" != "xyes"; then
5172 for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
5173 ax_lib=${libextension}
5174 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
5176 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
5177 if eval \${$as_ac_Lib+:} false; then :
5178 $as_echo_n "(cached) " >&6
5179 else
5180 ac_check_lib_save_LIBS=$LIBS
5181 LIBS="-l$ax_lib $LIBS"
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5185 /* Override any GCC internal prototype to avoid an error.
5186 Use char because int might match the return type of a GCC
5187 builtin and then its argument prototype would still apply. */
5188 #ifdef __cplusplus
5189 extern "C"
5190 #endif
5191 char exit ();
5193 main ()
5195 return exit ();
5197 return 0;
5199 _ACEOF
5200 if ac_fn_cxx_try_link "$LINENO"; then :
5201 eval "$as_ac_Lib=yes"
5202 else
5203 eval "$as_ac_Lib=no"
5205 rm -f core conftest.err conftest.$ac_objext \
5206 conftest$ac_exeext conftest.$ac_ext
5207 LIBS=$ac_check_lib_save_LIBS
5209 eval ac_res=\$$as_ac_Lib
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5211 $as_echo "$ac_res" >&6; }
5212 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5213 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
5214 else
5215 link_system="no"
5218 done
5221 else
5222 for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
5223 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
5225 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
5226 if eval \${$as_ac_Lib+:} false; then :
5227 $as_echo_n "(cached) " >&6
5228 else
5229 ac_check_lib_save_LIBS=$LIBS
5230 LIBS="-l$ax_lib $LIBS"
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5234 /* Override any GCC internal prototype to avoid an error.
5235 Use char because int might match the return type of a GCC
5236 builtin and then its argument prototype would still apply. */
5237 #ifdef __cplusplus
5238 extern "C"
5239 #endif
5240 char exit ();
5242 main ()
5244 return exit ();
5246 return 0;
5248 _ACEOF
5249 if ac_fn_cxx_try_link "$LINENO"; then :
5250 eval "$as_ac_Lib=yes"
5251 else
5252 eval "$as_ac_Lib=no"
5254 rm -f core conftest.err conftest.$ac_objext \
5255 conftest$ac_exeext conftest.$ac_ext
5256 LIBS=$ac_check_lib_save_LIBS
5258 eval ac_res=\$$as_ac_Lib
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5260 $as_echo "$ac_res" >&6; }
5261 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
5262 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
5263 else
5264 link_system="no"
5267 done
5270 if test "x$ax_lib" = "x"; then
5271 as_fn_error $? "Could not find a version of the Boost::System library!" "$LINENO" 5
5273 if test "x$link_system" = "xno"; then
5274 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
5278 CPPFLAGS="$CPPFLAGS_SAVED"
5279 LDFLAGS="$LDFLAGS_SAVED"
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost.System LIB: \"$BOOST_SYSTEM_LIB\"" >&5
5283 $as_echo "$as_me: Boost.System LIB: \"$BOOST_SYSTEM_LIB\"" >&6;}
5284 LIBS="$BOOST_SYSTEM_LIB $LIBS"
5287 pkg_failed=no
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtorrent" >&5
5289 $as_echo_n "checking for libtorrent... " >&6; }
5291 if test -n "$libtorrent_CFLAGS"; then
5292 pkg_cv_libtorrent_CFLAGS="$libtorrent_CFLAGS"
5293 elif test -n "$PKG_CONFIG"; then
5294 if test -n "$PKG_CONFIG" && \
5295 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.1.10\""; } >&5
5296 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.1.10") 2>&5
5297 ac_status=$?
5298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5299 test $ac_status = 0; }; then
5300 pkg_cv_libtorrent_CFLAGS=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 1.1.10" 2>/dev/null`
5301 test "x$?" != "x0" && pkg_failed=yes
5302 else
5303 pkg_failed=yes
5305 else
5306 pkg_failed=untried
5308 if test -n "$libtorrent_LIBS"; then
5309 pkg_cv_libtorrent_LIBS="$libtorrent_LIBS"
5310 elif test -n "$PKG_CONFIG"; then
5311 if test -n "$PKG_CONFIG" && \
5312 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.1.10\""; } >&5
5313 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.1.10") 2>&5
5314 ac_status=$?
5315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5316 test $ac_status = 0; }; then
5317 pkg_cv_libtorrent_LIBS=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 1.1.10" 2>/dev/null`
5318 test "x$?" != "x0" && pkg_failed=yes
5319 else
5320 pkg_failed=yes
5322 else
5323 pkg_failed=untried
5328 if test $pkg_failed = yes; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5332 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5333 _pkg_short_errors_supported=yes
5334 else
5335 _pkg_short_errors_supported=no
5337 if test $_pkg_short_errors_supported = yes; then
5338 libtorrent_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 1.1.10" 2>&1`
5339 else
5340 libtorrent_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 1.1.10" 2>&1`
5342 # Put the nasty error message in config.log where it belongs
5343 echo "$libtorrent_PKG_ERRORS" >&5
5345 as_fn_error $? "Package requirements (libtorrent-rasterbar >= 1.1.10) were not met:
5347 $libtorrent_PKG_ERRORS
5349 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5350 installed software in a non-standard prefix.
5352 Alternatively, you may set the environment variables libtorrent_CFLAGS
5353 and libtorrent_LIBS to avoid the need to call pkg-config.
5354 See the pkg-config man page for more details." "$LINENO" 5
5355 elif test $pkg_failed = untried; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 $as_echo "no" >&6; }
5358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5360 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5361 is in your PATH or set the PKG_CONFIG environment variable to the full
5362 path to pkg-config.
5364 Alternatively, you may set the environment variables libtorrent_CFLAGS
5365 and libtorrent_LIBS to avoid the need to call pkg-config.
5366 See the pkg-config man page for more details.
5368 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5369 See \`config.log' for more details" "$LINENO" 5; }
5370 else
5371 libtorrent_CFLAGS=$pkg_cv_libtorrent_CFLAGS
5372 libtorrent_LIBS=$pkg_cv_libtorrent_LIBS
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5374 $as_echo "yes" >&6; }
5375 CXXFLAGS="$libtorrent_CFLAGS $CXXFLAGS"
5376 LIBS="$libtorrent_LIBS $LIBS"
5380 pkg_failed=no
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
5382 $as_echo_n "checking for openssl... " >&6; }
5384 if test -n "$openssl_CFLAGS"; then
5385 pkg_cv_openssl_CFLAGS="$openssl_CFLAGS"
5386 elif test -n "$PKG_CONFIG"; then
5387 if test -n "$PKG_CONFIG" && \
5388 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0\""; } >&5
5389 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0") 2>&5
5390 ac_status=$?
5391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5392 test $ac_status = 0; }; then
5393 pkg_cv_openssl_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0" 2>/dev/null`
5394 test "x$?" != "x0" && pkg_failed=yes
5395 else
5396 pkg_failed=yes
5398 else
5399 pkg_failed=untried
5401 if test -n "$openssl_LIBS"; then
5402 pkg_cv_openssl_LIBS="$openssl_LIBS"
5403 elif test -n "$PKG_CONFIG"; then
5404 if test -n "$PKG_CONFIG" && \
5405 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0\""; } >&5
5406 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0") 2>&5
5407 ac_status=$?
5408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5409 test $ac_status = 0; }; then
5410 pkg_cv_openssl_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0" 2>/dev/null`
5411 test "x$?" != "x0" && pkg_failed=yes
5412 else
5413 pkg_failed=yes
5415 else
5416 pkg_failed=untried
5421 if test $pkg_failed = yes; then
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5425 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5426 _pkg_short_errors_supported=yes
5427 else
5428 _pkg_short_errors_supported=no
5430 if test $_pkg_short_errors_supported = yes; then
5431 openssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0" 2>&1`
5432 else
5433 openssl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0" 2>&1`
5435 # Put the nasty error message in config.log where it belongs
5436 echo "$openssl_PKG_ERRORS" >&5
5438 as_fn_error $? "Package requirements (openssl >= 1.0) were not met:
5440 $openssl_PKG_ERRORS
5442 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5443 installed software in a non-standard prefix.
5445 Alternatively, you may set the environment variables openssl_CFLAGS
5446 and openssl_LIBS to avoid the need to call pkg-config.
5447 See the pkg-config man page for more details." "$LINENO" 5
5448 elif test $pkg_failed = untried; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5453 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5454 is in your PATH or set the PKG_CONFIG environment variable to the full
5455 path to pkg-config.
5457 Alternatively, you may set the environment variables openssl_CFLAGS
5458 and openssl_LIBS to avoid the need to call pkg-config.
5459 See the pkg-config man page for more details.
5461 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5462 See \`config.log' for more details" "$LINENO" 5; }
5463 else
5464 openssl_CFLAGS=$pkg_cv_openssl_CFLAGS
5465 openssl_LIBS=$pkg_cv_openssl_LIBS
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5467 $as_echo "yes" >&6; }
5468 CXXFLAGS="$openssl_CFLAGS $CXXFLAGS"
5469 LIBS="$openssl_LIBS $LIBS"
5473 pkg_failed=no
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
5475 $as_echo_n "checking for zlib... " >&6; }
5477 if test -n "$zlib_CFLAGS"; then
5478 pkg_cv_zlib_CFLAGS="$zlib_CFLAGS"
5479 elif test -n "$PKG_CONFIG"; then
5480 if test -n "$PKG_CONFIG" && \
5481 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.5.2\""; } >&5
5482 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.5.2") 2>&5
5483 ac_status=$?
5484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5485 test $ac_status = 0; }; then
5486 pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.5.2" 2>/dev/null`
5487 test "x$?" != "x0" && pkg_failed=yes
5488 else
5489 pkg_failed=yes
5491 else
5492 pkg_failed=untried
5494 if test -n "$zlib_LIBS"; then
5495 pkg_cv_zlib_LIBS="$zlib_LIBS"
5496 elif test -n "$PKG_CONFIG"; then
5497 if test -n "$PKG_CONFIG" && \
5498 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.5.2\""; } >&5
5499 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.5.2") 2>&5
5500 ac_status=$?
5501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5502 test $ac_status = 0; }; then
5503 pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.5.2" 2>/dev/null`
5504 test "x$?" != "x0" && pkg_failed=yes
5505 else
5506 pkg_failed=yes
5508 else
5509 pkg_failed=untried
5514 if test $pkg_failed = yes; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5518 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5519 _pkg_short_errors_supported=yes
5520 else
5521 _pkg_short_errors_supported=no
5523 if test $_pkg_short_errors_supported = yes; then
5524 zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.5.2" 2>&1`
5525 else
5526 zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.5.2" 2>&1`
5528 # Put the nasty error message in config.log where it belongs
5529 echo "$zlib_PKG_ERRORS" >&5
5531 as_fn_error $? "Package requirements (zlib >= 1.2.5.2) were not met:
5533 $zlib_PKG_ERRORS
5535 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5536 installed software in a non-standard prefix.
5538 Alternatively, you may set the environment variables zlib_CFLAGS
5539 and zlib_LIBS to avoid the need to call pkg-config.
5540 See the pkg-config man page for more details." "$LINENO" 5
5541 elif test $pkg_failed = untried; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5546 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5547 is in your PATH or set the PKG_CONFIG environment variable to the full
5548 path to pkg-config.
5550 Alternatively, you may set the environment variables zlib_CFLAGS
5551 and zlib_LIBS to avoid the need to call pkg-config.
5552 See the pkg-config man page for more details.
5554 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5555 See \`config.log' for more details" "$LINENO" 5; }
5556 else
5557 zlib_CFLAGS=$pkg_cv_zlib_CFLAGS
5558 zlib_LIBS=$pkg_cv_zlib_LIBS
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5560 $as_echo "yes" >&6; }
5561 CXXFLAGS="$zlib_CFLAGS $CXXFLAGS"
5562 LIBS="$zlib_LIBS $LIBS"
5565 # Check if already in >= C++14 mode because of the flags returned by one of the above packages
5566 TMP_CXXFLAGS="$CXXFLAGS"
5567 CXXFLAGS=""
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler defaults to C++14 or later mode" >&5
5569 $as_echo_n "checking if compiler defaults to C++14 or later mode... " >&6; }
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5573 #ifndef __cplusplus
5574 #error "This is not a C++ compiler"
5575 #elif __cplusplus < 201402L
5576 #error "This is not a C++14 compiler"
5577 #endif
5579 main ()
5583 return 0;
5586 _ACEOF
5587 if ac_fn_cxx_try_compile "$LINENO"; then :
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5589 $as_echo "yes" >&6; }
5590 QBT_CXX14_FOUND="yes"
5591 else
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5594 QBT_CXX14_FOUND="no"
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 # In case of no, check if the compiler can support at least C++14
5599 # and if yes, enable it leaving a warning to the user
5600 if test "x$QBT_CXX14_FOUND" = "xno"; then :
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports C++14" >&5
5602 $as_echo_n "checking if compiler supports C++14... " >&6; }
5603 CXXFLAGS="-std=c++14"
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5607 #ifndef __cplusplus
5608 #error "This is not a C++ compiler"
5609 #elif __cplusplus < 201402L
5610 #error "This is not a C++14 compiler"
5611 #endif
5613 main ()
5617 return 0;
5620 _ACEOF
5621 if ac_fn_cxx_try_compile "$LINENO"; then :
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5623 $as_echo "yes" >&6; }
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++14 is disabled by the set compiler flags" >&5
5625 $as_echo_n "checking if C++14 is disabled by the set compiler flags... " >&6; }
5626 # prepend the flag so it won't override conflicting user defined flags
5627 CXXFLAGS="-std=c++14 $TMP_CXXFLAGS"
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5631 #ifndef __cplusplus
5632 #error "This is not a C++ compiler"
5633 #elif __cplusplus < 201402L
5634 #error "This is not a C++14 compiler"
5635 #endif
5637 main ()
5641 return 0;
5644 _ACEOF
5645 if ac_fn_cxx_try_compile "$LINENO"; then :
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5648 QBT_ADD_CONFIG="$QBT_ADD_CONFIG c++14"
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++14 mode is now force enabled. The C++ mode should match the mode that other libraries were built with, otherwise you'll likely get linking errors." >&5
5650 $as_echo "$as_me: WARNING: C++14 mode is now force enabled. The C++ mode should match the mode that other libraries were built with, otherwise you'll likely get linking errors." >&2;}
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5653 $as_echo "yes" >&6; }
5654 as_fn_error $? "The compiler supports C++14 but the user or a dependency has explicitly enabled a lower mode." "$LINENO" 5
5656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657 else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; }
5660 as_fn_error $? "A compiler supporting C++14 is required." "$LINENO" 5
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665 CXXFLAGS="$TMP_CXXFLAGS"
5667 # These are required because autoconf doesn't expand these **particular**
5668 # vars automatically. And qmake cannot autoexpand them.
5670 prefix_NONE=
5671 exec_prefix_NONE=
5672 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
5673 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
5674 eval ax_define_dir="\"$prefix\""
5675 eval ax_define_dir="\"$ax_define_dir\""
5676 EXPAND_PREFIX="$ax_define_dir"
5678 cat >>confdefs.h <<_ACEOF
5679 #define EXPAND_PREFIX "$ax_define_dir"
5680 _ACEOF
5682 test "$prefix_NONE" && prefix=NONE
5683 test "$exec_prefix_NONE" && exec_prefix=NONE
5686 prefix_NONE=
5687 exec_prefix_NONE=
5688 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
5689 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
5690 eval ax_define_dir="\"$bindir\""
5691 eval ax_define_dir="\"$ax_define_dir\""
5692 EXPAND_BINDIR="$ax_define_dir"
5694 cat >>confdefs.h <<_ACEOF
5695 #define EXPAND_BINDIR "$ax_define_dir"
5696 _ACEOF
5698 test "$prefix_NONE" && prefix=NONE
5699 test "$exec_prefix_NONE" && exec_prefix=NONE
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="\"$datadir\""
5707 eval ax_define_dir="\"$ax_define_dir\""
5708 EXPAND_DATADIR="$ax_define_dir"
5710 cat >>confdefs.h <<_ACEOF
5711 #define EXPAND_DATADIR "$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="\"$mandir\""
5723 eval ax_define_dir="\"$ax_define_dir\""
5724 EXPAND_MANDIR="$ax_define_dir"
5726 cat >>confdefs.h <<_ACEOF
5727 #define EXPAND_MANDIR "$ax_define_dir"
5728 _ACEOF
5730 test "$prefix_NONE" && prefix=NONE
5731 test "$exec_prefix_NONE" && exec_prefix=NONE
5734 # Original extract() function contributed by pmzqla
5735 # $*: Strings to parse
5736 # Set $QBT_CONF_DEFINES, $QBT_CONF_INCLUDES, $QBT_CONF_EXTRA_CFLAGS
5737 extract() {
5738 if [ -z "$*" ]; then
5739 echo "Input string required"
5740 return 1
5743 # BSD sed needs an actual newline character in the substitute command
5744 new_line='
5746 # Convert " -" to "\n" if not between quotes and remove possible leading white spaces
5747 string=$(echo " $*" | $SED -e "s: -:\\${new_line}:g" -e 's:"\(.*\)\n\(.*\)":\"\1 -\2":g' -e "s:'\(.*\)\n\(.*\)':\'\1 -\2':g" -e 's/^[[:space:]]*//')
5748 SAVEIFS=$IFS
5749 IFS=$(printf "\n\b")
5750 for i in $string; do
5751 case "$(echo "$i" | cut -c1)" in
5752 '') ;;
5753 D) QBT_CONF_DEFINES="$QBT_CONF_DEFINES $(echo $i | cut -c2-)";;
5754 I) QBT_CONF_INCLUDES="$QBT_CONF_INCLUDES $(echo $i | cut -c2-)";;
5755 *) QBT_CONF_EXTRA_CFLAGS="$QBT_CONF_EXTRA_CFLAGS -$i";;
5756 esac
5757 done
5758 IFS=$SAVEIFS
5761 extract "$CFLAGS $CXXFLAGS"
5762 QBT_ADD_DEFINES="$QBT_ADD_DEFINES $QBT_CONF_DEFINES"
5764 # Substitute the values of these vars in conf.pri.in
5774 ac_config_files="$ac_config_files conf.pri"
5776 cat >confcache <<\_ACEOF
5777 # This file is a shell script that caches the results of configure
5778 # tests run on this system so they can be shared between configure
5779 # scripts and configure runs, see configure's option --config-cache.
5780 # It is not useful on other systems. If it contains results you don't
5781 # want to keep, you may remove or edit it.
5783 # config.status only pays attention to the cache file if you give it
5784 # the --recheck option to rerun configure.
5786 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5787 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5788 # following values.
5790 _ACEOF
5792 # The following way of writing the cache mishandles newlines in values,
5793 # but we know of no workaround that is simple, portable, and efficient.
5794 # So, we kill variables containing newlines.
5795 # Ultrix sh set writes to stderr and can't be redirected directly,
5796 # and sets the high bit in the cache file unless we assign to the vars.
5798 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5799 eval ac_val=\$$ac_var
5800 case $ac_val in #(
5801 *${as_nl}*)
5802 case $ac_var in #(
5803 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5804 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5805 esac
5806 case $ac_var in #(
5807 _ | IFS | as_nl) ;; #(
5808 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5809 *) { eval $ac_var=; unset $ac_var;} ;;
5810 esac ;;
5811 esac
5812 done
5814 (set) 2>&1 |
5815 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5816 *${as_nl}ac_space=\ *)
5817 # `set' does not quote correctly, so add quotes: double-quote
5818 # substitution turns \\\\ into \\, and sed turns \\ into \.
5819 sed -n \
5820 "s/'/'\\\\''/g;
5821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5822 ;; #(
5824 # `set' quotes correctly as required by POSIX, so do not add quotes.
5825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5827 esac |
5828 sort
5830 sed '
5831 /^ac_cv_env_/b end
5832 t clear
5833 :clear
5834 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5835 t end
5836 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5837 :end' >>confcache
5838 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5839 if test -w "$cache_file"; then
5840 if test "x$cache_file" != "x/dev/null"; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5842 $as_echo "$as_me: updating cache $cache_file" >&6;}
5843 if test ! -f "$cache_file" || test -h "$cache_file"; then
5844 cat confcache >"$cache_file"
5845 else
5846 case $cache_file in #(
5847 */* | ?:*)
5848 mv -f confcache "$cache_file"$$ &&
5849 mv -f "$cache_file"$$ "$cache_file" ;; #(
5851 mv -f confcache "$cache_file" ;;
5852 esac
5855 else
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5857 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5860 rm -f confcache
5862 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5863 # Let make expand exec_prefix.
5864 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5866 # Transform confdefs.h into DEFS.
5867 # Protect against shell expansion while executing Makefile rules.
5868 # Protect against Makefile macro expansion.
5870 # If the first sed substitution is executed (which looks for macros that
5871 # take arguments), then branch to the quote section. Otherwise,
5872 # look for a macro that doesn't take arguments.
5873 ac_script='
5874 :mline
5875 /\\$/{
5877 s,\\\n,,
5878 b mline
5880 t clear
5881 :clear
5882 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
5883 t quote
5884 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
5885 t quote
5886 b any
5887 :quote
5888 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5889 s/\[/\\&/g
5890 s/\]/\\&/g
5891 s/\$/$$/g
5893 :any
5896 s/^\n//
5897 s/\n/ /g
5901 DEFS=`sed -n "$ac_script" confdefs.h`
5904 ac_libobjs=
5905 ac_ltlibobjs=
5907 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5908 # 1. Remove the extension, and $U if already installed.
5909 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5910 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5911 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5912 # will be set to the directory where LIBOBJS objects are built.
5913 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5914 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5915 done
5916 LIBOBJS=$ac_libobjs
5918 LTLIBOBJS=$ac_ltlibobjs
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5922 $as_echo_n "checking that generated files are newer than configure... " >&6; }
5923 if test -n "$am_sleep_pid"; then
5924 # Hide warnings about reused PIDs.
5925 wait $am_sleep_pid 2>/dev/null
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5928 $as_echo "done" >&6; }
5929 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5930 as_fn_error $? "conditional \"AMDEP\" was never defined.
5931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5933 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5934 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5937 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5938 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
5939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5941 if test -n "$EXEEXT"; then
5942 am__EXEEXT_TRUE=
5943 am__EXEEXT_FALSE='#'
5944 else
5945 am__EXEEXT_TRUE='#'
5946 am__EXEEXT_FALSE=
5950 : "${CONFIG_STATUS=./config.status}"
5951 ac_write_fail=0
5952 ac_clean_files_save=$ac_clean_files
5953 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5955 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5956 as_write_fail=0
5957 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5958 #! $SHELL
5959 # Generated by $as_me.
5960 # Run this file to recreate the current configuration.
5961 # Compiler output produced by configure, useful for debugging
5962 # configure, is in config.log if it exists.
5964 debug=false
5965 ac_cs_recheck=false
5966 ac_cs_silent=false
5968 SHELL=\${CONFIG_SHELL-$SHELL}
5969 export SHELL
5970 _ASEOF
5971 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5972 ## -------------------- ##
5973 ## M4sh Initialization. ##
5974 ## -------------------- ##
5976 # Be more Bourne compatible
5977 DUALCASE=1; export DUALCASE # for MKS sh
5978 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5979 emulate sh
5980 NULLCMD=:
5981 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5982 # is contrary to our usage. Disable this feature.
5983 alias -g '${1+"$@"}'='"$@"'
5984 setopt NO_GLOB_SUBST
5985 else
5986 case `(set -o) 2>/dev/null` in #(
5987 *posix*) :
5988 set -o posix ;; #(
5989 *) :
5991 esac
5995 as_nl='
5997 export as_nl
5998 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5999 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6000 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6001 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6002 # Prefer a ksh shell builtin over an external printf program on Solaris,
6003 # but without wasting forks for bash or zsh.
6004 if test -z "$BASH_VERSION$ZSH_VERSION" \
6005 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6006 as_echo='print -r --'
6007 as_echo_n='print -rn --'
6008 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6009 as_echo='printf %s\n'
6010 as_echo_n='printf %s'
6011 else
6012 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6013 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6014 as_echo_n='/usr/ucb/echo -n'
6015 else
6016 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6017 as_echo_n_body='eval
6018 arg=$1;
6019 case $arg in #(
6020 *"$as_nl"*)
6021 expr "X$arg" : "X\\(.*\\)$as_nl";
6022 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6023 esac;
6024 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6026 export as_echo_n_body
6027 as_echo_n='sh -c $as_echo_n_body as_echo'
6029 export as_echo_body
6030 as_echo='sh -c $as_echo_body as_echo'
6033 # The user is always right.
6034 if test "${PATH_SEPARATOR+set}" != set; then
6035 PATH_SEPARATOR=:
6036 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6037 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6038 PATH_SEPARATOR=';'
6043 # IFS
6044 # We need space, tab and new line, in precisely that order. Quoting is
6045 # there to prevent editors from complaining about space-tab.
6046 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6047 # splitting by setting IFS to empty value.)
6048 IFS=" "" $as_nl"
6050 # Find who we are. Look in the path if we contain no directory separator.
6051 as_myself=
6052 case $0 in #((
6053 *[\\/]* ) as_myself=$0 ;;
6054 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH
6057 IFS=$as_save_IFS
6058 test -z "$as_dir" && as_dir=.
6059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6060 done
6061 IFS=$as_save_IFS
6064 esac
6065 # We did not find ourselves, most probably we were run as `sh COMMAND'
6066 # in which case we are not to be found in the path.
6067 if test "x$as_myself" = x; then
6068 as_myself=$0
6070 if test ! -f "$as_myself"; then
6071 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6072 exit 1
6075 # Unset variables that we do not need and which cause bugs (e.g. in
6076 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6077 # suppresses any "Segmentation fault" message there. '((' could
6078 # trigger a bug in pdksh 5.2.14.
6079 for as_var in BASH_ENV ENV MAIL MAILPATH
6080 do eval test x\${$as_var+set} = xset \
6081 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6082 done
6083 PS1='$ '
6084 PS2='> '
6085 PS4='+ '
6087 # NLS nuisances.
6088 LC_ALL=C
6089 export LC_ALL
6090 LANGUAGE=C
6091 export LANGUAGE
6093 # CDPATH.
6094 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6097 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6098 # ----------------------------------------
6099 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6100 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6101 # script with STATUS, using 1 if that was 0.
6102 as_fn_error ()
6104 as_status=$1; test $as_status -eq 0 && as_status=1
6105 if test "$4"; then
6106 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6107 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6109 $as_echo "$as_me: error: $2" >&2
6110 as_fn_exit $as_status
6111 } # as_fn_error
6114 # as_fn_set_status STATUS
6115 # -----------------------
6116 # Set $? to STATUS, without forking.
6117 as_fn_set_status ()
6119 return $1
6120 } # as_fn_set_status
6122 # as_fn_exit STATUS
6123 # -----------------
6124 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6125 as_fn_exit ()
6127 set +e
6128 as_fn_set_status $1
6129 exit $1
6130 } # as_fn_exit
6132 # as_fn_unset VAR
6133 # ---------------
6134 # Portably unset VAR.
6135 as_fn_unset ()
6137 { eval $1=; unset $1;}
6139 as_unset=as_fn_unset
6140 # as_fn_append VAR VALUE
6141 # ----------------------
6142 # Append the text in VALUE to the end of the definition contained in VAR. Take
6143 # advantage of any shell optimizations that allow amortized linear growth over
6144 # repeated appends, instead of the typical quadratic growth present in naive
6145 # implementations.
6146 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6147 eval 'as_fn_append ()
6149 eval $1+=\$2
6151 else
6152 as_fn_append ()
6154 eval $1=\$$1\$2
6156 fi # as_fn_append
6158 # as_fn_arith ARG...
6159 # ------------------
6160 # Perform arithmetic evaluation on the ARGs, and store the result in the
6161 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6162 # must be portable across $(()) and expr.
6163 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6164 eval 'as_fn_arith ()
6166 as_val=$(( $* ))
6168 else
6169 as_fn_arith ()
6171 as_val=`expr "$@" || test $? -eq 1`
6173 fi # as_fn_arith
6176 if expr a : '\(a\)' >/dev/null 2>&1 &&
6177 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6178 as_expr=expr
6179 else
6180 as_expr=false
6183 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6184 as_basename=basename
6185 else
6186 as_basename=false
6189 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6190 as_dirname=dirname
6191 else
6192 as_dirname=false
6195 as_me=`$as_basename -- "$0" ||
6196 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6197 X"$0" : 'X\(//\)$' \| \
6198 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6199 $as_echo X/"$0" |
6200 sed '/^.*\/\([^/][^/]*\)\/*$/{
6201 s//\1/
6204 /^X\/\(\/\/\)$/{
6205 s//\1/
6208 /^X\/\(\/\).*/{
6209 s//\1/
6212 s/.*/./; q'`
6214 # Avoid depending upon Character Ranges.
6215 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6216 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6217 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6218 as_cr_digits='0123456789'
6219 as_cr_alnum=$as_cr_Letters$as_cr_digits
6221 ECHO_C= ECHO_N= ECHO_T=
6222 case `echo -n x` in #(((((
6223 -n*)
6224 case `echo 'xy\c'` in
6225 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6226 xy) ECHO_C='\c';;
6227 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6228 ECHO_T=' ';;
6229 esac;;
6231 ECHO_N='-n';;
6232 esac
6234 rm -f conf$$ conf$$.exe conf$$.file
6235 if test -d conf$$.dir; then
6236 rm -f conf$$.dir/conf$$.file
6237 else
6238 rm -f conf$$.dir
6239 mkdir conf$$.dir 2>/dev/null
6241 if (echo >conf$$.file) 2>/dev/null; then
6242 if ln -s conf$$.file conf$$ 2>/dev/null; then
6243 as_ln_s='ln -s'
6244 # ... but there are two gotchas:
6245 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6246 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6247 # In both cases, we have to default to `cp -pR'.
6248 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6249 as_ln_s='cp -pR'
6250 elif ln conf$$.file conf$$ 2>/dev/null; then
6251 as_ln_s=ln
6252 else
6253 as_ln_s='cp -pR'
6255 else
6256 as_ln_s='cp -pR'
6258 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6259 rmdir conf$$.dir 2>/dev/null
6262 # as_fn_mkdir_p
6263 # -------------
6264 # Create "$as_dir" as a directory, including parents if necessary.
6265 as_fn_mkdir_p ()
6268 case $as_dir in #(
6269 -*) as_dir=./$as_dir;;
6270 esac
6271 test -d "$as_dir" || eval $as_mkdir_p || {
6272 as_dirs=
6273 while :; do
6274 case $as_dir in #(
6275 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6276 *) as_qdir=$as_dir;;
6277 esac
6278 as_dirs="'$as_qdir' $as_dirs"
6279 as_dir=`$as_dirname -- "$as_dir" ||
6280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6281 X"$as_dir" : 'X\(//\)[^/]' \| \
6282 X"$as_dir" : 'X\(//\)$' \| \
6283 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6284 $as_echo X"$as_dir" |
6285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6286 s//\1/
6289 /^X\(\/\/\)[^/].*/{
6290 s//\1/
6293 /^X\(\/\/\)$/{
6294 s//\1/
6297 /^X\(\/\).*/{
6298 s//\1/
6301 s/.*/./; q'`
6302 test -d "$as_dir" && break
6303 done
6304 test -z "$as_dirs" || eval "mkdir $as_dirs"
6305 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6308 } # as_fn_mkdir_p
6309 if mkdir -p . 2>/dev/null; then
6310 as_mkdir_p='mkdir -p "$as_dir"'
6311 else
6312 test -d ./-p && rmdir ./-p
6313 as_mkdir_p=false
6317 # as_fn_executable_p FILE
6318 # -----------------------
6319 # Test if FILE is an executable regular file.
6320 as_fn_executable_p ()
6322 test -f "$1" && test -x "$1"
6323 } # as_fn_executable_p
6324 as_test_x='test -x'
6325 as_executable_p=as_fn_executable_p
6327 # Sed expression to map a string onto a valid CPP name.
6328 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6330 # Sed expression to map a string onto a valid variable name.
6331 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6334 exec 6>&1
6335 ## ----------------------------------- ##
6336 ## Main body of $CONFIG_STATUS script. ##
6337 ## ----------------------------------- ##
6338 _ASEOF
6339 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6342 # Save the log message, to keep $0 and so on meaningful, and to
6343 # report actual input values of CONFIG_FILES etc. instead of their
6344 # values after options handling.
6345 ac_log="
6346 This file was extended by qbittorrent $as_me v4.3.0alpha, which was
6347 generated by GNU Autoconf 2.69. Invocation command line was
6349 CONFIG_FILES = $CONFIG_FILES
6350 CONFIG_HEADERS = $CONFIG_HEADERS
6351 CONFIG_LINKS = $CONFIG_LINKS
6352 CONFIG_COMMANDS = $CONFIG_COMMANDS
6353 $ $0 $@
6355 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6358 _ACEOF
6360 case $ac_config_files in *"
6361 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6362 esac
6366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6367 # Files that config.status was made for.
6368 config_files="$ac_config_files"
6369 config_commands="$ac_config_commands"
6371 _ACEOF
6373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6374 ac_cs_usage="\
6375 \`$as_me' instantiates files and other configuration actions
6376 from templates according to the current configuration. Unless the files
6377 and actions are specified as TAGs, all are instantiated by default.
6379 Usage: $0 [OPTION]... [TAG]...
6381 -h, --help print this help, then exit
6382 -V, --version print version number and configuration settings, then exit
6383 --config print configuration, then exit
6384 -q, --quiet, --silent
6385 do not print progress messages
6386 -d, --debug don't remove temporary files
6387 --recheck update $as_me by reconfiguring in the same conditions
6388 --file=FILE[:TEMPLATE]
6389 instantiate the configuration file FILE
6391 Configuration files:
6392 $config_files
6394 Configuration commands:
6395 $config_commands
6397 Report bugs to <bugs.qbittorrent.org>.
6398 qbittorrent home page: <https://www.qbittorrent.org/>."
6400 _ACEOF
6401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6402 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6403 ac_cs_version="\\
6404 qbittorrent config.status v4.3.0alpha
6405 configured by $0, generated by GNU Autoconf 2.69,
6406 with options \\"\$ac_cs_config\\"
6408 Copyright (C) 2012 Free Software Foundation, Inc.
6409 This config.status script is free software; the Free Software Foundation
6410 gives unlimited permission to copy, distribute and modify it."
6412 ac_pwd='$ac_pwd'
6413 srcdir='$srcdir'
6414 INSTALL='$INSTALL'
6415 MKDIR_P='$MKDIR_P'
6416 AWK='$AWK'
6417 test -n "\$AWK" || AWK=awk
6418 _ACEOF
6420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6421 # The default lists apply if the user does not specify any file.
6422 ac_need_defaults=:
6423 while test $# != 0
6425 case $1 in
6426 --*=?*)
6427 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6428 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6429 ac_shift=:
6431 --*=)
6432 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6433 ac_optarg=
6434 ac_shift=:
6437 ac_option=$1
6438 ac_optarg=$2
6439 ac_shift=shift
6441 esac
6443 case $ac_option in
6444 # Handling of the options.
6445 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6446 ac_cs_recheck=: ;;
6447 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6448 $as_echo "$ac_cs_version"; exit ;;
6449 --config | --confi | --conf | --con | --co | --c )
6450 $as_echo "$ac_cs_config"; exit ;;
6451 --debug | --debu | --deb | --de | --d | -d )
6452 debug=: ;;
6453 --file | --fil | --fi | --f )
6454 $ac_shift
6455 case $ac_optarg in
6456 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6457 '') as_fn_error $? "missing file argument" ;;
6458 esac
6459 as_fn_append CONFIG_FILES " '$ac_optarg'"
6460 ac_need_defaults=false;;
6461 --he | --h | --help | --hel | -h )
6462 $as_echo "$ac_cs_usage"; exit ;;
6463 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6464 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6465 ac_cs_silent=: ;;
6467 # This is an error.
6468 -*) as_fn_error $? "unrecognized option: \`$1'
6469 Try \`$0 --help' for more information." ;;
6471 *) as_fn_append ac_config_targets " $1"
6472 ac_need_defaults=false ;;
6474 esac
6475 shift
6476 done
6478 ac_configure_extra_args=
6480 if $ac_cs_silent; then
6481 exec 6>/dev/null
6482 ac_configure_extra_args="$ac_configure_extra_args --silent"
6485 _ACEOF
6486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6487 if \$ac_cs_recheck; then
6488 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6489 shift
6490 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6491 CONFIG_SHELL='$SHELL'
6492 export CONFIG_SHELL
6493 exec "\$@"
6496 _ACEOF
6497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6498 exec 5>>config.log
6500 echo
6501 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6502 ## Running $as_me. ##
6503 _ASBOX
6504 $as_echo "$ac_log"
6505 } >&5
6507 _ACEOF
6508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6510 # INIT-COMMANDS
6512 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
6514 _ACEOF
6516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6518 # Handling of arguments.
6519 for ac_config_target in $ac_config_targets
6521 case $ac_config_target in
6522 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6523 "conf.pri") CONFIG_FILES="$CONFIG_FILES conf.pri" ;;
6525 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6526 esac
6527 done
6530 # If the user did not use the arguments to specify the items to instantiate,
6531 # then the envvar interface is used. Set only those that are not.
6532 # We use the long form for the default assignment because of an extremely
6533 # bizarre bug on SunOS 4.1.3.
6534 if $ac_need_defaults; then
6535 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6536 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6539 # Have a temporary directory for convenience. Make it in the build tree
6540 # simply because there is no reason against having it here, and in addition,
6541 # creating and moving files from /tmp can sometimes cause problems.
6542 # Hook for its removal unless debugging.
6543 # Note that there is a small window in which the directory will not be cleaned:
6544 # after its creation but before its name has been assigned to `$tmp'.
6545 $debug ||
6547 tmp= ac_tmp=
6548 trap 'exit_status=$?
6549 : "${ac_tmp:=$tmp}"
6550 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6552 trap 'as_fn_exit 1' 1 2 13 15
6554 # Create a (secure) tmp directory for tmp files.
6557 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6558 test -d "$tmp"
6559 } ||
6561 tmp=./conf$$-$RANDOM
6562 (umask 077 && mkdir "$tmp")
6563 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6564 ac_tmp=$tmp
6566 # Set up the scripts for CONFIG_FILES section.
6567 # No need to generate them if there are no CONFIG_FILES.
6568 # This happens for instance with `./config.status config.h'.
6569 if test -n "$CONFIG_FILES"; then
6572 ac_cr=`echo X | tr X '\015'`
6573 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6574 # But we know of no other shell where ac_cr would be empty at this
6575 # point, so we can use a bashism as a fallback.
6576 if test "x$ac_cr" = x; then
6577 eval ac_cr=\$\'\\r\'
6579 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6580 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6581 ac_cs_awk_cr='\\r'
6582 else
6583 ac_cs_awk_cr=$ac_cr
6586 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6587 _ACEOF
6591 echo "cat >conf$$subs.awk <<_ACEOF" &&
6592 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6593 echo "_ACEOF"
6594 } >conf$$subs.sh ||
6595 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6596 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6597 ac_delim='%!_!# '
6598 for ac_last_try in false false false false false :; do
6599 . ./conf$$subs.sh ||
6600 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6602 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6603 if test $ac_delim_n = $ac_delim_num; then
6604 break
6605 elif $ac_last_try; then
6606 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6607 else
6608 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6610 done
6611 rm -f conf$$subs.sh
6613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6614 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6615 _ACEOF
6616 sed -n '
6618 s/^/S["/; s/!.*/"]=/
6621 s/^[^!]*!//
6622 :repl
6623 t repl
6624 s/'"$ac_delim"'$//
6625 t delim
6628 s/\(.\{148\}\)..*/\1/
6629 t more1
6630 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6633 b repl
6634 :more1
6635 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6638 s/.\{148\}//
6639 t nl
6640 :delim
6642 s/\(.\{148\}\)..*/\1/
6643 t more2
6644 s/["\\]/\\&/g; s/^/"/; s/$/"/
6647 :more2
6648 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6651 s/.\{148\}//
6652 t delim
6653 ' <conf$$subs.awk | sed '
6654 /^[^""]/{
6656 s/\n//
6658 ' >>$CONFIG_STATUS || ac_write_fail=1
6659 rm -f conf$$subs.awk
6660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6661 _ACAWK
6662 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6663 for (key in S) S_is_set[key] = 1
6664 FS = "\a"
6668 line = $ 0
6669 nfields = split(line, field, "@")
6670 substed = 0
6671 len = length(field[1])
6672 for (i = 2; i < nfields; i++) {
6673 key = field[i]
6674 keylen = length(key)
6675 if (S_is_set[key]) {
6676 value = S[key]
6677 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6678 len += length(value) + length(field[++i])
6679 substed = 1
6680 } else
6681 len += 1 + keylen
6684 print line
6687 _ACAWK
6688 _ACEOF
6689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6690 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6691 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6692 else
6694 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6695 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6696 _ACEOF
6698 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6699 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6700 # trailing colons and then remove the whole line if VPATH becomes empty
6701 # (actually we leave an empty line to preserve line numbers).
6702 if test "x$srcdir" = x.; then
6703 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6705 s///
6706 s/^/:/
6707 s/[ ]*$/:/
6708 s/:\$(srcdir):/:/g
6709 s/:\${srcdir}:/:/g
6710 s/:@srcdir@:/:/g
6711 s/^:*//
6712 s/:*$//
6714 s/\(=[ ]*\).*/\1/
6716 s/\n//
6717 s/^[^=]*=[ ]*$//
6721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6722 fi # test -n "$CONFIG_FILES"
6725 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
6726 shift
6727 for ac_tag
6729 case $ac_tag in
6730 :[FHLC]) ac_mode=$ac_tag; continue;;
6731 esac
6732 case $ac_mode$ac_tag in
6733 :[FHL]*:*);;
6734 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6735 :[FH]-) ac_tag=-:-;;
6736 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6737 esac
6738 ac_save_IFS=$IFS
6739 IFS=:
6740 set x $ac_tag
6741 IFS=$ac_save_IFS
6742 shift
6743 ac_file=$1
6744 shift
6746 case $ac_mode in
6747 :L) ac_source=$1;;
6748 :[FH])
6749 ac_file_inputs=
6750 for ac_f
6752 case $ac_f in
6753 -) ac_f="$ac_tmp/stdin";;
6754 *) # Look for the file first in the build tree, then in the source tree
6755 # (if the path is not absolute). The absolute path cannot be DOS-style,
6756 # because $ac_f cannot contain `:'.
6757 test -f "$ac_f" ||
6758 case $ac_f in
6759 [\\/$]*) false;;
6760 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6761 esac ||
6762 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6763 esac
6764 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6765 as_fn_append ac_file_inputs " '$ac_f'"
6766 done
6768 # Let's still pretend it is `configure' which instantiates (i.e., don't
6769 # use $as_me), people would be surprised to read:
6770 # /* config.h. Generated by config.status. */
6771 configure_input='Generated from '`
6772 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6773 `' by configure.'
6774 if test x"$ac_file" != x-; then
6775 configure_input="$ac_file. $configure_input"
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6777 $as_echo "$as_me: creating $ac_file" >&6;}
6779 # Neutralize special characters interpreted by sed in replacement strings.
6780 case $configure_input in #(
6781 *\&* | *\|* | *\\* )
6782 ac_sed_conf_input=`$as_echo "$configure_input" |
6783 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6784 *) ac_sed_conf_input=$configure_input;;
6785 esac
6787 case $ac_tag in
6788 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6789 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6790 esac
6792 esac
6794 ac_dir=`$as_dirname -- "$ac_file" ||
6795 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6796 X"$ac_file" : 'X\(//\)[^/]' \| \
6797 X"$ac_file" : 'X\(//\)$' \| \
6798 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6799 $as_echo X"$ac_file" |
6800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6801 s//\1/
6804 /^X\(\/\/\)[^/].*/{
6805 s//\1/
6808 /^X\(\/\/\)$/{
6809 s//\1/
6812 /^X\(\/\).*/{
6813 s//\1/
6816 s/.*/./; q'`
6817 as_dir="$ac_dir"; as_fn_mkdir_p
6818 ac_builddir=.
6820 case "$ac_dir" in
6821 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6823 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6824 # A ".." for each directory in $ac_dir_suffix.
6825 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6826 case $ac_top_builddir_sub in
6827 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6828 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6829 esac ;;
6830 esac
6831 ac_abs_top_builddir=$ac_pwd
6832 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6833 # for backward compatibility:
6834 ac_top_builddir=$ac_top_build_prefix
6836 case $srcdir in
6837 .) # We are building in place.
6838 ac_srcdir=.
6839 ac_top_srcdir=$ac_top_builddir_sub
6840 ac_abs_top_srcdir=$ac_pwd ;;
6841 [\\/]* | ?:[\\/]* ) # Absolute name.
6842 ac_srcdir=$srcdir$ac_dir_suffix;
6843 ac_top_srcdir=$srcdir
6844 ac_abs_top_srcdir=$srcdir ;;
6845 *) # Relative name.
6846 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6847 ac_top_srcdir=$ac_top_build_prefix$srcdir
6848 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6849 esac
6850 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6853 case $ac_mode in
6856 # CONFIG_FILE
6859 case $INSTALL in
6860 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6861 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6862 esac
6863 ac_MKDIR_P=$MKDIR_P
6864 case $MKDIR_P in
6865 [\\/$]* | ?:[\\/]* ) ;;
6866 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6867 esac
6868 _ACEOF
6870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6871 # If the template does not know about datarootdir, expand it.
6872 # FIXME: This hack should be removed a few years after 2.60.
6873 ac_datarootdir_hack=; ac_datarootdir_seen=
6874 ac_sed_dataroot='
6875 /datarootdir/ {
6879 /@datadir@/p
6880 /@docdir@/p
6881 /@infodir@/p
6882 /@localedir@/p
6883 /@mandir@/p'
6884 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6885 *datarootdir*) ac_datarootdir_seen=yes;;
6886 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6888 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6889 _ACEOF
6890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6891 ac_datarootdir_hack='
6892 s&@datadir@&$datadir&g
6893 s&@docdir@&$docdir&g
6894 s&@infodir@&$infodir&g
6895 s&@localedir@&$localedir&g
6896 s&@mandir@&$mandir&g
6897 s&\\\${datarootdir}&$datarootdir&g' ;;
6898 esac
6899 _ACEOF
6901 # Neutralize VPATH when `$srcdir' = `.'.
6902 # Shell code in configure.ac might set extrasub.
6903 # FIXME: do we really want to maintain this feature?
6904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6905 ac_sed_extra="$ac_vpsub
6906 $extrasub
6907 _ACEOF
6908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6910 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6911 s|@configure_input@|$ac_sed_conf_input|;t t
6912 s&@top_builddir@&$ac_top_builddir_sub&;t t
6913 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6914 s&@srcdir@&$ac_srcdir&;t t
6915 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6916 s&@top_srcdir@&$ac_top_srcdir&;t t
6917 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6918 s&@builddir@&$ac_builddir&;t t
6919 s&@abs_builddir@&$ac_abs_builddir&;t t
6920 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6921 s&@INSTALL@&$ac_INSTALL&;t t
6922 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6923 $ac_datarootdir_hack
6925 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6926 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6928 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6929 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6930 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6931 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6933 which seems to be undefined. Please make sure it is defined" >&5
6934 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6935 which seems to be undefined. Please make sure it is defined" >&2;}
6937 rm -f "$ac_tmp/stdin"
6938 case $ac_file in
6939 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6940 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6941 esac \
6942 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6946 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6947 $as_echo "$as_me: executing $ac_file commands" >&6;}
6949 esac
6952 case $ac_file$ac_mode in
6953 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6954 # Older Autoconf quotes --file arguments for eval, but not when files
6955 # are listed without --file. Let's play safe and only enable the eval
6956 # if we detect the quoting.
6957 # TODO: see whether this extra hack can be removed once we start
6958 # requiring Autoconf 2.70 or later.
6959 case $CONFIG_FILES in #(
6960 *\'*) :
6961 eval set x "$CONFIG_FILES" ;; #(
6962 *) :
6963 set x $CONFIG_FILES ;; #(
6964 *) :
6966 esac
6967 shift
6968 # Used to flag and report bootstrapping failures.
6969 am_rc=0
6970 for am_mf
6972 # Strip MF so we end up with the name of the file.
6973 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
6974 # Check whether this is an Automake generated Makefile which includes
6975 # dependency-tracking related rules and includes.
6976 # Grep'ing the whole file directly is not great: AIX grep has a line
6977 # limit of 2048, but all sed's we know have understand at least 4000.
6978 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
6979 || continue
6980 am_dirpart=`$as_dirname -- "$am_mf" ||
6981 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6982 X"$am_mf" : 'X\(//\)[^/]' \| \
6983 X"$am_mf" : 'X\(//\)$' \| \
6984 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
6985 $as_echo X"$am_mf" |
6986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6987 s//\1/
6990 /^X\(\/\/\)[^/].*/{
6991 s//\1/
6994 /^X\(\/\/\)$/{
6995 s//\1/
6998 /^X\(\/\).*/{
6999 s//\1/
7002 s/.*/./; q'`
7003 am_filepart=`$as_basename -- "$am_mf" ||
7004 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
7005 X"$am_mf" : 'X\(//\)$' \| \
7006 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7007 $as_echo X/"$am_mf" |
7008 sed '/^.*\/\([^/][^/]*\)\/*$/{
7009 s//\1/
7012 /^X\/\(\/\/\)$/{
7013 s//\1/
7016 /^X\/\(\/\).*/{
7017 s//\1/
7020 s/.*/./; q'`
7021 { echo "$as_me:$LINENO: cd "$am_dirpart" \
7022 && sed -e '/# am--include-marker/d' "$am_filepart" \
7023 | $MAKE -f - am--depfiles" >&5
7024 (cd "$am_dirpart" \
7025 && sed -e '/# am--include-marker/d' "$am_filepart" \
7026 | $MAKE -f - am--depfiles) >&5 2>&5
7027 ac_status=$?
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } || am_rc=$?
7030 done
7031 if test $am_rc -ne 0; then
7032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7034 as_fn_error $? "Something went wrong bootstrapping makefile fragments
7035 for automatic dependency tracking. Try re-running configure with the
7036 '--disable-dependency-tracking' option to at least be able to build
7037 the package (albeit without support for automatic dependency tracking).
7038 See \`config.log' for more details" "$LINENO" 5; }
7040 { am_dirpart=; unset am_dirpart;}
7041 { am_filepart=; unset am_filepart;}
7042 { am_mf=; unset am_mf;}
7043 { am_rc=; unset am_rc;}
7044 rm -f conftest-deps.mk
7048 esac
7049 done # for ac_tag
7052 as_fn_exit 0
7053 _ACEOF
7054 ac_clean_files=$ac_clean_files_save
7056 test $ac_write_fail = 0 ||
7057 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7060 # configure is writing to config.log, and then calls config.status.
7061 # config.status does its own redirection, appending to config.log.
7062 # Unfortunately, on DOS this fails, as config.log is still kept open
7063 # by configure, so config.status won't be able to write to it; its
7064 # output is simply discarded. So we exec the FD to /dev/null,
7065 # effectively closing config.log, so it can be properly (re)opened and
7066 # appended to by config.status. When coming back to configure, we
7067 # need to make the FD available again.
7068 if test "$no_create" != yes; then
7069 ac_cs_success=:
7070 ac_config_status_args=
7071 test "$silent" = yes &&
7072 ac_config_status_args="$ac_config_status_args --quiet"
7073 exec 5>/dev/null
7074 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7075 exec 5>>config.log
7076 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7077 # would make configure fail if this is the last instruction.
7078 $ac_cs_success || as_fn_exit 1
7080 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7082 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7085 if test "x$enable_systemd" = "xyes"; then :
7086 ac_config_files="$ac_config_files dist/unix/systemd/qbittorrent-nox@.service"
7088 cat >confcache <<\_ACEOF
7089 # This file is a shell script that caches the results of configure
7090 # tests run on this system so they can be shared between configure
7091 # scripts and configure runs, see configure's option --config-cache.
7092 # It is not useful on other systems. If it contains results you don't
7093 # want to keep, you may remove or edit it.
7095 # config.status only pays attention to the cache file if you give it
7096 # the --recheck option to rerun configure.
7098 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7099 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7100 # following values.
7102 _ACEOF
7104 # The following way of writing the cache mishandles newlines in values,
7105 # but we know of no workaround that is simple, portable, and efficient.
7106 # So, we kill variables containing newlines.
7107 # Ultrix sh set writes to stderr and can't be redirected directly,
7108 # and sets the high bit in the cache file unless we assign to the vars.
7110 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7111 eval ac_val=\$$ac_var
7112 case $ac_val in #(
7113 *${as_nl}*)
7114 case $ac_var in #(
7115 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7116 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7117 esac
7118 case $ac_var in #(
7119 _ | IFS | as_nl) ;; #(
7120 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7121 *) { eval $ac_var=; unset $ac_var;} ;;
7122 esac ;;
7123 esac
7124 done
7126 (set) 2>&1 |
7127 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7128 *${as_nl}ac_space=\ *)
7129 # `set' does not quote correctly, so add quotes: double-quote
7130 # substitution turns \\\\ into \\, and sed turns \\ into \.
7131 sed -n \
7132 "s/'/'\\\\''/g;
7133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7134 ;; #(
7136 # `set' quotes correctly as required by POSIX, so do not add quotes.
7137 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7139 esac |
7140 sort
7142 sed '
7143 /^ac_cv_env_/b end
7144 t clear
7145 :clear
7146 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7147 t end
7148 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7149 :end' >>confcache
7150 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7151 if test -w "$cache_file"; then
7152 if test "x$cache_file" != "x/dev/null"; then
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7154 $as_echo "$as_me: updating cache $cache_file" >&6;}
7155 if test ! -f "$cache_file" || test -h "$cache_file"; then
7156 cat confcache >"$cache_file"
7157 else
7158 case $cache_file in #(
7159 */* | ?:*)
7160 mv -f confcache "$cache_file"$$ &&
7161 mv -f "$cache_file"$$ "$cache_file" ;; #(
7163 mv -f confcache "$cache_file" ;;
7164 esac
7167 else
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7169 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7172 rm -f confcache
7174 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7175 # Let make expand exec_prefix.
7176 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7178 # Transform confdefs.h into DEFS.
7179 # Protect against shell expansion while executing Makefile rules.
7180 # Protect against Makefile macro expansion.
7182 # If the first sed substitution is executed (which looks for macros that
7183 # take arguments), then branch to the quote section. Otherwise,
7184 # look for a macro that doesn't take arguments.
7185 ac_script='
7186 :mline
7187 /\\$/{
7189 s,\\\n,,
7190 b mline
7192 t clear
7193 :clear
7194 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7195 t quote
7196 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7197 t quote
7198 b any
7199 :quote
7200 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7201 s/\[/\\&/g
7202 s/\]/\\&/g
7203 s/\$/$$/g
7205 :any
7208 s/^\n//
7209 s/\n/ /g
7213 DEFS=`sed -n "$ac_script" confdefs.h`
7216 ac_libobjs=
7217 ac_ltlibobjs=
7219 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7220 # 1. Remove the extension, and $U if already installed.
7221 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7222 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7223 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7224 # will be set to the directory where LIBOBJS objects are built.
7225 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7226 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7227 done
7228 LIBOBJS=$ac_libobjs
7230 LTLIBOBJS=$ac_ltlibobjs
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7234 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7235 if test -n "$am_sleep_pid"; then
7236 # Hide warnings about reused PIDs.
7237 wait $am_sleep_pid 2>/dev/null
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7240 $as_echo "done" >&6; }
7241 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7242 as_fn_error $? "conditional \"AMDEP\" was never defined.
7243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7245 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7246 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7247 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7249 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7250 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
7251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7253 if test -n "$EXEEXT"; then
7254 am__EXEEXT_TRUE=
7255 am__EXEEXT_FALSE='#'
7256 else
7257 am__EXEEXT_TRUE='#'
7258 am__EXEEXT_FALSE=
7261 if test -z "${am__EXEEXT_TRUE}" && test -z "${am__EXEEXT_FALSE}"; then
7262 as_fn_error $? "conditional \"am__EXEEXT\" was never defined.
7263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7266 : "${CONFIG_STATUS=./config.status}"
7267 ac_write_fail=0
7268 ac_clean_files_save=$ac_clean_files
7269 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7271 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7272 as_write_fail=0
7273 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7274 #! $SHELL
7275 # Generated by $as_me.
7276 # Run this file to recreate the current configuration.
7277 # Compiler output produced by configure, useful for debugging
7278 # configure, is in config.log if it exists.
7280 debug=false
7281 ac_cs_recheck=false
7282 ac_cs_silent=false
7284 SHELL=\${CONFIG_SHELL-$SHELL}
7285 export SHELL
7286 _ASEOF
7287 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7288 ## -------------------- ##
7289 ## M4sh Initialization. ##
7290 ## -------------------- ##
7292 # Be more Bourne compatible
7293 DUALCASE=1; export DUALCASE # for MKS sh
7294 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7295 emulate sh
7296 NULLCMD=:
7297 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7298 # is contrary to our usage. Disable this feature.
7299 alias -g '${1+"$@"}'='"$@"'
7300 setopt NO_GLOB_SUBST
7301 else
7302 case `(set -o) 2>/dev/null` in #(
7303 *posix*) :
7304 set -o posix ;; #(
7305 *) :
7307 esac
7311 as_nl='
7313 export as_nl
7314 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7315 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7316 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7317 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7318 # Prefer a ksh shell builtin over an external printf program on Solaris,
7319 # but without wasting forks for bash or zsh.
7320 if test -z "$BASH_VERSION$ZSH_VERSION" \
7321 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7322 as_echo='print -r --'
7323 as_echo_n='print -rn --'
7324 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7325 as_echo='printf %s\n'
7326 as_echo_n='printf %s'
7327 else
7328 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7329 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7330 as_echo_n='/usr/ucb/echo -n'
7331 else
7332 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7333 as_echo_n_body='eval
7334 arg=$1;
7335 case $arg in #(
7336 *"$as_nl"*)
7337 expr "X$arg" : "X\\(.*\\)$as_nl";
7338 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7339 esac;
7340 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7342 export as_echo_n_body
7343 as_echo_n='sh -c $as_echo_n_body as_echo'
7345 export as_echo_body
7346 as_echo='sh -c $as_echo_body as_echo'
7349 # The user is always right.
7350 if test "${PATH_SEPARATOR+set}" != set; then
7351 PATH_SEPARATOR=:
7352 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7353 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7354 PATH_SEPARATOR=';'
7359 # IFS
7360 # We need space, tab and new line, in precisely that order. Quoting is
7361 # there to prevent editors from complaining about space-tab.
7362 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7363 # splitting by setting IFS to empty value.)
7364 IFS=" "" $as_nl"
7366 # Find who we are. Look in the path if we contain no directory separator.
7367 as_myself=
7368 case $0 in #((
7369 *[\\/]* ) as_myself=$0 ;;
7370 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7376 done
7377 IFS=$as_save_IFS
7380 esac
7381 # We did not find ourselves, most probably we were run as `sh COMMAND'
7382 # in which case we are not to be found in the path.
7383 if test "x$as_myself" = x; then
7384 as_myself=$0
7386 if test ! -f "$as_myself"; then
7387 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7388 exit 1
7391 # Unset variables that we do not need and which cause bugs (e.g. in
7392 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7393 # suppresses any "Segmentation fault" message there. '((' could
7394 # trigger a bug in pdksh 5.2.14.
7395 for as_var in BASH_ENV ENV MAIL MAILPATH
7396 do eval test x\${$as_var+set} = xset \
7397 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7398 done
7399 PS1='$ '
7400 PS2='> '
7401 PS4='+ '
7403 # NLS nuisances.
7404 LC_ALL=C
7405 export LC_ALL
7406 LANGUAGE=C
7407 export LANGUAGE
7409 # CDPATH.
7410 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7414 # ----------------------------------------
7415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7417 # script with STATUS, using 1 if that was 0.
7418 as_fn_error ()
7420 as_status=$1; test $as_status -eq 0 && as_status=1
7421 if test "$4"; then
7422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7425 $as_echo "$as_me: error: $2" >&2
7426 as_fn_exit $as_status
7427 } # as_fn_error
7430 # as_fn_set_status STATUS
7431 # -----------------------
7432 # Set $? to STATUS, without forking.
7433 as_fn_set_status ()
7435 return $1
7436 } # as_fn_set_status
7438 # as_fn_exit STATUS
7439 # -----------------
7440 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7441 as_fn_exit ()
7443 set +e
7444 as_fn_set_status $1
7445 exit $1
7446 } # as_fn_exit
7448 # as_fn_unset VAR
7449 # ---------------
7450 # Portably unset VAR.
7451 as_fn_unset ()
7453 { eval $1=; unset $1;}
7455 as_unset=as_fn_unset
7456 # as_fn_append VAR VALUE
7457 # ----------------------
7458 # Append the text in VALUE to the end of the definition contained in VAR. Take
7459 # advantage of any shell optimizations that allow amortized linear growth over
7460 # repeated appends, instead of the typical quadratic growth present in naive
7461 # implementations.
7462 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7463 eval 'as_fn_append ()
7465 eval $1+=\$2
7467 else
7468 as_fn_append ()
7470 eval $1=\$$1\$2
7472 fi # as_fn_append
7474 # as_fn_arith ARG...
7475 # ------------------
7476 # Perform arithmetic evaluation on the ARGs, and store the result in the
7477 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7478 # must be portable across $(()) and expr.
7479 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7480 eval 'as_fn_arith ()
7482 as_val=$(( $* ))
7484 else
7485 as_fn_arith ()
7487 as_val=`expr "$@" || test $? -eq 1`
7489 fi # as_fn_arith
7492 if expr a : '\(a\)' >/dev/null 2>&1 &&
7493 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7494 as_expr=expr
7495 else
7496 as_expr=false
7499 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7500 as_basename=basename
7501 else
7502 as_basename=false
7505 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7506 as_dirname=dirname
7507 else
7508 as_dirname=false
7511 as_me=`$as_basename -- "$0" ||
7512 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7513 X"$0" : 'X\(//\)$' \| \
7514 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7515 $as_echo X/"$0" |
7516 sed '/^.*\/\([^/][^/]*\)\/*$/{
7517 s//\1/
7520 /^X\/\(\/\/\)$/{
7521 s//\1/
7524 /^X\/\(\/\).*/{
7525 s//\1/
7528 s/.*/./; q'`
7530 # Avoid depending upon Character Ranges.
7531 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7532 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7533 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7534 as_cr_digits='0123456789'
7535 as_cr_alnum=$as_cr_Letters$as_cr_digits
7537 ECHO_C= ECHO_N= ECHO_T=
7538 case `echo -n x` in #(((((
7539 -n*)
7540 case `echo 'xy\c'` in
7541 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7542 xy) ECHO_C='\c';;
7543 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7544 ECHO_T=' ';;
7545 esac;;
7547 ECHO_N='-n';;
7548 esac
7550 rm -f conf$$ conf$$.exe conf$$.file
7551 if test -d conf$$.dir; then
7552 rm -f conf$$.dir/conf$$.file
7553 else
7554 rm -f conf$$.dir
7555 mkdir conf$$.dir 2>/dev/null
7557 if (echo >conf$$.file) 2>/dev/null; then
7558 if ln -s conf$$.file conf$$ 2>/dev/null; then
7559 as_ln_s='ln -s'
7560 # ... but there are two gotchas:
7561 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7562 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7563 # In both cases, we have to default to `cp -pR'.
7564 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7565 as_ln_s='cp -pR'
7566 elif ln conf$$.file conf$$ 2>/dev/null; then
7567 as_ln_s=ln
7568 else
7569 as_ln_s='cp -pR'
7571 else
7572 as_ln_s='cp -pR'
7574 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7575 rmdir conf$$.dir 2>/dev/null
7578 # as_fn_mkdir_p
7579 # -------------
7580 # Create "$as_dir" as a directory, including parents if necessary.
7581 as_fn_mkdir_p ()
7584 case $as_dir in #(
7585 -*) as_dir=./$as_dir;;
7586 esac
7587 test -d "$as_dir" || eval $as_mkdir_p || {
7588 as_dirs=
7589 while :; do
7590 case $as_dir in #(
7591 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7592 *) as_qdir=$as_dir;;
7593 esac
7594 as_dirs="'$as_qdir' $as_dirs"
7595 as_dir=`$as_dirname -- "$as_dir" ||
7596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7597 X"$as_dir" : 'X\(//\)[^/]' \| \
7598 X"$as_dir" : 'X\(//\)$' \| \
7599 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7600 $as_echo X"$as_dir" |
7601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7602 s//\1/
7605 /^X\(\/\/\)[^/].*/{
7606 s//\1/
7609 /^X\(\/\/\)$/{
7610 s//\1/
7613 /^X\(\/\).*/{
7614 s//\1/
7617 s/.*/./; q'`
7618 test -d "$as_dir" && break
7619 done
7620 test -z "$as_dirs" || eval "mkdir $as_dirs"
7621 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7624 } # as_fn_mkdir_p
7625 if mkdir -p . 2>/dev/null; then
7626 as_mkdir_p='mkdir -p "$as_dir"'
7627 else
7628 test -d ./-p && rmdir ./-p
7629 as_mkdir_p=false
7633 # as_fn_executable_p FILE
7634 # -----------------------
7635 # Test if FILE is an executable regular file.
7636 as_fn_executable_p ()
7638 test -f "$1" && test -x "$1"
7639 } # as_fn_executable_p
7640 as_test_x='test -x'
7641 as_executable_p=as_fn_executable_p
7643 # Sed expression to map a string onto a valid CPP name.
7644 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7646 # Sed expression to map a string onto a valid variable name.
7647 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7650 exec 6>&1
7651 ## ----------------------------------- ##
7652 ## Main body of $CONFIG_STATUS script. ##
7653 ## ----------------------------------- ##
7654 _ASEOF
7655 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7658 # Save the log message, to keep $0 and so on meaningful, and to
7659 # report actual input values of CONFIG_FILES etc. instead of their
7660 # values after options handling.
7661 ac_log="
7662 This file was extended by qbittorrent $as_me v4.3.0alpha, which was
7663 generated by GNU Autoconf 2.69. Invocation command line was
7665 CONFIG_FILES = $CONFIG_FILES
7666 CONFIG_HEADERS = $CONFIG_HEADERS
7667 CONFIG_LINKS = $CONFIG_LINKS
7668 CONFIG_COMMANDS = $CONFIG_COMMANDS
7669 $ $0 $@
7671 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7674 _ACEOF
7676 case $ac_config_files in *"
7677 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7678 esac
7682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7683 # Files that config.status was made for.
7684 config_files="$ac_config_files"
7685 config_commands="$ac_config_commands"
7687 _ACEOF
7689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7690 ac_cs_usage="\
7691 \`$as_me' instantiates files and other configuration actions
7692 from templates according to the current configuration. Unless the files
7693 and actions are specified as TAGs, all are instantiated by default.
7695 Usage: $0 [OPTION]... [TAG]...
7697 -h, --help print this help, then exit
7698 -V, --version print version number and configuration settings, then exit
7699 --config print configuration, then exit
7700 -q, --quiet, --silent
7701 do not print progress messages
7702 -d, --debug don't remove temporary files
7703 --recheck update $as_me by reconfiguring in the same conditions
7704 --file=FILE[:TEMPLATE]
7705 instantiate the configuration file FILE
7707 Configuration files:
7708 $config_files
7710 Configuration commands:
7711 $config_commands
7713 Report bugs to <bugs.qbittorrent.org>.
7714 qbittorrent home page: <https://www.qbittorrent.org/>."
7716 _ACEOF
7717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7718 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7719 ac_cs_version="\\
7720 qbittorrent config.status v4.3.0alpha
7721 configured by $0, generated by GNU Autoconf 2.69,
7722 with options \\"\$ac_cs_config\\"
7724 Copyright (C) 2012 Free Software Foundation, Inc.
7725 This config.status script is free software; the Free Software Foundation
7726 gives unlimited permission to copy, distribute and modify it."
7728 ac_pwd='$ac_pwd'
7729 srcdir='$srcdir'
7730 INSTALL='$INSTALL'
7731 MKDIR_P='$MKDIR_P'
7732 AWK='$AWK'
7733 test -n "\$AWK" || AWK=awk
7734 _ACEOF
7736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7737 # The default lists apply if the user does not specify any file.
7738 ac_need_defaults=:
7739 while test $# != 0
7741 case $1 in
7742 --*=?*)
7743 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7744 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7745 ac_shift=:
7747 --*=)
7748 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7749 ac_optarg=
7750 ac_shift=:
7753 ac_option=$1
7754 ac_optarg=$2
7755 ac_shift=shift
7757 esac
7759 case $ac_option in
7760 # Handling of the options.
7761 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7762 ac_cs_recheck=: ;;
7763 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7764 $as_echo "$ac_cs_version"; exit ;;
7765 --config | --confi | --conf | --con | --co | --c )
7766 $as_echo "$ac_cs_config"; exit ;;
7767 --debug | --debu | --deb | --de | --d | -d )
7768 debug=: ;;
7769 --file | --fil | --fi | --f )
7770 $ac_shift
7771 case $ac_optarg in
7772 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7773 '') as_fn_error $? "missing file argument" ;;
7774 esac
7775 as_fn_append CONFIG_FILES " '$ac_optarg'"
7776 ac_need_defaults=false;;
7777 --he | --h | --help | --hel | -h )
7778 $as_echo "$ac_cs_usage"; exit ;;
7779 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7780 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7781 ac_cs_silent=: ;;
7783 # This is an error.
7784 -*) as_fn_error $? "unrecognized option: \`$1'
7785 Try \`$0 --help' for more information." ;;
7787 *) as_fn_append ac_config_targets " $1"
7788 ac_need_defaults=false ;;
7790 esac
7791 shift
7792 done
7794 ac_configure_extra_args=
7796 if $ac_cs_silent; then
7797 exec 6>/dev/null
7798 ac_configure_extra_args="$ac_configure_extra_args --silent"
7801 _ACEOF
7802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7803 if \$ac_cs_recheck; then
7804 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7805 shift
7806 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7807 CONFIG_SHELL='$SHELL'
7808 export CONFIG_SHELL
7809 exec "\$@"
7812 _ACEOF
7813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7814 exec 5>>config.log
7816 echo
7817 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7818 ## Running $as_me. ##
7819 _ASBOX
7820 $as_echo "$ac_log"
7821 } >&5
7823 _ACEOF
7824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7826 # INIT-COMMANDS
7828 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
7830 _ACEOF
7832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7834 # Handling of arguments.
7835 for ac_config_target in $ac_config_targets
7837 case $ac_config_target in
7838 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7839 "conf.pri") CONFIG_FILES="$CONFIG_FILES conf.pri" ;;
7840 "dist/unix/systemd/qbittorrent-nox@.service") CONFIG_FILES="$CONFIG_FILES dist/unix/systemd/qbittorrent-nox@.service" ;;
7842 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7843 esac
7844 done
7847 # If the user did not use the arguments to specify the items to instantiate,
7848 # then the envvar interface is used. Set only those that are not.
7849 # We use the long form for the default assignment because of an extremely
7850 # bizarre bug on SunOS 4.1.3.
7851 if $ac_need_defaults; then
7852 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7853 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7856 # Have a temporary directory for convenience. Make it in the build tree
7857 # simply because there is no reason against having it here, and in addition,
7858 # creating and moving files from /tmp can sometimes cause problems.
7859 # Hook for its removal unless debugging.
7860 # Note that there is a small window in which the directory will not be cleaned:
7861 # after its creation but before its name has been assigned to `$tmp'.
7862 $debug ||
7864 tmp= ac_tmp=
7865 trap 'exit_status=$?
7866 : "${ac_tmp:=$tmp}"
7867 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7869 trap 'as_fn_exit 1' 1 2 13 15
7871 # Create a (secure) tmp directory for tmp files.
7874 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7875 test -d "$tmp"
7876 } ||
7878 tmp=./conf$$-$RANDOM
7879 (umask 077 && mkdir "$tmp")
7880 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7881 ac_tmp=$tmp
7883 # Set up the scripts for CONFIG_FILES section.
7884 # No need to generate them if there are no CONFIG_FILES.
7885 # This happens for instance with `./config.status config.h'.
7886 if test -n "$CONFIG_FILES"; then
7889 ac_cr=`echo X | tr X '\015'`
7890 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7891 # But we know of no other shell where ac_cr would be empty at this
7892 # point, so we can use a bashism as a fallback.
7893 if test "x$ac_cr" = x; then
7894 eval ac_cr=\$\'\\r\'
7896 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7897 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7898 ac_cs_awk_cr='\\r'
7899 else
7900 ac_cs_awk_cr=$ac_cr
7903 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7904 _ACEOF
7908 echo "cat >conf$$subs.awk <<_ACEOF" &&
7909 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7910 echo "_ACEOF"
7911 } >conf$$subs.sh ||
7912 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7913 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7914 ac_delim='%!_!# '
7915 for ac_last_try in false false false false false :; do
7916 . ./conf$$subs.sh ||
7917 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7919 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7920 if test $ac_delim_n = $ac_delim_num; then
7921 break
7922 elif $ac_last_try; then
7923 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7924 else
7925 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7927 done
7928 rm -f conf$$subs.sh
7930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7931 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7932 _ACEOF
7933 sed -n '
7935 s/^/S["/; s/!.*/"]=/
7938 s/^[^!]*!//
7939 :repl
7940 t repl
7941 s/'"$ac_delim"'$//
7942 t delim
7945 s/\(.\{148\}\)..*/\1/
7946 t more1
7947 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7950 b repl
7951 :more1
7952 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7955 s/.\{148\}//
7956 t nl
7957 :delim
7959 s/\(.\{148\}\)..*/\1/
7960 t more2
7961 s/["\\]/\\&/g; s/^/"/; s/$/"/
7964 :more2
7965 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7968 s/.\{148\}//
7969 t delim
7970 ' <conf$$subs.awk | sed '
7971 /^[^""]/{
7973 s/\n//
7975 ' >>$CONFIG_STATUS || ac_write_fail=1
7976 rm -f conf$$subs.awk
7977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7978 _ACAWK
7979 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7980 for (key in S) S_is_set[key] = 1
7981 FS = "\a"
7985 line = $ 0
7986 nfields = split(line, field, "@")
7987 substed = 0
7988 len = length(field[1])
7989 for (i = 2; i < nfields; i++) {
7990 key = field[i]
7991 keylen = length(key)
7992 if (S_is_set[key]) {
7993 value = S[key]
7994 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7995 len += length(value) + length(field[++i])
7996 substed = 1
7997 } else
7998 len += 1 + keylen
8001 print line
8004 _ACAWK
8005 _ACEOF
8006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8007 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8008 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8009 else
8011 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8012 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8013 _ACEOF
8015 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8016 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8017 # trailing colons and then remove the whole line if VPATH becomes empty
8018 # (actually we leave an empty line to preserve line numbers).
8019 if test "x$srcdir" = x.; then
8020 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8022 s///
8023 s/^/:/
8024 s/[ ]*$/:/
8025 s/:\$(srcdir):/:/g
8026 s/:\${srcdir}:/:/g
8027 s/:@srcdir@:/:/g
8028 s/^:*//
8029 s/:*$//
8031 s/\(=[ ]*\).*/\1/
8033 s/\n//
8034 s/^[^=]*=[ ]*$//
8038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8039 fi # test -n "$CONFIG_FILES"
8042 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
8043 shift
8044 for ac_tag
8046 case $ac_tag in
8047 :[FHLC]) ac_mode=$ac_tag; continue;;
8048 esac
8049 case $ac_mode$ac_tag in
8050 :[FHL]*:*);;
8051 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8052 :[FH]-) ac_tag=-:-;;
8053 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8054 esac
8055 ac_save_IFS=$IFS
8056 IFS=:
8057 set x $ac_tag
8058 IFS=$ac_save_IFS
8059 shift
8060 ac_file=$1
8061 shift
8063 case $ac_mode in
8064 :L) ac_source=$1;;
8065 :[FH])
8066 ac_file_inputs=
8067 for ac_f
8069 case $ac_f in
8070 -) ac_f="$ac_tmp/stdin";;
8071 *) # Look for the file first in the build tree, then in the source tree
8072 # (if the path is not absolute). The absolute path cannot be DOS-style,
8073 # because $ac_f cannot contain `:'.
8074 test -f "$ac_f" ||
8075 case $ac_f in
8076 [\\/$]*) false;;
8077 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8078 esac ||
8079 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8080 esac
8081 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8082 as_fn_append ac_file_inputs " '$ac_f'"
8083 done
8085 # Let's still pretend it is `configure' which instantiates (i.e., don't
8086 # use $as_me), people would be surprised to read:
8087 # /* config.h. Generated by config.status. */
8088 configure_input='Generated from '`
8089 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8090 `' by configure.'
8091 if test x"$ac_file" != x-; then
8092 configure_input="$ac_file. $configure_input"
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8094 $as_echo "$as_me: creating $ac_file" >&6;}
8096 # Neutralize special characters interpreted by sed in replacement strings.
8097 case $configure_input in #(
8098 *\&* | *\|* | *\\* )
8099 ac_sed_conf_input=`$as_echo "$configure_input" |
8100 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8101 *) ac_sed_conf_input=$configure_input;;
8102 esac
8104 case $ac_tag in
8105 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8107 esac
8109 esac
8111 ac_dir=`$as_dirname -- "$ac_file" ||
8112 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8113 X"$ac_file" : 'X\(//\)[^/]' \| \
8114 X"$ac_file" : 'X\(//\)$' \| \
8115 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8116 $as_echo X"$ac_file" |
8117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8118 s//\1/
8121 /^X\(\/\/\)[^/].*/{
8122 s//\1/
8125 /^X\(\/\/\)$/{
8126 s//\1/
8129 /^X\(\/\).*/{
8130 s//\1/
8133 s/.*/./; q'`
8134 as_dir="$ac_dir"; as_fn_mkdir_p
8135 ac_builddir=.
8137 case "$ac_dir" in
8138 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8140 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8141 # A ".." for each directory in $ac_dir_suffix.
8142 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8143 case $ac_top_builddir_sub in
8144 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8145 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8146 esac ;;
8147 esac
8148 ac_abs_top_builddir=$ac_pwd
8149 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8150 # for backward compatibility:
8151 ac_top_builddir=$ac_top_build_prefix
8153 case $srcdir in
8154 .) # We are building in place.
8155 ac_srcdir=.
8156 ac_top_srcdir=$ac_top_builddir_sub
8157 ac_abs_top_srcdir=$ac_pwd ;;
8158 [\\/]* | ?:[\\/]* ) # Absolute name.
8159 ac_srcdir=$srcdir$ac_dir_suffix;
8160 ac_top_srcdir=$srcdir
8161 ac_abs_top_srcdir=$srcdir ;;
8162 *) # Relative name.
8163 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8164 ac_top_srcdir=$ac_top_build_prefix$srcdir
8165 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8166 esac
8167 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8170 case $ac_mode in
8173 # CONFIG_FILE
8176 case $INSTALL in
8177 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8178 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8179 esac
8180 ac_MKDIR_P=$MKDIR_P
8181 case $MKDIR_P in
8182 [\\/$]* | ?:[\\/]* ) ;;
8183 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8184 esac
8185 _ACEOF
8187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8188 # If the template does not know about datarootdir, expand it.
8189 # FIXME: This hack should be removed a few years after 2.60.
8190 ac_datarootdir_hack=; ac_datarootdir_seen=
8191 ac_sed_dataroot='
8192 /datarootdir/ {
8196 /@datadir@/p
8197 /@docdir@/p
8198 /@infodir@/p
8199 /@localedir@/p
8200 /@mandir@/p'
8201 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8202 *datarootdir*) ac_datarootdir_seen=yes;;
8203 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8205 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8206 _ACEOF
8207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8208 ac_datarootdir_hack='
8209 s&@datadir@&$datadir&g
8210 s&@docdir@&$docdir&g
8211 s&@infodir@&$infodir&g
8212 s&@localedir@&$localedir&g
8213 s&@mandir@&$mandir&g
8214 s&\\\${datarootdir}&$datarootdir&g' ;;
8215 esac
8216 _ACEOF
8218 # Neutralize VPATH when `$srcdir' = `.'.
8219 # Shell code in configure.ac might set extrasub.
8220 # FIXME: do we really want to maintain this feature?
8221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8222 ac_sed_extra="$ac_vpsub
8223 $extrasub
8224 _ACEOF
8225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8227 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8228 s|@configure_input@|$ac_sed_conf_input|;t t
8229 s&@top_builddir@&$ac_top_builddir_sub&;t t
8230 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8231 s&@srcdir@&$ac_srcdir&;t t
8232 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8233 s&@top_srcdir@&$ac_top_srcdir&;t t
8234 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8235 s&@builddir@&$ac_builddir&;t t
8236 s&@abs_builddir@&$ac_abs_builddir&;t t
8237 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8238 s&@INSTALL@&$ac_INSTALL&;t t
8239 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8240 $ac_datarootdir_hack
8242 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8243 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8245 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8246 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8247 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8248 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8250 which seems to be undefined. Please make sure it is defined" >&5
8251 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8252 which seems to be undefined. Please make sure it is defined" >&2;}
8254 rm -f "$ac_tmp/stdin"
8255 case $ac_file in
8256 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8257 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8258 esac \
8259 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8263 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8264 $as_echo "$as_me: executing $ac_file commands" >&6;}
8266 esac
8269 case $ac_file$ac_mode in
8270 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8271 # Older Autoconf quotes --file arguments for eval, but not when files
8272 # are listed without --file. Let's play safe and only enable the eval
8273 # if we detect the quoting.
8274 # TODO: see whether this extra hack can be removed once we start
8275 # requiring Autoconf 2.70 or later.
8276 case $CONFIG_FILES in #(
8277 *\'*) :
8278 eval set x "$CONFIG_FILES" ;; #(
8279 *) :
8280 set x $CONFIG_FILES ;; #(
8281 *) :
8283 esac
8284 shift
8285 # Used to flag and report bootstrapping failures.
8286 am_rc=0
8287 for am_mf
8289 # Strip MF so we end up with the name of the file.
8290 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
8291 # Check whether this is an Automake generated Makefile which includes
8292 # dependency-tracking related rules and includes.
8293 # Grep'ing the whole file directly is not great: AIX grep has a line
8294 # limit of 2048, but all sed's we know have understand at least 4000.
8295 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
8296 || continue
8297 am_dirpart=`$as_dirname -- "$am_mf" ||
8298 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8299 X"$am_mf" : 'X\(//\)[^/]' \| \
8300 X"$am_mf" : 'X\(//\)$' \| \
8301 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8302 $as_echo X"$am_mf" |
8303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8304 s//\1/
8307 /^X\(\/\/\)[^/].*/{
8308 s//\1/
8311 /^X\(\/\/\)$/{
8312 s//\1/
8315 /^X\(\/\).*/{
8316 s//\1/
8319 s/.*/./; q'`
8320 am_filepart=`$as_basename -- "$am_mf" ||
8321 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
8322 X"$am_mf" : 'X\(//\)$' \| \
8323 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8324 $as_echo X/"$am_mf" |
8325 sed '/^.*\/\([^/][^/]*\)\/*$/{
8326 s//\1/
8329 /^X\/\(\/\/\)$/{
8330 s//\1/
8333 /^X\/\(\/\).*/{
8334 s//\1/
8337 s/.*/./; q'`
8338 { echo "$as_me:$LINENO: cd "$am_dirpart" \
8339 && sed -e '/# am--include-marker/d' "$am_filepart" \
8340 | $MAKE -f - am--depfiles" >&5
8341 (cd "$am_dirpart" \
8342 && sed -e '/# am--include-marker/d' "$am_filepart" \
8343 | $MAKE -f - am--depfiles) >&5 2>&5
8344 ac_status=$?
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } || am_rc=$?
8347 done
8348 if test $am_rc -ne 0; then
8349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8351 as_fn_error $? "Something went wrong bootstrapping makefile fragments
8352 for automatic dependency tracking. Try re-running configure with the
8353 '--disable-dependency-tracking' option to at least be able to build
8354 the package (albeit without support for automatic dependency tracking).
8355 See \`config.log' for more details" "$LINENO" 5; }
8357 { am_dirpart=; unset am_dirpart;}
8358 { am_filepart=; unset am_filepart;}
8359 { am_mf=; unset am_mf;}
8360 { am_rc=; unset am_rc;}
8361 rm -f conftest-deps.mk
8365 esac
8366 done # for ac_tag
8369 as_fn_exit 0
8370 _ACEOF
8371 ac_clean_files=$ac_clean_files_save
8373 test $ac_write_fail = 0 ||
8374 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8377 # configure is writing to config.log, and then calls config.status.
8378 # config.status does its own redirection, appending to config.log.
8379 # Unfortunately, on DOS this fails, as config.log is still kept open
8380 # by configure, so config.status won't be able to write to it; its
8381 # output is simply discarded. So we exec the FD to /dev/null,
8382 # effectively closing config.log, so it can be properly (re)opened and
8383 # appended to by config.status. When coming back to configure, we
8384 # need to make the FD available again.
8385 if test "$no_create" != yes; then
8386 ac_cs_success=:
8387 ac_config_status_args=
8388 test "$silent" = yes &&
8389 ac_config_status_args="$ac_config_status_args --quiet"
8390 exec 5>/dev/null
8391 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8392 exec 5>>config.log
8393 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8394 # would make configure fail if this is the last instruction.
8395 $ac_cs_success || as_fn_exit 1
8397 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8399 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: Running qmake to generate the makefile..." >&5
8405 $as_echo "$as_me: Running qmake to generate the makefile..." >&6;}
8406 TOPDIR="$(cd "$(dirname "$0")" && pwd)"
8407 $QT_QMAKE -r "$TOPDIR/qbittorrent.pro" "QMAKE_LRELEASE=$QMAKE_LRELEASE"
8408 qmake_ret="$?"
8410 $as_echo
8411 if test "x$qmake_ret" != "x0"; then :
8412 as_fn_error $? "$QT_QMAKE failed to generate the makefile" "$LINENO" 5
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: Good, the configure finished." >&5
8416 $as_echo "$as_me: Good, the configure finished." >&6;}
8417 $as_echo