2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for qbittorrent v4.5.0alpha.
5 # Report bugs to <bugs.qbittorrent.org>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \
${$as_var+y} \
69 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
74 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
81 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself
=$0 ;;
91 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
100 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
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
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
120 _as_can_reexec
=no
; export _as_can_reexec
;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
129 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec
=; unset _as_can_reexec
;}
142 if test "x$CONFIG_SHELL" = x
; then
143 as_bourne_compatible
="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required
="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev
/null
193 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
199 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
205 *) as_dir
=$as_dir/ ;;
210 for as_base
in sh bash ksh sh5
; do
211 # Try only shells that exist, to save several forks.
212 as_shell
=$as_dir$as_base
213 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
214 as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
216 CONFIG_SHELL
=$as_shell as_have_required
=yes
217 if as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev
/null
231 if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 as_run
=a
"$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
234 CONFIG_SHELL
=$SHELL as_have_required
=yes
239 if test "x$CONFIG_SHELL" != x
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.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271 $0: bugs.qbittorrent.org about your system, including any
272 $0: error possibly output before this message. Then install
273 $0: a modern shell, or manually run the script under such a
274 $0: shell if you do have one."
280 SHELL
=${CONFIG_SHELL-/bin/sh}
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE
= GREP_OPTIONS
=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
291 # Portably unset VAR.
294 { eval $1=; unset $1;}
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 # Do nothing but, unlike ":", preserve the value of $?.
327 # Create "$as_dir" as a directory, including parents if necessary.
332 -*) as_dir
=.
/$as_dir;;
334 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
338 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
341 as_dirs
="'$as_qdir' $as_dirs"
342 as_dir
=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
365 test -d "$as_dir" && break
367 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
368 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p
()
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
388 eval 'as_fn_append ()
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
413 as_val
=`expr "$@" || test $? -eq 1`
419 # Do nothing but, unlike ":", preserve the value of $?.
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
433 as_status
=$1; test $as_status -eq 0 && as_status
=1
435 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit
$as_status
442 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
449 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
461 as_me
=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
480 # Avoid depending upon Character Ranges.
481 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits
='0123456789'
485 as_cr_alnum
=$as_cr_Letters$as_cr_digits
488 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
489 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
508 chmod +x
"$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec
=no
; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
519 # Exit status is that of the last command.
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C
= ECHO_N
= ECHO_T
=
528 case `echo -n x` in #(((((
530 case `echo 'xy\c'` in
531 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo
='printf %s\n'
544 as_echo_n
='printf %s'
547 rm -f conf$$ conf$$.exe conf$$.
file
548 if test -d conf$$.dir
; then
549 rm -f conf$$.dir
/conf$$.
file
552 mkdir conf$$.dir
2>/dev
/null
554 if (echo >conf$$.
file) 2>/dev
/null
; then
555 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
563 elif ln conf$$.
file conf$$
2>/dev
/null
; then
571 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
572 rmdir conf$$.dir
2>/dev
/null
574 if mkdir
-p .
2>/dev
/null
; then
575 as_mkdir_p
='mkdir -p "$as_dir"'
577 test -d .
/-p && rmdir .
/-p
582 as_executable_p
=as_fn_executable_p
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
591 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
602 ac_default_prefix
=/usr
/local
604 ac_config_libobj_dir
=.
611 # Identity of this package.
612 PACKAGE_NAME
='qbittorrent'
613 PACKAGE_TARNAME
='qbittorrent'
614 PACKAGE_VERSION
='v4.5.0alpha'
615 PACKAGE_STRING
='qbittorrent v4.5.0alpha'
616 PACKAGE_BUGREPORT
='bugs.qbittorrent.org'
617 PACKAGE_URL
='https://www.qbittorrent.org/'
619 ac_subst_vars
='am__EXEEXT_FALSE
627 QBT_CONF_EXTRA_CFLAGS
673 INSTALL_STRIP_PROGRAM
735 program_transform_name
749 enable_option_checking
750 enable_dependency_tracking
761 ac_precious_vars
='build_alias
786 # Initialize some variables set by options.
788 ac_init_version
=false
789 ac_unrecognized_opts
=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
800 program_transform_name
=s
,x
,x
,
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir
='${exec_prefix}/bin'
815 sbindir
='${exec_prefix}/sbin'
816 libexecdir
='${exec_prefix}/libexec'
817 datarootdir
='${prefix}/share'
818 datadir
='${datarootdir}'
819 sysconfdir
='${prefix}/etc'
820 sharedstatedir
='${prefix}/com'
821 localstatedir
='${prefix}/var'
822 runstatedir
='${localstatedir}/run'
823 includedir
='${prefix}/include'
824 oldincludedir
='/usr/include'
825 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir
='${datarootdir}/info'
831 libdir
='${exec_prefix}/lib'
832 localedir
='${datarootdir}/locale'
833 mandir
='${datarootdir}/man'
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\
$ac_option
847 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 case $ac_dashdash$ac_option in
856 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
858 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
861 -build |
--build |
--buil |
--bui |
--bu)
862 ac_prev
=build_alias
;;
863 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
864 build_alias
=$ac_optarg ;;
866 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
867 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
868 ac_prev
=cache_file
;;
869 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
870 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
871 cache_file
=$ac_optarg ;;
874 cache_file
=config.cache
;;
876 -datadir |
--datadir |
--datadi |
--datad)
878 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
879 datadir
=$ac_optarg ;;
881 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
882 |
--dataroo |
--dataro |
--datar)
883 ac_prev
=datarootdir
;;
884 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
885 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
886 datarootdir
=$ac_optarg ;;
888 -disable-* |
--disable-*)
889 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
892 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
893 ac_useropt_orig
=$ac_useropt
894 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
899 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep
=', ';;
902 eval enable_
$ac_useropt=no
;;
904 -docdir |
--docdir |
--docdi |
--doc |
--do)
906 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
909 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
911 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
914 -enable-* |
--enable-*)
915 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
918 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
919 ac_useropt_orig
=$ac_useropt
920 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
925 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep
=', ';;
928 eval enable_
$ac_useropt=\
$ac_optarg ;;
930 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
931 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
932 |
--exec |
--exe |
--ex)
933 ac_prev
=exec_prefix
;;
934 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
935 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
936 |
--exec=* |
--exe=* |
--ex=*)
937 exec_prefix
=$ac_optarg ;;
939 -gas |
--gas |
--ga |
--g)
940 # Obsolete; use --with-gas.
943 -help |
--help |
--hel |
--he |
-h)
945 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
946 ac_init_help
=recursive
;;
947 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
948 ac_init_help
=short
;;
950 -host |
--host |
--hos |
--ho)
951 ac_prev
=host_alias
;;
952 -host=* |
--host=* |
--hos=* |
--ho=*)
953 host_alias
=$ac_optarg ;;
955 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
957 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
959 htmldir
=$ac_optarg ;;
961 -includedir |
--includedir |
--includedi |
--included |
--include \
962 |
--includ |
--inclu |
--incl |
--inc)
963 ac_prev
=includedir
;;
964 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
965 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
966 includedir
=$ac_optarg ;;
968 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
970 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
971 infodir
=$ac_optarg ;;
973 -libdir |
--libdir |
--libdi |
--libd)
975 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
978 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
979 |
--libexe |
--libex |
--libe)
980 ac_prev
=libexecdir
;;
981 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
982 |
--libexe=* |
--libex=* |
--libe=*)
983 libexecdir
=$ac_optarg ;;
985 -localedir |
--localedir |
--localedi |
--localed |
--locale)
987 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
988 localedir
=$ac_optarg ;;
990 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
991 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
992 ac_prev
=localstatedir
;;
993 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
994 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
995 localstatedir
=$ac_optarg ;;
997 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
999 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1000 mandir
=$ac_optarg ;;
1002 -nfp |
--nfp |
--nf)
1003 # Obsolete; use --without-fp.
1006 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1007 |
--no-cr |
--no-c |
-n)
1010 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1011 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1014 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1015 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1016 |
--oldin |
--oldi |
--old |
--ol |
--o)
1017 ac_prev
=oldincludedir
;;
1018 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1019 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1020 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1021 oldincludedir
=$ac_optarg ;;
1023 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1025 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1026 prefix
=$ac_optarg ;;
1028 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1029 |
--program-pre |
--program-pr |
--program-p)
1030 ac_prev
=program_prefix
;;
1031 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1032 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1033 program_prefix
=$ac_optarg ;;
1035 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1036 |
--program-suf |
--program-su |
--program-s)
1037 ac_prev
=program_suffix
;;
1038 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1039 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1040 program_suffix
=$ac_optarg ;;
1042 -program-transform-name |
--program-transform-name \
1043 |
--program-transform-nam |
--program-transform-na \
1044 |
--program-transform-n |
--program-transform- \
1045 |
--program-transform |
--program-transfor \
1046 |
--program-transfo |
--program-transf \
1047 |
--program-trans |
--program-tran \
1048 |
--progr-tra |
--program-tr |
--program-t)
1049 ac_prev
=program_transform_name
;;
1050 -program-transform-name=* |
--program-transform-name=* \
1051 |
--program-transform-nam=* |
--program-transform-na=* \
1052 |
--program-transform-n=* |
--program-transform-=* \
1053 |
--program-transform=* |
--program-transfor=* \
1054 |
--program-transfo=* |
--program-transf=* \
1055 |
--program-trans=* |
--program-tran=* \
1056 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1057 program_transform_name
=$ac_optarg ;;
1059 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1061 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1062 pdfdir
=$ac_optarg ;;
1064 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1066 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1069 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1070 |
-silent |
--silent |
--silen |
--sile |
--sil)
1073 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1074 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1075 |
--run |
--ru |
--r)
1076 ac_prev
=runstatedir
;;
1077 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1078 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1079 |
--run=* |
--ru=* |
--r=*)
1080 runstatedir
=$ac_optarg ;;
1082 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1084 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1086 sbindir
=$ac_optarg ;;
1088 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1089 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1090 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1092 ac_prev
=sharedstatedir
;;
1093 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1094 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1095 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1097 sharedstatedir
=$ac_optarg ;;
1099 -site |
--site |
--sit)
1101 -site=* |
--site=* |
--sit=*)
1104 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1106 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1107 srcdir
=$ac_optarg ;;
1109 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1110 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1111 ac_prev
=sysconfdir
;;
1112 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1113 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1114 sysconfdir
=$ac_optarg ;;
1116 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1117 ac_prev
=target_alias
;;
1118 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1119 target_alias
=$ac_optarg ;;
1121 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1124 -version |
--version |
--versio |
--versi |
--vers |
-V)
1125 ac_init_version
=: ;;
1128 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1131 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1132 ac_useropt_orig
=$ac_useropt
1133 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1138 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139 ac_unrecognized_sep
=', ';;
1141 eval with_
$ac_useropt=\
$ac_optarg ;;
1143 -without-* |
--without-*)
1144 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1147 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1148 ac_useropt_orig
=$ac_useropt
1149 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1154 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155 ac_unrecognized_sep
=', ';;
1157 eval with_
$ac_useropt=no
;;
1160 # Obsolete; use --with-x.
1163 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1164 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1165 ac_prev
=x_includes
;;
1166 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1167 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1168 x_includes
=$ac_optarg ;;
1170 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1171 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1172 ac_prev
=x_libraries
;;
1173 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1174 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1175 x_libraries
=$ac_optarg ;;
1177 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1178 Try \`$0 --help' for more information"
1182 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
1184 case $ac_envvar in #(
1185 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1186 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1188 eval $ac_envvar=\
$ac_optarg
1189 export $ac_envvar ;;
1192 # FIXME: should be removed in autoconf 3.0.
1193 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1195 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1202 if test -n "$ac_prev"; then
1203 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1204 as_fn_error $?
"missing argument to $ac_option"
1207 if test -n "$ac_unrecognized_opts"; then
1208 case $enable_option_checking in
1210 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1211 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215 # Check all directory arguments for consistency.
1216 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir runstatedir
1221 eval ac_val
=\$
$ac_var
1222 # Remove trailing slashes.
1225 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226 eval $ac_var=\
$ac_val;;
1228 # Be sure to have absolute directory names.
1230 [\\/$
]* | ?
:[\\/]* ) continue;;
1231 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1233 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1236 # There might be people who depend on the old broken behavior: `$host'
1237 # used to hold the argument of --host etc.
1238 # FIXME: To remove some day.
1241 target
=$target_alias
1243 # FIXME: To remove some day.
1244 if test "x$host_alias" != x
; then
1245 if test "x$build_alias" = x
; then
1246 cross_compiling
=maybe
1247 elif test "x$build_alias" != "x$host_alias"; then
1253 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1255 test "$silent" = yes && exec 6>/dev
/null
1258 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di
=`ls -di .` &&
1260 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error $?
"working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error $?
"pwd does not report name of working directory"
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted
=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir
=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 printf "%s\n" X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1298 ac_srcdir_defaulted
=no
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1302 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1304 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1316 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 for ac_var
in $ac_precious_vars; do
1319 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1321 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1332 \`configure' configures qbittorrent v4.5.0alpha to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking ...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/qbittorrent]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1391 --program-prefix=PREFIX prepend PREFIX to installed program names
1392 --program-suffix=SUFFIX append SUFFIX to installed program names
1393 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1396 --build=BUILD configure
for building on BUILD
[guessed
]
1397 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1401 if test -n "$ac_init_help"; then
1402 case $ac_init_help in
1403 short | recursive
) echo "Configuration of qbittorrent v4.5.0alpha:";;
1408 --disable-option-checking ignore unrecognized
--enable/--with options
1409 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1410 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1411 --enable-dependency-tracking
1412 do not reject slow dependency extractors
1413 --disable-dependency-tracking
1414 speeds up one-time build
1415 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1416 --disable-silent-rules verbose build output
(undo
: "make V=0")
1417 --enable-debug Enable debug build
1418 --enable-stacktrace Enable stacktrace feature
(default
=auto
)
1419 --disable-gui Disable the GUI
for headless running. Disables
1420 QtDBus and the GeoIP Database.
1421 --enable-systemd Install the systemd service
file (headless only
).
1422 --disable-webui Disable the WebUI.
1423 --disable-qt-dbus Disable use of QtDBus
(GUI only
)
1426 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1427 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1428 --with-boost[=ARG
] use Boost library from a standard location
1429 (ARG
=yes), from the specified location
(ARG
=<path
>),
1430 or disable it
(ARG
=no
) [ARG
=yes]
1431 --with-boost-libdir=LIB_DIR
1432 Force given directory
for boost libraries. Note that
1433 this will override library path detection
, so use
1434 this parameter only
if default library detection
1435 fails and you know exactly where your boost
1436 libraries are located.
1438 Some influential environment variables
:
1439 CC C compiler
command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1442 nonstandard directory
<lib dir
>
1443 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1444 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1445 you have headers
in a nonstandard directory
<include dir
>
1446 CXX C
++ compiler
command
1447 CXXFLAGS C
++ compiler flags
1448 PKG_CONFIG path to pkg-config utility
1450 directories to add to pkg-config
's search path
1452 path overriding pkg-config's built-in search path
1453 QT_QMAKE value of host_bins
for Qt5Core
>= 5.15.2, overriding pkg-config
1455 C compiler flags
for Qt5Svg
, overriding pkg-config
1456 Qt5Svg_LIBS linker flags
for Qt5Svg
, overriding pkg-config
1458 C compiler flags
for libtorrent
, overriding pkg-config
1460 linker flags
for libtorrent
, overriding pkg-config
1462 C compiler flags
for openssl
, overriding pkg-config
1464 linker flags
for openssl
, overriding pkg-config
1465 zlib_CFLAGS C compiler flags
for zlib
, overriding pkg-config
1466 zlib_LIBS linker flags
for zlib
, overriding pkg-config
1468 Use these variables to override the choices made by
`configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1471 Report bugs to <bugs.qbittorrent.org>.
1472 qbittorrent home page: <https://www.qbittorrent.org/>.
1477 if test "$ac_init_help" = "recursive"; then
1478 # If there are subdirs, report their specific --help.
1479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480 test -d "$ac_dir" ||
1481 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 ac_dir_suffix=/`printf "%s\n" "$ac_dir" |
sed 's|^\.[\\/]||'`
1489 # A ".." for each directory in $ac_dir_suffix.
1490 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1491 case $ac_top_builddir_sub in
1492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 ac_abs_top_builddir=$ac_pwd
1497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498 # for backward compatibility:
1499 ac_top_builddir=$ac_top_build_prefix
1502 .) # We are building in place.
1504 ac_top_srcdir=$ac_top_builddir_sub
1505 ac_abs_top_srcdir=$ac_pwd ;;
1506 [\\/]* | ?:[\\/]* ) # Absolute name.
1507 ac_srcdir=$srcdir$ac_dir_suffix;
1508 ac_top_srcdir=$srcdir
1509 ac_abs_top_srcdir=$srcdir ;;
1511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512 ac_top_srcdir=$ac_top_build_prefix$srcdir
1513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517 cd "$ac_dir" || { ac_status=$?; continue; }
1518 # Check for configure.gnu first; this name is used for a wrapper for
1519 # Metaconfig's "Configure" on case-insensitive file systems.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1527 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1536 qbittorrent configure v4.5.0alpha
1537 generated by GNU Autoconf 2.71
1539 Copyright (C) 2021 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1546 ## ------------------------ ##
1547 ## Autoconf initialization. ##
1548 ## ------------------------ ##
1550 # ac_fn_c_try_compile LINENO
1551 # --------------------------
1552 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_compile ()
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext conftest.beam
1557 if { { ac_try="$ac_compile"
1559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1560 *) ac_try_echo
=$ac_try;;
1562 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 printf "%s\n" "$ac_try_echo"; } >&5
1564 (eval "$ac_compile") 2>conftest.err
1566 if test -s conftest.err
; then
1567 grep -v '^ *+' conftest.err
>conftest.er1
1568 cat conftest.er1
>&5
1569 mv -f conftest.er1 conftest.err
1571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest.
$ac_objext
1579 printf "%s\n" "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.
$ac_ext >&5
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status
$ac_retval
1587 } # ac_fn_c_try_compile
1589 # ac_fn_cxx_try_compile LINENO
1590 # ----------------------------
1591 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_cxx_try_compile
()
1594 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1595 rm -f conftest.
$ac_objext conftest.beam
1596 if { { ac_try
="$ac_compile"
1598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 printf "%s\n" "$ac_try_echo"; } >&5
1603 (eval "$ac_compile") 2>conftest.err
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_cxx_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest.$ac_objext
1618 printf "%s\n" "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1626 } # ac_fn_cxx_try_compile
1627 ac_configure_args_raw=
1632 ac_arg=`printf "%s\n" "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1634 as_fn_append ac_configure_args_raw " '$ac_arg'"
1637 case $ac_configure_args_raw in
1641 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1642 ac_unsafe_a="$ac_unsafe_z#~
"
1643 ac_safe_unquote="s
/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g
"
1644 ac_configure_args_raw=` printf "%s
\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
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.5.0alpha, which was
1652 generated by GNU Autoconf 2.71. Invocation command line was
1654 $ $0$ac_configure_args_raw
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`
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 case $as_dir in #(((
1690 *) as_dir=$as_dir/ ;;
1692 printf "%s
\n" "PATH
: $as_dir"
1708 # Keep a trace of the command line.
1709 # Strip out --no-create and --no-recursion so they do not pile up.
1710 # Strip out --silent because we don't want to record it for future runs.
1711 # Also quote any args containing shell meta-characters.
1712 # Make two passes to allow for proper duplicate-argument suppression.
1716 ac_must_keep_next=false
1722 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1724 | -silent | --silent | --silen | --sile | --sil)
1727 ac_arg=`printf "%s
\n" "$ac_arg" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1730 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1732 as_fn_append ac_configure_args1 " '$ac_arg'"
1733 if test $ac_must_keep_next = true; then
1734 ac_must_keep_next=false # Got value, back to normal.
1737 *=* | --config-cache | -C | -disable-* | --disable-* \
1738 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1739 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1740 | -with-* | --with-* | -without-* | --without-* | --x)
1741 case "$ac_configure_args0 " in
1742 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1745 -* ) ac_must_keep_next=true ;;
1748 as_fn_append ac_configure_args " '$ac_arg'"
1753 { ac_configure_args0=; unset ac_configure_args0;}
1754 { ac_configure_args1=; unset ac_configure_args1;}
1756 # When interrupted or exit'd, cleanup temporary files, and complete
1757 # config.log. We remove comments because anyway the quotes in there
1758 # would cause problems or look ugly.
1759 # WARNING: Use '\'' to represent an apostrophe within the trap.
1760 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1761 trap 'exit_status=$?
1764 # Save into config.log some information that might help in debugging.
1768 printf "%s
\n" "## ---------------- ##
1769 ## Cache variables. ##
1770 ## ---------------- ##"
1772 # The following way of writing the cache mishandles newlines in values,
1774 for ac_var
in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1775 eval ac_val
=\$
$ac_var
1779 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1780 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1783 _ | IFS | as_nl
) ;; #(
1784 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
1785 *) { eval $ac_var=; unset $ac_var;} ;;
1790 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1791 *${as_nl}ac_space
=\
*)
1793 "s/'\''/'\''\\\\'\'''\''/g;
1794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1797 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1804 printf "%s\n" "## ----------------- ##
1805 ## Output variables. ##
1806 ## ----------------- ##"
1808 for ac_var
in $ac_subst_vars
1810 eval ac_val
=\$
$ac_var
1812 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814 printf "%s\n" "$ac_var='\''$ac_val'\''"
1818 if test -n "$ac_subst_files"; then
1819 printf "%s\n" "## ------------------- ##
1820 ## File substitutions. ##
1821 ## ------------------- ##"
1823 for ac_var in $ac_subst_files
1825 eval ac_val=\$$ac_var
1827 *\'\''*) ac_val
=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829 printf "%s\n" "$ac_var='\''$ac_val'\''"
1834 if test -s confdefs.h
; then
1835 printf "%s\n" "## ----------- ##
1842 test "$ac_signal" != 0 &&
1843 printf "%s\n" "$as_me: caught signal $ac_signal"
1844 printf "%s\n" "$as_me: exit $exit_status"
1846 rm -f core
*.core core.conftest.
* &&
1847 rm -f -r conftest
* confdefs
* conf$$
* $ac_clean_files &&
1850 for ac_signal in 1 2 13 15; do
1851 trap 'ac_signal
='$ac_signal'; as_fn_exit
1' $ac_signal
1855 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1856 rm -f -r conftest* confdefs.h
1858 printf "%s\n" "/* confdefs.h */" > confdefs.h
1860 # Predefined preprocessor variables.
1862 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1864 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1866 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1868 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1870 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1872 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1875 # Let the site file select an alternate cache file if it wants to.
1876 # Prefer an explicitly selected file to automatically selected ones.
1877 if test -n "$CONFIG_SITE"; then
1878 ac_site_files="$CONFIG_SITE"
1879 elif test "x$prefix" != xNONE; then
1880 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1882 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1885 for ac_site_file in $ac_site_files
1887 case $ac_site_file in #(
1891 ac_site_file=./$ac_site_file ;;
1893 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1895 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1896 sed 's
/^
/|
/' "$ac_site_file" >&5
1898 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1899 printf "%s
\n" "$as_me: error
: in \
`$ac_pwd':" >&2;}
1900 as_fn_error $? "failed to load site script $ac_site_file
1901 See \`config.log
' for more details" "$LINENO" 5; }
1905 if test -r "$cache_file"; then
1906 # Some versions of bash will fail to source /dev/null (special files
1907 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1908 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1910 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1912 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1913 *) . "./$cache_file";;
1917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1918 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1922 # Test code for whether the C compiler supports C89 (global declarations)
1923 ac_c_conftest_c89_globals='
1924 /* Does the compiler advertise C89 conformance?
1925 Do not
test the value of __STDC__
, because some compilers
set it to
0
1926 while being otherwise adequately conformant.
*/
1927 #if !defined __STDC__
1928 # error "Compiler does not advertise C89 conformance"
1934 /* Most of the following tests are stolen from RCS
5.7 src
/conf.sh.
*/
1935 struct buf
{ int x
; };
1936 struct buf
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
1937 static char
*e
(p
, i
)
1943 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
1948 s
= g
(p
, va_arg
(v
,int
));
1953 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
1954 function prototypes and stuff
, but not \xHH hex character constants.
1955 These
do not provoke an error unfortunately
, instead are silently treated
1956 as an
"x". The following induces an error
, until -std is added to get
1957 proper ANSI mode. Curiously
\x00 != x always comes out true
, for an
1958 array size
at least. It is necessary to
write \x00 == 0 to get something
1959 that is true only with
-std.
*/
1960 int osf4_cc_array
['\''\x00'\'' == 0 ?
1 : -1];
1962 /* IBM C
6 for AIX is almost-ANSI by default
, but it replaces macro parameters
1963 inside
strings and character constants.
*/
1964 #define FOO(x) '\''x'\''
1965 int xlc6_cc_array
[FOO
(a
) == '\''x
'\'' ?
1 : -1];
1967 int
test (int i
, double x
);
1968 struct s1
{int
(*f
) (int a
);};
1969 struct s2
{int
(*f
) (double a
);};
1970 int pairnames
(int
, char
**, int
*(*)(struct buf
*, struct stat
*, int
),
1973 # Test code for whether the C compiler supports C89 (body of main).
1974 ac_c_conftest_c89_main='
1975 ok |
= (argc
== 0 || f
(e
, argv
, 0) != argv
[0] || f
(e
, argv
, 1) != argv
[1]);
1978 # Test code for whether the C compiler supports C99 (global declarations)
1979 ac_c_conftest_c99_globals='
1980 // Does the compiler advertise C99 conformance?
1981 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
1982 # error "Compiler does not advertise C99 conformance"
1985 #include <stdbool.h>
1986 extern int puts
(const char
*);
1987 extern int
printf (const char
*, ...
);
1988 extern int dprintf
(int
, const char
*, ...
);
1989 extern void
*malloc
(size_t
);
1991 // Check varargs macros. These examples are taken from C99
6.10.3.5.
1992 // dprintf is used instead of fprintf to avoid needing to
declare
1994 #define debug(...) dprintf (2, __VA_ARGS__)
1995 #define showlist(...) puts (#__VA_ARGS__)
1996 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1998 test_varargs_macros
(void
)
2003 debug
("X = %d\n", x
);
2004 showlist
(The first
, second
, and third items.
);
2005 report
(x
>y
, "x is %d but y is %d", x
, y
);
2008 // Check long long types.
2009 #define BIG64 18446744073709551615ull
2010 #define BIG32 4294967295ul
2011 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2013 #error "your preprocessor is broken"
2017 #error "your preprocessor is broken"
2019 static long long int bignum
= -9223372036854775807LL;
2020 static unsigned long long int ubignum
= BIG64
;
2022 struct incomplete_array
2030 const wchar_t
*name
;
2034 typedef const char
*ccp
;
2037 test_restrict
(ccp restrict text
)
2039 // See
if C
++-style comments work.
2040 // Iterate through items via the restricted pointer.
2041 // Also check
for declarations
in for loops.
2042 for (unsigned int i
= 0; *(text
+i
) != '\''\
0'\''; ++i
)
2047 // Check varargs and va_copy.
2049 test_varargs
(const char
*format
, ...
)
2052 va_start
(args
, format
);
2054 va_copy
(args_copy
, args
);
2056 const char
*str
= "";
2064 case '\''s
'\'': // string
2065 str
= va_arg
(args_copy
, const char
*);
2067 case '\''d
'\'': // int
2068 number
= va_arg
(args_copy
, int
);
2070 case '\''f
'\'': // float
2071 fnumber
= va_arg
(args_copy
, double
);
2080 return *str
&& number
&& fnumber
;
2084 # Test code for whether the C compiler supports C99 (body of main).
2085 ac_c_conftest_c99_main='
2087 _Bool success
= false
;
2088 success |
= (argc
!= 0);
2091 if (test_restrict
("String literal") == 0)
2093 char
*restrict newvar
= "Another string";
2096 success
&= test_varargs
("s, d'\'' f .", "string", 65, 34.234);
2097 test_varargs_macros
();
2099 // Check flexible array members.
2100 struct incomplete_array
*ia
=
2101 malloc
(sizeof
(struct incomplete_array
) + (sizeof
(double
) * 10));
2103 for (int i
= 0; i
< ia-
>datasize
; ++i
)
2104 ia-
>data
[i
] = i
* 1.234;
2106 // Check named initializers.
2107 struct named_init ni
= {
2109 .name
= L
"Test wide string",
2110 .average
= 543.34343,
2115 int dynamic_array
[ni.number
];
2116 dynamic_array
[0] = argv
[0][0];
2117 dynamic_array
[ni.number
- 1] = 543;
2119 // work around unused variable warnings
2120 ok |
= (!success || bignum
== 0LL || ubignum
== 0uLL || newvar
[0] == '\''x
'\''
2121 || dynamic_array
[ni.number
- 1] != 543);
2124 # Test code for whether the C compiler supports C11 (global declarations)
2125 ac_c_conftest_c11_globals='
2126 // Does the compiler advertise C11 conformance?
2127 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2128 # error "Compiler does not advertise C11 conformance"
2132 char _Alignas
(double
) aligned_as_double
;
2133 char _Alignas
(0) no_special_alignment
;
2134 extern char aligned_as_int
;
2135 char _Alignas
(0) _Alignas
(int
) aligned_as_int
;
2140 int_alignment
= _Alignof
(int
),
2141 int_array_alignment
= _Alignof
(int
[100]),
2142 char_alignment
= _Alignof
(char
)
2144 _Static_assert
(0 < -_Alignof (int
), "_Alignof is signed");
2147 int _Noreturn does_not_return
(void
) { for (;;) continue; }
2149 // Check _Static_assert.
2150 struct test_static_assert
2153 _Static_assert
(sizeof
(int
) <= sizeof
(long int
),
2154 "_Static_assert does not work in struct");
2158 // Check UTF-8 literals.
2159 #define u8 syntax error!
2160 char const utf8_literal
[] = u8
"happens to be ASCII" "another string";
2162 // Check duplicate typedefs.
2163 typedef long
*long_ptr
;
2164 typedef long int
*long_ptr
;
2165 typedef long_ptr long_ptr
;
2167 // Anonymous structures and unions
-- taken from C11
6.7.2.1 Example
1.
2171 struct
{ int i
; int j
; };
2172 struct
{ int k
; long int l
; } w
;
2178 # Test code for whether the C compiler supports C11 (body of main).
2179 ac_c_conftest_c11_main='
2180 _Static_assert
((offsetof
(struct anonymous
, i
)
2181 == offsetof
(struct anonymous
, w.k
)),
2182 "Anonymous union alignment botch");
2188 # Test code for whether the C compiler supports C11 (complete).
2189 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2190 ${ac_c_conftest_c99_globals}
2191 ${ac_c_conftest_c11_globals}
2194 main (int argc, char **argv)
2197 ${ac_c_conftest_c89_main}
2198 ${ac_c_conftest_c99_main}
2199 ${ac_c_conftest_c11_main}
2204 # Test code for whether the C compiler supports C99 (complete).
2205 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2206 ${ac_c_conftest_c99_globals}
2209 main (int argc, char **argv)
2212 ${ac_c_conftest_c89_main}
2213 ${ac_c_conftest_c99_main}
2218 # Test code for whether the C compiler supports C89 (complete).
2219 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2222 main (int argc, char **argv)
2225 ${ac_c_conftest_c89_main}
2230 # Test code for whether the C++ compiler supports C++98 (global declarations)
2231 ac_cxx_conftest_cxx98_globals='
2232 // Does the compiler advertise C
++98 conformance?
2233 #if !defined __cplusplus || __cplusplus < 199711L
2234 # error "Compiler does not advertise C++98 conformance"
2237 // These inclusions are to reject old compilers that
2238 // lack the unsuffixed header files.
2240 #include <exception>
2242 // <cassert
> and
<cstring
> are
*not
* freestanding headers
in C
++98.
2243 extern void assert
(int
);
2245 extern int strcmp
(const char
*, const char
*);
2248 // Namespaces
, exceptions
, and templates were all added after
"C++ 2.0".
2249 using std
::exception
;
2254 void test_exception_syntax
()
2258 } catch
(const char
*s
) {
2259 // Extra parentheses suppress a warning when building autoconf itself
,
2260 // due to lint rules shared with
more typical C programs.
2261 assert
(!(strcmp
) (s
, "test"));
2265 template
<typename T
> struct test_template
2268 explicit test_template
(T t
) : val
(t
) {}
2269 template
<typename U
> T add
(U u
) { return static_cast
<T
>(u
) + val
; }
2272 } // anonymous namespace
2275 # Test code for whether the C++ compiler supports C++98 (body of main)
2276 ac_cxx_conftest_cxx98_main='
2280 test_exception_syntax
();
2281 test_template
<double
> tt
(2.0);
2282 assert
(tt.add
(4) == 6.0);
2283 assert
(true
&& !false
);
2287 # Test code for whether the C++ compiler supports C++11 (global declarations)
2288 ac_cxx_conftest_cxx11_globals='
2289 // Does the compiler advertise C
++ 2011 conformance?
2290 #if !defined __cplusplus || __cplusplus < 201103L
2291 # error "Compiler does not advertise C++11 conformance"
2296 constexpr int get_val
() { return 20; }
2307 delegate
(int n
) : n
(n
) {}
2308 delegate
(): delegate
(2354) {}
2310 virtual int getval
() { return this-
>n
; };
2315 class overridden
: public delegate
2318 overridden
(int n
): delegate
(n
) {}
2319 virtual int getval
() override final
{ return this-
>n
* 2; }
2325 nocopy
(int i
): i
(i
) {}
2327 nocopy
(const nocopy
&) = delete
;
2328 nocopy
& operator
=(const nocopy
&) = delete
;
2333 // for testing lambda expressions
2334 template
<typename Ret
, typename Fn
> Ret
eval(Fn f
, Ret v
)
2339 // for testing variadic templates and trailing
return types
2340 template
<typename V
> auto
sum(V first
) -> V
2344 template
<typename V
, typename... Args
> auto
sum(V first
, Args... rest
) -> V
2346 return first
+ sum(rest...
);
2351 # Test code for whether the C++ compiler supports C++11 (body of main)
2352 ac_cxx_conftest_cxx11_main='
2354 // Test auto and decltype
2356 auto a2
= 48573953.4;
2357 auto a3
= "String literal";
2360 for (auto i
= a3
; *i
; ++i
) { total
+= *i
; }
2362 decltype
(a2
) a4
= 34895.034;
2366 short sa
[cxx11test
::get_val
()] = { 0 };
2369 // Test initializer lists
2370 cxx11test
::testinit il
= { 4323, 435234.23544 };
2373 // Test range-based
for
2374 int array
[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2375 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2376 for (auto
&x
: array
) { x
+= 23; }
2379 // Test lambda expressions
2380 using cxx11test
::eval;
2381 assert
(eval ([](int x
) { return x
*2; }, 21) == 42);
2383 assert
(eval ([&](double x
) { return d
+= x
; }, 3.0) == 5.0);
2385 assert
(eval ([=](double x
) mutable
{ return d
+= x
; }, 4.0) == 9.0);
2389 // Test use of variadic templates
2390 using cxx11test
::sum;
2393 auto c
= sum(1.0, 2.0, 3.0);
2396 // Test constructor delegation
2397 cxx11test
::delegate d1
;
2398 cxx11test
::delegate d2
();
2399 cxx11test
::delegate d3
(45);
2402 // Test override and final
2403 cxx11test
::overridden o1
(55464);
2410 // Test template brackets
2411 test_template
<::test_template
<int
>> v
(test_template
<int
>(12));
2415 char const
*utf8
= u8
"UTF-8 string \u2500";
2416 char16_t const
*utf16
= u
"UTF-8 string \u2500";
2417 char32_t const
*utf32
= U
"UTF-32 string \u2500";
2421 # Test code for whether the C compiler supports C++11 (complete).
2422 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2423 ${ac_cxx_conftest_cxx11_globals}
2426 main (int argc, char **argv)
2429 ${ac_cxx_conftest_cxx98_main}
2430 ${ac_cxx_conftest_cxx11_main}
2435 # Test code for whether the C compiler supports C++98 (complete).
2436 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2438 main (int argc, char **argv)
2441 ${ac_cxx_conftest_cxx98_main}
2447 # Auxiliary files required by this configure script.
2448 ac_aux_files="missing install-sh config.guess config.sub compile"
2450 # Locations in which to look for auxiliary files.
2451 ac_aux_dir_candidates="${srcdir}/build-aux"
2453 # Search for a directory containing all of the required auxiliary files,
2454 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2455 # If we don't
find one directory that contains all the files we need
,
2456 # we report the set of missing files from the *first* directory in
2457 # $ac_aux_dir_candidates and give up.
2458 ac_missing_aux_files
=""
2459 ac_first_candidate
=:
2460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2463 for as_dir
in $ac_aux_dir_candidates
2466 case $as_dir in #(((
2469 *) as_dir
=$as_dir/ ;;
2473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2474 ac_aux_dir_found
=yes
2476 for ac_aux
in $ac_aux_files
2478 # As a special case, if "install-sh" is required, that requirement
2479 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2480 # and $ac_install_sh is set appropriately for whichever one is found.
2481 if test x
"$ac_aux" = x
"install-sh"
2483 if test -f "${as_dir}install-sh"; then
2484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2485 ac_install_sh
="${as_dir}install-sh -c"
2486 elif test -f "${as_dir}install.sh"; then
2487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2488 ac_install_sh
="${as_dir}install.sh -c"
2489 elif test -f "${as_dir}shtool"; then
2490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2491 ac_install_sh
="${as_dir}shtool install -c"
2494 if $ac_first_candidate; then
2495 ac_missing_aux_files
="${ac_missing_aux_files} install-sh"
2501 if test -f "${as_dir}${ac_aux}"; then
2502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2505 if $ac_first_candidate; then
2506 ac_missing_aux_files
="${ac_missing_aux_files} ${ac_aux}"
2513 if test "$ac_aux_dir_found" = yes; then
2514 ac_aux_dir
="$as_dir"
2517 ac_first_candidate
=false
2526 as_fn_error $?
"cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2530 # These three variables are undocumented and unsupported,
2531 # and are intended to be withdrawn in a future Autoconf release.
2532 # They can cause serious problems if a builder's source tree is in a directory
2533 # whose full name contains unusual characters.
2534 if test -f "${ac_aux_dir}config.guess"; then
2535 ac_config_guess
="$SHELL ${ac_aux_dir}config.guess"
2537 if test -f "${ac_aux_dir}config.sub"; then
2538 ac_config_sub
="$SHELL ${ac_aux_dir}config.sub"
2540 if test -f "$ac_aux_dir/configure"; then
2541 ac_configure
="$SHELL ${ac_aux_dir}configure"
2544 # Check that the precious variables saved in the cache have kept the same
2546 ac_cache_corrupted
=false
2547 for ac_var
in $ac_precious_vars; do
2548 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2549 eval ac_new_set
=\
$ac_env_${ac_var}_set
2550 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2551 eval ac_new_val
=\
$ac_env_${ac_var}_value
2552 case $ac_old_set,$ac_new_set in
2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2555 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2556 ac_cache_corrupted
=: ;;
2558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2559 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2560 ac_cache_corrupted
=: ;;
2563 if test "x$ac_old_val" != "x$ac_new_val"; then
2564 # differences in whitespace do not lead to failure.
2565 ac_old_val_w
=`echo x $ac_old_val`
2566 ac_new_val_w
=`echo x $ac_new_val`
2567 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2569 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2570 ac_cache_corrupted
=:
2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2573 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2574 eval $ac_var=\
$ac_old_val
2576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2577 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2579 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2582 # Pass precious variables to config.status.
2583 if test "$ac_new_set" = set; then
2585 *\'*) ac_arg
=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2586 *) ac_arg
=$ac_var=$ac_new_val ;;
2588 case " $ac_configure_args " in
2589 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2590 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2594 if $ac_cache_corrupted; then
2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2598 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2599 as_fn_error $?
"run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2600 and start over" "$LINENO" 5
2602 ## -------------------- ##
2603 ## Main body of script. ##
2604 ## -------------------- ##
2607 ac_cpp
='$CPP $CPPFLAGS'
2608 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2627 ac_cpp
='$CPP $CPPFLAGS'
2628 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2631 if test -n "$ac_tool_prefix"; then
2632 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2633 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 printf %s
"checking for $ac_word... " >&6; }
2636 if test ${ac_cv_prog_CC+y}
2638 printf %s
"(cached) " >&6
2640 if test -n "$CC"; then
2641 ac_cv_prog_CC
="$CC" # Let the user override the test.
2643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2647 case $as_dir in #(((
2650 *) as_dir
=$as_dir/ ;;
2652 for ac_exec_ext
in '' $ac_executable_extensions; do
2653 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2654 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2665 if test -n "$CC"; then
2666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2667 printf "%s\n" "$CC" >&6; }
2669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670 printf "%s\n" "no" >&6; }
2675 if test -z "$ac_cv_prog_CC"; then
2677 # Extract the first word of "gcc", so it can be a program name with args.
2678 set dummy gcc
; ac_word
=$2
2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 printf %s
"checking for $ac_word... " >&6; }
2681 if test ${ac_cv_prog_ac_ct_CC+y}
2683 printf %s
"(cached) " >&6
2685 if test -n "$ac_ct_CC"; then
2686 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2692 case $as_dir in #(((
2695 *) as_dir
=$as_dir/ ;;
2697 for ac_exec_ext
in '' $ac_executable_extensions; do
2698 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2699 ac_cv_prog_ac_ct_CC
="gcc"
2700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2709 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2710 if test -n "$ac_ct_CC"; then
2711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2712 printf "%s\n" "$ac_ct_CC" >&6; }
2714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 printf "%s\n" "no" >&6; }
2718 if test "x$ac_ct_CC" = x
; then
2721 case $cross_compiling:$ac_tool_warned in
2723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2724 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2725 ac_tool_warned
=yes ;;
2733 if test -z "$CC"; then
2734 if test -n "$ac_tool_prefix"; then
2735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2736 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738 printf %s
"checking for $ac_word... " >&6; }
2739 if test ${ac_cv_prog_CC+y}
2741 printf %s
"(cached) " >&6
2743 if test -n "$CC"; then
2744 ac_cv_prog_CC
="$CC" # Let the user override the test.
2746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2750 case $as_dir in #(((
2753 *) as_dir
=$as_dir/ ;;
2755 for ac_exec_ext
in '' $ac_executable_extensions; do
2756 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2757 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2768 if test -n "$CC"; then
2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2770 printf "%s\n" "$CC" >&6; }
2772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 printf "%s\n" "no" >&6; }
2779 if test -z "$CC"; then
2780 # Extract the first word of "cc", so it can be a program name with args.
2781 set dummy cc
; ac_word
=$2
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 printf %s
"checking for $ac_word... " >&6; }
2784 if test ${ac_cv_prog_CC+y}
2786 printf %s
"(cached) " >&6
2788 if test -n "$CC"; then
2789 ac_cv_prog_CC
="$CC" # Let the user override the test.
2792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2796 case $as_dir in #(((
2799 *) as_dir
=$as_dir/ ;;
2801 for ac_exec_ext
in '' $ac_executable_extensions; do
2802 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2803 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2804 ac_prog_rejected
=yes
2808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2815 if test $ac_prog_rejected = yes; then
2816 # We found a bogon in the path, so make sure we never use it.
2817 set dummy
$ac_cv_prog_CC
2819 if test $# != 0; then
2820 # We chose a different compiler from the bogus one.
2821 # However, it has the same basename, so the bogon will be chosen
2822 # first if we set CC to just the basename; use the full file name.
2824 ac_cv_prog_CC
="$as_dir$ac_word${1+' '}$@"
2830 if test -n "$CC"; then
2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2832 printf "%s\n" "$CC" >&6; }
2834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 printf "%s\n" "no" >&6; }
2840 if test -z "$CC"; then
2841 if test -n "$ac_tool_prefix"; then
2842 for ac_prog
in cl.exe
2844 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2845 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 printf %s
"checking for $ac_word... " >&6; }
2848 if test ${ac_cv_prog_CC+y}
2850 printf %s
"(cached) " >&6
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC
="$CC" # Let the user override the test.
2855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2859 case $as_dir in #(((
2862 *) as_dir
=$as_dir/ ;;
2864 for ac_exec_ext
in '' $ac_executable_extensions; do
2865 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2877 if test -n "$CC"; then
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879 printf "%s\n" "$CC" >&6; }
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 printf "%s\n" "no" >&6; }
2886 test -n "$CC" && break
2889 if test -z "$CC"; then
2891 for ac_prog
in cl.exe
2893 # Extract the first word of "$ac_prog", so it can be a program name with args.
2894 set dummy
$ac_prog; ac_word
=$2
2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 printf %s
"checking for $ac_word... " >&6; }
2897 if test ${ac_cv_prog_ac_ct_CC+y}
2899 printf %s
"(cached) " >&6
2901 if test -n "$ac_ct_CC"; then
2902 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2908 case $as_dir in #(((
2911 *) as_dir
=$as_dir/ ;;
2913 for ac_exec_ext
in '' $ac_executable_extensions; do
2914 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2915 ac_cv_prog_ac_ct_CC
="$ac_prog"
2916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2925 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2926 if test -n "$ac_ct_CC"; then
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2928 printf "%s\n" "$ac_ct_CC" >&6; }
2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 printf "%s\n" "no" >&6; }
2935 test -n "$ac_ct_CC" && break
2938 if test "x$ac_ct_CC" = x
; then
2941 case $cross_compiling:$ac_tool_warned in
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2944 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2945 ac_tool_warned
=yes ;;
2952 if test -z "$CC"; then
2953 if test -n "$ac_tool_prefix"; then
2954 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2955 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 printf %s
"checking for $ac_word... " >&6; }
2958 if test ${ac_cv_prog_CC+y}
2960 printf %s
"(cached) " >&6
2962 if test -n "$CC"; then
2963 ac_cv_prog_CC
="$CC" # Let the user override the test.
2965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2969 case $as_dir in #(((
2972 *) as_dir
=$as_dir/ ;;
2974 for ac_exec_ext
in '' $ac_executable_extensions; do
2975 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2976 ac_cv_prog_CC
="${ac_tool_prefix}clang"
2977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2987 if test -n "$CC"; then
2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2989 printf "%s\n" "$CC" >&6; }
2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 printf "%s\n" "no" >&6; }
2997 if test -z "$ac_cv_prog_CC"; then
2999 # Extract the first word of "clang", so it can be a program name with args.
3000 set dummy clang
; ac_word
=$2
3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 printf %s
"checking for $ac_word... " >&6; }
3003 if test ${ac_cv_prog_ac_ct_CC+y}
3005 printf %s
"(cached) " >&6
3007 if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3014 case $as_dir in #(((
3017 *) as_dir
=$as_dir/ ;;
3019 for ac_exec_ext
in '' $ac_executable_extensions; do
3020 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3021 ac_cv_prog_ac_ct_CC
="clang"
3022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3031 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3032 if test -n "$ac_ct_CC"; then
3033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3034 printf "%s\n" "$ac_ct_CC" >&6; }
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 printf "%s\n" "no" >&6; }
3040 if test "x$ac_ct_CC" = x
; then
3043 case $cross_compiling:$ac_tool_warned in
3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3046 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3047 ac_tool_warned
=yes ;;
3058 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3060 as_fn_error $?
"no acceptable C compiler found in \$PATH
3061 See \`config.log' for more details" "$LINENO" 5; }
3063 # Provide some information about the compiler.
3064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3067 for ac_option
in --version -v -V -qversion -version; do
3068 { { ac_try
="$ac_compiler $ac_option >&5"
3070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 printf "%s\n" "$ac_try_echo"; } >&5
3075 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3077 if test -s conftest.err; then
3079 ... rest of stderr output deleted ...
3080 10q' conftest.err >conftest.er1
3081 cat conftest.er1 >&5
3083 rm -f conftest.er1 conftest.err
3084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085 test $ac_status = 0; }
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089 /* end confdefs.h. */
3099 ac_clean_files_save=$ac_clean_files
3100 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3101 # Try to create an executable without -o first, disregard a.out.
3102 # It will help us diagnose broken compilers, and finding out an intuition
3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3105 printf %s "checking whether the C compiler works... " >&6; }
3106 ac_link_default=`printf "%s\n" "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3108 # The possible output files:
3109 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3112 for ac_file in $ac_files
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3116 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3121 if { { ac_try="$ac_link_default"
3123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3124 *) ac_try_echo
=$ac_try;;
3126 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 printf "%s\n" "$ac_try_echo"; } >&5
3128 (eval "$ac_link_default") 2>&5
3130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131 test $ac_status = 0; }
3133 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3134 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3135 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3136 # so that the user can short-circuit this test for compilers unknown to
3138 for ac_file
in $ac_files ''
3140 test -f "$ac_file" ||
continue
3142 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3145 # We found the default executable, but exeext='' is most
3149 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no
;
3151 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3153 # We set ac_cv_exeext here because the later test for it is not
3154 # safe: cross compilers may not add the suffix if given an `-o'
3155 # argument, so we may need to know it at that point already.
3156 # Even if this section looks crufty: it has the advantage of
3163 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3168 if test -z "$ac_file"
3170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 printf "%s\n" "no" >&6; }
3172 printf "%s\n" "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.
$ac_ext >&5
3175 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3177 as_fn_error
77 "C compiler cannot create executables
3178 See \`config.log' for more details" "$LINENO" 5; }
3180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3181 printf "%s\n" "yes" >&6; }
3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3184 printf %s
"checking for C compiler default output file name... " >&6; }
3185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3186 printf "%s\n" "$ac_file" >&6; }
3187 ac_exeext
=$ac_cv_exeext
3189 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3190 ac_clean_files
=$ac_clean_files_save
3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3192 printf %s
"checking for suffix of executables... " >&6; }
3193 if { { ac_try
="$ac_link"
3195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199 printf "%s\n" "$ac_try_echo"; } >&5
3200 (eval "$ac_link") 2>&5
3202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 test $ac_status = 0; }
3205 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3206 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3207 # work properly (i.e., refer to `conftest.exe'), while it won't with
3209 for ac_file
in conftest.exe conftest conftest.
*; do
3210 test -f "$ac_file" ||
continue
3212 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3213 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3219 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3222 See \`config.log' for more details" "$LINENO" 5; }
3224 rm -f conftest conftest
$ac_cv_exeext
3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3226 printf "%s\n" "$ac_cv_exeext" >&6; }
3228 rm -f conftest.
$ac_ext
3229 EXEEXT
=$ac_cv_exeext
3231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3237 FILE *f = fopen ("conftest.out", "w");
3238 return ferror (f) || fclose (f) != 0;
3244 ac_clean_files
="$ac_clean_files conftest.out"
3245 # Check that the compiler produces executables we can run. If not, either
3246 # the compiler is broken, or we cross compile.
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3248 printf %s
"checking whether we are cross compiling... " >&6; }
3249 if test "$cross_compiling" != yes; then
3250 { { ac_try
="$ac_link"
3252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256 printf "%s\n" "$ac_try_echo"; } >&5
3257 (eval "$ac_link") 2>&5
3259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }
3261 if { ac_try='./conftest$ac_cv_exeext'
3262 { { case "(($ac_try" in
3263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3264 *) ac_try_echo
=$ac_try;;
3266 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267 printf "%s\n" "$ac_try_echo"; } >&5
3268 (eval "$ac_try") 2>&5
3270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271 test $ac_status = 0; }; }; then
3274 if test "$cross_compiling" = maybe
; then
3277 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error
77 "cannot run C compiled programs.
3280 If you meant to cross compile, use \`--host'.
3281 See \`config.log' for more details" "$LINENO" 5; }
3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3286 printf "%s\n" "$cross_compiling" >&6; }
3288 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3289 ac_clean_files
=$ac_clean_files_save
3290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3291 printf %s
"checking for suffix of object files... " >&6; }
3292 if test ${ac_cv_objext+y}
3294 printf %s
"(cached) " >&6
3296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3307 rm -f conftest.o conftest.obj
3308 if { { ac_try
="$ac_compile"
3310 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314 printf "%s\n" "$ac_try_echo"; } >&5
3315 (eval "$ac_compile") 2>&5
3317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318 test $ac_status = 0; }
3320 for ac_file in conftest.o conftest.obj conftest.*; do
3321 test -f "$ac_file" || continue;
3323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3324 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3329 printf "%s\n" "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3332 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3334 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3335 See \
`config.log' for more details" "$LINENO" 5; }
3337 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3340 printf "%s\n" "$ac_cv_objext" >&6; }
3341 OBJEXT=$ac_cv_objext
3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3344 printf %s "checking whether the compiler supports GNU C... " >&6; }
3345 if test ${ac_cv_c_compiler_gnu+y}
3347 printf %s "(cached) " >&6
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3363 if ac_fn_c_try_compile "$LINENO"
3369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3370 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3374 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3377 if test $ac_compiler_gnu = yes; then
3382 ac_test_CFLAGS=${CFLAGS+y}
3383 ac_save_CFLAGS=$CFLAGS
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3385 printf %s "checking whether $CC accepts -g... " >&6; }
3386 if test ${ac_cv_prog_cc_g+y}
3388 printf %s "(cached) " >&6
3390 ac_save_c_werror_flag=$ac_c_werror_flag
3391 ac_c_werror_flag=yes
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3405 if ac_fn_c_try_compile "$LINENO"
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3421 if ac_fn_c_try_compile "$LINENO"
3425 ac_c_werror_flag=$ac_save_c_werror_flag
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3438 if ac_fn_c_try_compile "$LINENO"
3442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3447 ac_c_werror_flag=$ac_save_c_werror_flag
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3450 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3451 if test $ac_test_CFLAGS; then
3452 CFLAGS=$ac_save_CFLAGS
3453 elif test $ac_cv_prog_cc_g = yes; then
3454 if test "$GCC" = yes; then
3460 if test "$GCC" = yes; then
3467 if test x$ac_prog_cc_stdc = xno
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3470 printf %s "checking for $CC option to enable C11 features... " >&6; }
3471 if test ${ac_cv_prog_cc_c11+y}
3473 printf %s "(cached) " >&6
3475 ac_cv_prog_cc_c11=no
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3479 $ac_c_conftest_c11_program
3481 for ac_arg in '' -std=gnu11
3483 CC="$ac_save_CC $ac_arg"
3484 if ac_fn_c_try_compile "$LINENO"
3486 ac_cv_prog_cc_c11=$ac_arg
3488 rm -f core conftest.err conftest.$ac_objext conftest.beam
3489 test "x$ac_cv_prog_cc_c11" != "xno" && break
3491 rm -f conftest.$ac_ext
3495 if test "x$ac_cv_prog_cc_c11" = xno
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3498 printf "%s\n" "unsupported" >&6; }
3500 if test "x$ac_cv_prog_cc_c11" = x
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3503 printf "%s\n" "none needed" >&6; }
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3506 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3507 CC="$CC $ac_cv_prog_cc_c11"
3509 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3513 if test x$ac_prog_cc_stdc = xno
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3516 printf %s "checking for $CC option to enable C99 features... " >&6; }
3517 if test ${ac_cv_prog_cc_c99+y}
3519 printf %s "(cached) " >&6
3521 ac_cv_prog_cc_c99=no
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3525 $ac_c_conftest_c99_program
3527 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3529 CC="$ac_save_CC $ac_arg"
3530 if ac_fn_c_try_compile "$LINENO"
3532 ac_cv_prog_cc_c99=$ac_arg
3534 rm -f core conftest.err conftest.$ac_objext conftest.beam
3535 test "x$ac_cv_prog_cc_c99" != "xno" && break
3537 rm -f conftest.$ac_ext
3541 if test "x$ac_cv_prog_cc_c99" = xno
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3544 printf "%s\n" "unsupported" >&6; }
3546 if test "x$ac_cv_prog_cc_c99" = x
3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3549 printf "%s\n" "none needed" >&6; }
3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3552 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3553 CC="$CC $ac_cv_prog_cc_c99"
3555 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3559 if test x$ac_prog_cc_stdc = xno
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3562 printf %s "checking for $CC option to enable C89 features... " >&6; }
3563 if test ${ac_cv_prog_cc_c89+y}
3565 printf %s "(cached) " >&6
3567 ac_cv_prog_cc_c89=no
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3571 $ac_c_conftest_c89_program
3573 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3575 CC="$ac_save_CC $ac_arg"
3576 if ac_fn_c_try_compile "$LINENO"
3578 ac_cv_prog_cc_c89=$ac_arg
3580 rm -f core conftest.err conftest.$ac_objext conftest.beam
3581 test "x$ac_cv_prog_cc_c89" != "xno" && break
3583 rm -f conftest.$ac_ext
3587 if test "x$ac_cv_prog_cc_c89" = xno
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3590 printf "%s\n" "unsupported" >&6; }
3592 if test "x$ac_cv_prog_cc_c89" = x
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3595 printf "%s\n" "none needed" >&6; }
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3598 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3599 CC="$CC $ac_cv_prog_cc_c89"
3601 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3607 ac_cpp='$CPP $CPPFLAGS'
3608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614 # Expand $ac_aux_dir to an absolute path.
3615 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3619 ac_cpp='$CPP $CPPFLAGS'
3620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3624 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3625 if test ${am_cv_prog_cc_c_o+y}
3627 printf %s "(cached) " >&6
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3640 # Make sure it works both with $CC and with simple cc.
3641 # Following AC_PROG_CC_C_O, we do the test twice because some
3642 # compilers refuse to overwrite an existing .o file with -o,
3643 # though they will create one.
3644 am_cv_prog_cc_c_o=yes
3646 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3647 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } \
3651 && test -f conftest2.$ac_objext; then
3654 am_cv_prog_cc_c_o=no
3658 rm -f core conftest*
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3662 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3663 if test "$am_cv_prog_cc_c_o" != yes; then
3664 # Losing compiler, so override with the script.
3665 # FIXME: It is wrong to rewrite CC.
3666 # But if we don't then we get into trouble of one sort or another.
3667 # A longer-term fix would be to have automake use am__CC in this case,
3668 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3669 CC="$am_aux_dir/compile $CC"
3672 ac_cpp='$CPP $CPPFLAGS'
3673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685 ac_cpp='$CXXCPP $CPPFLAGS'
3686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3689 if test -z "$CXX"; then
3690 if test -n "$CCC"; then
3693 if test -n "$ac_tool_prefix"; then
3694 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699 printf %s "checking for $ac_word... " >&6; }
3700 if test ${ac_cv_prog_CXX+y}
3702 printf %s "(cached) " >&6
3704 if test -n "$CXX"; then
3705 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 case $as_dir in #(((
3714 *) as_dir=$as_dir/ ;;
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3729 if test -n "$CXX"; then
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3731 printf "%s\n" "$CXX" >&6; }
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 printf "%s\n" "no" >&6; }
3738 test -n "$CXX" && break
3741 if test -z "$CXX"; then
3743 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3745 # Extract the first word of "$ac_prog", so it can be a program name with args.
3746 set dummy $ac_prog; ac_word=$2
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 printf %s "checking for $ac_word... " >&6; }
3749 if test ${ac_cv_prog_ac_ct_CXX+y}
3751 printf %s "(cached) " >&6
3753 if test -n "$ac_ct_CXX"; then
3754 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 case $as_dir in #(((
3763 *) as_dir=$as_dir/ ;;
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3767 ac_cv_prog_ac_ct_CXX="$ac_prog"
3768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3777 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3778 if test -n "$ac_ct_CXX"; then
3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3780 printf "%s\n" "$ac_ct_CXX" >&6; }
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 printf "%s\n" "no" >&6; }
3787 test -n "$ac_ct_CXX" && break
3790 if test "x$ac_ct_CXX" = x; then
3793 case $cross_compiling:$ac_tool_warned in
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3796 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3797 ac_tool_warned=yes ;;
3805 # Provide some information about the compiler.
3806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3809 for ac_option in --version -v -V -qversion; do
3810 { { ac_try="$ac_compiler $ac_option >&5"
3812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3813 *) ac_try_echo
=$ac_try;;
3815 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 printf "%s\n" "$ac_try_echo"; } >&5
3817 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3819 if test -s conftest.err
; then
3821 ... rest of stderr output deleted ...
3822 10q' conftest.err
>conftest.er1
3823 cat conftest.er1
>&5
3825 rm -f conftest.er1 conftest.err
3826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }
3830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
3831 printf %s
"checking whether the compiler supports GNU C++... " >&6; }
3832 if test ${ac_cv_cxx_compiler_gnu+y}
3834 printf %s
"(cached) " >&6
3836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3850 if ac_fn_cxx_try_compile
"$LINENO"
3856 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3857 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3861 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
3862 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3864 if test $ac_compiler_gnu = yes; then
3869 ac_test_CXXFLAGS
=${CXXFLAGS+y}
3870 ac_save_CXXFLAGS
=$CXXFLAGS
3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3872 printf %s
"checking whether $CXX accepts -g... " >&6; }
3873 if test ${ac_cv_prog_cxx_g+y}
3875 printf %s
"(cached) " >&6
3877 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3878 ac_cxx_werror_flag
=yes
3881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3892 if ac_fn_cxx_try_compile
"$LINENO"
3894 ac_cv_prog_cxx_g
=yes
3897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3908 if ac_fn_cxx_try_compile
"$LINENO"
3912 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3925 if ac_fn_cxx_try_compile
"$LINENO"
3927 ac_cv_prog_cxx_g
=yes
3929 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3931 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3933 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3934 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3937 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
3938 if test $ac_test_CXXFLAGS; then
3939 CXXFLAGS
=$ac_save_CXXFLAGS
3940 elif test $ac_cv_prog_cxx_g = yes; then
3941 if test "$GXX" = yes; then
3947 if test "$GXX" = yes; then
3953 ac_prog_cxx_stdcxx
=no
3954 if test x
$ac_prog_cxx_stdcxx = xno
3956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
3957 printf %s
"checking for $CXX option to enable C++11 features... " >&6; }
3958 if test ${ac_cv_prog_cxx_11+y}
3960 printf %s
"(cached) " >&6
3962 ac_cv_prog_cxx_11
=no
3964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966 $ac_cxx_conftest_cxx11_program
3968 for ac_arg
in '' -std=gnu
++11 -std=gnu
++0x
-std=c
++11 -std=c
++0x
-qlanglvl=extended0x
-AA
3970 CXX
="$ac_save_CXX $ac_arg"
3971 if ac_fn_cxx_try_compile
"$LINENO"
3973 ac_cv_prog_cxx_cxx11
=$ac_arg
3975 rm -f core conftest.err conftest.
$ac_objext conftest.beam
3976 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
3978 rm -f conftest.
$ac_ext
3982 if test "x$ac_cv_prog_cxx_cxx11" = xno
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3985 printf "%s\n" "unsupported" >&6; }
3987 if test "x$ac_cv_prog_cxx_cxx11" = x
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3990 printf "%s\n" "none needed" >&6; }
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
3993 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
3994 CXX
="$CXX $ac_cv_prog_cxx_cxx11"
3996 ac_cv_prog_cxx_stdcxx
=$ac_cv_prog_cxx_cxx11
3997 ac_prog_cxx_stdcxx
=cxx11
4000 if test x
$ac_prog_cxx_stdcxx = xno
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4003 printf %s
"checking for $CXX option to enable C++98 features... " >&6; }
4004 if test ${ac_cv_prog_cxx_98+y}
4006 printf %s
"(cached) " >&6
4008 ac_cv_prog_cxx_98
=no
4010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012 $ac_cxx_conftest_cxx98_program
4014 for ac_arg
in '' -std=gnu
++98 -std=c
++98 -qlanglvl=extended
-AA
4016 CXX
="$ac_save_CXX $ac_arg"
4017 if ac_fn_cxx_try_compile
"$LINENO"
4019 ac_cv_prog_cxx_cxx98
=$ac_arg
4021 rm -f core conftest.err conftest.
$ac_objext conftest.beam
4022 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4024 rm -f conftest.
$ac_ext
4028 if test "x$ac_cv_prog_cxx_cxx98" = xno
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4031 printf "%s\n" "unsupported" >&6; }
4033 if test "x$ac_cv_prog_cxx_cxx98" = x
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4036 printf "%s\n" "none needed" >&6; }
4038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4039 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4040 CXX
="$CXX $ac_cv_prog_cxx_cxx98"
4042 ac_cv_prog_cxx_stdcxx
=$ac_cv_prog_cxx_cxx98
4043 ac_prog_cxx_stdcxx
=cxx98
4048 ac_cpp
='$CPP $CPPFLAGS'
4049 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4054 printf %s
"checking for a sed that does not truncate output... " >&6; }
4055 if test ${ac_cv_path_SED+y}
4057 printf %s
"(cached) " >&6
4059 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4060 for ac_i
in 1 2 3 4 5 6 7; do
4061 ac_script
="$ac_script$as_nl$ac_script"
4063 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4064 { ac_script
=; unset ac_script
;}
4065 if test -z "$SED"; then
4066 ac_path_SED_found
=false
4067 # Loop through the user's path and test for each of PROGNAME-LIST
4068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4072 case $as_dir in #(((
4075 *) as_dir
=$as_dir/ ;;
4077 for ac_prog
in sed gsed
4079 for ac_exec_ext
in '' $ac_executable_extensions; do
4080 ac_path_SED
="$as_dir$ac_prog$ac_exec_ext"
4081 as_fn_executable_p
"$ac_path_SED" ||
continue
4082 # Check for GNU ac_path_SED and select it if it is found.
4083 # Check for GNU $ac_path_SED
4084 case `"$ac_path_SED" --version 2>&1` in
4086 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4089 printf %s
0123456789 >"conftest.in"
4092 cat "conftest.in" "conftest.in" >"conftest.tmp"
4093 mv "conftest.tmp" "conftest.in"
4094 cp "conftest.in" "conftest.nl"
4095 printf "%s\n" '' >> "conftest.nl"
4096 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4097 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4098 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4099 if test $ac_count -gt ${ac_path_SED_max-0}; then
4100 # Best one so far, save it but keep looking for a better one
4101 ac_cv_path_SED
="$ac_path_SED"
4102 ac_path_SED_max
=$ac_count
4104 # 10*(2^10) chars as input seems more than enough
4105 test $ac_count -gt 10 && break
4107 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4110 $ac_path_SED_found && break 3
4115 if test -z "$ac_cv_path_SED"; then
4116 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4124 printf "%s\n" "$ac_cv_path_SED" >&6; }
4125 SED
="$ac_cv_path_SED"
4129 ac_cpp
='$CXXCPP $CPPFLAGS'
4130 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4136 # Make sure we can run config.sub.
4137 $SHELL "${ac_aux_dir}config.sub" sun4
>/dev
/null
2>&1 ||
4138 as_fn_error $?
"cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4141 printf %s
"checking build system type... " >&6; }
4142 if test ${ac_cv_build+y}
4144 printf %s
"(cached) " >&6
4146 ac_build_alias
=$build_alias
4147 test "x$ac_build_alias" = x
&&
4148 ac_build_alias
=`$SHELL "${ac_aux_dir}config.guess"`
4149 test "x$ac_build_alias" = x
&&
4150 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4151 ac_cv_build
=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4152 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4156 printf "%s\n" "$ac_cv_build" >&6; }
4157 case $ac_cv_build in
4159 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4162 ac_save_IFS
=$IFS; IFS
='-'
4168 # Remember, the first character of IFS is used to create $*,
4169 # except with old shells:
4172 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4176 printf %s
"checking host system type... " >&6; }
4177 if test ${ac_cv_host+y}
4179 printf %s
"(cached) " >&6
4181 if test "x$host_alias" = x
; then
4182 ac_cv_host
=$ac_cv_build
4184 ac_cv_host
=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4185 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4190 printf "%s\n" "$ac_cv_host" >&6; }
4193 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4196 ac_save_IFS
=$IFS; IFS
='-'
4202 # Remember, the first character of IFS is used to create $*,
4203 # except with old shells:
4206 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4209 am__api_version
='1.16'
4212 # Find a good install program. We prefer a C program (faster),
4213 # so one script is as good as another. But avoid the broken or
4214 # incompatible versions:
4215 # SysV /etc/install, /usr/sbin/install
4216 # SunOS /usr/etc/install
4217 # IRIX /sbin/install
4219 # AmigaOS /C/install, which installs bootblocks on floppy discs
4220 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4221 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4222 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4223 # OS/2's system install, which has a completely different semantic
4224 # ./install, which can be erroneously created by make from ./install.sh.
4225 # Reject install programs that cannot install multiple files.
4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4227 printf %s
"checking for a BSD-compatible install... " >&6; }
4228 if test -z "$INSTALL"; then
4229 if test ${ac_cv_path_install+y}
4231 printf %s
"(cached) " >&6
4233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4237 case $as_dir in #(((
4240 *) as_dir
=$as_dir/ ;;
4242 # Account for fact that we put trailing slashes in our PATH walk.
4245 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4246 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4249 # OSF1 and SCO ODT 3.0 have their own names for install.
4250 # Don't use installbsd from OSF since it installs stuff as root
4252 for ac_prog
in ginstall scoinst
install; do
4253 for ac_exec_ext
in '' $ac_executable_extensions; do
4254 if as_fn_executable_p
"$as_dir$ac_prog$ac_exec_ext"; then
4255 if test $ac_prog = install &&
4256 grep dspmsg
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4257 # AIX install. It has an incompatible calling convention.
4259 elif test $ac_prog = install &&
4260 grep pwplus
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4261 # program-specific install script used by HP pwplus--don't use.
4264 rm -rf conftest.one conftest.two conftest.dir
4265 echo one
> conftest.one
4266 echo two
> conftest.two
4268 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir/" &&
4269 test -s conftest.one
&& test -s conftest.two
&&
4270 test -s conftest.dir
/conftest.one
&&
4271 test -s conftest.dir
/conftest.two
4273 ac_cv_path_install
="$as_dir$ac_prog$ac_exec_ext -c"
4286 rm -rf conftest.one conftest.two conftest.dir
4289 if test ${ac_cv_path_install+y}; then
4290 INSTALL
=$ac_cv_path_install
4292 # As a last resort, use the slow shell script. Don't cache a
4293 # value for INSTALL within a source directory, because that will
4294 # break other packages using the cache if that directory is
4295 # removed, or if the value is a relative name.
4296 INSTALL
=$ac_install_sh
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4300 printf "%s\n" "$INSTALL" >&6; }
4302 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4303 # It thinks the first close brace ends the variable substitution.
4304 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4306 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4308 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4311 printf %s
"checking whether build environment is sane... " >&6; }
4312 # Reject unsafe characters in $srcdir or the absolute working directory
4313 # name. Accept space and tab only in the latter.
4317 *[\\\"\
#\$\&\'\`$am_lf]*)
4318 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
4321 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
4322 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4325 # Do 'set' in a subshell so we don't clobber the current shell's
4326 # arguments. Must try -L first in case configure is actually a
4327 # symlink; some systems play weird games with the mod time of symlinks
4328 # (eg FreeBSD returns the mod time of the symlink's containing
4332 for am_try
in 1 2; do
4333 echo "timestamp, slept: $am_has_slept" > conftest.
file
4334 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4335 if test "$*" = "X"; then
4337 set X
`ls -t "$srcdir/configure" conftest.file`
4339 if test "$*" != "X $srcdir/configure conftest.file" \
4340 && test "$*" != "X conftest.file $srcdir/configure"; then
4342 # If neither matched, then we have a broken ls. This can happen
4343 # if, for instance, CONFIG_SHELL is bash and it inherits a
4344 # broken ls alias from the environment. This has actually
4345 # happened. Such a system could not be considered "sane".
4346 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
4347 alias in your environment" "$LINENO" 5
4349 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
4356 test "$2" = conftest.
file
4362 as_fn_error $?
"newly created file is older than distributed files!
4363 Check your system clock" "$LINENO" 5
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4366 printf "%s\n" "yes" >&6; }
4367 # If we didn't sleep, we still need to ensure time stamps of config.status and
4368 # generated files are strictly newer.
4370 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
4377 test "$program_prefix" != NONE
&&
4378 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4379 # Use a double $ so make ignores it.
4380 test "$program_suffix" != NONE
&&
4381 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4382 # Double any \ or $.
4383 # By default was `s,x,x', remove it if useless.
4384 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4385 program_transform_name
=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4388 if test x
"${MISSING+set}" != xset
; then
4389 MISSING
="\${SHELL} '$am_aux_dir/missing'"
4391 # Use eval to expand $SHELL
4392 if eval "$MISSING --is-lightweight"; then
4393 am_missing_run
="$MISSING "
4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4397 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4400 if test x
"${install_sh+set}" != xset
; then
4403 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4405 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4409 # Installed binaries are usually stripped using 'strip' when the user
4410 # run "make install-strip". However 'strip' might not be the right
4411 # tool to use in cross-compilation environments, therefore Automake
4412 # will honor the 'STRIP' environment variable to overrule this program.
4413 if test "$cross_compiling" != no
; then
4414 if test -n "$ac_tool_prefix"; then
4415 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4416 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418 printf %s
"checking for $ac_word... " >&6; }
4419 if test ${ac_cv_prog_STRIP+y}
4421 printf %s
"(cached) " >&6
4423 if test -n "$STRIP"; then
4424 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4430 case $as_dir in #(((
4433 *) as_dir
=$as_dir/ ;;
4435 for ac_exec_ext
in '' $ac_executable_extensions; do
4436 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4437 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4447 STRIP
=$ac_cv_prog_STRIP
4448 if test -n "$STRIP"; then
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4450 printf "%s\n" "$STRIP" >&6; }
4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 printf "%s\n" "no" >&6; }
4458 if test -z "$ac_cv_prog_STRIP"; then
4460 # Extract the first word of "strip", so it can be a program name with args.
4461 set dummy strip
; ac_word
=$2
4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463 printf %s
"checking for $ac_word... " >&6; }
4464 if test ${ac_cv_prog_ac_ct_STRIP+y}
4466 printf %s
"(cached) " >&6
4468 if test -n "$ac_ct_STRIP"; then
4469 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4475 case $as_dir in #(((
4478 *) as_dir
=$as_dir/ ;;
4480 for ac_exec_ext
in '' $ac_executable_extensions; do
4481 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4482 ac_cv_prog_ac_ct_STRIP
="strip"
4483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4492 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4493 if test -n "$ac_ct_STRIP"; then
4494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4495 printf "%s\n" "$ac_ct_STRIP" >&6; }
4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 printf "%s\n" "no" >&6; }
4501 if test "x$ac_ct_STRIP" = x
; then
4504 case $cross_compiling:$ac_tool_warned in
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4507 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4508 ac_tool_warned
=yes ;;
4513 STRIP
="$ac_cv_prog_STRIP"
4517 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4521 printf %s
"checking for a race-free mkdir -p... " >&6; }
4522 if test -z "$MKDIR_P"; then
4523 if test ${ac_cv_path_mkdir+y}
4525 printf %s
"(cached) " >&6
4527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4528 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
4531 case $as_dir in #(((
4534 *) as_dir
=$as_dir/ ;;
4536 for ac_prog
in mkdir gmkdir
; do
4537 for ac_exec_ext
in '' $ac_executable_extensions; do
4538 as_fn_executable_p
"$as_dir$ac_prog$ac_exec_ext" ||
continue
4539 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4540 'mkdir ('*'coreutils) '* | \
4542 'mkdir (fileutils) '4.1*)
4543 ac_cv_path_mkdir
=$as_dir$ac_prog$ac_exec_ext
4553 test -d .
/--version && rmdir .
/--version
4554 if test ${ac_cv_path_mkdir+y}; then
4555 MKDIR_P
="$ac_cv_path_mkdir -p"
4557 # As a last resort, use the slow shell script. Don't cache a
4558 # value for MKDIR_P within a source directory, because that will
4559 # break other packages using the cache if that directory is
4560 # removed, or if the value is a relative name.
4561 MKDIR_P
="$ac_install_sh -d"
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4565 printf "%s\n" "$MKDIR_P" >&6; }
4567 for ac_prog
in gawk mawk nawk
awk
4569 # Extract the first word of "$ac_prog", so it can be a program name with args.
4570 set dummy
$ac_prog; ac_word
=$2
4571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 printf %s
"checking for $ac_word... " >&6; }
4573 if test ${ac_cv_prog_AWK+y}
4575 printf %s
"(cached) " >&6
4577 if test -n "$AWK"; then
4578 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4580 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4584 case $as_dir in #(((
4587 *) as_dir
=$as_dir/ ;;
4589 for ac_exec_ext
in '' $ac_executable_extensions; do
4590 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4591 ac_cv_prog_AWK
="$ac_prog"
4592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4602 if test -n "$AWK"; then
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4604 printf "%s\n" "$AWK" >&6; }
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 printf "%s\n" "no" >&6; }
4611 test -n "$AWK" && break
4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4615 printf %s
"checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4617 ac_make
=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4618 if eval test \
${ac_cv_prog_make_${ac_make}_set+y}
4620 printf %s
"(cached) " >&6
4622 cat >conftest.
make <<\_ACEOF
4625 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4627 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4628 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4630 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4632 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4636 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4638 printf "%s\n" "yes" >&6; }
4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 printf "%s\n" "no" >&6; }
4643 SET_MAKE
="MAKE=${MAKE-make}"
4646 rm -rf .tst
2>/dev
/null
4647 mkdir .tst
2>/dev
/null
4648 if test -d .tst
; then
4653 rmdir .tst
2>/dev
/null
4655 DEPDIR
="${am__leading_dot}deps"
4657 ac_config_commands
="$ac_config_commands depfiles"
4659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4660 printf %s
"checking whether ${MAKE-make} supports the include directive... " >&6; }
4661 cat > confinc.mk
<< 'END'
4663 @
echo this is the am__doit target
>confinc.out
4668 # BSD make does it like this.
4669 echo '.include "confinc.mk" # ignored' > confmf.BSD
4670 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4671 echo 'include confinc.mk # ignored' > confmf.GNU
4673 for s
in GNU BSD
; do
4674 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4675 (${MAKE-make} -f confmf.
$s && cat confinc.out
) >&5 2>&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }
4679 case $?
:`cat confinc.out 2>/dev/null` in #(
4680 '0:this is the am__doit target') :
4683 am__include
='.include' am__quote
='"' ;; #(
4685 am__include
='include' am__quote
='' ;;
4690 if test "$am__include" != "#"; then
4691 _am_result
="yes ($s style)"
4695 rm -f confinc.
* confmf.
*
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4697 printf "%s\n" "${_am_result}" >&6; }
4699 # Check whether --enable-dependency-tracking was given.
4700 if test ${enable_dependency_tracking+y}
4702 enableval
=$enable_dependency_tracking;
4705 if test "x$enable_dependency_tracking" != xno
; then
4706 am_depcomp
="$ac_aux_dir/depcomp"
4710 if test "x$enable_dependency_tracking" != xno; then
4719 # Check whether --enable-silent-rules was given.
4720 if test ${enable_silent_rules+y}
4722 enableval
=$enable_silent_rules;
4725 case $enable_silent_rules in # (((
4726 yes) AM_DEFAULT_VERBOSITY
=0;;
4727 no
) AM_DEFAULT_VERBOSITY
=1;;
4728 *) AM_DEFAULT_VERBOSITY
=1;;
4730 am_make
=${MAKE-make}
4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4732 printf %s
"checking whether $am_make supports nested variables... " >&6; }
4733 if test ${am_cv_make_support_nested_variables+y}
4735 printf %s
"(cached) " >&6
4737 if printf "%s\n" 'TRUE=$(BAR$(V))
4743 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
4744 am_cv_make_support_nested_variables
=yes
4746 am_cv_make_support_nested_variables
=no
4749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4750 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4751 if test $am_cv_make_support_nested_variables = yes; then
4753 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
4755 AM_V
=$AM_DEFAULT_VERBOSITY
4756 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
4760 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4761 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4762 # is not polluted with repeated "-I."
4763 am__isrc
=' -I$(srcdir)'
4764 # test to see if srcdir already configured
4765 if test -f $srcdir/config.status
; then
4766 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4770 # test whether we have cygpath
4771 if test -z "$CYGPATH_W"; then
4772 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
4773 CYGPATH_W
='cygpath -w'
4780 # Define the identity of the package.
4781 PACKAGE
='qbittorrent'
4782 VERSION
='v4.5.0alpha'
4785 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4788 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4790 # Some tools Automake needs.
4792 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4795 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4798 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4801 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4804 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4806 # For better backward compatibility. To be removed once Automake 1.9.x
4807 # dies out for good. For more background, see:
4808 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4809 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4810 mkdir_p
='$(MKDIR_P)'
4812 # We need awk for the "check" target (and possibly the TAP driver). The
4813 # system "awk" is bad on some platforms.
4814 # Always define AMTAR for backward compatibility. Yes, it's still used
4815 # in the wild :-( We should find a proper way to deprecate it ...
4819 # We'll loop over all known methods to create a tar archive until one works.
4820 _am_tools
='gnutar pax cpio none'
4822 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
4828 depcc
="$CC" am_compiler_list
=
4830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4831 printf %s
"checking dependency style of $depcc... " >&6; }
4832 if test ${am_cv_CC_dependencies_compiler_type+y}
4834 printf %s
"(cached) " >&6
4836 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4837 # We make a subdir and do the tests there. Otherwise we can end up
4838 # making bogus files that we don't know about and never remove. For
4839 # instance it was reported that on HP-UX the gcc test will end up
4840 # making a dummy file named 'D' -- because '-MD' means "put the output
4844 # Copy depcomp to subdir because otherwise we won't find it if we're
4845 # using a relative directory.
4846 cp "$am_depcomp" conftest.dir
4848 # We will build objects and dependencies in a subdirectory because
4849 # it helps to detect inapplicable dependency modes. For instance
4850 # both Tru64's cc and ICC support -MD to output dependencies as a
4851 # side effect of compilation, but ICC will put the dependencies in
4852 # the current directory while Tru64 will put them in the object
4856 am_cv_CC_dependencies_compiler_type
=none
4857 if test "$am_compiler_list" = ""; then
4858 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4861 case " $depcc " in #(
4862 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4865 for depmode
in $am_compiler_list; do
4866 # Setup a source with many dependencies, because some compilers
4867 # like to wrap large dependency lists on column 80 (with \), and
4868 # we should not choose a depcomp mode which is confused by this.
4870 # We need to recreate these files for each test, as the compiler may
4871 # overwrite some of them when testing with obscure command lines.
4872 # This happens at least with the AIX C compiler.
4874 for i
in 1 2 3 4 5 6; do
4875 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4876 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4877 # Solaris 10 /bin/sh.
4878 echo '/* dummy */' > sub
/conftst
$i.h
4880 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4882 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4883 # mode. It turns out that the SunPro C++ compiler does not properly
4884 # handle '-M -o', and we need to detect this. Also, some Intel
4885 # versions had trouble with output in subdirs.
4886 am__obj
=sub
/conftest.
${OBJEXT-o}
4887 am__minus_obj
="-o $am__obj"
4890 # This depmode causes a compiler race in universal mode.
4891 test "$am__universal" = false ||
continue
4894 # After this tag, mechanisms are not by side-effect, so they'll
4895 # only be used when explicitly requested.
4896 if test "x$enable_dependency_tracking" = xyes
; then
4902 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4903 # This compiler won't grok '-c -o', but also, the minuso test has
4904 # not run yet. These depmodes are late enough in the game, and
4905 # so weak that their functioning should not be impacted.
4906 am__obj
=conftest.
${OBJEXT-o}
4911 if depmode
=$depmode \
4912 source=sub
/conftest.c object
=$am__obj \
4913 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4914 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4915 >/dev
/null
2>conftest.err
&&
4916 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4917 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4918 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4919 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4920 # icc doesn't choke on unknown options, it will just issue warnings
4921 # or remarks (even with -Werror). So we grep stderr for any message
4922 # that says an option was ignored or not supported.
4923 # When given -MP, icc 7.0 and 7.1 complain thusly:
4924 # icc: Command line warning: ignoring option '-M'; no argument required
4925 # The diagnosis changed in icc 8.0:
4926 # icc: Command line remark: option '-MP' not supported
4927 if (grep 'ignoring option' conftest.err ||
4928 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4929 am_cv_CC_dependencies_compiler_type
=$depmode
4938 am_cv_CC_dependencies_compiler_type
=none
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4943 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4944 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4947 test "x$enable_dependency_tracking" != xno \
4948 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4950 am__fastdepCC_FALSE
='#'
4952 am__fastdepCC_TRUE
='#'
4953 am__fastdepCC_FALSE
=
4957 depcc
="$CXX" am_compiler_list
=
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4960 printf %s
"checking dependency style of $depcc... " >&6; }
4961 if test ${am_cv_CXX_dependencies_compiler_type+y}
4963 printf %s
"(cached) " >&6
4965 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4966 # We make a subdir and do the tests there. Otherwise we can end up
4967 # making bogus files that we don't know about and never remove. For
4968 # instance it was reported that on HP-UX the gcc test will end up
4969 # making a dummy file named 'D' -- because '-MD' means "put the output
4973 # Copy depcomp to subdir because otherwise we won't find it if we're
4974 # using a relative directory.
4975 cp "$am_depcomp" conftest.dir
4977 # We will build objects and dependencies in a subdirectory because
4978 # it helps to detect inapplicable dependency modes. For instance
4979 # both Tru64's cc and ICC support -MD to output dependencies as a
4980 # side effect of compilation, but ICC will put the dependencies in
4981 # the current directory while Tru64 will put them in the object
4985 am_cv_CXX_dependencies_compiler_type
=none
4986 if test "$am_compiler_list" = ""; then
4987 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4990 case " $depcc " in #(
4991 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4994 for depmode
in $am_compiler_list; do
4995 # Setup a source with many dependencies, because some compilers
4996 # like to wrap large dependency lists on column 80 (with \), and
4997 # we should not choose a depcomp mode which is confused by this.
4999 # We need to recreate these files for each test, as the compiler may
5000 # overwrite some of them when testing with obscure command lines.
5001 # This happens at least with the AIX C compiler.
5003 for i
in 1 2 3 4 5 6; do
5004 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5005 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5006 # Solaris 10 /bin/sh.
5007 echo '/* dummy */' > sub
/conftst
$i.h
5009 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5011 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5012 # mode. It turns out that the SunPro C++ compiler does not properly
5013 # handle '-M -o', and we need to detect this. Also, some Intel
5014 # versions had trouble with output in subdirs.
5015 am__obj
=sub
/conftest.
${OBJEXT-o}
5016 am__minus_obj
="-o $am__obj"
5019 # This depmode causes a compiler race in universal mode.
5020 test "$am__universal" = false ||
continue
5023 # After this tag, mechanisms are not by side-effect, so they'll
5024 # only be used when explicitly requested.
5025 if test "x$enable_dependency_tracking" = xyes
; then
5031 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
5032 # This compiler won't grok '-c -o', but also, the minuso test has
5033 # not run yet. These depmodes are late enough in the game, and
5034 # so weak that their functioning should not be impacted.
5035 am__obj
=conftest.
${OBJEXT-o}
5040 if depmode
=$depmode \
5041 source=sub
/conftest.c object
=$am__obj \
5042 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5043 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5044 >/dev
/null
2>conftest.err
&&
5045 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5046 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5047 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5048 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5049 # icc doesn't choke on unknown options, it will just issue warnings
5050 # or remarks (even with -Werror). So we grep stderr for any message
5051 # that says an option was ignored or not supported.
5052 # When given -MP, icc 7.0 and 7.1 complain thusly:
5053 # icc: Command line warning: ignoring option '-M'; no argument required
5054 # The diagnosis changed in icc 8.0:
5055 # icc: Command line remark: option '-MP' not supported
5056 if (grep 'ignoring option' conftest.err ||
5057 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5058 am_cv_CXX_dependencies_compiler_type
=$depmode
5067 am_cv_CXX_dependencies_compiler_type
=none
5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5072 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5073 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5076 test "x$enable_dependency_tracking" != xno \
5077 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5078 am__fastdepCXX_TRUE
=
5079 am__fastdepCXX_FALSE
='#'
5081 am__fastdepCXX_TRUE
='#'
5082 am__fastdepCXX_FALSE
=
5087 # POSIX will say in a future version that running "rm -f" with no argument
5088 # is OK; and we want to be able to make that assumption in our Makefile
5089 # recipes. So use an aggressive probe to check that the usage we want is
5090 # actually supported "in the wild" to an acceptable degree.
5091 # See automake bug#10828.
5092 # To make any issue more visible, cause the running configure to be aborted
5093 # by default if the 'rm' program in use doesn't match our expectations; the
5094 # user can still override this though.
5095 if rm -f && rm -fr && rm -rf; then : OK
; else
5099 Your 'rm' program seems unable to run without file operands specified
5100 on the command line, even when the '-f' option is present. This is contrary
5101 to the behaviour of most rm programs out there, and not conforming with
5102 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5104 Please tell bug-automake@gnu.org about your system, including the value
5105 of your $PATH and any error possibly output before this message. This
5106 can help us improve future automake versions.
5109 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
5110 echo 'Configuration will proceed anyway, since you have set the' >&2
5111 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5115 Aborting the configuration process, to ensure you take notice of the issue.
5117 You can download and install GNU coreutils to get an 'rm' implementation
5118 that behaves properly: <https://www.gnu.org/software/coreutils/>.
5120 If you want to complete the configuration process using your problematic
5121 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5122 to "yes", and re-run configure.
5125 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
5130 # use compiler from env variables if available
5134 # Define --wth-* and --enable-* arguments
5136 # Check whether --enable-debug was given.
5137 if test ${enable_debug+y}
5139 enableval
=$enable_debug;
5145 # Check whether --enable-stacktrace was given.
5146 if test ${enable_stacktrace+y}
5148 enableval
=$enable_stacktrace;
5150 enable_stacktrace
=auto
5154 # Check whether --enable-gui was given.
5155 if test ${enable_gui+y}
5157 enableval
=$enable_gui;
5163 # Check whether --enable-systemd was given.
5164 if test ${enable_systemd+y}
5166 enableval
=$enable_systemd;
5172 # Check whether --enable-webui was given.
5173 if test ${enable_webui+y}
5175 enableval
=$enable_webui;
5181 # Check whether --enable-qt-dbus was given.
5182 if test ${enable_qt_dbus+y}
5184 enableval
=$enable_qt_dbus;
5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable specific tweaks for current host \"$host_os\"" >&5
5192 printf %s
"checking whether to enable specific tweaks for current host \"$host_os\"... " >&6; }
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5196 printf "%s\n" "yes" >&6; }
5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5202 printf "%s\n" "yes" >&6; }
5203 LIBS
="-lexecinfo $LIBS"
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5208 printf "%s\n" "yes" >&6; }
5209 LIBS
="-lnetwork $LIBS"
5213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5214 printf "%s\n" "yes" >&6; }
5215 LIBS
="-lexecinfo $LIBS"
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 printf "%s\n" "no" >&6; }
5224 # Require 0.23 pkg-config
5232 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5233 if test -n "$ac_tool_prefix"; then
5234 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5235 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 printf %s
"checking for $ac_word... " >&6; }
5238 if test ${ac_cv_path_PKG_CONFIG+y}
5240 printf %s
"(cached) " >&6
5244 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5251 case $as_dir in #(((
5254 *) as_dir
=$as_dir/ ;;
5256 for ac_exec_ext
in '' $ac_executable_extensions; do
5257 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5258 ac_cv_path_PKG_CONFIG
="$as_dir$ac_word$ac_exec_ext"
5259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5269 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5270 if test -n "$PKG_CONFIG"; then
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5272 printf "%s\n" "$PKG_CONFIG" >&6; }
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275 printf "%s\n" "no" >&6; }
5280 if test -z "$ac_cv_path_PKG_CONFIG"; then
5281 ac_pt_PKG_CONFIG
=$PKG_CONFIG
5282 # Extract the first word of "pkg-config", so it can be a program name with args.
5283 set dummy pkg-config
; ac_word
=$2
5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5285 printf %s
"checking for $ac_word... " >&6; }
5286 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5288 printf %s
"(cached) " >&6
5290 case $ac_pt_PKG_CONFIG in
5292 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5299 case $as_dir in #(((
5302 *) as_dir
=$as_dir/ ;;
5304 for ac_exec_ext
in '' $ac_executable_extensions; do
5305 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5306 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir$ac_word$ac_exec_ext"
5307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5317 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
5318 if test -n "$ac_pt_PKG_CONFIG"; then
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5320 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 printf "%s\n" "no" >&6; }
5326 if test "x$ac_pt_PKG_CONFIG" = x
; then
5329 case $cross_compiling:$ac_tool_warned in
5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5332 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5333 ac_tool_warned
=yes ;;
5335 PKG_CONFIG
=$ac_pt_PKG_CONFIG
5338 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
5342 if test -n "$PKG_CONFIG"; then
5343 _pkg_min_version
=0.23
5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5345 printf %s
"checking pkg-config is at least version $_pkg_min_version... " >&6; }
5346 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5348 printf "%s\n" "yes" >&6; }
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 printf "%s\n" "no" >&6; }
5355 if test "x$PKG_CONFIG" = "x"
5357 as_fn_error $?
"Could not find pkg-config" "$LINENO" 5
5360 # Check which arguments were set and act accordingly
5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the Debug build" >&5
5362 printf %s
"checking whether to enable the Debug build... " >&6; }
5363 case "x$enable_debug" in #(
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 printf "%s\n" "no" >&6; }
5367 QBT_ADD_CONFIG
="$QBT_ADD_CONFIG release"
5368 QBT_REMOVE_CONFIG
="$QBT_REMOVE_CONFIG debug" ;; #(
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5371 printf "%s\n" "yes" >&6; }
5372 QBT_ADD_CONFIG
="$QBT_ADD_CONFIG debug"
5373 QBT_REMOVE_CONFIG
="$QBT_REMOVE_CONFIG release" ;; #(
5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
5376 printf "%s\n" "$enable_debug" >&6; }
5377 as_fn_error $?
"Unknown option \"$enable_debug\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the stacktrace feature" >&5
5381 printf %s
"checking whether to enable the stacktrace feature... " >&6; }
5383 case "x$enable_stacktrace" in #(
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 printf "%s\n" "no" >&6; }
5387 QBT_REMOVE_CONFIG
="$QBT_REMOVE_CONFIG stacktrace" ;; #(
5389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5390 printf "%s\n" "yes" >&6; }
5391 QBT_ADD_CONFIG
="$QBT_ADD_CONFIG stacktrace" ;; #(
5393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 #include <execinfo.h>
5397 if ac_fn_cxx_try_compile
"$LINENO"
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5400 printf "%s\n" "yes" >&6; }
5401 QBT_ADD_CONFIG
="$QBT_ADD_CONFIG stacktrace"
5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 printf "%s\n" "no" >&6; }
5405 QBT_REMOVE_CONFIG
="$QBT_REMOVE_CONFIG stacktrace"
5407 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext ;; #(
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_stacktrace" >&5
5410 printf "%s\n" "$enable_stacktrace" >&6; }
5411 as_fn_error $?
"Unknown option \"$enable_stacktrace\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the GUI" >&5
5415 printf %s
"checking whether to enable the GUI... " >&6; }
5416 case "x$enable_gui" in #(
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5419 printf "%s\n" "yes" >&6; }
5421 QBT_REMOVE_CONFIG
="$QBT_REMOVE_CONFIG nogui" ;; #(
5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 printf "%s\n" "no" >&6; }
5426 QBT_ADD_CONFIG
="$QBT_ADD_CONFIG nogui" ;; #(
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gui" >&5
5429 printf "%s\n" "$enable_gui" >&6; }
5430 as_fn_error $?
"Unknown option \"$enable_gui\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install the systemd service file" >&5
5434 printf %s
"checking whether to install the systemd service file... " >&6; }
5435 case "x$enable_systemd" in #(
5437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5438 printf "%s\n" "yes" >&6; }
5439 QBT_ADD_CONFIG
="$QBT_ADD_CONFIG systemd" ;; #(
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 printf "%s\n" "no" >&6; }
5443 QBT_REMOVE_CONFIG
="$QBT_REMOVE_CONFIG systemd" ;; #(
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_systemd" >&5
5446 printf "%s\n" "$enable_systemd" >&6; }
5447 as_fn_error $?
"Unknown option \"$enable_systemd\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the WebUI" >&5
5451 printf %s
"checking whether to enable the WebUI... " >&6; }
5452 case "x$enable_webui" in #(
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5455 printf "%s\n" "yes" >&6; }
5456 QBT_REMOVE_CONFIG
="$QBT_REMOVE_CONFIG nowebui" ;; #(
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 printf "%s\n" "no" >&6; }
5460 QBT_ADD_CONFIG
="$QBT_ADD_CONFIG nowebui" ;; #(
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_webui" >&5
5463 printf "%s\n" "$enable_webui" >&6; }
5464 as_fn_error $?
"Unknown option \"$enable_webui\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5467 if test -n "$PKG_CONFIG" && \
5468 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.15.2\""; } >&5
5469 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.15.2") 2>&5
5471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5472 test $ac_status = 0; }; then
5474 if test -n "$QT_QMAKE"; then
5475 pkg_cv_QT_QMAKE
="$QT_QMAKE"
5476 elif test -n "$PKG_CONFIG"; then
5477 if test -n "$PKG_CONFIG" && \
5478 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.15.2\""; } >&5
5479 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.15.2") 2>&5
5481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5482 test $ac_status = 0; }; then
5483 pkg_cv_QT_QMAKE
=`$PKG_CONFIG --variable="host_bins" "Qt5Core >= 5.15.2" 2>/dev/null`
5484 test "x$?" != "x0" && pkg_failed
=yes
5491 QT_QMAKE
=$pkg_cv_QT_QMAKE
5493 if test "x$QT_QMAKE" = x
""
5500 if test -f "$QT_QMAKE/qmake"
5502 QT_QMAKE
="$QT_QMAKE/qmake"
5504 if test -f "$QT_QMAKE/qmake-qt5"
5506 QT_QMAKE
="$QT_QMAKE/qmake-qt5"
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5 qmake >= 5.15.2" >&5
5514 printf %s
"checking for Qt5 qmake >= 5.15.2... " >&6; }
5515 if test "x$QT_QMAKE" != "x"
5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QT_QMAKE" >&5
5518 printf "%s\n" "$QT_QMAKE" >&6; }
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5521 printf "%s\n" "not found" >&6; }
5525 if test "x$QT_QMAKE" = "x"
5527 as_fn_error $?
"Could not find qmake" "$LINENO" 5
5530 if test "x$enable_gui" = "xyes"
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5Svg >= 5.15.2" >&5
5535 printf %s
"checking for Qt5Svg >= 5.15.2... " >&6; }
5537 if test -n "$Qt5Svg_CFLAGS"; then
5538 pkg_cv_Qt5Svg_CFLAGS
="$Qt5Svg_CFLAGS"
5539 elif test -n "$PKG_CONFIG"; then
5540 if test -n "$PKG_CONFIG" && \
5541 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Svg >= 5.15.2\""; } >&5
5542 ($PKG_CONFIG --exists --print-errors "Qt5Svg >= 5.15.2") 2>&5
5544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5545 test $ac_status = 0; }; then
5546 pkg_cv_Qt5Svg_CFLAGS
=`$PKG_CONFIG --cflags "Qt5Svg >= 5.15.2" 2>/dev/null`
5547 test "x$?" != "x0" && pkg_failed
=yes
5554 if test -n "$Qt5Svg_LIBS"; then
5555 pkg_cv_Qt5Svg_LIBS
="$Qt5Svg_LIBS"
5556 elif test -n "$PKG_CONFIG"; then
5557 if test -n "$PKG_CONFIG" && \
5558 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Svg >= 5.15.2\""; } >&5
5559 ($PKG_CONFIG --exists --print-errors "Qt5Svg >= 5.15.2") 2>&5
5561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5562 test $ac_status = 0; }; then
5563 pkg_cv_Qt5Svg_LIBS
=`$PKG_CONFIG --libs "Qt5Svg >= 5.15.2" 2>/dev/null`
5564 test "x$?" != "x0" && pkg_failed
=yes
5574 if test $pkg_failed = yes; then
5575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 printf "%s\n" "no" >&6; }
5578 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5579 _pkg_short_errors_supported
=yes
5581 _pkg_short_errors_supported
=no
5583 if test $_pkg_short_errors_supported = yes; then
5584 Qt5Svg_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Qt5Svg >= 5.15.2" 2>&1`
5586 Qt5Svg_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "Qt5Svg >= 5.15.2" 2>&1`
5588 # Put the nasty error message in config.log where it belongs
5589 echo "$Qt5Svg_PKG_ERRORS" >&5
5591 as_fn_error $?
"Package requirements (Qt5Svg >= 5.15.2) were not met:
5595 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5596 installed software in a non-standard prefix.
5598 Alternatively, you may set the environment variables Qt5Svg_CFLAGS
5599 and Qt5Svg_LIBS to avoid the need to call pkg-config.
5600 See the pkg-config man page for more details." "$LINENO" 5
5601 elif test $pkg_failed = untried
; then
5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 printf "%s\n" "no" >&6; }
5604 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5605 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5606 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
5607 is in your PATH or set the PKG_CONFIG environment variable to the full
5610 Alternatively, you may set the environment variables Qt5Svg_CFLAGS
5611 and Qt5Svg_LIBS to avoid the need to call pkg-config.
5612 See the pkg-config man page for more details.
5614 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5615 See \`config.log' for more details" "$LINENO" 5; }
5617 Qt5Svg_CFLAGS
=$pkg_cv_Qt5Svg_CFLAGS
5618 Qt5Svg_LIBS
=$pkg_cv_Qt5Svg_LIBS
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5620 printf "%s\n" "yes" >&6; }
5625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether QtDBus should be enabled" >&5
5626 printf %s
"checking whether QtDBus should be enabled... " >&6; }
5627 case "x$enable_qt_dbus" in #(
5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5630 printf "%s\n" "yes" >&6; }
5631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5DBus >= 5.15.2" >&5
5632 printf %s
"checking for Qt5DBus >= 5.15.2... " >&6; }
5633 if test -n "$PKG_CONFIG" && \
5634 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5DBus >= 5.15.2\""; } >&5
5635 ($PKG_CONFIG --exists --print-errors "Qt5DBus >= 5.15.2") 2>&5
5637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5638 test $ac_status = 0; }; then
5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
5640 printf "%s\n" "found" >&6; }
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5644 printf "%s\n" "not found" >&6; }
5648 if test "x$HAVE_QTDBUS" = "xfalse"
5650 as_fn_error $?
"Could not find QtDBus" "$LINENO" 5
5652 QBT_ADD_CONFIG
="$QBT_ADD_CONFIG dbus"
5656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657 printf "%s\n" "no" >&6; }
5658 QBT_REMOVE_CONFIG
="$QBT_REMOVE_CONFIG dbus" ;; #(
5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_qt_dbus" >&5
5661 printf "%s\n" "$enable_qt_dbus" >&6; }
5662 as_fn_error $?
"Unknown option \"$enable_qt_dbus\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5668 # Check whether --with-boost was given.
5669 if test ${with_boost+y}
5671 withval
=$with_boost;
5674 want_boost
="no";_AX_BOOST_BASE_boost_path
="" ;; #(
5676 want_boost
="yes";_AX_BOOST_BASE_boost_path
="" ;; #(
5678 want_boost
="yes";_AX_BOOST_BASE_boost_path
="$withval" ;;
5688 # Check whether --with-boost-libdir was given.
5689 if test ${with_boost_libdir+y}
5691 withval
=$with_boost_libdir;
5692 if test -d "$withval"
5694 _AX_BOOST_BASE_boost_lib_path
="$withval"
5696 as_fn_error $?
"--with-boost-libdir expected directory name" "$LINENO" 5
5700 _AX_BOOST_BASE_boost_lib_path
=""
5706 if test "x$want_boost" = "xyes"
5710 if test "x1.65" = "x"
5712 _AX_BOOST_BASE_TONUMERICVERSION_req
="1.20.0"
5714 _AX_BOOST_BASE_TONUMERICVERSION_req
="1.65"
5716 _AX_BOOST_BASE_TONUMERICVERSION_req_shorten
=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\.[0-9]*\)'`
5717 _AX_BOOST_BASE_TONUMERICVERSION_req_major
=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\)'`
5718 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_major" = "x"
5720 as_fn_error $?
"You should at least specify libboost major version" "$LINENO" 5
5722 _AX_BOOST_BASE_TONUMERICVERSION_req_minor
=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.\([0-9]*\)'`
5723 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_minor" = "x"
5725 _AX_BOOST_BASE_TONUMERICVERSION_req_minor
="0"
5727 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor
=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
5728 if test "X$_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor" = "X"
5730 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor
="0"
5732 _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`
5733 WANT_BOOST_VERSION
=$_AX_BOOST_BASE_TONUMERICVERSION_RET
5739 case ${host_cpu} in #(
5741 libsubdirs
="lib64 libx32 lib lib64" ;; #(
5743 libsubdirs
="lib64 lib32 lib lib64" ;; #(
5744 ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64
) :
5745 libsubdirs
="lib64 lib lib64" ;; #(
5751 case ${host_cpu} in #(
5753 multiarch_libsubdir
="lib/i386-${host_os}" ;; #(
5755 multiarch_libsubdir
="lib/${host_cpu}-${host_os}"
5759 if test "x$_AX_BOOST_BASE_boost_path" != "x"
5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.65 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"" >&5
5763 printf %s
"checking for boostlib >= 1.65 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"... " >&6; }
5764 if test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5768 printf "%s\n" "yes" >&6; }
5769 BOOST_CPPFLAGS
="-I$_AX_BOOST_BASE_boost_path/include"
5770 for _AX_BOOST_BASE_boost_path_tmp
in $multiarch_libsubdir $libsubdirs; do
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.65 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"" >&5
5772 printf %s
"checking for boostlib >= 1.65 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"... " >&6; }
5773 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"
5776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5777 printf "%s\n" "yes" >&6; }
5778 BOOST_LDFLAGS
="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp";
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 printf "%s\n" "no" >&6; }
5788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 printf "%s\n" "no" >&6; }
5794 if test X
"$cross_compiling" = Xyes
; then
5795 search_libsubdirs
=$multiarch_libsubdir
5797 search_libsubdirs
="$multiarch_libsubdir $libsubdirs"
5799 for _AX_BOOST_BASE_boost_path_tmp
in /usr
/usr
/local /opt
/opt
/local ; do
5800 if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then
5801 for libsubdir
in $search_libsubdirs ; do
5802 if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev
/null
2>&1 ; then break; fi
5804 BOOST_LDFLAGS
="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir"
5805 BOOST_CPPFLAGS
="-I$_AX_BOOST_BASE_boost_path_tmp/include"
5812 if test "x$_AX_BOOST_BASE_boost_lib_path" != "x"
5814 BOOST_LDFLAGS
="-L$_AX_BOOST_BASE_boost_lib_path"
5817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.65 ($WANT_BOOST_VERSION)" >&5
5818 printf %s
"checking for boostlib >= 1.65 ($WANT_BOOST_VERSION)... " >&6; }
5819 CPPFLAGS_SAVED
="$CPPFLAGS"
5820 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
5823 LDFLAGS_SAVED
="$LDFLAGS"
5824 LDFLAGS
="$LDFLAGS $BOOST_LDFLAGS"
5829 ac_cpp
='$CXXCPP $CPPFLAGS'
5830 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5831 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5832 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5837 #include <boost/version.hpp>
5843 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
5849 if ac_fn_cxx_try_compile
"$LINENO"
5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5853 printf "%s\n" "yes" >&6; }
5858 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5860 ac_cpp
='$CXXCPP $CPPFLAGS'
5861 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5862 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5863 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5868 if test "x$succeeded" != "xyes" ; then
5869 CPPFLAGS
="$CPPFLAGS_SAVED"
5870 LDFLAGS
="$LDFLAGS_SAVED"
5872 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5876 if test -n "$_AX_BOOST_BASE_boost_path" ; then
5877 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then
5878 for i
in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
5879 _version_tmp
=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
5880 V_CHECK
=`expr $_version_tmp \> $_version`
5881 if test "x$V_CHECK" = "x1" ; then
5882 _version
=$_version_tmp
5884 VERSION_UNDERSCORE
=`echo $_version | sed 's/\./_/'`
5885 BOOST_CPPFLAGS
="-I$_AX_BOOST_BASE_boost_path/include/boost-$VERSION_UNDERSCORE"
5887 if test -z "$BOOST_CPPFLAGS"; then
5888 if test -d "$_AX_BOOST_BASE_boost_path/boost" && test -r "$_AX_BOOST_BASE_boost_path/boost"; then
5889 BOOST_CPPFLAGS
="-I$_AX_BOOST_BASE_boost_path"
5892 if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then
5893 for libsubdir
in $libsubdirs ; do
5894 if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev
/null
2>&1 ; then break; fi
5896 BOOST_LDFLAGS
="-L$_AX_BOOST_BASE_boost_path/$libsubdir"
5900 if test "x$cross_compiling" != "xyes" ; then
5901 for _AX_BOOST_BASE_boost_path
in /usr
/usr
/local /opt
/opt
/local ; do
5902 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then
5903 for i
in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
5904 _version_tmp
=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
5905 V_CHECK
=`expr $_version_tmp \> $_version`
5906 if test "x$V_CHECK" = "x1" ; then
5907 _version
=$_version_tmp
5908 best_path
=$_AX_BOOST_BASE_boost_path
5914 VERSION_UNDERSCORE
=`echo $_version | sed 's/\./_/'`
5915 BOOST_CPPFLAGS
="-I$best_path/include/boost-$VERSION_UNDERSCORE"
5916 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5917 for libsubdir
in $libsubdirs ; do
5918 if ls "$best_path/$libsubdir/libboost_"* >/dev
/null
2>&1 ; then break; fi
5920 BOOST_LDFLAGS
="-L$best_path/$libsubdir"
5924 if test -n "$BOOST_ROOT" ; then
5925 for libsubdir
in $libsubdirs ; do
5926 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev
/null
2>&1 ; then break; fi
5928 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
5929 version_dir
=`expr //$BOOST_ROOT : '.*/\(.*\)'`
5930 stage_version
=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
5931 stage_version_shorten
=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
5932 V_CHECK
=`expr $stage_version_shorten \>\= $_version`
5933 if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
5935 printf "%s\n" "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
5936 BOOST_CPPFLAGS
="-I$BOOST_ROOT"
5937 BOOST_LDFLAGS
="-L$BOOST_ROOT/stage/$libsubdir"
5943 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
5945 LDFLAGS
="$LDFLAGS $BOOST_LDFLAGS"
5949 ac_cpp
='$CXXCPP $CPPFLAGS'
5950 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5951 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5952 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5957 #include <boost/version.hpp>
5963 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
5969 if ac_fn_cxx_try_compile
"$LINENO"
5972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5973 printf "%s\n" "yes" >&6; }
5978 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5980 ac_cpp
='$CXXCPP $CPPFLAGS'
5981 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5982 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5983 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5987 if test "x$succeeded" != "xyes" ; then
5988 if test "x$_version" = "x0" ; then
5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version 1.65 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
5990 printf "%s\n" "$as_me: We could not detect the boost libraries (version 1.65 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;}
5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
5993 printf "%s\n" "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
5995 # execute ACTION-IF-NOT-FOUND (if present):
5996 as_fn_error $?
"Could not find Boost" "$LINENO" 5
5999 printf "%s\n" "#define HAVE_BOOST /**/" >>confdefs.h
6001 # execute ACTION-IF-FOUND (if present):
6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost CXXFLAGS: \"$BOOST_CPPFLAGS\"" >&5
6003 printf "%s\n" "$as_me: Boost CXXFLAGS: \"$BOOST_CPPFLAGS\"" >&6;}
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost LDFLAGS: \"$BOOST_LDFLAGS\"" >&5
6005 printf "%s\n" "$as_me: Boost LDFLAGS: \"$BOOST_LDFLAGS\"" >&6;}
6008 CPPFLAGS
="$CPPFLAGS_SAVED"
6009 LDFLAGS
="$LDFLAGS_SAVED"
6016 CXXFLAGS
="$BOOST_CPPFLAGS $CXXFLAGS"
6017 LDFLAGS
="$BOOST_LDFLAGS $LDFLAGS"
6019 # add workaround for problematic boost version
6020 # taken from ax_boost_base.m4
6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtorrent-rasterbar >= 2.0.4" >&5
6026 printf %s
"checking for libtorrent-rasterbar >= 2.0.4... " >&6; }
6028 if test -n "$libtorrent_CFLAGS"; then
6029 pkg_cv_libtorrent_CFLAGS
="$libtorrent_CFLAGS"
6030 elif test -n "$PKG_CONFIG"; then
6031 if test -n "$PKG_CONFIG" && \
6032 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 2.0.4\""; } >&5
6033 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 2.0.4") 2>&5
6035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6036 test $ac_status = 0; }; then
6037 pkg_cv_libtorrent_CFLAGS
=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 2.0.4" 2>/dev/null`
6038 test "x$?" != "x0" && pkg_failed
=yes
6045 if test -n "$libtorrent_LIBS"; then
6046 pkg_cv_libtorrent_LIBS
="$libtorrent_LIBS"
6047 elif test -n "$PKG_CONFIG"; then
6048 if test -n "$PKG_CONFIG" && \
6049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 2.0.4\""; } >&5
6050 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 2.0.4") 2>&5
6052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6053 test $ac_status = 0; }; then
6054 pkg_cv_libtorrent_LIBS
=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 2.0.4" 2>/dev/null`
6055 test "x$?" != "x0" && pkg_failed
=yes
6065 if test $pkg_failed = yes; then
6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 printf "%s\n" "no" >&6; }
6069 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6070 _pkg_short_errors_supported
=yes
6072 _pkg_short_errors_supported
=no
6074 if test $_pkg_short_errors_supported = yes; then
6075 libtorrent_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 2.0.4" 2>&1`
6077 libtorrent_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 2.0.4" 2>&1`
6079 # Put the nasty error message in config.log where it belongs
6080 echo "$libtorrent_PKG_ERRORS" >&5
6084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" >&5
6085 printf %s
"checking for libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2... " >&6; }
6087 if test -n "$libtorrent_CFLAGS"; then
6088 pkg_cv_libtorrent_CFLAGS
="$libtorrent_CFLAGS"
6089 elif test -n "$PKG_CONFIG"; then
6090 if test -n "$PKG_CONFIG" && \
6091 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2\""; } >&5
6092 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2") 2>&5
6094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6095 test $ac_status = 0; }; then
6096 pkg_cv_libtorrent_CFLAGS
=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>/dev/null`
6097 test "x$?" != "x0" && pkg_failed
=yes
6104 if test -n "$libtorrent_LIBS"; then
6105 pkg_cv_libtorrent_LIBS
="$libtorrent_LIBS"
6106 elif test -n "$PKG_CONFIG"; then
6107 if test -n "$PKG_CONFIG" && \
6108 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2\""; } >&5
6109 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2") 2>&5
6111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6112 test $ac_status = 0; }; then
6113 pkg_cv_libtorrent_LIBS
=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>/dev/null`
6114 test "x$?" != "x0" && pkg_failed
=yes
6124 if test $pkg_failed = yes; then
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6126 printf "%s\n" "no" >&6; }
6128 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6129 _pkg_short_errors_supported
=yes
6131 _pkg_short_errors_supported
=no
6133 if test $_pkg_short_errors_supported = yes; then
6134 libtorrent_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>&1`
6136 libtorrent_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>&1`
6138 # Put the nasty error message in config.log where it belongs
6139 echo "$libtorrent_PKG_ERRORS" >&5
6141 as_fn_error $?
"Package requirements (libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2) were not met:
6143 $libtorrent_PKG_ERRORS
6145 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6146 installed software in a non-standard prefix.
6148 Alternatively, you may set the environment variables libtorrent_CFLAGS
6149 and libtorrent_LIBS to avoid the need to call pkg-config.
6150 See the pkg-config man page for more details." "$LINENO" 5
6151 elif test $pkg_failed = untried
; then
6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 printf "%s\n" "no" >&6; }
6154 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6155 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6156 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
6157 is in your PATH or set the PKG_CONFIG environment variable to the full
6160 Alternatively, you may set the environment variables libtorrent_CFLAGS
6161 and libtorrent_LIBS to avoid the need to call pkg-config.
6162 See the pkg-config man page for more details.
6164 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6165 See \`config.log' for more details" "$LINENO" 5; }
6167 libtorrent_CFLAGS
=$pkg_cv_libtorrent_CFLAGS
6168 libtorrent_LIBS
=$pkg_cv_libtorrent_LIBS
6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6170 printf "%s\n" "yes" >&6; }
6171 CXXFLAGS
="$libtorrent_CFLAGS $CXXFLAGS" LIBS
="$libtorrent_LIBS $LIBS"
6173 elif test $pkg_failed = untried
; then
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 printf "%s\n" "no" >&6; }
6178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" >&5
6179 printf %s
"checking for libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2... " >&6; }
6181 if test -n "$libtorrent_CFLAGS"; then
6182 pkg_cv_libtorrent_CFLAGS
="$libtorrent_CFLAGS"
6183 elif test -n "$PKG_CONFIG"; then
6184 if test -n "$PKG_CONFIG" && \
6185 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2\""; } >&5
6186 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2") 2>&5
6188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6189 test $ac_status = 0; }; then
6190 pkg_cv_libtorrent_CFLAGS
=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>/dev/null`
6191 test "x$?" != "x0" && pkg_failed
=yes
6198 if test -n "$libtorrent_LIBS"; then
6199 pkg_cv_libtorrent_LIBS
="$libtorrent_LIBS"
6200 elif test -n "$PKG_CONFIG"; then
6201 if test -n "$PKG_CONFIG" && \
6202 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2\""; } >&5
6203 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2") 2>&5
6205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6206 test $ac_status = 0; }; then
6207 pkg_cv_libtorrent_LIBS
=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>/dev/null`
6208 test "x$?" != "x0" && pkg_failed
=yes
6218 if test $pkg_failed = yes; then
6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 printf "%s\n" "no" >&6; }
6222 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6223 _pkg_short_errors_supported
=yes
6225 _pkg_short_errors_supported
=no
6227 if test $_pkg_short_errors_supported = yes; then
6228 libtorrent_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>&1`
6230 libtorrent_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>&1`
6232 # Put the nasty error message in config.log where it belongs
6233 echo "$libtorrent_PKG_ERRORS" >&5
6235 as_fn_error $?
"Package requirements (libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2) were not met:
6237 $libtorrent_PKG_ERRORS
6239 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6240 installed software in a non-standard prefix.
6242 Alternatively, you may set the environment variables libtorrent_CFLAGS
6243 and libtorrent_LIBS to avoid the need to call pkg-config.
6244 See the pkg-config man page for more details." "$LINENO" 5
6245 elif test $pkg_failed = untried
; then
6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247 printf "%s\n" "no" >&6; }
6248 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6249 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6250 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
6251 is in your PATH or set the PKG_CONFIG environment variable to the full
6254 Alternatively, you may set the environment variables libtorrent_CFLAGS
6255 and libtorrent_LIBS to avoid the need to call pkg-config.
6256 See the pkg-config man page for more details.
6258 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6259 See \`config.log' for more details" "$LINENO" 5; }
6261 libtorrent_CFLAGS
=$pkg_cv_libtorrent_CFLAGS
6262 libtorrent_LIBS
=$pkg_cv_libtorrent_LIBS
6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6264 printf "%s\n" "yes" >&6; }
6265 CXXFLAGS
="$libtorrent_CFLAGS $CXXFLAGS" LIBS
="$libtorrent_LIBS $LIBS"
6268 libtorrent_CFLAGS
=$pkg_cv_libtorrent_CFLAGS
6269 libtorrent_LIBS
=$pkg_cv_libtorrent_LIBS
6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6271 printf "%s\n" "yes" >&6; }
6272 CXXFLAGS
="$libtorrent_CFLAGS $CXXFLAGS" LIBS
="$libtorrent_LIBS $LIBS" QBT_ADD_DEFINES
="$QBT_ADD_DEFINES QBT_USES_LIBTORRENT2"
6277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.1.1" >&5
6278 printf %s
"checking for openssl >= 1.1.1... " >&6; }
6280 if test -n "$openssl_CFLAGS"; then
6281 pkg_cv_openssl_CFLAGS
="$openssl_CFLAGS"
6282 elif test -n "$PKG_CONFIG"; then
6283 if test -n "$PKG_CONFIG" && \
6284 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.1\""; } >&5
6285 ($PKG_CONFIG --exists --print-errors "openssl >= 1.1.1") 2>&5
6287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6288 test $ac_status = 0; }; then
6289 pkg_cv_openssl_CFLAGS
=`$PKG_CONFIG --cflags "openssl >= 1.1.1" 2>/dev/null`
6290 test "x$?" != "x0" && pkg_failed
=yes
6297 if test -n "$openssl_LIBS"; then
6298 pkg_cv_openssl_LIBS
="$openssl_LIBS"
6299 elif test -n "$PKG_CONFIG"; then
6300 if test -n "$PKG_CONFIG" && \
6301 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.1\""; } >&5
6302 ($PKG_CONFIG --exists --print-errors "openssl >= 1.1.1") 2>&5
6304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305 test $ac_status = 0; }; then
6306 pkg_cv_openssl_LIBS
=`$PKG_CONFIG --libs "openssl >= 1.1.1" 2>/dev/null`
6307 test "x$?" != "x0" && pkg_failed
=yes
6317 if test $pkg_failed = yes; then
6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 printf "%s\n" "no" >&6; }
6321 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6322 _pkg_short_errors_supported
=yes
6324 _pkg_short_errors_supported
=no
6326 if test $_pkg_short_errors_supported = yes; then
6327 openssl_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.1.1" 2>&1`
6329 openssl_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.1.1" 2>&1`
6331 # Put the nasty error message in config.log where it belongs
6332 echo "$openssl_PKG_ERRORS" >&5
6334 as_fn_error $?
"Package requirements (openssl >= 1.1.1) were not met:
6338 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6339 installed software in a non-standard prefix.
6341 Alternatively, you may set the environment variables openssl_CFLAGS
6342 and openssl_LIBS to avoid the need to call pkg-config.
6343 See the pkg-config man page for more details." "$LINENO" 5
6344 elif test $pkg_failed = untried
; then
6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 printf "%s\n" "no" >&6; }
6347 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6348 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6349 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
6350 is in your PATH or set the PKG_CONFIG environment variable to the full
6353 Alternatively, you may set the environment variables openssl_CFLAGS
6354 and openssl_LIBS to avoid the need to call pkg-config.
6355 See the pkg-config man page for more details.
6357 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6358 See \`config.log' for more details" "$LINENO" 5; }
6360 openssl_CFLAGS
=$pkg_cv_openssl_CFLAGS
6361 openssl_LIBS
=$pkg_cv_openssl_LIBS
6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6363 printf "%s\n" "yes" >&6; }
6364 CXXFLAGS
="$openssl_CFLAGS $CXXFLAGS"
6365 LIBS
="$openssl_LIBS $LIBS"
6370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.2.11" >&5
6371 printf %s
"checking for zlib >= 1.2.11... " >&6; }
6373 if test -n "$zlib_CFLAGS"; then
6374 pkg_cv_zlib_CFLAGS
="$zlib_CFLAGS"
6375 elif test -n "$PKG_CONFIG"; then
6376 if test -n "$PKG_CONFIG" && \
6377 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.11\""; } >&5
6378 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.11") 2>&5
6380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6381 test $ac_status = 0; }; then
6382 pkg_cv_zlib_CFLAGS
=`$PKG_CONFIG --cflags "zlib >= 1.2.11" 2>/dev/null`
6383 test "x$?" != "x0" && pkg_failed
=yes
6390 if test -n "$zlib_LIBS"; then
6391 pkg_cv_zlib_LIBS
="$zlib_LIBS"
6392 elif test -n "$PKG_CONFIG"; then
6393 if test -n "$PKG_CONFIG" && \
6394 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.11\""; } >&5
6395 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.11") 2>&5
6397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6398 test $ac_status = 0; }; then
6399 pkg_cv_zlib_LIBS
=`$PKG_CONFIG --libs "zlib >= 1.2.11" 2>/dev/null`
6400 test "x$?" != "x0" && pkg_failed
=yes
6410 if test $pkg_failed = yes; then
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 printf "%s\n" "no" >&6; }
6414 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6415 _pkg_short_errors_supported
=yes
6417 _pkg_short_errors_supported
=no
6419 if test $_pkg_short_errors_supported = yes; then
6420 zlib_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.11" 2>&1`
6422 zlib_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.11" 2>&1`
6424 # Put the nasty error message in config.log where it belongs
6425 echo "$zlib_PKG_ERRORS" >&5
6427 as_fn_error $?
"Package requirements (zlib >= 1.2.11) were not met:
6431 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6432 installed software in a non-standard prefix.
6434 Alternatively, you may set the environment variables zlib_CFLAGS
6435 and zlib_LIBS to avoid the need to call pkg-config.
6436 See the pkg-config man page for more details." "$LINENO" 5
6437 elif test $pkg_failed = untried
; then
6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 printf "%s\n" "no" >&6; }
6440 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6441 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6442 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
6443 is in your PATH or set the PKG_CONFIG environment variable to the full
6446 Alternatively, you may set the environment variables zlib_CFLAGS
6447 and zlib_LIBS to avoid the need to call pkg-config.
6448 See the pkg-config man page for more details.
6450 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6451 See \`config.log' for more details" "$LINENO" 5; }
6453 zlib_CFLAGS
=$pkg_cv_zlib_CFLAGS
6454 zlib_LIBS
=$pkg_cv_zlib_LIBS
6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6456 printf "%s\n" "yes" >&6; }
6457 CXXFLAGS
="$zlib_CFLAGS $CXXFLAGS"
6458 LIBS
="$zlib_LIBS $LIBS"
6461 # Check if already in >= C++17 mode because of the flags returned by one of the above packages
6462 TMP_CXXFLAGS
="$CXXFLAGS"
6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler defaults to C++17 or later mode" >&5
6465 printf %s
"checking if compiler defaults to C++17 or later mode... " >&6; }
6466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6470 #error "This is not a C++ compiler"
6471 #elif __cplusplus < 201703L
6472 #error "This is not a C++17 compiler"
6483 if ac_fn_cxx_try_compile
"$LINENO"
6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6486 printf "%s\n" "yes" >&6; }
6487 QBT_CXX17_FOUND
="yes"
6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 printf "%s\n" "no" >&6; }
6491 QBT_CXX17_FOUND
="no"
6493 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6495 # In case of no, check if the compiler can support at least C++17
6496 # and if yes, enable it leaving a warning to the user
6497 if test "x$QBT_CXX17_FOUND" = "xno"
6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports C++17" >&5
6500 printf %s
"checking if compiler supports C++17... " >&6; }
6501 CXXFLAGS
="-std=c++17"
6502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6506 #error "This is not a C++ compiler"
6507 #elif __cplusplus < 201703L
6508 #error "This is not a C++17 compiler"
6519 if ac_fn_cxx_try_compile
"$LINENO"
6521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6522 printf "%s\n" "yes" >&6; }
6523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C++17 is disabled by the set compiler flags" >&5
6524 printf %s
"checking if C++17 is disabled by the set compiler flags... " >&6; }
6525 # prepend the flag so it won't override conflicting user defined flags
6526 CXXFLAGS
="-std=c++17 $TMP_CXXFLAGS"
6527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6531 #error "This is not a C++ compiler"
6532 #elif __cplusplus < 201703L
6533 #error "This is not a C++17 compiler"
6544 if ac_fn_cxx_try_compile
"$LINENO"
6546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 printf "%s\n" "no" >&6; }
6548 QBT_ADD_CONFIG
="$QBT_ADD_CONFIG c++17"
6549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: C++17 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
6550 printf "%s\n" "$as_me: WARNING: C++17 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;}
6552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6553 printf "%s\n" "yes" >&6; }
6554 as_fn_error $?
"The compiler supports C++17 but the user or a dependency has explicitly enabled a lower mode." "$LINENO" 5
6556 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 printf "%s\n" "no" >&6; }
6560 as_fn_error $?
"A compiler supporting C++17 is required." "$LINENO" 5
6562 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6565 CXXFLAGS
="$TMP_CXXFLAGS"
6567 # These are required because autoconf doesn't expand these **particular**
6568 # vars automatically. And qmake cannot autoexpand them.
6572 test "x$prefix" = xNONE
&& prefix_NONE
=yes && prefix
=$ac_default_prefix
6573 test "x$exec_prefix" = xNONE
&& exec_prefix_NONE
=yes && exec_prefix
=$prefix
6574 eval ax_define_dir
="\"$prefix\""
6575 eval ax_define_dir
="\"$ax_define_dir\""
6576 EXPAND_PREFIX
="$ax_define_dir"
6578 printf "%s\n" "#define EXPAND_PREFIX \"$ax_define_dir\"" >>confdefs.h
6580 test "$prefix_NONE" && prefix
=NONE
6581 test "$exec_prefix_NONE" && exec_prefix
=NONE
6586 test "x$prefix" = xNONE
&& prefix_NONE
=yes && prefix
=$ac_default_prefix
6587 test "x$exec_prefix" = xNONE
&& exec_prefix_NONE
=yes && exec_prefix
=$prefix
6588 eval ax_define_dir
="\"$bindir\""
6589 eval ax_define_dir
="\"$ax_define_dir\""
6590 EXPAND_BINDIR
="$ax_define_dir"
6592 printf "%s\n" "#define EXPAND_BINDIR \"$ax_define_dir\"" >>confdefs.h
6594 test "$prefix_NONE" && prefix
=NONE
6595 test "$exec_prefix_NONE" && exec_prefix
=NONE
6600 test "x$prefix" = xNONE
&& prefix_NONE
=yes && prefix
=$ac_default_prefix
6601 test "x$exec_prefix" = xNONE
&& exec_prefix_NONE
=yes && exec_prefix
=$prefix
6602 eval ax_define_dir
="\"$datadir\""
6603 eval ax_define_dir
="\"$ax_define_dir\""
6604 EXPAND_DATADIR
="$ax_define_dir"
6606 printf "%s\n" "#define EXPAND_DATADIR \"$ax_define_dir\"" >>confdefs.h
6608 test "$prefix_NONE" && prefix
=NONE
6609 test "$exec_prefix_NONE" && exec_prefix
=NONE
6614 test "x$prefix" = xNONE
&& prefix_NONE
=yes && prefix
=$ac_default_prefix
6615 test "x$exec_prefix" = xNONE
&& exec_prefix_NONE
=yes && exec_prefix
=$prefix
6616 eval ax_define_dir
="\"$mandir\""
6617 eval ax_define_dir
="\"$ax_define_dir\""
6618 EXPAND_MANDIR
="$ax_define_dir"
6620 printf "%s\n" "#define EXPAND_MANDIR \"$ax_define_dir\"" >>confdefs.h
6622 test "$prefix_NONE" && prefix
=NONE
6623 test "$exec_prefix_NONE" && exec_prefix
=NONE
6626 # Original extract() function contributed by pmzqla
6627 # $*: Strings to parse
6628 # Set $QBT_CONF_DEFINES, $QBT_CONF_INCLUDES, $QBT_CONF_EXTRA_CFLAGS
6630 if [ -z "$*" ]; then
6631 echo "Input string required"
6635 # BSD sed needs an actual newline character in the substitute command
6638 # Convert " -" to "\n" if not between quotes and remove possible leading white spaces
6639 string
=$
(echo " $*" |
$SED -e "s: -:\\${new_line}:g" -e 's:"\(.*\)\n\(.*\)":\"\1 -\2":g' -e "s:'\(.*\)\n\(.*\)':\'\1 -\2':g" -e 's/^[[:space:]]*//')
6641 IFS
=$
(printf "\n\b")
6642 for i
in $string; do
6643 case "$(echo "$i" | cut -c1)" in
6645 D
) QBT_CONF_DEFINES
="$QBT_CONF_DEFINES $(echo $i | cut -c2-)";;
6646 I
) QBT_CONF_INCLUDES
="$QBT_CONF_INCLUDES $(echo $i | cut -c2-)";;
6647 *) QBT_CONF_EXTRA_CFLAGS
="$QBT_CONF_EXTRA_CFLAGS -$i";;
6653 extract
"$CFLAGS $CXXFLAGS"
6654 QBT_ADD_DEFINES
="$QBT_ADD_DEFINES $QBT_CONF_DEFINES"
6656 # Substitute the values of these vars in conf.pri.in
6666 QBT_CONFIG_FILES
="conf.pri"
6668 if test "x$enable_systemd" = "xyes"
6670 QBT_CONFIG_FILES
="$QBT_CONFIG_FILES dist/unix/systemd/qbittorrent-nox@.service"
6673 ac_config_files
="$ac_config_files "$QBT_CONFIG_FILES""
6675 cat >confcache
<<\_ACEOF
6676 # This file is a shell script that caches the results of configure
6677 # tests run on this system so they can be shared between configure
6678 # scripts and configure runs, see configure's option --config-cache.
6679 # It is not useful on other systems. If it contains results you don't
6680 # want to keep, you may remove or edit it.
6682 # config.status only pays attention to the cache file if you give it
6683 # the --recheck option to rerun configure.
6685 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6686 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6691 # The following way of writing the cache mishandles newlines in values,
6692 # but we know of no workaround that is simple, portable, and efficient.
6693 # So, we kill variables containing newlines.
6694 # Ultrix sh set writes to stderr and can't be redirected directly,
6695 # and sets the high bit in the cache file unless we assign to the vars.
6697 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6698 eval ac_val
=\$
$ac_var
6702 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6703 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6706 _ | IFS | as_nl
) ;; #(
6707 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6708 *) { eval $ac_var=; unset $ac_var;} ;;
6714 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6715 *${as_nl}ac_space
=\
*)
6716 # `set' does not quote correctly, so add quotes: double-quote
6717 # substitution turns \\\\ into \\, and sed turns \\ into \.
6720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6723 # `set' quotes correctly as required by POSIX, so do not add quotes.
6724 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6733 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6735 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6737 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6738 if test -w "$cache_file"; then
6739 if test "x$cache_file" != "x/dev/null"; then
6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6741 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6742 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
6743 cat confcache
>"$cache_file"
6745 case $cache_file in #(
6747 mv -f confcache
"$cache_file"$$
&&
6748 mv -f "$cache_file"$$
"$cache_file" ;; #(
6750 mv -f confcache
"$cache_file" ;;
6755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6756 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6761 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6762 # Let make expand exec_prefix.
6763 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6765 # Transform confdefs.h into DEFS.
6766 # Protect against shell expansion while executing Makefile rules.
6767 # Protect against Makefile macro expansion.
6769 # If the first sed substitution is executed (which looks for macros that
6770 # take arguments), then branch to the quote section. Otherwise,
6771 # look for a macro that doesn't take arguments.
6781 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
6783 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
6787 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6800 DEFS
=`sed -n "$ac_script" confdefs.h`
6806 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6807 # 1. Remove the extension, and $U if already installed.
6808 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6809 ac_i
=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6810 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6811 # will be set to the directory where LIBOBJS objects are built.
6812 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6813 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6817 LTLIBOBJS
=$ac_ltlibobjs
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6821 printf %s
"checking that generated files are newer than configure... " >&6; }
6822 if test -n "$am_sleep_pid"; then
6823 # Hide warnings about reused PIDs.
6824 wait $am_sleep_pid 2>/dev
/null
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
6827 printf "%s\n" "done" >&6; }
6828 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6829 as_fn_error $?
"conditional \"AMDEP\" was never defined.
6830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6832 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6833 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
6834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6836 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6837 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
6838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6840 if test -n "$EXEEXT"; then
6842 am__EXEEXT_FALSE
='#'
6849 : "${CONFIG_STATUS=./config.status}"
6851 ac_clean_files_save
=$ac_clean_files
6852 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6854 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6856 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6858 # Generated by $as_me.
6859 # Run this file to recreate the current configuration.
6860 # Compiler output produced by configure, useful for debugging
6861 # configure, is in config.log if it exists.
6867 SHELL=\${CONFIG_SHELL-$SHELL}
6870 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6871 ## -------------------- ##
6872 ## M4sh Initialization. ##
6873 ## -------------------- ##
6875 # Be more Bourne compatible
6876 DUALCASE
=1; export DUALCASE
# for MKS sh
6878 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
6882 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6883 # is contrary to our usage. Disable this feature.
6884 alias -g '${1+"$@"}'='"$@"'
6885 setopt NO_GLOB_SUBST
6887 case `(set -o) 2>/dev/null` in #(
6897 # Reset variables that may have inherited troublesome values from
6900 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6901 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6902 # side effect of setting IFS to empty, thus disabling word splitting.)
6903 # Quoting is to prevent editors from complaining about space-tab.
6913 # Ensure predictable behavior from utilities with locale-dependent output.
6919 # We cannot yet rely on "unset" to work, but we need these variables
6920 # to be unset--not just set to an empty or harmless value--now, to
6921 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6922 # also avoids known problems related to "unset" and subshell syntax
6923 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6924 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
6925 do eval test \
${$as_var+y} \
6926 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
6929 # Ensure that fds 0, 1, and 2 are open.
6930 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
6931 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
6932 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
6934 # The user is always right.
6935 if ${PATH_SEPARATOR+false} :; then
6937 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
6938 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
6944 # Find who we are. Look in the path if we contain no directory separator.
6947 *[\\/]* ) as_myself
=$0 ;;
6948 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6952 case $as_dir in #(((
6955 *) as_dir
=$as_dir/ ;;
6957 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
6963 # We did not find ourselves, most probably we were run as `sh COMMAND'
6964 # in which case we are not to be found in the path.
6965 if test "x$as_myself" = x
; then
6968 if test ! -f "$as_myself"; then
6969 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6975 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6976 # ----------------------------------------
6977 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6978 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6979 # script with STATUS, using 1 if that was 0.
6982 as_status
=$1; test $as_status -eq 0 && as_status
=1
6984 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6987 printf "%s\n" "$as_me: error: $2" >&2
6988 as_fn_exit
$as_status
6993 # as_fn_set_status STATUS
6994 # -----------------------
6995 # Set $? to STATUS, without forking.
6999 } # as_fn_set_status
7003 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7013 # Portably unset VAR.
7016 { eval $1=; unset $1;}
7018 as_unset
=as_fn_unset
7020 # as_fn_append VAR VALUE
7021 # ----------------------
7022 # Append the text in VALUE to the end of the definition contained in VAR. Take
7023 # advantage of any shell optimizations that allow amortized linear growth over
7024 # repeated appends, instead of the typical quadratic growth present in naive
7026 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
7028 eval 'as_fn_append ()
7039 # as_fn_arith ARG...
7040 # ------------------
7041 # Perform arithmetic evaluation on the ARGs, and store the result in the
7042 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7043 # must be portable across $(()) and expr.
7044 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
7046 eval 'as_fn_arith ()
7053 as_val
=`expr "$@" || test $? -eq 1`
7058 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7059 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7065 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7066 as_basename
=basename
7071 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7077 as_me
=`$as_basename -- "$0" ||
7078 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7079 X"$0" : 'X\(//\)$' \| \
7080 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7081 printf "%s\n" X/"$0" |
7082 sed '/^.*\/\([^/][^/]*\)\/*$/{
7096 # Avoid depending upon Character Ranges.
7097 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7098 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7099 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7100 as_cr_digits
='0123456789'
7101 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7104 # Determine whether it's possible to make 'echo' print without a newline.
7105 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
7106 # for compatibility with existing Makefiles.
7107 ECHO_C
= ECHO_N
= ECHO_T
=
7108 case `echo -n x` in #(((((
7110 case `echo 'xy\c'` in
7111 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7113 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7120 # For backward compatibility with old third-party macros, we provide
7121 # the shell variables $as_echo and $as_echo_n. New code should use
7122 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
7123 as_echo
='printf %s\n'
7124 as_echo_n
='printf %s'
7126 rm -f conf$$ conf$$.exe conf$$.
file
7127 if test -d conf$$.dir
; then
7128 rm -f conf$$.dir
/conf$$.
file
7131 mkdir conf$$.dir
2>/dev
/null
7133 if (echo >conf$$.
file) 2>/dev
/null
; then
7134 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7136 # ... but there are two gotchas:
7137 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7138 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7139 # In both cases, we have to default to `cp -pR'.
7140 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7142 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7150 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7151 rmdir conf$$.dir
2>/dev
/null
7156 # Create "$as_dir" as a directory, including parents if necessary.
7161 -*) as_dir
=.
/$as_dir;;
7163 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7167 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7168 *) as_qdir
=$as_dir;;
7170 as_dirs
="'$as_qdir' $as_dirs"
7171 as_dir
=`$as_dirname -- "$as_dir" ||
7172 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7173 X"$as_dir" : 'X\(//\)[^/]' \| \
7174 X"$as_dir" : 'X\(//\)$' \| \
7175 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7176 printf "%s\n" X"$as_dir" |
7177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7194 test -d "$as_dir" && break
7196 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7197 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7201 if mkdir
-p .
2>/dev
/null
; then
7202 as_mkdir_p
='mkdir -p "$as_dir"'
7204 test -d .
/-p && rmdir .
/-p
7209 # as_fn_executable_p FILE
7210 # -----------------------
7211 # Test if FILE is an executable regular file.
7212 as_fn_executable_p
()
7214 test -f "$1" && test -x "$1"
7215 } # as_fn_executable_p
7217 as_executable_p
=as_fn_executable_p
7219 # Sed expression to map a string onto a valid CPP name.
7220 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7222 # Sed expression to map a string onto a valid variable name.
7223 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7227 ## ----------------------------------- ##
7228 ## Main body of $CONFIG_STATUS script. ##
7229 ## ----------------------------------- ##
7231 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7234 # Save the log message, to keep $0 and so on meaningful, and to
7235 # report actual input values of CONFIG_FILES etc. instead of their
7236 # values after options handling.
7238 This file was extended by qbittorrent $as_me v4.5.0alpha, which was
7239 generated by GNU Autoconf 2.71. Invocation command line was
7241 CONFIG_FILES = $CONFIG_FILES
7242 CONFIG_HEADERS = $CONFIG_HEADERS
7243 CONFIG_LINKS = $CONFIG_LINKS
7244 CONFIG_COMMANDS = $CONFIG_COMMANDS
7247 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7252 case $ac_config_files in *"
7253 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7259 # Files that config.status was made for.
7260 config_files="$ac_config_files"
7261 config_commands="$ac_config_commands"
7265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7267 \`$as_me' instantiates files and other configuration actions
7268 from templates according to the current configuration. Unless the files
7269 and actions are specified as TAGs, all are instantiated by default.
7271 Usage: $0 [OPTION]... [TAG]...
7273 -h, --help print this help, then exit
7274 -V, --version print version number and configuration settings, then exit
7275 --config print configuration, then exit
7276 -q, --quiet, --silent
7277 do not print progress messages
7278 -d, --debug don't remove temporary files
7279 --recheck update $as_me by reconfiguring in the same conditions
7280 --file=FILE[:TEMPLATE]
7281 instantiate the configuration file FILE
7283 Configuration files:
7286 Configuration commands:
7289 Report bugs to <bugs.qbittorrent.org>.
7290 qbittorrent home page: <https://www.qbittorrent.org/>."
7293 ac_cs_config
=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7294 ac_cs_config_escaped
=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7296 ac_cs_config='$ac_cs_config_escaped'
7298 qbittorrent config.status v4.5.0alpha
7299 configured by $0, generated by GNU Autoconf 2.71,
7300 with options \\"\$ac_cs_config\\"
7302 Copyright (C) 2021 Free Software Foundation, Inc.
7303 This config.status script is free software; the Free Software Foundation
7304 gives unlimited permission to copy, distribute and modify it."
7311 test -n "\$AWK" || AWK=awk
7314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7315 # The default lists apply if the user does not specify any file.
7321 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7322 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7326 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7338 # Handling of the options.
7339 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7341 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7342 printf "%s\n" "$ac_cs_version"; exit ;;
7343 --config |
--confi |
--conf |
--con |
--co |
--c )
7344 printf "%s\n" "$ac_cs_config"; exit ;;
7345 --debug |
--debu |
--deb |
--de |
--d |
-d )
7347 --file |
--fil |
--fi |
--f )
7350 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7351 '') as_fn_error $?
"missing file argument" ;;
7353 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7354 ac_need_defaults
=false
;;
7355 --he |
--h |
--help |
--hel |
-h )
7356 printf "%s\n" "$ac_cs_usage"; exit ;;
7357 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7358 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7362 -*) as_fn_error $?
"unrecognized option: \`$1'
7363 Try \`$0 --help' for more information." ;;
7365 *) as_fn_append ac_config_targets
" $1"
7366 ac_need_defaults
=false
;;
7372 ac_configure_extra_args
=
7374 if $ac_cs_silent; then
7376 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7381 if \$ac_cs_recheck; then
7382 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7384 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7385 CONFIG_SHELL='$SHELL'
7391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7395 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7396 ## Running $as_me. ##
7398 printf "%s\n" "$ac_log"
7402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7406 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
7410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7412 # Handling of arguments.
7413 for ac_config_target
in $ac_config_targets
7415 case $ac_config_target in
7416 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
7417 ""$QBT_CONFIG_FILES"") CONFIG_FILES
="$CONFIG_FILES "$QBT_CONFIG_FILES"" ;;
7419 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7424 # If the user did not use the arguments to specify the items to instantiate,
7425 # then the envvar interface is used. Set only those that are not.
7426 # We use the long form for the default assignment because of an extremely
7427 # bizarre bug on SunOS 4.1.3.
7428 if $ac_need_defaults; then
7429 test ${CONFIG_FILES+y} || CONFIG_FILES
=$config_files
7430 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS
=$config_commands
7433 # Have a temporary directory for convenience. Make it in the build tree
7434 # simply because there is no reason against having it here, and in addition,
7435 # creating and moving files from /tmp can sometimes cause problems.
7436 # Hook for its removal unless debugging.
7437 # Note that there is a small window in which the directory will not be cleaned:
7438 # after its creation but before its name has been assigned to `$tmp'.
7442 trap 'exit_status=$?
7444 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7446 trap 'as_fn_exit 1' 1 2 13 15
7448 # Create a (secure) tmp directory for tmp files.
7451 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7455 tmp
=.
/conf$$
-$RANDOM
7456 (umask 077 && mkdir
"$tmp")
7457 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
7460 # Set up the scripts for CONFIG_FILES section.
7461 # No need to generate them if there are no CONFIG_FILES.
7462 # This happens for instance with `./config.status config.h'.
7463 if test -n "$CONFIG_FILES"; then
7466 ac_cr
=`echo X | tr X '\015'`
7467 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7468 # But we know of no other shell where ac_cr would be empty at this
7469 # point, so we can use a bashism as a fallback.
7470 if test "x$ac_cr" = x
; then
7471 eval ac_cr
=\$
\'\\r
\'
7473 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7474 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7480 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7485 echo "cat >conf$$subs.awk <<_ACEOF" &&
7486 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7489 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7490 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7492 for ac_last_try in false false false false false :; do
7493 . ./conf$$subs.sh ||
7494 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7496 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7497 if test $ac_delim_n = $ac_delim_num; then
7499 elif $ac_last_try; then
7500 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7502 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7508 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
7512 s/^/S["/; s
/!.
*/"]=/
7522 s/\(.\{148\}\)..*/\1/
7524 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7529 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7536 s/\(.\{148\}\)..*/\1/
7538 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7542 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7547 ' <conf$$subs.awk | sed '
7552 ' >>$CONFIG_STATUS || ac_write_fail=1
7553 rm -f conf$$subs.awk
7554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7556 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
7557 for (key in S) S_is_set[key] = 1
7563 nfields = split(line, field, "@
")
7565 len = length(field[1])
7566 for (i = 2; i < nfields; i++) {
7568 keylen = length(key)
7569 if (S_is_set[key]) {
7571 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7572 len += length(value) + length(field[++i])
7583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7584 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7585 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7588 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
7589 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
7592 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7593 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
7594 # trailing colons and then remove the whole line if VPATH becomes empty
7595 # (actually we leave an empty line to preserve line numbers).
7596 if test "x
$srcdir" = x.; then
7597 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7616 fi # test -n "$CONFIG_FILES"
7619 eval set X " :F
$CONFIG_FILES :C
$CONFIG_COMMANDS"
7624 :[FHLC]) ac_mode=$ac_tag; continue;;
7626 case $ac_mode$ac_tag in
7628 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
7629 :[FH]-) ac_tag=-:-;;
7630 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7647 -) ac_f="$ac_tmp/stdin";;
7648 *) # Look for the file first in the build tree, then in the source tree
7649 # (if the path is not absolute). The absolute path cannot be DOS-style,
7650 # because $ac_f cannot contain `:'.
7654 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7656 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7658 case $ac_f in *\'*) ac_f=`printf "%s
\n" "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
7659 as_fn_append ac_file_inputs " '$ac_f'"
7662 # Let's still pretend it is `configure' which instantiates (i.e., don't
7663 # use $as_me), people would be surprised to read:
7664 # /* config.h. Generated by config.status. */
7665 configure_input='Generated from '`
7666 printf "%s
\n" "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7668 if test x"$ac_file" != x-; then
7669 configure_input="$ac_file.
$configure_input"
7670 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
7671 printf "%s
\n" "$as_me: creating
$ac_file" >&6;}
7673 # Neutralize special characters interpreted by sed in replacement strings.
7674 case $configure_input in #(
7675 *\&* | *\|* | *\\* )
7676 ac_sed_conf_input=`printf "%s
\n" "$configure_input" |
7677 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7678 *) ac_sed_conf_input=$configure_input;;
7682 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
7683 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
7688 ac_dir=`$as_dirname -- "$ac_file" ||
7689 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7690 X"$ac_file" : 'X\(//\)[^/]' \| \
7691 X"$ac_file" : 'X\(//\)$' \| \
7692 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7693 printf "%s
\n" X"$ac_file" |
7694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7711 as_dir="$ac_dir"; as_fn_mkdir_p
7715 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7717 ac_dir_suffix=/`printf "%s
\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7718 # A "..
" for each directory in $ac_dir_suffix.
7719 ac_top_builddir_sub=`printf "%s
\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7720 case $ac_top_builddir_sub in
7721 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7722 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7725 ac_abs_top_builddir=$ac_pwd
7726 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7727 # for backward compatibility:
7728 ac_top_builddir=$ac_top_build_prefix
7731 .) # We are building in place.
7733 ac_top_srcdir=$ac_top_builddir_sub
7734 ac_abs_top_srcdir=$ac_pwd ;;
7735 [\\/]* | ?:[\\/]* ) # Absolute name.
7736 ac_srcdir=$srcdir$ac_dir_suffix;
7737 ac_top_srcdir=$srcdir
7738 ac_abs_top_srcdir=$srcdir ;;
7740 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7741 ac_top_srcdir=$ac_top_build_prefix$srcdir
7742 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7744 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7754 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7755 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7759 [\\/$]* | ?:[\\/]* ) ;;
7760 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7765 # If the template does not know about datarootdir, expand it.
7766 # FIXME: This hack should be removed a few years after 2.60.
7767 ac_datarootdir_hack=; ac_datarootdir_seen=
7778 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
7779 *datarootdir*) ac_datarootdir_seen=yes;;
7780 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7781 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
7782 printf "%s
\n" "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
7784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7785 ac_datarootdir_hack='
7786 s&@datadir@&$datadir&g
7787 s&@docdir@&$docdir&g
7788 s&@infodir@&$infodir&g
7789 s&@localedir@&$localedir&g
7790 s&@mandir@&$mandir&g
7791 s&\\\${datarootdir}&$datarootdir&g' ;;
7795 # Neutralize VPATH when `$srcdir' = `.'.
7796 # Shell code in configure.ac might set extrasub.
7797 # FIXME: do we really want to maintain this feature?
7798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7799 ac_sed_extra="$ac_vpsub
7802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7804 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7805 s|@configure_input@|
$ac_sed_conf_input|
;t t
7806 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7807 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7808 s
&@srcdir@
&$ac_srcdir&;t t
7809 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7810 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7811 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7812 s
&@builddir@
&$ac_builddir&;t t
7813 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7814 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7815 s
&@INSTALL@
&$ac_INSTALL&;t t
7816 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
7817 $ac_datarootdir_hack
7819 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
7820 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
7822 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7823 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
7824 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7825 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
7826 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7827 which seems to be undefined. Please make sure it is defined" >&5
7828 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7829 which seems to be undefined. Please make sure it is defined" >&2;}
7831 rm -f "$ac_tmp/stdin"
7833 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7834 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7836 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7840 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7841 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
7846 case $ac_file$ac_mode in
7847 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7848 # Older Autoconf quotes --file arguments for eval, but not when files
7849 # are listed without --file. Let's play safe and only
enable the
eval
7850 # if we detect the quoting.
7851 # TODO: see whether this extra hack can be removed once we start
7852 # requiring Autoconf 2.70 or later.
7853 case $CONFIG_FILES in #(
7855 eval set x
"$CONFIG_FILES" ;; #(
7857 set x
$CONFIG_FILES ;; #(
7862 # Used to flag and report bootstrapping failures.
7866 # Strip MF so we end up with the name of the file.
7867 am_mf
=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
7868 # Check whether this is an Automake generated Makefile which includes
7869 # dependency-tracking related rules and includes.
7870 # Grep'ing the whole file directly is not great: AIX grep has a line
7871 # limit of 2048, but all sed's we know have understand at least 4000.
7872 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" |
grep X
>/dev
/null
2>&1 \
7874 am_dirpart
=`$as_dirname -- "$am_mf" ||
7875 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7876 X"$am_mf" : 'X\(//\)[^/]' \| \
7877 X"$am_mf" : 'X\(//\)$' \| \
7878 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7879 printf "%s\n" X"$am_mf" |
7880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7897 am_filepart
=`$as_basename -- "$am_mf" ||
7898 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
7899 X"$am_mf" : 'X\(//\)$' \| \
7900 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7901 printf "%s\n" X/"$am_mf" |
7902 sed '/^.*\/\([^/][^/]*\)\/*$/{
7915 { echo "$as_me:$LINENO: cd "$am_dirpart" \
7916 && sed -e '/# am--include-marker/d' "$am_filepart" \
7917 | $MAKE -f - am--depfiles" >&5
7919 && sed -e '/# am--include-marker/d' "$am_filepart" \
7920 |
$MAKE -f - am--depfiles
) >&5 2>&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } || am_rc
=$?
7925 if test $am_rc -ne 0; then
7926 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7927 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7928 as_fn_error $?
"Something went wrong bootstrapping makefile fragments
7929 for automatic dependency tracking. If GNU make was not used, consider
7930 re-running the configure script with MAKE=\"gmake\" (or whatever is
7931 necessary). You can also try re-running configure with the
7932 '--disable-dependency-tracking' option to at least be able to build
7933 the package (albeit without support for automatic dependency tracking).
7934 See \`config.log' for more details" "$LINENO" 5; }
7936 { am_dirpart
=; unset am_dirpart
;}
7937 { am_filepart
=; unset am_filepart
;}
7938 { am_mf
=; unset am_mf
;}
7939 { am_rc
=; unset am_rc
;}
7940 rm -f conftest-deps.mk
7950 ac_clean_files
=$ac_clean_files_save
7952 test $ac_write_fail = 0 ||
7953 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
7956 # configure is writing to config.log, and then calls config.status.
7957 # config.status does its own redirection, appending to config.log.
7958 # Unfortunately, on DOS this fails, as config.log is still kept open
7959 # by configure, so config.status won't be able to write to it; its
7960 # output is simply discarded. So we exec the FD to /dev/null,
7961 # effectively closing config.log, so it can be properly (re)opened and
7962 # appended to by config.status. When coming back to configure, we
7963 # need to make the FD available again.
7964 if test "$no_create" != yes; then
7966 ac_config_status_args
=
7967 test "$silent" = yes &&
7968 ac_config_status_args
="$ac_config_status_args --quiet"
7970 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7972 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7973 # would make configure fail if this is the last instruction.
7974 $ac_cs_success || as_fn_exit
1
7976 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7978 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Running qmake to generate the makefile..." >&5
7983 printf "%s\n" "$as_me: Running qmake to generate the makefile..." >&6;}
7984 TOPDIR
="$(cd "$
(dirname "$0")" && pwd)"
7985 $QT_QMAKE -r "$TOPDIR/qbittorrent.pro" "QMAKE_LRELEASE=$QMAKE_LRELEASE"
7989 if test "x$qmake_ret" != "x0"
7991 as_fn_error $?
"$QT_QMAKE failed to generate the makefile" "$LINENO" 5
7994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Good, the configure finished." >&5
7995 printf "%s\n" "$as_me: Good, the configure finished." >&6;}