Merge pull request #15016 from Chocobo1/pr_13756
[qBittorrent.git] / configure
blob767a1d1d5d5022969471b1e2d73bdfa8119ee59e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for qbittorrent v4.4.0alpha.
5 # Report bugs to <bugs.qbittorrent.org>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
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
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
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+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
35 esac
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
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.
47 as_nl='
49 export as_nl
50 IFS=" "" $as_nl"
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
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 || :
70 done
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
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
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.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
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
138 exit 255
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
145 then :
146 emulate sh
147 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
158 esac
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; }
167 exitcode=0
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\" )
173 then :
175 else \$as_nop
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
181 test -x / || 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
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
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
215 then :
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
218 then :
219 break 2
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno
263 then :
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."
269 else
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."
276 exit 1
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
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 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
294 { eval $1=; unset $1;}
296 as_unset=as_fn_unset
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
304 return $1
305 } # as_fn_set_status
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316 # as_fn_nop
317 # ---------
318 # Do nothing but, unlike ":", preserve the value of $?.
319 as_fn_nop ()
321 return $?
323 as_nop=as_fn_nop
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
356 /^X\(\/\/\)$/{
357 s//\1/
360 /^X\(\/\).*/{
361 s//\1/
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 } # as_fn_mkdir_p
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
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
387 then :
388 eval 'as_fn_append ()
390 eval $1+=\$2
392 else $as_nop
393 as_fn_append ()
395 eval $1=\$$1\$2
397 fi # as_fn_append
399 # as_fn_arith ARG...
400 # ------------------
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
405 then :
406 eval 'as_fn_arith ()
408 as_val=$(( $* ))
410 else $as_nop
411 as_fn_arith ()
413 as_val=`expr "$@" || test $? -eq 1`
415 fi # as_fn_arith
417 # as_fn_nop
418 # ---------
419 # Do nothing but, unlike ":", preserve the value of $?.
420 as_fn_nop ()
422 return $?
424 as_nop=as_fn_nop
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.
431 as_fn_error ()
433 as_status=$1; test $as_status -eq 0 && as_status=1
434 if test "$4"; then
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
440 } # as_fn_error
442 if expr a : '\(a\)' >/dev/null 2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
444 as_expr=expr
445 else
446 as_expr=false
449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
450 as_basename=basename
451 else
452 as_basename=false
455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
456 as_dirname=dirname
457 else
458 as_dirname=false
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 '/^.*\/\([^/][^/]*\)\/*$/{
467 s//\1/
470 /^X\/\(\/\/\)$/{
471 s//\1/
474 /^X\/\(\/\).*/{
475 s//\1/
478 s/.*/./; q'`
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. :-)
493 sed -n '
495 /[$]LINENO/=
496 ' <$as_myself |
497 sed '
498 s/[$]LINENO.*/&-/
499 t lineno
501 :lineno
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
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).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
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 #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
537 ECHO_N='-n';;
538 esac
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
550 else
551 rm -f conf$$.dir
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
556 as_ln_s='ln -s'
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 ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
568 else
569 as_ln_s='cp -pR'
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"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
581 as_test_x='test -x'
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
592 exec 6>&1
594 # Name of the host.
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`
600 # Initializations.
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
611 # Identity of this package.
612 PACKAGE_NAME='qbittorrent'
613 PACKAGE_TARNAME='qbittorrent'
614 PACKAGE_VERSION='v4.4.0alpha'
615 PACKAGE_STRING='qbittorrent v4.4.0alpha'
616 PACKAGE_BUGREPORT='bugs.qbittorrent.org'
617 PACKAGE_URL='https://www.qbittorrent.org/'
619 ac_subst_vars='am__EXEEXT_FALSE
620 am__EXEEXT_TRUE
621 LTLIBOBJS
622 LIBOBJS
623 QBT_REMOVE_DEFINES
624 QBT_ADD_DEFINES
625 QBT_REMOVE_CONFIG
626 QBT_ADD_CONFIG
627 QBT_CONF_EXTRA_CFLAGS
628 QBT_CONF_INCLUDES
629 QBT_CXX
630 QBT_CC
631 EXPAND_MANDIR
632 EXPAND_DATADIR
633 EXPAND_BINDIR
634 EXPAND_PREFIX
635 zlib_LIBS
636 zlib_CFLAGS
637 openssl_LIBS
638 openssl_CFLAGS
639 libtorrent_LIBS
640 libtorrent_CFLAGS
641 BOOST_LDFLAGS
642 BOOST_CPPFLAGS
643 Qt5Svg_LIBS
644 Qt5Svg_CFLAGS
645 QT_QMAKE
646 PKG_CONFIG_LIBDIR
647 PKG_CONFIG_PATH
648 PKG_CONFIG
649 AM_BACKSLASH
650 AM_DEFAULT_VERBOSITY
651 AM_DEFAULT_V
652 AM_V
653 am__fastdepCXX_FALSE
654 am__fastdepCXX_TRUE
655 CXXDEPMODE
656 am__fastdepCC_FALSE
657 am__fastdepCC_TRUE
658 CCDEPMODE
659 am__nodep
660 AMDEPBACKSLASH
661 AMDEP_FALSE
662 AMDEP_TRUE
663 am__include
664 DEPDIR
665 am__untar
666 am__tar
667 AMTAR
668 am__leading_dot
669 SET_MAKE
671 mkdir_p
672 MKDIR_P
673 INSTALL_STRIP_PROGRAM
674 STRIP
675 install_sh
676 MAKEINFO
677 AUTOHEADER
678 AUTOMAKE
679 AUTOCONF
680 ACLOCAL
681 VERSION
682 PACKAGE
683 CYGPATH_W
684 am__isrc
685 INSTALL_DATA
686 INSTALL_SCRIPT
687 INSTALL_PROGRAM
688 host_os
689 host_vendor
690 host_cpu
691 host
692 build_os
693 build_vendor
694 build_cpu
695 build
697 ac_ct_CXX
698 CXXFLAGS
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
707 target_alias
708 host_alias
709 build_alias
710 LIBS
711 ECHO_T
712 ECHO_N
713 ECHO_C
714 DEFS
715 mandir
716 localedir
717 libdir
718 psdir
719 pdfdir
720 dvidir
721 htmldir
722 infodir
723 docdir
724 oldincludedir
725 includedir
726 runstatedir
727 localstatedir
728 sharedstatedir
729 sysconfdir
730 datadir
731 datarootdir
732 libexecdir
733 sbindir
734 bindir
735 program_transform_name
736 prefix
737 exec_prefix
738 PACKAGE_URL
739 PACKAGE_BUGREPORT
740 PACKAGE_STRING
741 PACKAGE_VERSION
742 PACKAGE_TARNAME
743 PACKAGE_NAME
744 PATH_SEPARATOR
745 SHELL
746 am__quote'
747 ac_subst_files=''
748 ac_user_opts='
749 enable_option_checking
750 enable_dependency_tracking
751 enable_silent_rules
752 enable_debug
753 enable_stacktrace
754 enable_gui
755 enable_systemd
756 enable_webui
757 enable_qt_dbus
758 with_boost
759 with_boost_libdir
761 ac_precious_vars='build_alias
762 host_alias
763 target_alias
765 CFLAGS
766 LDFLAGS
767 LIBS
768 CPPFLAGS
770 CXXFLAGS
772 PKG_CONFIG
773 PKG_CONFIG_PATH
774 PKG_CONFIG_LIBDIR
775 QT_QMAKE
776 Qt5Svg_CFLAGS
777 Qt5Svg_LIBS
778 libtorrent_CFLAGS
779 libtorrent_LIBS
780 openssl_CFLAGS
781 openssl_LIBS
782 zlib_CFLAGS
783 zlib_LIBS'
786 # Initialize some variables set by options.
787 ac_init_help=
788 ac_init_version=false
789 ac_unrecognized_opts=
790 ac_unrecognized_sep=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
793 cache_file=/dev/null
794 exec_prefix=NONE
795 no_create=
796 no_recursion=
797 prefix=NONE
798 program_prefix=NONE
799 program_suffix=NONE
800 program_transform_name=s,x,x,
801 silent=
802 site=
803 srcdir=
804 verbose=
805 x_includes=NONE
806 x_libraries=NONE
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'
827 htmldir='${docdir}'
828 dvidir='${docdir}'
829 pdfdir='${docdir}'
830 psdir='${docdir}'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
835 ac_prev=
836 ac_dashdash=
837 for ac_option
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\$ac_option
842 ac_prev=
843 continue
846 case $ac_option in
847 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *=) ac_optarg= ;;
849 *) ac_optarg=yes ;;
850 esac
852 case $ac_dashdash$ac_option in
854 ac_dashdash=yes ;;
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 bindir=$ac_optarg ;;
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 ;;
873 --config-cache | -C)
874 cache_file=config.cache ;;
876 -datadir | --datadir | --datadi | --datad)
877 ac_prev=datadir ;;
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
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=no ;;
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
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
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
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.
941 with_gas=yes ;;
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
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)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
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)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 libdir=$ac_optarg ;;
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)
986 ac_prev=localedir ;;
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)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1008 no_create=yes ;;
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
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)
1024 ac_prev=prefix ;;
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)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
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)
1083 ac_prev=sbindir ;;
1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085 | --sbi=* | --sb=*)
1086 sbindir=$ac_optarg ;;
1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090 | --sharedst | --shareds | --shared | --share | --shar \
1091 | --sha | --sh)
1092 ac_prev=sharedstatedir ;;
1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096 | --sha=* | --sh=*)
1097 sharedstatedir=$ac_optarg ;;
1099 -site | --site | --sit)
1100 ac_prev=site ;;
1101 -site=* | --site=* | --sit=*)
1102 site=$ac_optarg ;;
1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105 ac_prev=srcdir ;;
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)
1122 verbose=yes ;;
1124 -version | --version | --versio | --versi | --vers | -V)
1125 ac_init_version=: ;;
1127 -with-* | --with-*)
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
1136 "with_$ac_useropt"
1137 "*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
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
1152 "with_$ac_useropt"
1153 "*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval with_$ac_useropt=no ;;
1159 --x)
1160 # Obsolete; use --with-x.
1161 with_x=yes ;;
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"
1181 *=*)
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'" ;;
1187 esac
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}"
1199 esac
1200 done
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
1209 no) ;;
1210 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1211 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1212 esac
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.
1223 case $ac_val in
1224 */ )
1225 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226 eval $ac_var=\$ac_val;;
1227 esac
1228 # Be sure to have absolute directory names.
1229 case $ac_val in
1230 [\\/$]* | ?:[\\/]* ) continue;;
1231 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232 esac
1233 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1234 done
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.
1239 build=$build_alias
1240 host=$host_alias
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
1248 cross_compiling=yes
1252 ac_tool_prefix=
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/
1280 /^X\(\/\/\)[^/].*/{
1281 s//\1/
1284 /^X\(\/\/\)$/{
1285 s//\1/
1288 /^X\(\/\).*/{
1289 s//\1/
1292 s/.*/./; q'`
1293 srcdir=$ac_confdir
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 srcdir=..
1297 else
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"
1305 ac_abs_confdir=`(
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307 pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
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.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
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}
1323 done
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.
1331 cat <<_ACEOF
1332 \`configure' configures qbittorrent v4.4.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.
1341 Configuration:
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
1356 [PREFIX]
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]
1386 _ACEOF
1388 cat <<\_ACEOF
1390 Program names:
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
1395 System types:
1396 --build=BUILD configure for building on BUILD [guessed]
1397 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1398 _ACEOF
1401 if test -n "$ac_init_help"; then
1402 case $ac_init_help in
1403 short | recursive ) echo "Configuration of qbittorrent v4.4.0alpha:";;
1404 esac
1405 cat <<\_ACEOF
1407 Optional Features:
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)
1425 Optional Packages:
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
1449 PKG_CONFIG_PATH
1450 directories to add to pkg-config's search path
1451 PKG_CONFIG_LIBDIR
1452 path overriding pkg-config's built-in search path
1453 QT_QMAKE value of host_bins for Qt5Core >= 5.12, overriding pkg-config
1454 Qt5Svg_CFLAGS
1455 C compiler flags for Qt5Svg, overriding pkg-config
1456 Qt5Svg_LIBS linker flags for Qt5Svg, overriding pkg-config
1457 libtorrent_CFLAGS
1458 C compiler flags for libtorrent, overriding pkg-config
1459 libtorrent_LIBS
1460 linker flags for libtorrent, overriding pkg-config
1461 openssl_CFLAGS
1462 C compiler flags for openssl, overriding pkg-config
1463 openssl_LIBS
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/>.
1473 _ACEOF
1474 ac_status=$?
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"; } ||
1482 continue
1483 ac_builddir=.
1485 case "$ac_dir" in
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/ ;;
1494 esac ;;
1495 esac
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
1501 case $srcdir in
1502 .) # We are building in place.
1503 ac_srcdir=.
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 ;;
1510 *) # Relative name.
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 ;;
1514 esac
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
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1526 else
1527 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1530 done
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535 cat <<\_ACEOF
1536 qbittorrent configure v4.4.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.
1542 _ACEOF
1543 exit
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"
1558 case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561 esac
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
1565 ac_status=$?
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
1576 then :
1577 ac_retval=0
1578 else $as_nop
1579 printf "%s\n" "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1582 ac_retval=1
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"
1597 case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600 esac
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
1604 ac_status=$?
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
1615 then :
1616 ac_retval=0
1617 else $as_nop
1618 printf "%s\n" "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1621 ac_retval=1
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=
1628 for ac_arg
1630 case $ac_arg in
1631 *\'*)
1632 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1633 esac
1634 as_fn_append ac_configure_args_raw " '$ac_arg'"
1635 done
1637 case $ac_configure_args_raw in
1638 *$as_nl*)
1639 ac_safe_unquote= ;;
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"`;;
1645 esac
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.4.0alpha, which was
1652 generated by GNU Autoconf 2.71. Invocation command line was
1654 $ $0$ac_configure_args_raw
1656 _ACEOF
1657 exec 5>>config.log
1659 cat <<_ASUNAME
1660 ## --------- ##
1661 ## Platform. ##
1662 ## --------- ##
1664 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1665 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1666 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1667 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1668 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1670 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1671 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1673 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1674 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1675 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1676 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1677 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1678 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1679 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1681 _ASUNAME
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 for as_dir in $PATH
1686 IFS=$as_save_IFS
1687 case $as_dir in #(((
1688 '') as_dir=./ ;;
1689 */) ;;
1690 *) as_dir=$as_dir/ ;;
1691 esac
1692 printf "%s\n" "PATH: $as_dir"
1693 done
1694 IFS=$as_save_IFS
1696 } >&5
1698 cat >&5 <<_ACEOF
1701 ## ----------- ##
1702 ## Core tests. ##
1703 ## ----------- ##
1705 _ACEOF
1708 # Keep a trace of the command line.
1709 # Strip out --no-create and --no-recursion so they do not pile up.
1710 # Strip out --silent because we don't want to record it for future runs.
1711 # Also quote any args containing shell meta-characters.
1712 # Make two passes to allow for proper duplicate-argument suppression.
1713 ac_configure_args=
1714 ac_configure_args0=
1715 ac_configure_args1=
1716 ac_must_keep_next=false
1717 for ac_pass in 1 2
1719 for ac_arg
1721 case $ac_arg in
1722 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1724 | -silent | --silent | --silen | --sile | --sil)
1725 continue ;;
1726 *\'*)
1727 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1728 esac
1729 case $ac_pass in
1730 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1732 as_fn_append ac_configure_args1 " '$ac_arg'"
1733 if test $ac_must_keep_next = true; then
1734 ac_must_keep_next=false # Got value, back to normal.
1735 else
1736 case $ac_arg in
1737 *=* | --config-cache | -C | -disable-* | --disable-* \
1738 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1739 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1740 | -with-* | --with-* | -without-* | --without-* | --x)
1741 case "$ac_configure_args0 " in
1742 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1743 esac
1745 -* ) ac_must_keep_next=true ;;
1746 esac
1748 as_fn_append ac_configure_args " '$ac_arg'"
1750 esac
1751 done
1752 done
1753 { ac_configure_args0=; unset ac_configure_args0;}
1754 { ac_configure_args1=; unset ac_configure_args1;}
1756 # When interrupted or exit'd, cleanup temporary files, and complete
1757 # config.log. We remove comments because anyway the quotes in there
1758 # would cause problems or look ugly.
1759 # WARNING: Use '\'' to represent an apostrophe within the trap.
1760 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1761 trap 'exit_status=$?
1762 # Sanitize IFS.
1763 IFS=" "" $as_nl"
1764 # Save into config.log some information that might help in debugging.
1766 echo
1768 printf "%s\n" "## ---------------- ##
1769 ## Cache variables. ##
1770 ## ---------------- ##"
1771 echo
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
1776 case $ac_val in #(
1777 *${as_nl}*)
1778 case $ac_var in #(
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;} ;;
1781 esac
1782 case $ac_var in #(
1783 _ | IFS | as_nl) ;; #(
1784 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1785 *) { eval $ac_var=; unset $ac_var;} ;;
1786 esac ;;
1787 esac
1788 done
1789 (set) 2>&1 |
1790 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1791 *${as_nl}ac_space=\ *)
1792 sed -n \
1793 "s/'\''/'\''\\\\'\'''\''/g;
1794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1795 ;; #(
1797 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1799 esac |
1800 sort
1802 echo
1804 printf "%s\n" "## ----------------- ##
1805 ## Output variables. ##
1806 ## ----------------- ##"
1807 echo
1808 for ac_var in $ac_subst_vars
1810 eval ac_val=\$$ac_var
1811 case $ac_val in
1812 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813 esac
1814 printf "%s\n" "$ac_var='\''$ac_val'\''"
1815 done | sort
1816 echo
1818 if test -n "$ac_subst_files"; then
1819 printf "%s\n" "## ------------------- ##
1820 ## File substitutions. ##
1821 ## ------------------- ##"
1822 echo
1823 for ac_var in $ac_subst_files
1825 eval ac_val=\$$ac_var
1826 case $ac_val in
1827 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828 esac
1829 printf "%s\n" "$ac_var='\''$ac_val'\''"
1830 done | sort
1831 echo
1834 if test -s confdefs.h; then
1835 printf "%s\n" "## ----------- ##
1836 ## confdefs.h. ##
1837 ## ----------- ##"
1838 echo
1839 cat confdefs.h
1840 echo
1842 test "$ac_signal" != 0 &&
1843 printf "%s\n" "$as_me: caught signal $ac_signal"
1844 printf "%s\n" "$as_me: exit $exit_status"
1845 } >&5
1846 rm -f core *.core core.conftest.* &&
1847 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1848 exit $exit_status
1850 for ac_signal in 1 2 13 15; do
1851 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1852 done
1853 ac_signal=0
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"
1881 else
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 #(
1888 */*) :
1889 ;; #(
1890 *) :
1891 ac_site_file=./$ac_site_file ;;
1892 esac
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
1897 . "$ac_site_file" \
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; }
1903 done
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;}
1911 case $cache_file in
1912 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1913 *) . "./$cache_file";;
1914 esac
1916 else
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;}
1919 >$cache_file
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"
1929 #endif
1931 #include <stddef.h>
1932 #include <stdarg.h>
1933 struct stat;
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)
1938 char **p;
1939 int i;
1941 return p[i];
1943 static char *f (char * (*g) (char **, int), char **p, ...)
1945 char *s;
1946 va_list v;
1947 va_start (v,p);
1948 s = g (p, va_arg (v,int));
1949 va_end (v);
1950 return s;
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),
1971 int, 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"
1983 #endif
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
1993 // FILE and stderr.
1994 #define debug(...) dprintf (2, __VA_ARGS__)
1995 #define showlist(...) puts (#__VA_ARGS__)
1996 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1997 static void
1998 test_varargs_macros (void)
2000 int x = 1234;
2001 int y = 5678;
2002 debug ("Flag");
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)
2012 #if !BIG_OK
2013 #error "your preprocessor is broken"
2014 #endif
2015 #if BIG_OK
2016 #else
2017 #error "your preprocessor is broken"
2018 #endif
2019 static long long int bignum = -9223372036854775807LL;
2020 static unsigned long long int ubignum = BIG64;
2022 struct incomplete_array
2024 int datasize;
2025 double data[];
2028 struct named_init {
2029 int number;
2030 const wchar_t *name;
2031 double average;
2034 typedef const char *ccp;
2036 static inline int
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)
2043 continue;
2044 return 0;
2047 // Check varargs and va_copy.
2048 static bool
2049 test_varargs (const char *format, ...)
2051 va_list args;
2052 va_start (args, format);
2053 va_list args_copy;
2054 va_copy (args_copy, args);
2056 const char *str = "";
2057 int number = 0;
2058 float fnumber = 0;
2060 while (*format)
2062 switch (*format++)
2064 case '\''s'\'': // string
2065 str = va_arg (args_copy, const char *);
2066 break;
2067 case '\''d'\'': // int
2068 number = va_arg (args_copy, int);
2069 break;
2070 case '\''f'\'': // float
2071 fnumber = va_arg (args_copy, double);
2072 break;
2073 default:
2074 break;
2077 va_end (args_copy);
2078 va_end (args);
2080 return *str && number && fnumber;
2084 # Test code for whether the C compiler supports C99 (body of main).
2085 ac_c_conftest_c99_main='
2086 // Check bool.
2087 _Bool success = false;
2088 success |= (argc != 0);
2090 // Check restrict.
2091 if (test_restrict ("String literal") == 0)
2092 success = true;
2093 char *restrict newvar = "Another string";
2095 // Check varargs.
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));
2102 ia->datasize = 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 = {
2108 .number = 34,
2109 .name = L"Test wide string",
2110 .average = 543.34343,
2113 ni.number = 58;
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"
2129 #endif
2131 // Check _Alignas.
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;
2137 // Check _Alignof.
2138 enum
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");
2146 // Check _Noreturn.
2147 int _Noreturn does_not_return (void) { for (;;) continue; }
2149 // Check _Static_assert.
2150 struct test_static_assert
2152 int x;
2153 _Static_assert (sizeof (int) <= sizeof (long int),
2154 "_Static_assert does not work in struct");
2155 long int y;
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.
2168 struct anonymous
2170 union {
2171 struct { int i; int j; };
2172 struct { int k; long int l; } w;
2174 int m;
2175 } v1;
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");
2183 v1.i = 2;
2184 v1.w.k = 5;
2185 ok |= v1.i != 5;
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)
2196 int ok = 0;
2197 ${ac_c_conftest_c89_main}
2198 ${ac_c_conftest_c99_main}
2199 ${ac_c_conftest_c11_main}
2200 return ok;
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)
2211 int ok = 0;
2212 ${ac_c_conftest_c89_main}
2213 ${ac_c_conftest_c99_main}
2214 return ok;
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)
2224 int ok = 0;
2225 ${ac_c_conftest_c89_main}
2226 return ok;
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"
2235 #endif
2237 // These inclusions are to reject old compilers that
2238 // lack the unsuffixed header files.
2239 #include <cstdlib>
2240 #include <exception>
2242 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2243 extern void assert (int);
2244 namespace std {
2245 extern int strcmp (const char *, const char *);
2248 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2249 using std::exception;
2250 using std::strcmp;
2252 namespace {
2254 void test_exception_syntax()
2256 try {
2257 throw "test";
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
2267 T const val;
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='
2277 assert (argc);
2278 assert (! argv[0]);
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"
2292 #endif
2294 namespace cxx11test
2296 constexpr int get_val() { return 20; }
2298 struct testinit
2300 int i;
2301 double d;
2304 class delegate
2306 public:
2307 delegate(int n) : n(n) {}
2308 delegate(): delegate(2354) {}
2310 virtual int getval() { return this->n; };
2311 protected:
2312 int n;
2315 class overridden : public delegate
2317 public:
2318 overridden(int n): delegate(n) {}
2319 virtual int getval() override final { return this->n * 2; }
2322 class nocopy
2324 public:
2325 nocopy(int i): i(i) {}
2326 nocopy() = default;
2327 nocopy(const nocopy&) = delete;
2328 nocopy & operator=(const nocopy&) = delete;
2329 private:
2330 int i;
2333 // for testing lambda expressions
2334 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2336 return f(v);
2339 // for testing variadic templates and trailing return types
2340 template <typename V> auto sum(V first) -> V
2342 return first;
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
2355 auto a1 = 6538;
2356 auto a2 = 48573953.4;
2357 auto a3 = "String literal";
2359 int total = 0;
2360 for (auto i = a3; *i; ++i) { total += *i; }
2362 decltype(a2) a4 = 34895.034;
2365 // Test constexpr
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);
2382 double d = 2.0;
2383 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2384 assert (d == 5.0);
2385 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2386 assert (d == 5.0);
2389 // Test use of variadic templates
2390 using cxx11test::sum;
2391 auto a = sum(1);
2392 auto b = sum(1, 2);
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);
2406 // Test nullptr
2407 char *c = nullptr;
2410 // Test template brackets
2411 test_template<::test_template<int>> v(test_template<int>(12));
2414 // Unicode literals
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)
2428 int ok = 0;
2429 ${ac_cxx_conftest_cxx98_main}
2430 ${ac_cxx_conftest_cxx11_main}
2431 return ok;
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)
2440 int ok = 0;
2441 ${ac_cxx_conftest_cxx98_main}
2442 return ok;
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
2462 as_found=false
2463 for as_dir in $ac_aux_dir_candidates
2465 IFS=$as_save_IFS
2466 case $as_dir in #(((
2467 '') as_dir=./ ;;
2468 */) ;;
2469 *) as_dir=$as_dir/ ;;
2470 esac
2471 as_found=:
2473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2474 ac_aux_dir_found=yes
2475 ac_install_sh=
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"
2482 then
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"
2492 else
2493 ac_aux_dir_found=no
2494 if $ac_first_candidate; then
2495 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2496 else
2497 break
2500 else
2501 if test -f "${as_dir}${ac_aux}"; then
2502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2503 else
2504 ac_aux_dir_found=no
2505 if $ac_first_candidate; then
2506 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2507 else
2508 break
2512 done
2513 if test "$ac_aux_dir_found" = yes; then
2514 ac_aux_dir="$as_dir"
2515 break
2517 ac_first_candidate=false
2519 as_found=false
2520 done
2521 IFS=$as_save_IFS
2522 if $as_found
2523 then :
2525 else $as_nop
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
2545 # value.
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
2553 set,)
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=: ;;
2557 ,set)
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=: ;;
2561 ,);;
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=:
2571 else
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;}
2580 fi;;
2581 esac
2582 # Pass precious variables to config.status.
2583 if test "$ac_new_set" = set; then
2584 case $ac_new_val in
2585 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2586 *) ac_arg=$ac_var=$ac_new_val ;;
2587 esac
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'" ;;
2591 esac
2593 done
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 ## -------------------- ##
2606 ac_ext=c
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
2615 : ${CFLAGS=""}
2616 : ${CXXFLAGS=""}
2626 ac_ext=c
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}
2637 then :
2638 printf %s "(cached) " >&6
2639 else $as_nop
2640 if test -n "$CC"; then
2641 ac_cv_prog_CC="$CC" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2646 IFS=$as_save_IFS
2647 case $as_dir in #(((
2648 '') as_dir=./ ;;
2649 */) ;;
2650 *) as_dir=$as_dir/ ;;
2651 esac
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
2656 break 2
2658 done
2659 done
2660 IFS=$as_save_IFS
2664 CC=$ac_cv_prog_CC
2665 if test -n "$CC"; then
2666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2667 printf "%s\n" "$CC" >&6; }
2668 else
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
2676 ac_ct_CC=$CC
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}
2682 then :
2683 printf %s "(cached) " >&6
2684 else $as_nop
2685 if test -n "$ac_ct_CC"; then
2686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2691 IFS=$as_save_IFS
2692 case $as_dir in #(((
2693 '') as_dir=./ ;;
2694 */) ;;
2695 *) as_dir=$as_dir/ ;;
2696 esac
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
2701 break 2
2703 done
2704 done
2705 IFS=$as_save_IFS
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; }
2713 else
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
2719 CC=""
2720 else
2721 case $cross_compiling:$ac_tool_warned in
2722 yes:)
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 ;;
2726 esac
2727 CC=$ac_ct_CC
2729 else
2730 CC="$ac_cv_prog_CC"
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}
2740 then :
2741 printf %s "(cached) " >&6
2742 else $as_nop
2743 if test -n "$CC"; then
2744 ac_cv_prog_CC="$CC" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2749 IFS=$as_save_IFS
2750 case $as_dir in #(((
2751 '') as_dir=./ ;;
2752 */) ;;
2753 *) as_dir=$as_dir/ ;;
2754 esac
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
2759 break 2
2761 done
2762 done
2763 IFS=$as_save_IFS
2767 CC=$ac_cv_prog_CC
2768 if test -n "$CC"; then
2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2770 printf "%s\n" "$CC" >&6; }
2771 else
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}
2785 then :
2786 printf %s "(cached) " >&6
2787 else $as_nop
2788 if test -n "$CC"; then
2789 ac_cv_prog_CC="$CC" # Let the user override the test.
2790 else
2791 ac_prog_rejected=no
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2795 IFS=$as_save_IFS
2796 case $as_dir in #(((
2797 '') as_dir=./ ;;
2798 */) ;;
2799 *) as_dir=$as_dir/ ;;
2800 esac
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
2805 continue
2807 ac_cv_prog_CC="cc"
2808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2809 break 2
2811 done
2812 done
2813 IFS=$as_save_IFS
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
2818 shift
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.
2823 shift
2824 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2829 CC=$ac_cv_prog_CC
2830 if test -n "$CC"; then
2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2832 printf "%s\n" "$CC" >&6; }
2833 else
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}
2849 then :
2850 printf %s "(cached) " >&6
2851 else $as_nop
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2858 IFS=$as_save_IFS
2859 case $as_dir in #(((
2860 '') as_dir=./ ;;
2861 */) ;;
2862 *) as_dir=$as_dir/ ;;
2863 esac
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2868 break 2
2870 done
2871 done
2872 IFS=$as_save_IFS
2876 CC=$ac_cv_prog_CC
2877 if test -n "$CC"; then
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879 printf "%s\n" "$CC" >&6; }
2880 else
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 printf "%s\n" "no" >&6; }
2886 test -n "$CC" && break
2887 done
2889 if test -z "$CC"; then
2890 ac_ct_CC=$CC
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}
2898 then :
2899 printf %s "(cached) " >&6
2900 else $as_nop
2901 if test -n "$ac_ct_CC"; then
2902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2907 IFS=$as_save_IFS
2908 case $as_dir in #(((
2909 '') as_dir=./ ;;
2910 */) ;;
2911 *) as_dir=$as_dir/ ;;
2912 esac
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
2917 break 2
2919 done
2920 done
2921 IFS=$as_save_IFS
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; }
2929 else
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
2936 done
2938 if test "x$ac_ct_CC" = x; then
2939 CC=""
2940 else
2941 case $cross_compiling:$ac_tool_warned in
2942 yes:)
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 ;;
2946 esac
2947 CC=$ac_ct_CC
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}
2959 then :
2960 printf %s "(cached) " >&6
2961 else $as_nop
2962 if test -n "$CC"; then
2963 ac_cv_prog_CC="$CC" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2968 IFS=$as_save_IFS
2969 case $as_dir in #(((
2970 '') as_dir=./ ;;
2971 */) ;;
2972 *) as_dir=$as_dir/ ;;
2973 esac
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
2978 break 2
2980 done
2981 done
2982 IFS=$as_save_IFS
2986 CC=$ac_cv_prog_CC
2987 if test -n "$CC"; then
2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2989 printf "%s\n" "$CC" >&6; }
2990 else
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
2998 ac_ct_CC=$CC
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}
3004 then :
3005 printf %s "(cached) " >&6
3006 else $as_nop
3007 if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3013 IFS=$as_save_IFS
3014 case $as_dir in #(((
3015 '') as_dir=./ ;;
3016 */) ;;
3017 *) as_dir=$as_dir/ ;;
3018 esac
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
3023 break 2
3025 done
3026 done
3027 IFS=$as_save_IFS
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; }
3035 else
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
3041 CC=""
3042 else
3043 case $cross_compiling:$ac_tool_warned in
3044 yes:)
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 ;;
3048 esac
3049 CC=$ac_ct_CC
3051 else
3052 CC="$ac_cv_prog_CC"
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
3065 set X $ac_compile
3066 ac_compiler=$2
3067 for ac_option in --version -v -V -qversion -version; do
3068 { { ac_try="$ac_compiler $ac_option >&5"
3069 case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
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
3076 ac_status=$?
3077 if test -s conftest.err; then
3078 sed '10a\
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; }
3086 done
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089 /* end confdefs.h. */
3092 main (void)
3096 return 0;
3098 _ACEOF
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
3103 # of exeext.
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.*"
3111 ac_rmfiles=
3112 for ac_file in $ac_files
3114 case $ac_file in
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3116 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3117 esac
3118 done
3119 rm -f $ac_rmfiles
3121 if { { ac_try="$ac_link_default"
3122 case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125 esac
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
3129 ac_status=$?
3130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131 test $ac_status = 0; }
3132 then :
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
3137 # Autoconf.
3138 for ac_file in $ac_files ''
3140 test -f "$ac_file" || continue
3141 case $ac_file in
3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3144 [ab].out )
3145 # We found the default executable, but exeext='' is most
3146 # certainly right.
3147 break;;
3148 *.* )
3149 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3150 then :; else
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
3157 # actually working.
3158 break;;
3160 break;;
3161 esac
3162 done
3163 test "$ac_cv_exeext" = no && ac_cv_exeext=
3165 else $as_nop
3166 ac_file=''
3168 if test -z "$ac_file"
3169 then :
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; }
3179 else $as_nop
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"
3194 case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197 esac
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
3201 ac_status=$?
3202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 test $ac_status = 0; }
3204 then :
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
3208 # `rm'.
3209 for ac_file in conftest.exe conftest conftest.*; do
3210 test -f "$ac_file" || continue
3211 case $ac_file in
3212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3213 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3214 break;;
3215 * ) break;;
3216 esac
3217 done
3218 else $as_nop
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
3230 ac_exeext=$EXEEXT
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3233 #include <stdio.h>
3235 main (void)
3237 FILE *f = fopen ("conftest.out", "w");
3238 return ferror (f) || fclose (f) != 0;
3241 return 0;
3243 _ACEOF
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"
3251 case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254 esac
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
3258 ac_status=$?
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;;
3265 esac
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
3269 ac_status=$?
3270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271 test $ac_status = 0; }; }; then
3272 cross_compiling=no
3273 else
3274 if test "$cross_compiling" = maybe; then
3275 cross_compiling=yes
3276 else
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}
3293 then :
3294 printf %s "(cached) " >&6
3295 else $as_nop
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3300 main (void)
3304 return 0;
3306 _ACEOF
3307 rm -f conftest.o conftest.obj
3308 if { { ac_try="$ac_compile"
3309 case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312 esac
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
3316 ac_status=$?
3317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318 test $ac_status = 0; }
3319 then :
3320 for ac_file in conftest.o conftest.obj conftest.*; do
3321 test -f "$ac_file" || continue;
3322 case $ac_file in
3323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3324 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3325 break;;
3326 esac
3327 done
3328 else $as_nop
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
3342 ac_objext=$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}
3346 then :
3347 printf %s "(cached) " >&6
3348 else $as_nop
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3353 main (void)
3355 #ifndef __GNUC__
3356 choke me
3357 #endif
3360 return 0;
3362 _ACEOF
3363 if ac_fn_c_try_compile "$LINENO"
3364 then :
3365 ac_compiler_gnu=yes
3366 else $as_nop
3367 ac_compiler_gnu=no
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
3378 GCC=yes
3379 else
3380 GCC=
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}
3387 then :
3388 printf %s "(cached) " >&6
3389 else $as_nop
3390 ac_save_c_werror_flag=$ac_c_werror_flag
3391 ac_c_werror_flag=yes
3392 ac_cv_prog_cc_g=no
3393 CFLAGS="-g"
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3398 main (void)
3402 return 0;
3404 _ACEOF
3405 if ac_fn_c_try_compile "$LINENO"
3406 then :
3407 ac_cv_prog_cc_g=yes
3408 else $as_nop
3409 CFLAGS=""
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3414 main (void)
3418 return 0;
3420 _ACEOF
3421 if ac_fn_c_try_compile "$LINENO"
3422 then :
3424 else $as_nop
3425 ac_c_werror_flag=$ac_save_c_werror_flag
3426 CFLAGS="-g"
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3431 main (void)
3435 return 0;
3437 _ACEOF
3438 if ac_fn_c_try_compile "$LINENO"
3439 then :
3440 ac_cv_prog_cc_g=yes
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
3455 CFLAGS="-g -O2"
3456 else
3457 CFLAGS="-g"
3459 else
3460 if test "$GCC" = yes; then
3461 CFLAGS="-O2"
3462 else
3463 CFLAGS=
3466 ac_prog_cc_stdc=no
3467 if test x$ac_prog_cc_stdc = xno
3468 then :
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}
3472 then :
3473 printf %s "(cached) " >&6
3474 else $as_nop
3475 ac_cv_prog_cc_c11=no
3476 ac_save_CC=$CC
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3479 $ac_c_conftest_c11_program
3480 _ACEOF
3481 for ac_arg in '' -std=gnu11
3483 CC="$ac_save_CC $ac_arg"
3484 if ac_fn_c_try_compile "$LINENO"
3485 then :
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
3490 done
3491 rm -f conftest.$ac_ext
3492 CC=$ac_save_CC
3495 if test "x$ac_cv_prog_cc_c11" = xno
3496 then :
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3498 printf "%s\n" "unsupported" >&6; }
3499 else $as_nop
3500 if test "x$ac_cv_prog_cc_c11" = x
3501 then :
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3503 printf "%s\n" "none needed" >&6; }
3504 else $as_nop
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
3510 ac_prog_cc_stdc=c11
3513 if test x$ac_prog_cc_stdc = xno
3514 then :
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}
3518 then :
3519 printf %s "(cached) " >&6
3520 else $as_nop
3521 ac_cv_prog_cc_c99=no
3522 ac_save_CC=$CC
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3525 $ac_c_conftest_c99_program
3526 _ACEOF
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"
3531 then :
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
3536 done
3537 rm -f conftest.$ac_ext
3538 CC=$ac_save_CC
3541 if test "x$ac_cv_prog_cc_c99" = xno
3542 then :
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3544 printf "%s\n" "unsupported" >&6; }
3545 else $as_nop
3546 if test "x$ac_cv_prog_cc_c99" = x
3547 then :
3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3549 printf "%s\n" "none needed" >&6; }
3550 else $as_nop
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
3556 ac_prog_cc_stdc=c99
3559 if test x$ac_prog_cc_stdc = xno
3560 then :
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}
3564 then :
3565 printf %s "(cached) " >&6
3566 else $as_nop
3567 ac_cv_prog_cc_c89=no
3568 ac_save_CC=$CC
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3571 $ac_c_conftest_c89_program
3572 _ACEOF
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"
3577 then :
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
3582 done
3583 rm -f conftest.$ac_ext
3584 CC=$ac_save_CC
3587 if test "x$ac_cv_prog_cc_c89" = xno
3588 then :
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3590 printf "%s\n" "unsupported" >&6; }
3591 else $as_nop
3592 if test "x$ac_cv_prog_cc_c89" = x
3593 then :
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3595 printf "%s\n" "none needed" >&6; }
3596 else $as_nop
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
3602 ac_prog_cc_stdc=c89
3606 ac_ext=c
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`
3618 ac_ext=c
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}
3626 then :
3627 printf %s "(cached) " >&6
3628 else $as_nop
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3633 main (void)
3637 return 0;
3639 _ACEOF
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
3645 for am_i in 1 2; do
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
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } \
3651 && test -f conftest2.$ac_objext; then
3652 : OK
3653 else
3654 am_cv_prog_cc_c_o=no
3655 break
3657 done
3658 rm -f core conftest*
3659 unset am_i
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"
3671 ac_ext=c
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
3684 ac_ext=cpp
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
3691 CXX=$CCC
3692 else
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}
3701 then :
3702 printf %s "(cached) " >&6
3703 else $as_nop
3704 if test -n "$CXX"; then
3705 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3706 else
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3710 IFS=$as_save_IFS
3711 case $as_dir in #(((
3712 '') as_dir=./ ;;
3713 */) ;;
3714 *) as_dir=$as_dir/ ;;
3715 esac
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
3720 break 2
3722 done
3723 done
3724 IFS=$as_save_IFS
3728 CXX=$ac_cv_prog_CXX
3729 if test -n "$CXX"; then
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3731 printf "%s\n" "$CXX" >&6; }
3732 else
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 printf "%s\n" "no" >&6; }
3738 test -n "$CXX" && break
3739 done
3741 if test -z "$CXX"; then
3742 ac_ct_CXX=$CXX
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}
3750 then :
3751 printf %s "(cached) " >&6
3752 else $as_nop
3753 if test -n "$ac_ct_CXX"; then
3754 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3755 else
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 for as_dir in $PATH
3759 IFS=$as_save_IFS
3760 case $as_dir in #(((
3761 '') as_dir=./ ;;
3762 */) ;;
3763 *) as_dir=$as_dir/ ;;
3764 esac
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
3769 break 2
3771 done
3772 done
3773 IFS=$as_save_IFS
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; }
3781 else
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
3788 done
3790 if test "x$ac_ct_CXX" = x; then
3791 CXX="g++"
3792 else
3793 case $cross_compiling:$ac_tool_warned in
3794 yes:)
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 ;;
3798 esac
3799 CXX=$ac_ct_CXX
3805 # Provide some information about the compiler.
3806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3807 set X $ac_compile
3808 ac_compiler=$2
3809 for ac_option in --version -v -V -qversion; do
3810 { { ac_try="$ac_compiler $ac_option >&5"
3811 case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3814 esac
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
3818 ac_status=$?
3819 if test -s conftest.err; then
3820 sed '10a\
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; }
3828 done
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}
3833 then :
3834 printf %s "(cached) " >&6
3835 else $as_nop
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3840 main (void)
3842 #ifndef __GNUC__
3843 choke me
3844 #endif
3847 return 0;
3849 _ACEOF
3850 if ac_fn_cxx_try_compile "$LINENO"
3851 then :
3852 ac_compiler_gnu=yes
3853 else $as_nop
3854 ac_compiler_gnu=no
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
3865 GXX=yes
3866 else
3867 GXX=
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}
3874 then :
3875 printf %s "(cached) " >&6
3876 else $as_nop
3877 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3878 ac_cxx_werror_flag=yes
3879 ac_cv_prog_cxx_g=no
3880 CXXFLAGS="-g"
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3885 main (void)
3889 return 0;
3891 _ACEOF
3892 if ac_fn_cxx_try_compile "$LINENO"
3893 then :
3894 ac_cv_prog_cxx_g=yes
3895 else $as_nop
3896 CXXFLAGS=""
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3901 main (void)
3905 return 0;
3907 _ACEOF
3908 if ac_fn_cxx_try_compile "$LINENO"
3909 then :
3911 else $as_nop
3912 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3913 CXXFLAGS="-g"
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3918 main (void)
3922 return 0;
3924 _ACEOF
3925 if ac_fn_cxx_try_compile "$LINENO"
3926 then :
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
3942 CXXFLAGS="-g -O2"
3943 else
3944 CXXFLAGS="-g"
3946 else
3947 if test "$GXX" = yes; then
3948 CXXFLAGS="-O2"
3949 else
3950 CXXFLAGS=
3953 ac_prog_cxx_stdcxx=no
3954 if test x$ac_prog_cxx_stdcxx = xno
3955 then :
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}
3959 then :
3960 printf %s "(cached) " >&6
3961 else $as_nop
3962 ac_cv_prog_cxx_11=no
3963 ac_save_CXX=$CXX
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966 $ac_cxx_conftest_cxx11_program
3967 _ACEOF
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"
3972 then :
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
3977 done
3978 rm -f conftest.$ac_ext
3979 CXX=$ac_save_CXX
3982 if test "x$ac_cv_prog_cxx_cxx11" = xno
3983 then :
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3985 printf "%s\n" "unsupported" >&6; }
3986 else $as_nop
3987 if test "x$ac_cv_prog_cxx_cxx11" = x
3988 then :
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3990 printf "%s\n" "none needed" >&6; }
3991 else $as_nop
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
4001 then :
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}
4005 then :
4006 printf %s "(cached) " >&6
4007 else $as_nop
4008 ac_cv_prog_cxx_98=no
4009 ac_save_CXX=$CXX
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012 $ac_cxx_conftest_cxx98_program
4013 _ACEOF
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"
4018 then :
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
4023 done
4024 rm -f conftest.$ac_ext
4025 CXX=$ac_save_CXX
4028 if test "x$ac_cv_prog_cxx_cxx98" = xno
4029 then :
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4031 printf "%s\n" "unsupported" >&6; }
4032 else $as_nop
4033 if test "x$ac_cv_prog_cxx_cxx98" = x
4034 then :
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4036 printf "%s\n" "none needed" >&6; }
4037 else $as_nop
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
4047 ac_ext=c
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}
4056 then :
4057 printf %s "(cached) " >&6
4058 else $as_nop
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"
4062 done
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
4069 for as_dir in $PATH
4071 IFS=$as_save_IFS
4072 case $as_dir in #(((
4073 '') as_dir=./ ;;
4074 */) ;;
4075 *) as_dir=$as_dir/ ;;
4076 esac
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
4085 *GNU*)
4086 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4088 ac_count=0
4089 printf %s 0123456789 >"conftest.in"
4090 while :
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
4106 done
4107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4108 esac
4110 $ac_path_SED_found && break 3
4111 done
4112 done
4113 done
4114 IFS=$as_save_IFS
4115 if test -z "$ac_cv_path_SED"; then
4116 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4118 else
4119 ac_cv_path_SED=$SED
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"
4126 rm -f conftest.sed
4128 ac_ext=cpp
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}
4143 then :
4144 printf %s "(cached) " >&6
4145 else $as_nop
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
4158 *-*-*) ;;
4159 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4160 esac
4161 build=$ac_cv_build
4162 ac_save_IFS=$IFS; IFS='-'
4163 set x $ac_cv_build
4164 shift
4165 build_cpu=$1
4166 build_vendor=$2
4167 shift; shift
4168 # Remember, the first character of IFS is used to create $*,
4169 # except with old shells:
4170 build_os=$*
4171 IFS=$ac_save_IFS
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}
4178 then :
4179 printf %s "(cached) " >&6
4180 else $as_nop
4181 if test "x$host_alias" = x; then
4182 ac_cv_host=$ac_cv_build
4183 else
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; }
4191 case $ac_cv_host in
4192 *-*-*) ;;
4193 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4194 esac
4195 host=$ac_cv_host
4196 ac_save_IFS=$IFS; IFS='-'
4197 set x $ac_cv_host
4198 shift
4199 host_cpu=$1
4200 host_vendor=$2
4201 shift; shift
4202 # Remember, the first character of IFS is used to create $*,
4203 # except with old shells:
4204 host_os=$*
4205 IFS=$ac_save_IFS
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
4218 # AIX /bin/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}
4230 then :
4231 printf %s "(cached) " >&6
4232 else $as_nop
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4236 IFS=$as_save_IFS
4237 case $as_dir in #(((
4238 '') as_dir=./ ;;
4239 */) ;;
4240 *) as_dir=$as_dir/ ;;
4241 esac
4242 # Account for fact that we put trailing slashes in our PATH walk.
4243 case $as_dir in #((
4244 ./ | /[cC]/* | \
4245 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4246 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4247 /usr/ucb/* ) ;;
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
4251 # by default.
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.
4263 else
4264 rm -rf conftest.one conftest.two conftest.dir
4265 echo one > conftest.one
4266 echo two > conftest.two
4267 mkdir conftest.dir
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
4272 then
4273 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4274 break 3
4278 done
4279 done
4281 esac
4283 done
4284 IFS=$as_save_IFS
4286 rm -rf conftest.one conftest.two conftest.dir
4289 if test ${ac_cv_path_install+y}; then
4290 INSTALL=$ac_cv_path_install
4291 else
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.
4314 am_lf='
4316 case `pwd` in
4317 *[\\\"\#\$\&\'\`$am_lf]*)
4318 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4319 esac
4320 case $srcdir in
4321 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4322 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4323 esac
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
4329 # directory).
4330 if (
4331 am_has_slept=no
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
4336 # -L didn't work.
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
4350 break
4352 # Just in case.
4353 sleep 1
4354 am_has_slept=yes
4355 done
4356 test "$2" = conftest.file
4358 then
4359 # Ok.
4361 else
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.
4369 am_sleep_pid=
4370 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4371 ( sleep 1 ) &
4372 am_sleep_pid=$!
4375 rm -f conftest.file
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 "
4394 else
4395 am_missing_run=
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
4401 case $am_aux_dir in
4402 *\ * | *\ *)
4403 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4405 install_sh="\${SHELL} $am_aux_dir/install-sh"
4406 esac
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}
4420 then :
4421 printf %s "(cached) " >&6
4422 else $as_nop
4423 if test -n "$STRIP"; then
4424 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4429 IFS=$as_save_IFS
4430 case $as_dir in #(((
4431 '') as_dir=./ ;;
4432 */) ;;
4433 *) as_dir=$as_dir/ ;;
4434 esac
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
4439 break 2
4441 done
4442 done
4443 IFS=$as_save_IFS
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; }
4451 else
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
4459 ac_ct_STRIP=$STRIP
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}
4465 then :
4466 printf %s "(cached) " >&6
4467 else $as_nop
4468 if test -n "$ac_ct_STRIP"; then
4469 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4474 IFS=$as_save_IFS
4475 case $as_dir in #(((
4476 '') as_dir=./ ;;
4477 */) ;;
4478 *) as_dir=$as_dir/ ;;
4479 esac
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
4484 break 2
4486 done
4487 done
4488 IFS=$as_save_IFS
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; }
4496 else
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
4502 STRIP=":"
4503 else
4504 case $cross_compiling:$ac_tool_warned in
4505 yes:)
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 ;;
4509 esac
4510 STRIP=$ac_ct_STRIP
4512 else
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}
4524 then :
4525 printf %s "(cached) " >&6
4526 else $as_nop
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4530 IFS=$as_save_IFS
4531 case $as_dir in #(((
4532 '') as_dir=./ ;;
4533 */) ;;
4534 *) as_dir=$as_dir/ ;;
4535 esac
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) '* | \
4541 'BusyBox '* | \
4542 'mkdir (fileutils) '4.1*)
4543 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4544 break 3;;
4545 esac
4546 done
4547 done
4548 done
4549 IFS=$as_save_IFS
4553 test -d ./--version && rmdir ./--version
4554 if test ${ac_cv_path_mkdir+y}; then
4555 MKDIR_P="$ac_cv_path_mkdir -p"
4556 else
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}
4574 then :
4575 printf %s "(cached) " >&6
4576 else $as_nop
4577 if test -n "$AWK"; then
4578 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4583 IFS=$as_save_IFS
4584 case $as_dir in #(((
4585 '') as_dir=./ ;;
4586 */) ;;
4587 *) as_dir=$as_dir/ ;;
4588 esac
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
4593 break 2
4595 done
4596 done
4597 IFS=$as_save_IFS
4601 AWK=$ac_cv_prog_AWK
4602 if test -n "$AWK"; then
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4604 printf "%s\n" "$AWK" >&6; }
4605 else
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 printf "%s\n" "no" >&6; }
4611 test -n "$AWK" && break
4612 done
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; }
4616 set x ${MAKE-make}
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}
4619 then :
4620 printf %s "(cached) " >&6
4621 else $as_nop
4622 cat >conftest.make <<\_ACEOF
4623 SHELL = /bin/sh
4624 all:
4625 @echo '@@@%%%=$(MAKE)=@@@%%%'
4626 _ACEOF
4627 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4628 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4629 *@@@%%%=?*=@@@%%%*)
4630 eval ac_cv_prog_make_${ac_make}_set=yes;;
4632 eval ac_cv_prog_make_${ac_make}_set=no;;
4633 esac
4634 rm -f conftest.make
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; }
4639 SET_MAKE=
4640 else
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
4649 am__leading_dot=.
4650 else
4651 am__leading_dot=_
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'
4662 am__doit:
4663 @echo this is the am__doit target >confinc.out
4664 .PHONY: am__doit
4666 am__include="#"
4667 am__quote=
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
4672 _am_result=no
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
4676 ac_status=$?
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') :
4681 case $s in #(
4682 BSD) :
4683 am__include='.include' am__quote='"' ;; #(
4684 *) :
4685 am__include='include' am__quote='' ;;
4686 esac ;; #(
4687 *) :
4689 esac
4690 if test "$am__include" != "#"; then
4691 _am_result="yes ($s style)"
4692 break
4694 done
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}
4701 then :
4702 enableval=$enable_dependency_tracking;
4705 if test "x$enable_dependency_tracking" != xno; then
4706 am_depcomp="$ac_aux_dir/depcomp"
4707 AMDEPBACKSLASH='\'
4708 am__nodep='_no'
4710 if test "x$enable_dependency_tracking" != xno; then
4711 AMDEP_TRUE=
4712 AMDEP_FALSE='#'
4713 else
4714 AMDEP_TRUE='#'
4715 AMDEP_FALSE=
4719 # Check whether --enable-silent-rules was given.
4720 if test ${enable_silent_rules+y}
4721 then :
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;;
4729 esac
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}
4734 then :
4735 printf %s "(cached) " >&6
4736 else $as_nop
4737 if printf "%s\n" 'TRUE=$(BAR$(V))
4738 BAR0=false
4739 BAR1=true
4741 am__doit:
4742 @$(TRUE)
4743 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4744 am_cv_make_support_nested_variables=yes
4745 else
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
4752 AM_V='$(V)'
4753 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4754 else
4755 AM_V=$AM_DEFAULT_VERBOSITY
4756 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4758 AM_BACKSLASH='\'
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'
4774 else
4775 CYGPATH_W=echo
4780 # Define the identity of the package.
4781 PACKAGE='qbittorrent'
4782 VERSION='v4.4.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 ...
4816 AMTAR='$${TAR-tar}'
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}
4833 then :
4834 printf %s "(cached) " >&6
4835 else $as_nop
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
4841 # in D".
4842 rm -rf conftest.dir
4843 mkdir conftest.dir
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
4847 cd 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
4853 # directory.
4854 mkdir sub
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`
4860 am__universal=false
4861 case " $depcc " in #(
4862 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4863 esac
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.
4873 : > sub/conftest.c
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
4879 done
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"
4888 case $depmode in
4889 gcc)
4890 # This depmode causes a compiler race in universal mode.
4891 test "$am__universal" = false || continue
4893 nosideeffect)
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
4897 continue
4898 else
4899 break
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}
4907 am__minus_obj=
4909 none) break ;;
4910 esac
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
4930 break
4933 done
4935 cd ..
4936 rm -rf conftest.dir
4937 else
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
4949 am__fastdepCC_TRUE=
4950 am__fastdepCC_FALSE='#'
4951 else
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}
4962 then :
4963 printf %s "(cached) " >&6
4964 else $as_nop
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
4970 # in D".
4971 rm -rf conftest.dir
4972 mkdir conftest.dir
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
4976 cd 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
4982 # directory.
4983 mkdir sub
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`
4989 am__universal=false
4990 case " $depcc " in #(
4991 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4992 esac
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.
5002 : > sub/conftest.c
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
5008 done
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"
5017 case $depmode in
5018 gcc)
5019 # This depmode causes a compiler race in universal mode.
5020 test "$am__universal" = false || continue
5022 nosideeffect)
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
5026 continue
5027 else
5028 break
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}
5036 am__minus_obj=
5038 none) break ;;
5039 esac
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
5059 break
5062 done
5064 cd ..
5065 rm -rf conftest.dir
5066 else
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='#'
5080 else
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
5096 cat >&2 <<'END'
5097 Oops!
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
5112 echo >&2
5113 else
5114 cat >&2 <<'END'
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
5131 QBT_CC="$CC"
5132 QBT_CXX="$CXX"
5134 # Define --wth-* and --enable-* arguments
5136 # Check whether --enable-debug was given.
5137 if test ${enable_debug+y}
5138 then :
5139 enableval=$enable_debug;
5140 else $as_nop
5141 enable_debug=no
5145 # Check whether --enable-stacktrace was given.
5146 if test ${enable_stacktrace+y}
5147 then :
5148 enableval=$enable_stacktrace;
5149 else $as_nop
5150 enable_stacktrace=auto
5154 # Check whether --enable-gui was given.
5155 if test ${enable_gui+y}
5156 then :
5157 enableval=$enable_gui;
5158 else $as_nop
5159 enable_gui=yes
5163 # Check whether --enable-systemd was given.
5164 if test ${enable_systemd+y}
5165 then :
5166 enableval=$enable_systemd;
5167 else $as_nop
5168 enable_systemd=no
5172 # Check whether --enable-webui was given.
5173 if test ${enable_webui+y}
5174 then :
5175 enableval=$enable_webui;
5176 else $as_nop
5177 enable_webui=yes
5181 # Check whether --enable-qt-dbus was given.
5182 if test ${enable_qt_dbus+y}
5183 then :
5184 enableval=$enable_qt_dbus;
5185 else $as_nop
5186 enable_qt_dbus=yes
5190 # Detect OS
5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OS is FreeBSD" >&5
5192 printf %s "checking whether OS is FreeBSD... " >&6; }
5193 if expr "$host_os" : ".*freebsd.*" > /dev/null
5194 then :
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5196 printf "%s\n" "yes" >&6; }
5197 LIBS="-lexecinfo $LIBS"
5198 else $as_nop
5199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 printf "%s\n" "no" >&6; }
5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OS is macOS" >&5
5204 printf %s "checking whether OS is macOS... " >&6; }
5205 if expr "$host_os" : ".*darwin.*" > /dev/null
5206 then :
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5208 printf "%s\n" "yes" >&6; }
5209 enable_qt_dbus=no
5210 else $as_nop
5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 printf "%s\n" "no" >&6; }
5215 # Require 0.23 pkg-config
5223 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5224 if test -n "$ac_tool_prefix"; then
5225 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5226 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228 printf %s "checking for $ac_word... " >&6; }
5229 if test ${ac_cv_path_PKG_CONFIG+y}
5230 then :
5231 printf %s "(cached) " >&6
5232 else $as_nop
5233 case $PKG_CONFIG in
5234 [\\/]* | ?:[\\/]*)
5235 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5241 IFS=$as_save_IFS
5242 case $as_dir in #(((
5243 '') as_dir=./ ;;
5244 */) ;;
5245 *) as_dir=$as_dir/ ;;
5246 esac
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5249 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5251 break 2
5253 done
5254 done
5255 IFS=$as_save_IFS
5258 esac
5260 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5261 if test -n "$PKG_CONFIG"; then
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5263 printf "%s\n" "$PKG_CONFIG" >&6; }
5264 else
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266 printf "%s\n" "no" >&6; }
5271 if test -z "$ac_cv_path_PKG_CONFIG"; then
5272 ac_pt_PKG_CONFIG=$PKG_CONFIG
5273 # Extract the first word of "pkg-config", so it can be a program name with args.
5274 set dummy pkg-config; ac_word=$2
5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 printf %s "checking for $ac_word... " >&6; }
5277 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5278 then :
5279 printf %s "(cached) " >&6
5280 else $as_nop
5281 case $ac_pt_PKG_CONFIG in
5282 [\\/]* | ?:[\\/]*)
5283 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5289 IFS=$as_save_IFS
5290 case $as_dir in #(((
5291 '') as_dir=./ ;;
5292 */) ;;
5293 *) as_dir=$as_dir/ ;;
5294 esac
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5297 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5299 break 2
5301 done
5302 done
5303 IFS=$as_save_IFS
5306 esac
5308 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5309 if test -n "$ac_pt_PKG_CONFIG"; then
5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5311 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5312 else
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 printf "%s\n" "no" >&6; }
5317 if test "x$ac_pt_PKG_CONFIG" = x; then
5318 PKG_CONFIG=""
5319 else
5320 case $cross_compiling:$ac_tool_warned in
5321 yes:)
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5323 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5324 ac_tool_warned=yes ;;
5325 esac
5326 PKG_CONFIG=$ac_pt_PKG_CONFIG
5328 else
5329 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5333 if test -n "$PKG_CONFIG"; then
5334 _pkg_min_version=0.23
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5336 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5337 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5339 printf "%s\n" "yes" >&6; }
5340 else
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 printf "%s\n" "no" >&6; }
5343 PKG_CONFIG=""
5346 if test "x$PKG_CONFIG" = "x"
5347 then :
5348 as_fn_error $? "Could not find pkg-config" "$LINENO" 5
5351 # Check which arguments were set and act accordingly
5352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the Debug build" >&5
5353 printf %s "checking whether to enable the Debug build... " >&6; }
5354 case "x$enable_debug" in #(
5355 "xno") :
5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 printf "%s\n" "no" >&6; }
5358 QBT_ADD_CONFIG="$QBT_ADD_CONFIG release"
5359 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG debug" ;; #(
5360 "xyes") :
5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5362 printf "%s\n" "yes" >&6; }
5363 QBT_ADD_CONFIG="$QBT_ADD_CONFIG debug"
5364 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG release" ;; #(
5365 *) :
5366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
5367 printf "%s\n" "$enable_debug" >&6; }
5368 as_fn_error $? "Unknown option \"$enable_debug\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5369 esac
5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the stacktrace feature" >&5
5372 printf %s "checking whether to enable the stacktrace feature... " >&6; }
5374 case "x$enable_stacktrace" in #(
5375 "xno") :
5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 printf "%s\n" "no" >&6; }
5378 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG stacktrace" ;; #(
5379 "xyes") :
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5381 printf "%s\n" "yes" >&6; }
5382 QBT_ADD_CONFIG="$QBT_ADD_CONFIG stacktrace" ;; #(
5383 "xauto") :
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386 #include <execinfo.h>
5387 _ACEOF
5388 if ac_fn_cxx_try_compile "$LINENO"
5389 then :
5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5391 printf "%s\n" "yes" >&6; }
5392 QBT_ADD_CONFIG="$QBT_ADD_CONFIG stacktrace"
5393 else $as_nop
5394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 printf "%s\n" "no" >&6; }
5396 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG stacktrace"
5398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; #(
5399 *) :
5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_stacktrace" >&5
5401 printf "%s\n" "$enable_stacktrace" >&6; }
5402 as_fn_error $? "Unknown option \"$enable_stacktrace\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5403 esac
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the GUI" >&5
5406 printf %s "checking whether to enable the GUI... " >&6; }
5407 case "x$enable_gui" in #(
5408 "xyes") :
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5410 printf "%s\n" "yes" >&6; }
5411 enable_systemd=no
5412 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG nogui" ;; #(
5413 "xno") :
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 printf "%s\n" "no" >&6; }
5416 enable_qt_dbus=no
5417 QBT_ADD_CONFIG="$QBT_ADD_CONFIG nogui" ;; #(
5418 *) :
5419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gui" >&5
5420 printf "%s\n" "$enable_gui" >&6; }
5421 as_fn_error $? "Unknown option \"$enable_gui\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5422 esac
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install the systemd service file" >&5
5425 printf %s "checking whether to install the systemd service file... " >&6; }
5426 case "x$enable_systemd" in #(
5427 "xyes") :
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5429 printf "%s\n" "yes" >&6; }
5430 QBT_ADD_CONFIG="$QBT_ADD_CONFIG systemd" ;; #(
5431 "xno") :
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433 printf "%s\n" "no" >&6; }
5434 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG systemd" ;; #(
5435 *) :
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_systemd" >&5
5437 printf "%s\n" "$enable_systemd" >&6; }
5438 as_fn_error $? "Unknown option \"$enable_systemd\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5439 esac
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the WebUI" >&5
5442 printf %s "checking whether to enable the WebUI... " >&6; }
5443 case "x$enable_webui" in #(
5444 "xyes") :
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5446 printf "%s\n" "yes" >&6; }
5447 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG nowebui" ;; #(
5448 "xno") :
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 printf "%s\n" "no" >&6; }
5451 QBT_ADD_CONFIG="$QBT_ADD_CONFIG nowebui" ;; #(
5452 *) :
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_webui" >&5
5454 printf "%s\n" "$enable_webui" >&6; }
5455 as_fn_error $? "Unknown option \"$enable_webui\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5456 esac
5458 if test -n "$PKG_CONFIG" && \
5459 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.12\""; } >&5
5460 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.12") 2>&5
5461 ac_status=$?
5462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5463 test $ac_status = 0; }; then
5465 if test -n "$QT_QMAKE"; then
5466 pkg_cv_QT_QMAKE="$QT_QMAKE"
5467 elif test -n "$PKG_CONFIG"; then
5468 if test -n "$PKG_CONFIG" && \
5469 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.12\""; } >&5
5470 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.12") 2>&5
5471 ac_status=$?
5472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5473 test $ac_status = 0; }; then
5474 pkg_cv_QT_QMAKE=`$PKG_CONFIG --variable="host_bins" "Qt5Core >= 5.12" 2>/dev/null`
5475 test "x$?" != "x0" && pkg_failed=yes
5476 else
5477 pkg_failed=yes
5479 else
5480 pkg_failed=untried
5482 QT_QMAKE=$pkg_cv_QT_QMAKE
5484 if test "x$QT_QMAKE" = x""
5485 then :
5491 if test -f "$QT_QMAKE/qmake"
5492 then :
5493 QT_QMAKE="$QT_QMAKE/qmake"
5494 else $as_nop
5495 if test -f "$QT_QMAKE/qmake-qt5"
5496 then :
5497 QT_QMAKE="$QT_QMAKE/qmake-qt5"
5498 else $as_nop
5499 QT_QMAKE=""
5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5 qmake >= 5.12" >&5
5505 printf %s "checking for Qt5 qmake >= 5.12... " >&6; }
5506 if test "x$QT_QMAKE" != "x"
5507 then :
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QT_QMAKE" >&5
5509 printf "%s\n" "$QT_QMAKE" >&6; }
5510 else $as_nop
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5512 printf "%s\n" "not found" >&6; }
5516 if test "x$QT_QMAKE" = "x"
5517 then :
5518 as_fn_error $? "Could not find qmake" "$LINENO" 5
5521 if test "x$enable_gui" = "xyes"
5522 then :
5524 pkg_failed=no
5525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5Svg" >&5
5526 printf %s "checking for Qt5Svg... " >&6; }
5528 if test -n "$Qt5Svg_CFLAGS"; then
5529 pkg_cv_Qt5Svg_CFLAGS="$Qt5Svg_CFLAGS"
5530 elif test -n "$PKG_CONFIG"; then
5531 if test -n "$PKG_CONFIG" && \
5532 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Svg >= 5.12\""; } >&5
5533 ($PKG_CONFIG --exists --print-errors "Qt5Svg >= 5.12") 2>&5
5534 ac_status=$?
5535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5536 test $ac_status = 0; }; then
5537 pkg_cv_Qt5Svg_CFLAGS=`$PKG_CONFIG --cflags "Qt5Svg >= 5.12" 2>/dev/null`
5538 test "x$?" != "x0" && pkg_failed=yes
5539 else
5540 pkg_failed=yes
5542 else
5543 pkg_failed=untried
5545 if test -n "$Qt5Svg_LIBS"; then
5546 pkg_cv_Qt5Svg_LIBS="$Qt5Svg_LIBS"
5547 elif test -n "$PKG_CONFIG"; then
5548 if test -n "$PKG_CONFIG" && \
5549 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Svg >= 5.12\""; } >&5
5550 ($PKG_CONFIG --exists --print-errors "Qt5Svg >= 5.12") 2>&5
5551 ac_status=$?
5552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5553 test $ac_status = 0; }; then
5554 pkg_cv_Qt5Svg_LIBS=`$PKG_CONFIG --libs "Qt5Svg >= 5.12" 2>/dev/null`
5555 test "x$?" != "x0" && pkg_failed=yes
5556 else
5557 pkg_failed=yes
5559 else
5560 pkg_failed=untried
5565 if test $pkg_failed = yes; then
5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 printf "%s\n" "no" >&6; }
5569 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5570 _pkg_short_errors_supported=yes
5571 else
5572 _pkg_short_errors_supported=no
5574 if test $_pkg_short_errors_supported = yes; then
5575 Qt5Svg_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Qt5Svg >= 5.12" 2>&1`
5576 else
5577 Qt5Svg_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "Qt5Svg >= 5.12" 2>&1`
5579 # Put the nasty error message in config.log where it belongs
5580 echo "$Qt5Svg_PKG_ERRORS" >&5
5582 as_fn_error $? "Package requirements (Qt5Svg >= 5.12) were not met:
5584 $Qt5Svg_PKG_ERRORS
5586 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5587 installed software in a non-standard prefix.
5589 Alternatively, you may set the environment variables Qt5Svg_CFLAGS
5590 and Qt5Svg_LIBS to avoid the need to call pkg-config.
5591 See the pkg-config man page for more details." "$LINENO" 5
5592 elif test $pkg_failed = untried; then
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594 printf "%s\n" "no" >&6; }
5595 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5596 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5597 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5598 is in your PATH or set the PKG_CONFIG environment variable to the full
5599 path to pkg-config.
5601 Alternatively, you may set the environment variables Qt5Svg_CFLAGS
5602 and Qt5Svg_LIBS to avoid the need to call pkg-config.
5603 See the pkg-config man page for more details.
5605 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5606 See \`config.log' for more details" "$LINENO" 5; }
5607 else
5608 Qt5Svg_CFLAGS=$pkg_cv_Qt5Svg_CFLAGS
5609 Qt5Svg_LIBS=$pkg_cv_Qt5Svg_LIBS
5610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5611 printf "%s\n" "yes" >&6; }
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether QtDBus should be enabled" >&5
5617 printf %s "checking whether QtDBus should be enabled... " >&6; }
5618 case "x$enable_qt_dbus" in #(
5619 "xyes") :
5620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5621 printf "%s\n" "yes" >&6; }
5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5DBus >= 5.12" >&5
5623 printf %s "checking for Qt5DBus >= 5.12... " >&6; }
5624 if test -n "$PKG_CONFIG" && \
5625 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5DBus >= 5.12\""; } >&5
5626 ($PKG_CONFIG --exists --print-errors "Qt5DBus >= 5.12") 2>&5
5627 ac_status=$?
5628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5629 test $ac_status = 0; }; then
5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
5631 printf "%s\n" "found" >&6; }
5632 HAVE_QTDBUS=true
5633 else
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5635 printf "%s\n" "not found" >&6; }
5636 HAVE_QTDBUS=false
5639 if test "x$HAVE_QTDBUS" = "xfalse"
5640 then :
5641 as_fn_error $? "Could not find QtDBus" "$LINENO" 5
5642 else $as_nop
5643 QBT_ADD_CONFIG="$QBT_ADD_CONFIG dbus"
5645 fi ;; #(
5646 "xno") :
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 printf "%s\n" "no" >&6; }
5649 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG dbus" ;; #(
5650 *) :
5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_qt_dbus" >&5
5652 printf "%s\n" "$enable_qt_dbus" >&6; }
5653 as_fn_error $? "Unknown option \"$enable_qt_dbus\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5654 esac
5659 # Check whether --with-boost was given.
5660 if test ${with_boost+y}
5661 then :
5662 withval=$with_boost;
5663 case $withval in #(
5664 no) :
5665 want_boost="no";_AX_BOOST_BASE_boost_path="" ;; #(
5666 yes) :
5667 want_boost="yes";_AX_BOOST_BASE_boost_path="" ;; #(
5668 *) :
5669 want_boost="yes";_AX_BOOST_BASE_boost_path="$withval" ;;
5670 esac
5672 else $as_nop
5673 want_boost="yes"
5679 # Check whether --with-boost-libdir was given.
5680 if test ${with_boost_libdir+y}
5681 then :
5682 withval=$with_boost_libdir;
5683 if test -d "$withval"
5684 then :
5685 _AX_BOOST_BASE_boost_lib_path="$withval"
5686 else $as_nop
5687 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
5690 else $as_nop
5691 _AX_BOOST_BASE_boost_lib_path=""
5695 BOOST_LDFLAGS=""
5696 BOOST_CPPFLAGS=""
5697 if test "x$want_boost" = "xyes"
5698 then :
5701 if test "x1.65" = "x"
5702 then :
5703 _AX_BOOST_BASE_TONUMERICVERSION_req="1.20.0"
5704 else $as_nop
5705 _AX_BOOST_BASE_TONUMERICVERSION_req="1.65"
5707 _AX_BOOST_BASE_TONUMERICVERSION_req_shorten=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\.[0-9]*\)'`
5708 _AX_BOOST_BASE_TONUMERICVERSION_req_major=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\)'`
5709 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_major" = "x"
5710 then :
5711 as_fn_error $? "You should at least specify libboost major version" "$LINENO" 5
5713 _AX_BOOST_BASE_TONUMERICVERSION_req_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.\([0-9]*\)'`
5714 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_minor" = "x"
5715 then :
5716 _AX_BOOST_BASE_TONUMERICVERSION_req_minor="0"
5718 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
5719 if test "X$_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor" = "X"
5720 then :
5721 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor="0"
5723 _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`
5724 WANT_BOOST_VERSION=$_AX_BOOST_BASE_TONUMERICVERSION_RET
5726 succeeded=no
5730 case ${host_cpu} in #(
5731 x86_64) :
5732 libsubdirs="lib64 libx32 lib lib64" ;; #(
5733 mips*64*) :
5734 libsubdirs="lib64 lib32 lib lib64" ;; #(
5735 ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64) :
5736 libsubdirs="lib64 lib lib64" ;; #(
5737 *) :
5738 libsubdirs="lib"
5740 esac
5742 case ${host_cpu} in #(
5743 i?86) :
5744 multiarch_libsubdir="lib/i386-${host_os}" ;; #(
5745 *) :
5746 multiarch_libsubdir="lib/${host_cpu}-${host_os}"
5748 esac
5750 if test "x$_AX_BOOST_BASE_boost_path" != "x"
5751 then :
5753 { 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
5754 printf %s "checking for boostlib >= 1.65 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"... " >&6; }
5755 if test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"
5756 then :
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759 printf "%s\n" "yes" >&6; }
5760 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include"
5761 for _AX_BOOST_BASE_boost_path_tmp in $multiarch_libsubdir $libsubdirs; do
5762 { 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
5763 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; }
5764 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"
5765 then :
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5768 printf "%s\n" "yes" >&6; }
5769 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp";
5770 break;
5772 else $as_nop
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 printf "%s\n" "no" >&6; }
5776 done
5777 else $as_nop
5779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 printf "%s\n" "no" >&6; }
5783 else $as_nop
5785 if test X"$cross_compiling" = Xyes; then
5786 search_libsubdirs=$multiarch_libsubdir
5787 else
5788 search_libsubdirs="$multiarch_libsubdir $libsubdirs"
5790 for _AX_BOOST_BASE_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
5791 if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then
5792 for libsubdir in $search_libsubdirs ; do
5793 if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5794 done
5795 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir"
5796 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path_tmp/include"
5797 break;
5799 done
5803 if test "x$_AX_BOOST_BASE_boost_lib_path" != "x"
5804 then :
5805 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path"
5808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.65 ($WANT_BOOST_VERSION)" >&5
5809 printf %s "checking for boostlib >= 1.65 ($WANT_BOOST_VERSION)... " >&6; }
5810 CPPFLAGS_SAVED="$CPPFLAGS"
5811 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
5812 export CPPFLAGS
5814 LDFLAGS_SAVED="$LDFLAGS"
5815 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
5816 export LDFLAGS
5819 ac_ext=cpp
5820 ac_cpp='$CXXCPP $CPPFLAGS'
5821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5828 #include <boost/version.hpp>
5831 main (void)
5834 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
5837 return 0;
5839 _ACEOF
5840 if ac_fn_cxx_try_compile "$LINENO"
5841 then :
5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5844 printf "%s\n" "yes" >&6; }
5845 succeeded=yes
5846 found_system=yes
5849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5850 ac_ext=cpp
5851 ac_cpp='$CXXCPP $CPPFLAGS'
5852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5859 if test "x$succeeded" != "xyes" ; then
5860 CPPFLAGS="$CPPFLAGS_SAVED"
5861 LDFLAGS="$LDFLAGS_SAVED"
5862 BOOST_CPPFLAGS=
5863 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5864 BOOST_LDFLAGS=
5866 _version=0
5867 if test -n "$_AX_BOOST_BASE_boost_path" ; then
5868 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then
5869 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
5870 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
5871 V_CHECK=`expr $_version_tmp \> $_version`
5872 if test "x$V_CHECK" = "x1" ; then
5873 _version=$_version_tmp
5875 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
5876 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include/boost-$VERSION_UNDERSCORE"
5877 done
5878 if test -z "$BOOST_CPPFLAGS"; then
5879 if test -d "$_AX_BOOST_BASE_boost_path/boost" && test -r "$_AX_BOOST_BASE_boost_path/boost"; then
5880 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path"
5883 if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then
5884 for libsubdir in $libsubdirs ; do
5885 if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5886 done
5887 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$libsubdir"
5890 else
5891 if test "x$cross_compiling" != "xyes" ; then
5892 for _AX_BOOST_BASE_boost_path in /usr /usr/local /opt /opt/local ; do
5893 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then
5894 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
5895 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
5896 V_CHECK=`expr $_version_tmp \> $_version`
5897 if test "x$V_CHECK" = "x1" ; then
5898 _version=$_version_tmp
5899 best_path=$_AX_BOOST_BASE_boost_path
5901 done
5903 done
5905 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
5906 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
5907 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5908 for libsubdir in $libsubdirs ; do
5909 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5910 done
5911 BOOST_LDFLAGS="-L$best_path/$libsubdir"
5915 if test -n "$BOOST_ROOT" ; then
5916 for libsubdir in $libsubdirs ; do
5917 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5918 done
5919 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
5920 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
5921 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
5922 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
5923 V_CHECK=`expr $stage_version_shorten \>\= $_version`
5924 if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
5926 printf "%s\n" "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
5927 BOOST_CPPFLAGS="-I$BOOST_ROOT"
5928 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
5934 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
5935 export CPPFLAGS
5936 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
5937 export LDFLAGS
5939 ac_ext=cpp
5940 ac_cpp='$CXXCPP $CPPFLAGS'
5941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946 /* end confdefs.h. */
5948 #include <boost/version.hpp>
5951 main (void)
5954 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
5957 return 0;
5959 _ACEOF
5960 if ac_fn_cxx_try_compile "$LINENO"
5961 then :
5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5964 printf "%s\n" "yes" >&6; }
5965 succeeded=yes
5966 found_system=yes
5969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5970 ac_ext=cpp
5971 ac_cpp='$CXXCPP $CPPFLAGS'
5972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5978 if test "x$succeeded" != "xyes" ; then
5979 if test "x$_version" = "x0" ; then
5980 { 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
5981 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;}
5982 else
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
5984 printf "%s\n" "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
5986 # execute ACTION-IF-NOT-FOUND (if present):
5987 as_fn_error $? "Could not find Boost" "$LINENO" 5
5988 else
5990 printf "%s\n" "#define HAVE_BOOST /**/" >>confdefs.h
5992 # execute ACTION-IF-FOUND (if present):
5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost CXXFLAGS: \"$BOOST_CPPFLAGS\"" >&5
5994 printf "%s\n" "$as_me: Boost CXXFLAGS: \"$BOOST_CPPFLAGS\"" >&6;}
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost LDFLAGS: \"$BOOST_LDFLAGS\"" >&5
5996 printf "%s\n" "$as_me: Boost LDFLAGS: \"$BOOST_LDFLAGS\"" >&6;}
5999 CPPFLAGS="$CPPFLAGS_SAVED"
6000 LDFLAGS="$LDFLAGS_SAVED"
6007 CXXFLAGS="$BOOST_CPPFLAGS $CXXFLAGS"
6008 LDFLAGS="$BOOST_LDFLAGS $LDFLAGS"
6010 # add workaround for problematic boost version
6011 # taken from ax_boost_base.m4
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6016 #include <boost/version.hpp>
6018 main (void)
6020 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < (106000))]));
6022 return 0;
6024 _ACEOF
6025 if ac_fn_cxx_try_compile "$LINENO"
6026 then :
6028 else $as_nop
6029 QBT_ADD_DEFINES="$QBT_ADD_DEFINES BOOST_NO_CXX11_RVALUE_REFERENCES"
6031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6034 pkg_failed=no
6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtorrent" >&5
6036 printf %s "checking for libtorrent... " >&6; }
6038 if test -n "$libtorrent_CFLAGS"; then
6039 pkg_cv_libtorrent_CFLAGS="$libtorrent_CFLAGS"
6040 elif test -n "$PKG_CONFIG"; then
6041 if test -n "$PKG_CONFIG" && \
6042 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.13\""; } >&5
6043 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.13") 2>&5
6044 ac_status=$?
6045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6046 test $ac_status = 0; }; then
6047 pkg_cv_libtorrent_CFLAGS=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 1.2.13" 2>/dev/null`
6048 test "x$?" != "x0" && pkg_failed=yes
6049 else
6050 pkg_failed=yes
6052 else
6053 pkg_failed=untried
6055 if test -n "$libtorrent_LIBS"; then
6056 pkg_cv_libtorrent_LIBS="$libtorrent_LIBS"
6057 elif test -n "$PKG_CONFIG"; then
6058 if test -n "$PKG_CONFIG" && \
6059 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.13\""; } >&5
6060 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.13") 2>&5
6061 ac_status=$?
6062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6063 test $ac_status = 0; }; then
6064 pkg_cv_libtorrent_LIBS=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 1.2.13" 2>/dev/null`
6065 test "x$?" != "x0" && pkg_failed=yes
6066 else
6067 pkg_failed=yes
6069 else
6070 pkg_failed=untried
6075 if test $pkg_failed = yes; then
6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 printf "%s\n" "no" >&6; }
6079 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6080 _pkg_short_errors_supported=yes
6081 else
6082 _pkg_short_errors_supported=no
6084 if test $_pkg_short_errors_supported = yes; then
6085 libtorrent_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.13" 2>&1`
6086 else
6087 libtorrent_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.13" 2>&1`
6089 # Put the nasty error message in config.log where it belongs
6090 echo "$libtorrent_PKG_ERRORS" >&5
6092 as_fn_error $? "Package requirements (libtorrent-rasterbar >= 1.2.13) were not met:
6094 $libtorrent_PKG_ERRORS
6096 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6097 installed software in a non-standard prefix.
6099 Alternatively, you may set the environment variables libtorrent_CFLAGS
6100 and libtorrent_LIBS to avoid the need to call pkg-config.
6101 See the pkg-config man page for more details." "$LINENO" 5
6102 elif test $pkg_failed = untried; then
6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 printf "%s\n" "no" >&6; }
6105 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6106 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6107 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6108 is in your PATH or set the PKG_CONFIG environment variable to the full
6109 path to pkg-config.
6111 Alternatively, you may set the environment variables libtorrent_CFLAGS
6112 and libtorrent_LIBS to avoid the need to call pkg-config.
6113 See the pkg-config man page for more details.
6115 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6116 See \`config.log' for more details" "$LINENO" 5; }
6117 else
6118 libtorrent_CFLAGS=$pkg_cv_libtorrent_CFLAGS
6119 libtorrent_LIBS=$pkg_cv_libtorrent_LIBS
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6121 printf "%s\n" "yes" >&6; }
6122 CXXFLAGS="$libtorrent_CFLAGS $CXXFLAGS"
6123 LIBS="$libtorrent_LIBS $LIBS"
6127 pkg_failed=no
6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
6129 printf %s "checking for openssl... " >&6; }
6131 if test -n "$openssl_CFLAGS"; then
6132 pkg_cv_openssl_CFLAGS="$openssl_CFLAGS"
6133 elif test -n "$PKG_CONFIG"; then
6134 if test -n "$PKG_CONFIG" && \
6135 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.1\""; } >&5
6136 ($PKG_CONFIG --exists --print-errors "openssl >= 1.1.1") 2>&5
6137 ac_status=$?
6138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6139 test $ac_status = 0; }; then
6140 pkg_cv_openssl_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.1.1" 2>/dev/null`
6141 test "x$?" != "x0" && pkg_failed=yes
6142 else
6143 pkg_failed=yes
6145 else
6146 pkg_failed=untried
6148 if test -n "$openssl_LIBS"; then
6149 pkg_cv_openssl_LIBS="$openssl_LIBS"
6150 elif test -n "$PKG_CONFIG"; then
6151 if test -n "$PKG_CONFIG" && \
6152 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.1\""; } >&5
6153 ($PKG_CONFIG --exists --print-errors "openssl >= 1.1.1") 2>&5
6154 ac_status=$?
6155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6156 test $ac_status = 0; }; then
6157 pkg_cv_openssl_LIBS=`$PKG_CONFIG --libs "openssl >= 1.1.1" 2>/dev/null`
6158 test "x$?" != "x0" && pkg_failed=yes
6159 else
6160 pkg_failed=yes
6162 else
6163 pkg_failed=untried
6168 if test $pkg_failed = yes; then
6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 printf "%s\n" "no" >&6; }
6172 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6173 _pkg_short_errors_supported=yes
6174 else
6175 _pkg_short_errors_supported=no
6177 if test $_pkg_short_errors_supported = yes; then
6178 openssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.1.1" 2>&1`
6179 else
6180 openssl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.1.1" 2>&1`
6182 # Put the nasty error message in config.log where it belongs
6183 echo "$openssl_PKG_ERRORS" >&5
6185 as_fn_error $? "Package requirements (openssl >= 1.1.1) were not met:
6187 $openssl_PKG_ERRORS
6189 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6190 installed software in a non-standard prefix.
6192 Alternatively, you may set the environment variables openssl_CFLAGS
6193 and openssl_LIBS to avoid the need to call pkg-config.
6194 See the pkg-config man page for more details." "$LINENO" 5
6195 elif test $pkg_failed = untried; then
6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 printf "%s\n" "no" >&6; }
6198 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6199 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6200 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6201 is in your PATH or set the PKG_CONFIG environment variable to the full
6202 path to pkg-config.
6204 Alternatively, you may set the environment variables openssl_CFLAGS
6205 and openssl_LIBS to avoid the need to call pkg-config.
6206 See the pkg-config man page for more details.
6208 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6209 See \`config.log' for more details" "$LINENO" 5; }
6210 else
6211 openssl_CFLAGS=$pkg_cv_openssl_CFLAGS
6212 openssl_LIBS=$pkg_cv_openssl_LIBS
6213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6214 printf "%s\n" "yes" >&6; }
6215 CXXFLAGS="$openssl_CFLAGS $CXXFLAGS"
6216 LIBS="$openssl_LIBS $LIBS"
6220 pkg_failed=no
6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
6222 printf %s "checking for zlib... " >&6; }
6224 if test -n "$zlib_CFLAGS"; then
6225 pkg_cv_zlib_CFLAGS="$zlib_CFLAGS"
6226 elif test -n "$PKG_CONFIG"; then
6227 if test -n "$PKG_CONFIG" && \
6228 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.11\""; } >&5
6229 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.11") 2>&5
6230 ac_status=$?
6231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6232 test $ac_status = 0; }; then
6233 pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.11" 2>/dev/null`
6234 test "x$?" != "x0" && pkg_failed=yes
6235 else
6236 pkg_failed=yes
6238 else
6239 pkg_failed=untried
6241 if test -n "$zlib_LIBS"; then
6242 pkg_cv_zlib_LIBS="$zlib_LIBS"
6243 elif test -n "$PKG_CONFIG"; then
6244 if test -n "$PKG_CONFIG" && \
6245 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.11\""; } >&5
6246 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.11") 2>&5
6247 ac_status=$?
6248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6249 test $ac_status = 0; }; then
6250 pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.11" 2>/dev/null`
6251 test "x$?" != "x0" && pkg_failed=yes
6252 else
6253 pkg_failed=yes
6255 else
6256 pkg_failed=untried
6261 if test $pkg_failed = yes; then
6262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 printf "%s\n" "no" >&6; }
6265 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6266 _pkg_short_errors_supported=yes
6267 else
6268 _pkg_short_errors_supported=no
6270 if test $_pkg_short_errors_supported = yes; then
6271 zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.11" 2>&1`
6272 else
6273 zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.11" 2>&1`
6275 # Put the nasty error message in config.log where it belongs
6276 echo "$zlib_PKG_ERRORS" >&5
6278 as_fn_error $? "Package requirements (zlib >= 1.2.11) were not met:
6280 $zlib_PKG_ERRORS
6282 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6283 installed software in a non-standard prefix.
6285 Alternatively, you may set the environment variables zlib_CFLAGS
6286 and zlib_LIBS to avoid the need to call pkg-config.
6287 See the pkg-config man page for more details." "$LINENO" 5
6288 elif test $pkg_failed = untried; then
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 printf "%s\n" "no" >&6; }
6291 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6292 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6293 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6294 is in your PATH or set the PKG_CONFIG environment variable to the full
6295 path to pkg-config.
6297 Alternatively, you may set the environment variables zlib_CFLAGS
6298 and zlib_LIBS to avoid the need to call pkg-config.
6299 See the pkg-config man page for more details.
6301 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6302 See \`config.log' for more details" "$LINENO" 5; }
6303 else
6304 zlib_CFLAGS=$pkg_cv_zlib_CFLAGS
6305 zlib_LIBS=$pkg_cv_zlib_LIBS
6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6307 printf "%s\n" "yes" >&6; }
6308 CXXFLAGS="$zlib_CFLAGS $CXXFLAGS"
6309 LIBS="$zlib_LIBS $LIBS"
6312 # Check if already in >= C++17 mode because of the flags returned by one of the above packages
6313 TMP_CXXFLAGS="$CXXFLAGS"
6314 CXXFLAGS=""
6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler defaults to C++17 or later mode" >&5
6316 printf %s "checking if compiler defaults to C++17 or later mode... " >&6; }
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6320 #ifndef __cplusplus
6321 #error "This is not a C++ compiler"
6322 #elif __cplusplus < 201703L
6323 #error "This is not a C++17 compiler"
6324 #endif
6326 main (void)
6330 return 0;
6333 _ACEOF
6334 if ac_fn_cxx_try_compile "$LINENO"
6335 then :
6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6337 printf "%s\n" "yes" >&6; }
6338 QBT_CXX17_FOUND="yes"
6339 else $as_nop
6340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 printf "%s\n" "no" >&6; }
6342 QBT_CXX17_FOUND="no"
6344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6346 # In case of no, check if the compiler can support at least C++17
6347 # and if yes, enable it leaving a warning to the user
6348 if test "x$QBT_CXX17_FOUND" = "xno"
6349 then :
6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports C++17" >&5
6351 printf %s "checking if compiler supports C++17... " >&6; }
6352 CXXFLAGS="-std=c++17"
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6356 #ifndef __cplusplus
6357 #error "This is not a C++ compiler"
6358 #elif __cplusplus < 201703L
6359 #error "This is not a C++17 compiler"
6360 #endif
6362 main (void)
6366 return 0;
6369 _ACEOF
6370 if ac_fn_cxx_try_compile "$LINENO"
6371 then :
6372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6373 printf "%s\n" "yes" >&6; }
6374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C++17 is disabled by the set compiler flags" >&5
6375 printf %s "checking if C++17 is disabled by the set compiler flags... " >&6; }
6376 # prepend the flag so it won't override conflicting user defined flags
6377 CXXFLAGS="-std=c++17 $TMP_CXXFLAGS"
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6381 #ifndef __cplusplus
6382 #error "This is not a C++ compiler"
6383 #elif __cplusplus < 201703L
6384 #error "This is not a C++17 compiler"
6385 #endif
6387 main (void)
6391 return 0;
6394 _ACEOF
6395 if ac_fn_cxx_try_compile "$LINENO"
6396 then :
6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398 printf "%s\n" "no" >&6; }
6399 QBT_ADD_CONFIG="$QBT_ADD_CONFIG c++17"
6400 { 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
6401 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;}
6402 else $as_nop
6403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6404 printf "%s\n" "yes" >&6; }
6405 as_fn_error $? "The compiler supports C++17 but the user or a dependency has explicitly enabled a lower mode." "$LINENO" 5
6407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6408 else $as_nop
6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 printf "%s\n" "no" >&6; }
6411 as_fn_error $? "A compiler supporting C++17 is required." "$LINENO" 5
6413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6416 CXXFLAGS="$TMP_CXXFLAGS"
6418 # These are required because autoconf doesn't expand these **particular**
6419 # vars automatically. And qmake cannot autoexpand them.
6421 prefix_NONE=
6422 exec_prefix_NONE=
6423 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
6424 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
6425 eval ax_define_dir="\"$prefix\""
6426 eval ax_define_dir="\"$ax_define_dir\""
6427 EXPAND_PREFIX="$ax_define_dir"
6429 printf "%s\n" "#define EXPAND_PREFIX \"$ax_define_dir\"" >>confdefs.h
6431 test "$prefix_NONE" && prefix=NONE
6432 test "$exec_prefix_NONE" && exec_prefix=NONE
6435 prefix_NONE=
6436 exec_prefix_NONE=
6437 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
6438 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
6439 eval ax_define_dir="\"$bindir\""
6440 eval ax_define_dir="\"$ax_define_dir\""
6441 EXPAND_BINDIR="$ax_define_dir"
6443 printf "%s\n" "#define EXPAND_BINDIR \"$ax_define_dir\"" >>confdefs.h
6445 test "$prefix_NONE" && prefix=NONE
6446 test "$exec_prefix_NONE" && exec_prefix=NONE
6449 prefix_NONE=
6450 exec_prefix_NONE=
6451 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
6452 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
6453 eval ax_define_dir="\"$datadir\""
6454 eval ax_define_dir="\"$ax_define_dir\""
6455 EXPAND_DATADIR="$ax_define_dir"
6457 printf "%s\n" "#define EXPAND_DATADIR \"$ax_define_dir\"" >>confdefs.h
6459 test "$prefix_NONE" && prefix=NONE
6460 test "$exec_prefix_NONE" && exec_prefix=NONE
6463 prefix_NONE=
6464 exec_prefix_NONE=
6465 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
6466 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
6467 eval ax_define_dir="\"$mandir\""
6468 eval ax_define_dir="\"$ax_define_dir\""
6469 EXPAND_MANDIR="$ax_define_dir"
6471 printf "%s\n" "#define EXPAND_MANDIR \"$ax_define_dir\"" >>confdefs.h
6473 test "$prefix_NONE" && prefix=NONE
6474 test "$exec_prefix_NONE" && exec_prefix=NONE
6477 # Original extract() function contributed by pmzqla
6478 # $*: Strings to parse
6479 # Set $QBT_CONF_DEFINES, $QBT_CONF_INCLUDES, $QBT_CONF_EXTRA_CFLAGS
6480 extract() {
6481 if [ -z "$*" ]; then
6482 echo "Input string required"
6483 return 1
6486 # BSD sed needs an actual newline character in the substitute command
6487 new_line='
6489 # Convert " -" to "\n" if not between quotes and remove possible leading white spaces
6490 string=$(echo " $*" | $SED -e "s: -:\\${new_line}:g" -e 's:"\(.*\)\n\(.*\)":\"\1 -\2":g' -e "s:'\(.*\)\n\(.*\)':\'\1 -\2':g" -e 's/^[[:space:]]*//')
6491 SAVEIFS=$IFS
6492 IFS=$(printf "\n\b")
6493 for i in $string; do
6494 case "$(echo "$i" | cut -c1)" in
6495 '') ;;
6496 D) QBT_CONF_DEFINES="$QBT_CONF_DEFINES $(echo $i | cut -c2-)";;
6497 I) QBT_CONF_INCLUDES="$QBT_CONF_INCLUDES $(echo $i | cut -c2-)";;
6498 *) QBT_CONF_EXTRA_CFLAGS="$QBT_CONF_EXTRA_CFLAGS -$i";;
6499 esac
6500 done
6501 IFS=$SAVEIFS
6504 extract "$CFLAGS $CXXFLAGS"
6505 QBT_ADD_DEFINES="$QBT_ADD_DEFINES $QBT_CONF_DEFINES"
6507 # Substitute the values of these vars in conf.pri.in
6517 QBT_CONFIG_FILES="conf.pri"
6519 if test "x$enable_systemd" = "xyes"
6520 then :
6521 QBT_CONFIG_FILES="$QBT_CONFIG_FILES dist/unix/systemd/qbittorrent-nox@.service"
6524 ac_config_files="$ac_config_files "$QBT_CONFIG_FILES""
6526 cat >confcache <<\_ACEOF
6527 # This file is a shell script that caches the results of configure
6528 # tests run on this system so they can be shared between configure
6529 # scripts and configure runs, see configure's option --config-cache.
6530 # It is not useful on other systems. If it contains results you don't
6531 # want to keep, you may remove or edit it.
6533 # config.status only pays attention to the cache file if you give it
6534 # the --recheck option to rerun configure.
6536 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6537 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6538 # following values.
6540 _ACEOF
6542 # The following way of writing the cache mishandles newlines in values,
6543 # but we know of no workaround that is simple, portable, and efficient.
6544 # So, we kill variables containing newlines.
6545 # Ultrix sh set writes to stderr and can't be redirected directly,
6546 # and sets the high bit in the cache file unless we assign to the vars.
6548 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6549 eval ac_val=\$$ac_var
6550 case $ac_val in #(
6551 *${as_nl}*)
6552 case $ac_var in #(
6553 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6554 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6555 esac
6556 case $ac_var in #(
6557 _ | IFS | as_nl) ;; #(
6558 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6559 *) { eval $ac_var=; unset $ac_var;} ;;
6560 esac ;;
6561 esac
6562 done
6564 (set) 2>&1 |
6565 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6566 *${as_nl}ac_space=\ *)
6567 # `set' does not quote correctly, so add quotes: double-quote
6568 # substitution turns \\\\ into \\, and sed turns \\ into \.
6569 sed -n \
6570 "s/'/'\\\\''/g;
6571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6572 ;; #(
6574 # `set' quotes correctly as required by POSIX, so do not add quotes.
6575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6577 esac |
6578 sort
6580 sed '
6581 /^ac_cv_env_/b end
6582 t clear
6583 :clear
6584 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6585 t end
6586 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6587 :end' >>confcache
6588 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6589 if test -w "$cache_file"; then
6590 if test "x$cache_file" != "x/dev/null"; then
6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6592 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6593 if test ! -f "$cache_file" || test -h "$cache_file"; then
6594 cat confcache >"$cache_file"
6595 else
6596 case $cache_file in #(
6597 */* | ?:*)
6598 mv -f confcache "$cache_file"$$ &&
6599 mv -f "$cache_file"$$ "$cache_file" ;; #(
6601 mv -f confcache "$cache_file" ;;
6602 esac
6605 else
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6607 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6610 rm -f confcache
6612 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6613 # Let make expand exec_prefix.
6614 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6616 # Transform confdefs.h into DEFS.
6617 # Protect against shell expansion while executing Makefile rules.
6618 # Protect against Makefile macro expansion.
6620 # If the first sed substitution is executed (which looks for macros that
6621 # take arguments), then branch to the quote section. Otherwise,
6622 # look for a macro that doesn't take arguments.
6623 ac_script='
6624 :mline
6625 /\\$/{
6627 s,\\\n,,
6628 b mline
6630 t clear
6631 :clear
6632 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
6633 t quote
6634 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
6635 t quote
6636 b any
6637 :quote
6638 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6639 s/\[/\\&/g
6640 s/\]/\\&/g
6641 s/\$/$$/g
6643 :any
6646 s/^\n//
6647 s/\n/ /g
6651 DEFS=`sed -n "$ac_script" confdefs.h`
6654 ac_libobjs=
6655 ac_ltlibobjs=
6657 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6658 # 1. Remove the extension, and $U if already installed.
6659 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6660 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6661 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6662 # will be set to the directory where LIBOBJS objects are built.
6663 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6664 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6665 done
6666 LIBOBJS=$ac_libobjs
6668 LTLIBOBJS=$ac_ltlibobjs
6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6672 printf %s "checking that generated files are newer than configure... " >&6; }
6673 if test -n "$am_sleep_pid"; then
6674 # Hide warnings about reused PIDs.
6675 wait $am_sleep_pid 2>/dev/null
6677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
6678 printf "%s\n" "done" >&6; }
6679 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6680 as_fn_error $? "conditional \"AMDEP\" was never defined.
6681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6683 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6684 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6687 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6688 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
6689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6691 if test -n "$EXEEXT"; then
6692 am__EXEEXT_TRUE=
6693 am__EXEEXT_FALSE='#'
6694 else
6695 am__EXEEXT_TRUE='#'
6696 am__EXEEXT_FALSE=
6700 : "${CONFIG_STATUS=./config.status}"
6701 ac_write_fail=0
6702 ac_clean_files_save=$ac_clean_files
6703 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6705 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6706 as_write_fail=0
6707 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6708 #! $SHELL
6709 # Generated by $as_me.
6710 # Run this file to recreate the current configuration.
6711 # Compiler output produced by configure, useful for debugging
6712 # configure, is in config.log if it exists.
6714 debug=false
6715 ac_cs_recheck=false
6716 ac_cs_silent=false
6718 SHELL=\${CONFIG_SHELL-$SHELL}
6719 export SHELL
6720 _ASEOF
6721 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6722 ## -------------------- ##
6723 ## M4sh Initialization. ##
6724 ## -------------------- ##
6726 # Be more Bourne compatible
6727 DUALCASE=1; export DUALCASE # for MKS sh
6728 as_nop=:
6729 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6730 then :
6731 emulate sh
6732 NULLCMD=:
6733 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6734 # is contrary to our usage. Disable this feature.
6735 alias -g '${1+"$@"}'='"$@"'
6736 setopt NO_GLOB_SUBST
6737 else $as_nop
6738 case `(set -o) 2>/dev/null` in #(
6739 *posix*) :
6740 set -o posix ;; #(
6741 *) :
6743 esac
6748 # Reset variables that may have inherited troublesome values from
6749 # the environment.
6751 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6752 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6753 # side effect of setting IFS to empty, thus disabling word splitting.)
6754 # Quoting is to prevent editors from complaining about space-tab.
6755 as_nl='
6757 export as_nl
6758 IFS=" "" $as_nl"
6760 PS1='$ '
6761 PS2='> '
6762 PS4='+ '
6764 # Ensure predictable behavior from utilities with locale-dependent output.
6765 LC_ALL=C
6766 export LC_ALL
6767 LANGUAGE=C
6768 export LANGUAGE
6770 # We cannot yet rely on "unset" to work, but we need these variables
6771 # to be unset--not just set to an empty or harmless value--now, to
6772 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6773 # also avoids known problems related to "unset" and subshell syntax
6774 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6775 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6776 do eval test \${$as_var+y} \
6777 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6778 done
6780 # Ensure that fds 0, 1, and 2 are open.
6781 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
6782 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
6783 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
6785 # The user is always right.
6786 if ${PATH_SEPARATOR+false} :; then
6787 PATH_SEPARATOR=:
6788 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6789 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6790 PATH_SEPARATOR=';'
6795 # Find who we are. Look in the path if we contain no directory separator.
6796 as_myself=
6797 case $0 in #((
6798 *[\\/]* ) as_myself=$0 ;;
6799 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 for as_dir in $PATH
6802 IFS=$as_save_IFS
6803 case $as_dir in #(((
6804 '') as_dir=./ ;;
6805 */) ;;
6806 *) as_dir=$as_dir/ ;;
6807 esac
6808 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
6809 done
6810 IFS=$as_save_IFS
6813 esac
6814 # We did not find ourselves, most probably we were run as `sh COMMAND'
6815 # in which case we are not to be found in the path.
6816 if test "x$as_myself" = x; then
6817 as_myself=$0
6819 if test ! -f "$as_myself"; then
6820 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6821 exit 1
6826 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6827 # ----------------------------------------
6828 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6829 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6830 # script with STATUS, using 1 if that was 0.
6831 as_fn_error ()
6833 as_status=$1; test $as_status -eq 0 && as_status=1
6834 if test "$4"; then
6835 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6838 printf "%s\n" "$as_me: error: $2" >&2
6839 as_fn_exit $as_status
6840 } # as_fn_error
6844 # as_fn_set_status STATUS
6845 # -----------------------
6846 # Set $? to STATUS, without forking.
6847 as_fn_set_status ()
6849 return $1
6850 } # as_fn_set_status
6852 # as_fn_exit STATUS
6853 # -----------------
6854 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6855 as_fn_exit ()
6857 set +e
6858 as_fn_set_status $1
6859 exit $1
6860 } # as_fn_exit
6862 # as_fn_unset VAR
6863 # ---------------
6864 # Portably unset VAR.
6865 as_fn_unset ()
6867 { eval $1=; unset $1;}
6869 as_unset=as_fn_unset
6871 # as_fn_append VAR VALUE
6872 # ----------------------
6873 # Append the text in VALUE to the end of the definition contained in VAR. Take
6874 # advantage of any shell optimizations that allow amortized linear growth over
6875 # repeated appends, instead of the typical quadratic growth present in naive
6876 # implementations.
6877 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
6878 then :
6879 eval 'as_fn_append ()
6881 eval $1+=\$2
6883 else $as_nop
6884 as_fn_append ()
6886 eval $1=\$$1\$2
6888 fi # as_fn_append
6890 # as_fn_arith ARG...
6891 # ------------------
6892 # Perform arithmetic evaluation on the ARGs, and store the result in the
6893 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6894 # must be portable across $(()) and expr.
6895 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
6896 then :
6897 eval 'as_fn_arith ()
6899 as_val=$(( $* ))
6901 else $as_nop
6902 as_fn_arith ()
6904 as_val=`expr "$@" || test $? -eq 1`
6906 fi # as_fn_arith
6909 if expr a : '\(a\)' >/dev/null 2>&1 &&
6910 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6911 as_expr=expr
6912 else
6913 as_expr=false
6916 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6917 as_basename=basename
6918 else
6919 as_basename=false
6922 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6923 as_dirname=dirname
6924 else
6925 as_dirname=false
6928 as_me=`$as_basename -- "$0" ||
6929 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6930 X"$0" : 'X\(//\)$' \| \
6931 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6932 printf "%s\n" X/"$0" |
6933 sed '/^.*\/\([^/][^/]*\)\/*$/{
6934 s//\1/
6937 /^X\/\(\/\/\)$/{
6938 s//\1/
6941 /^X\/\(\/\).*/{
6942 s//\1/
6945 s/.*/./; q'`
6947 # Avoid depending upon Character Ranges.
6948 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6949 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6950 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6951 as_cr_digits='0123456789'
6952 as_cr_alnum=$as_cr_Letters$as_cr_digits
6955 # Determine whether it's possible to make 'echo' print without a newline.
6956 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6957 # for compatibility with existing Makefiles.
6958 ECHO_C= ECHO_N= ECHO_T=
6959 case `echo -n x` in #(((((
6960 -n*)
6961 case `echo 'xy\c'` in
6962 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6963 xy) ECHO_C='\c';;
6964 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6965 ECHO_T=' ';;
6966 esac;;
6968 ECHO_N='-n';;
6969 esac
6971 # For backward compatibility with old third-party macros, we provide
6972 # the shell variables $as_echo and $as_echo_n. New code should use
6973 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6974 as_echo='printf %s\n'
6975 as_echo_n='printf %s'
6977 rm -f conf$$ conf$$.exe conf$$.file
6978 if test -d conf$$.dir; then
6979 rm -f conf$$.dir/conf$$.file
6980 else
6981 rm -f conf$$.dir
6982 mkdir conf$$.dir 2>/dev/null
6984 if (echo >conf$$.file) 2>/dev/null; then
6985 if ln -s conf$$.file conf$$ 2>/dev/null; then
6986 as_ln_s='ln -s'
6987 # ... but there are two gotchas:
6988 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6989 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6990 # In both cases, we have to default to `cp -pR'.
6991 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6992 as_ln_s='cp -pR'
6993 elif ln conf$$.file conf$$ 2>/dev/null; then
6994 as_ln_s=ln
6995 else
6996 as_ln_s='cp -pR'
6998 else
6999 as_ln_s='cp -pR'
7001 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7002 rmdir conf$$.dir 2>/dev/null
7005 # as_fn_mkdir_p
7006 # -------------
7007 # Create "$as_dir" as a directory, including parents if necessary.
7008 as_fn_mkdir_p ()
7011 case $as_dir in #(
7012 -*) as_dir=./$as_dir;;
7013 esac
7014 test -d "$as_dir" || eval $as_mkdir_p || {
7015 as_dirs=
7016 while :; do
7017 case $as_dir in #(
7018 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7019 *) as_qdir=$as_dir;;
7020 esac
7021 as_dirs="'$as_qdir' $as_dirs"
7022 as_dir=`$as_dirname -- "$as_dir" ||
7023 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7024 X"$as_dir" : 'X\(//\)[^/]' \| \
7025 X"$as_dir" : 'X\(//\)$' \| \
7026 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7027 printf "%s\n" X"$as_dir" |
7028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7029 s//\1/
7032 /^X\(\/\/\)[^/].*/{
7033 s//\1/
7036 /^X\(\/\/\)$/{
7037 s//\1/
7040 /^X\(\/\).*/{
7041 s//\1/
7044 s/.*/./; q'`
7045 test -d "$as_dir" && break
7046 done
7047 test -z "$as_dirs" || eval "mkdir $as_dirs"
7048 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7051 } # as_fn_mkdir_p
7052 if mkdir -p . 2>/dev/null; then
7053 as_mkdir_p='mkdir -p "$as_dir"'
7054 else
7055 test -d ./-p && rmdir ./-p
7056 as_mkdir_p=false
7060 # as_fn_executable_p FILE
7061 # -----------------------
7062 # Test if FILE is an executable regular file.
7063 as_fn_executable_p ()
7065 test -f "$1" && test -x "$1"
7066 } # as_fn_executable_p
7067 as_test_x='test -x'
7068 as_executable_p=as_fn_executable_p
7070 # Sed expression to map a string onto a valid CPP name.
7071 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7073 # Sed expression to map a string onto a valid variable name.
7074 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7077 exec 6>&1
7078 ## ----------------------------------- ##
7079 ## Main body of $CONFIG_STATUS script. ##
7080 ## ----------------------------------- ##
7081 _ASEOF
7082 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7085 # Save the log message, to keep $0 and so on meaningful, and to
7086 # report actual input values of CONFIG_FILES etc. instead of their
7087 # values after options handling.
7088 ac_log="
7089 This file was extended by qbittorrent $as_me v4.4.0alpha, which was
7090 generated by GNU Autoconf 2.71. Invocation command line was
7092 CONFIG_FILES = $CONFIG_FILES
7093 CONFIG_HEADERS = $CONFIG_HEADERS
7094 CONFIG_LINKS = $CONFIG_LINKS
7095 CONFIG_COMMANDS = $CONFIG_COMMANDS
7096 $ $0 $@
7098 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7101 _ACEOF
7103 case $ac_config_files in *"
7104 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7105 esac
7109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7110 # Files that config.status was made for.
7111 config_files="$ac_config_files"
7112 config_commands="$ac_config_commands"
7114 _ACEOF
7116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7117 ac_cs_usage="\
7118 \`$as_me' instantiates files and other configuration actions
7119 from templates according to the current configuration. Unless the files
7120 and actions are specified as TAGs, all are instantiated by default.
7122 Usage: $0 [OPTION]... [TAG]...
7124 -h, --help print this help, then exit
7125 -V, --version print version number and configuration settings, then exit
7126 --config print configuration, then exit
7127 -q, --quiet, --silent
7128 do not print progress messages
7129 -d, --debug don't remove temporary files
7130 --recheck update $as_me by reconfiguring in the same conditions
7131 --file=FILE[:TEMPLATE]
7132 instantiate the configuration file FILE
7134 Configuration files:
7135 $config_files
7137 Configuration commands:
7138 $config_commands
7140 Report bugs to <bugs.qbittorrent.org>.
7141 qbittorrent home page: <https://www.qbittorrent.org/>."
7143 _ACEOF
7144 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7145 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7147 ac_cs_config='$ac_cs_config_escaped'
7148 ac_cs_version="\\
7149 qbittorrent config.status v4.4.0alpha
7150 configured by $0, generated by GNU Autoconf 2.71,
7151 with options \\"\$ac_cs_config\\"
7153 Copyright (C) 2021 Free Software Foundation, Inc.
7154 This config.status script is free software; the Free Software Foundation
7155 gives unlimited permission to copy, distribute and modify it."
7157 ac_pwd='$ac_pwd'
7158 srcdir='$srcdir'
7159 INSTALL='$INSTALL'
7160 MKDIR_P='$MKDIR_P'
7161 AWK='$AWK'
7162 test -n "\$AWK" || AWK=awk
7163 _ACEOF
7165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7166 # The default lists apply if the user does not specify any file.
7167 ac_need_defaults=:
7168 while test $# != 0
7170 case $1 in
7171 --*=?*)
7172 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7173 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7174 ac_shift=:
7176 --*=)
7177 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7178 ac_optarg=
7179 ac_shift=:
7182 ac_option=$1
7183 ac_optarg=$2
7184 ac_shift=shift
7186 esac
7188 case $ac_option in
7189 # Handling of the options.
7190 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7191 ac_cs_recheck=: ;;
7192 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7193 printf "%s\n" "$ac_cs_version"; exit ;;
7194 --config | --confi | --conf | --con | --co | --c )
7195 printf "%s\n" "$ac_cs_config"; exit ;;
7196 --debug | --debu | --deb | --de | --d | -d )
7197 debug=: ;;
7198 --file | --fil | --fi | --f )
7199 $ac_shift
7200 case $ac_optarg in
7201 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7202 '') as_fn_error $? "missing file argument" ;;
7203 esac
7204 as_fn_append CONFIG_FILES " '$ac_optarg'"
7205 ac_need_defaults=false;;
7206 --he | --h | --help | --hel | -h )
7207 printf "%s\n" "$ac_cs_usage"; exit ;;
7208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7209 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7210 ac_cs_silent=: ;;
7212 # This is an error.
7213 -*) as_fn_error $? "unrecognized option: \`$1'
7214 Try \`$0 --help' for more information." ;;
7216 *) as_fn_append ac_config_targets " $1"
7217 ac_need_defaults=false ;;
7219 esac
7220 shift
7221 done
7223 ac_configure_extra_args=
7225 if $ac_cs_silent; then
7226 exec 6>/dev/null
7227 ac_configure_extra_args="$ac_configure_extra_args --silent"
7230 _ACEOF
7231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7232 if \$ac_cs_recheck; then
7233 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7234 shift
7235 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7236 CONFIG_SHELL='$SHELL'
7237 export CONFIG_SHELL
7238 exec "\$@"
7241 _ACEOF
7242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7243 exec 5>>config.log
7245 echo
7246 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7247 ## Running $as_me. ##
7248 _ASBOX
7249 printf "%s\n" "$ac_log"
7250 } >&5
7252 _ACEOF
7253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7255 # INIT-COMMANDS
7257 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
7259 _ACEOF
7261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7263 # Handling of arguments.
7264 for ac_config_target in $ac_config_targets
7266 case $ac_config_target in
7267 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7268 ""$QBT_CONFIG_FILES"") CONFIG_FILES="$CONFIG_FILES "$QBT_CONFIG_FILES"" ;;
7270 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7271 esac
7272 done
7275 # If the user did not use the arguments to specify the items to instantiate,
7276 # then the envvar interface is used. Set only those that are not.
7277 # We use the long form for the default assignment because of an extremely
7278 # bizarre bug on SunOS 4.1.3.
7279 if $ac_need_defaults; then
7280 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
7281 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
7284 # Have a temporary directory for convenience. Make it in the build tree
7285 # simply because there is no reason against having it here, and in addition,
7286 # creating and moving files from /tmp can sometimes cause problems.
7287 # Hook for its removal unless debugging.
7288 # Note that there is a small window in which the directory will not be cleaned:
7289 # after its creation but before its name has been assigned to `$tmp'.
7290 $debug ||
7292 tmp= ac_tmp=
7293 trap 'exit_status=$?
7294 : "${ac_tmp:=$tmp}"
7295 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7297 trap 'as_fn_exit 1' 1 2 13 15
7299 # Create a (secure) tmp directory for tmp files.
7302 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7303 test -d "$tmp"
7304 } ||
7306 tmp=./conf$$-$RANDOM
7307 (umask 077 && mkdir "$tmp")
7308 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7309 ac_tmp=$tmp
7311 # Set up the scripts for CONFIG_FILES section.
7312 # No need to generate them if there are no CONFIG_FILES.
7313 # This happens for instance with `./config.status config.h'.
7314 if test -n "$CONFIG_FILES"; then
7317 ac_cr=`echo X | tr X '\015'`
7318 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7319 # But we know of no other shell where ac_cr would be empty at this
7320 # point, so we can use a bashism as a fallback.
7321 if test "x$ac_cr" = x; then
7322 eval ac_cr=\$\'\\r\'
7324 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7325 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7326 ac_cs_awk_cr='\\r'
7327 else
7328 ac_cs_awk_cr=$ac_cr
7331 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7332 _ACEOF
7336 echo "cat >conf$$subs.awk <<_ACEOF" &&
7337 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7338 echo "_ACEOF"
7339 } >conf$$subs.sh ||
7340 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7341 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7342 ac_delim='%!_!# '
7343 for ac_last_try in false false false false false :; do
7344 . ./conf$$subs.sh ||
7345 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7347 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7348 if test $ac_delim_n = $ac_delim_num; then
7349 break
7350 elif $ac_last_try; then
7351 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7352 else
7353 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7355 done
7356 rm -f conf$$subs.sh
7358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7359 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7360 _ACEOF
7361 sed -n '
7363 s/^/S["/; s/!.*/"]=/
7366 s/^[^!]*!//
7367 :repl
7368 t repl
7369 s/'"$ac_delim"'$//
7370 t delim
7373 s/\(.\{148\}\)..*/\1/
7374 t more1
7375 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7378 b repl
7379 :more1
7380 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7383 s/.\{148\}//
7384 t nl
7385 :delim
7387 s/\(.\{148\}\)..*/\1/
7388 t more2
7389 s/["\\]/\\&/g; s/^/"/; s/$/"/
7392 :more2
7393 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7396 s/.\{148\}//
7397 t delim
7398 ' <conf$$subs.awk | sed '
7399 /^[^""]/{
7401 s/\n//
7403 ' >>$CONFIG_STATUS || ac_write_fail=1
7404 rm -f conf$$subs.awk
7405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7406 _ACAWK
7407 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7408 for (key in S) S_is_set[key] = 1
7409 FS = "\a"
7413 line = $ 0
7414 nfields = split(line, field, "@")
7415 substed = 0
7416 len = length(field[1])
7417 for (i = 2; i < nfields; i++) {
7418 key = field[i]
7419 keylen = length(key)
7420 if (S_is_set[key]) {
7421 value = S[key]
7422 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7423 len += length(value) + length(field[++i])
7424 substed = 1
7425 } else
7426 len += 1 + keylen
7429 print line
7432 _ACAWK
7433 _ACEOF
7434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7435 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7436 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7437 else
7439 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7440 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7441 _ACEOF
7443 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7444 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7445 # trailing colons and then remove the whole line if VPATH becomes empty
7446 # (actually we leave an empty line to preserve line numbers).
7447 if test "x$srcdir" = x.; then
7448 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7450 s///
7451 s/^/:/
7452 s/[ ]*$/:/
7453 s/:\$(srcdir):/:/g
7454 s/:\${srcdir}:/:/g
7455 s/:@srcdir@:/:/g
7456 s/^:*//
7457 s/:*$//
7459 s/\(=[ ]*\).*/\1/
7461 s/\n//
7462 s/^[^=]*=[ ]*$//
7466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7467 fi # test -n "$CONFIG_FILES"
7470 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
7471 shift
7472 for ac_tag
7474 case $ac_tag in
7475 :[FHLC]) ac_mode=$ac_tag; continue;;
7476 esac
7477 case $ac_mode$ac_tag in
7478 :[FHL]*:*);;
7479 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7480 :[FH]-) ac_tag=-:-;;
7481 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7482 esac
7483 ac_save_IFS=$IFS
7484 IFS=:
7485 set x $ac_tag
7486 IFS=$ac_save_IFS
7487 shift
7488 ac_file=$1
7489 shift
7491 case $ac_mode in
7492 :L) ac_source=$1;;
7493 :[FH])
7494 ac_file_inputs=
7495 for ac_f
7497 case $ac_f in
7498 -) ac_f="$ac_tmp/stdin";;
7499 *) # Look for the file first in the build tree, then in the source tree
7500 # (if the path is not absolute). The absolute path cannot be DOS-style,
7501 # because $ac_f cannot contain `:'.
7502 test -f "$ac_f" ||
7503 case $ac_f in
7504 [\\/$]*) false;;
7505 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7506 esac ||
7507 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7508 esac
7509 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7510 as_fn_append ac_file_inputs " '$ac_f'"
7511 done
7513 # Let's still pretend it is `configure' which instantiates (i.e., don't
7514 # use $as_me), people would be surprised to read:
7515 # /* config.h. Generated by config.status. */
7516 configure_input='Generated from '`
7517 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7518 `' by configure.'
7519 if test x"$ac_file" != x-; then
7520 configure_input="$ac_file. $configure_input"
7521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7522 printf "%s\n" "$as_me: creating $ac_file" >&6;}
7524 # Neutralize special characters interpreted by sed in replacement strings.
7525 case $configure_input in #(
7526 *\&* | *\|* | *\\* )
7527 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
7528 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7529 *) ac_sed_conf_input=$configure_input;;
7530 esac
7532 case $ac_tag in
7533 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7534 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7535 esac
7537 esac
7539 ac_dir=`$as_dirname -- "$ac_file" ||
7540 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7541 X"$ac_file" : 'X\(//\)[^/]' \| \
7542 X"$ac_file" : 'X\(//\)$' \| \
7543 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7544 printf "%s\n" X"$ac_file" |
7545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7546 s//\1/
7549 /^X\(\/\/\)[^/].*/{
7550 s//\1/
7553 /^X\(\/\/\)$/{
7554 s//\1/
7557 /^X\(\/\).*/{
7558 s//\1/
7561 s/.*/./; q'`
7562 as_dir="$ac_dir"; as_fn_mkdir_p
7563 ac_builddir=.
7565 case "$ac_dir" in
7566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7568 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7569 # A ".." for each directory in $ac_dir_suffix.
7570 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7571 case $ac_top_builddir_sub in
7572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7574 esac ;;
7575 esac
7576 ac_abs_top_builddir=$ac_pwd
7577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7578 # for backward compatibility:
7579 ac_top_builddir=$ac_top_build_prefix
7581 case $srcdir in
7582 .) # We are building in place.
7583 ac_srcdir=.
7584 ac_top_srcdir=$ac_top_builddir_sub
7585 ac_abs_top_srcdir=$ac_pwd ;;
7586 [\\/]* | ?:[\\/]* ) # Absolute name.
7587 ac_srcdir=$srcdir$ac_dir_suffix;
7588 ac_top_srcdir=$srcdir
7589 ac_abs_top_srcdir=$srcdir ;;
7590 *) # Relative name.
7591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7592 ac_top_srcdir=$ac_top_build_prefix$srcdir
7593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7594 esac
7595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7598 case $ac_mode in
7601 # CONFIG_FILE
7604 case $INSTALL in
7605 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7606 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7607 esac
7608 ac_MKDIR_P=$MKDIR_P
7609 case $MKDIR_P in
7610 [\\/$]* | ?:[\\/]* ) ;;
7611 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7612 esac
7613 _ACEOF
7615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7616 # If the template does not know about datarootdir, expand it.
7617 # FIXME: This hack should be removed a few years after 2.60.
7618 ac_datarootdir_hack=; ac_datarootdir_seen=
7619 ac_sed_dataroot='
7620 /datarootdir/ {
7624 /@datadir@/p
7625 /@docdir@/p
7626 /@infodir@/p
7627 /@localedir@/p
7628 /@mandir@/p'
7629 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7630 *datarootdir*) ac_datarootdir_seen=yes;;
7631 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7633 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7634 _ACEOF
7635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7636 ac_datarootdir_hack='
7637 s&@datadir@&$datadir&g
7638 s&@docdir@&$docdir&g
7639 s&@infodir@&$infodir&g
7640 s&@localedir@&$localedir&g
7641 s&@mandir@&$mandir&g
7642 s&\\\${datarootdir}&$datarootdir&g' ;;
7643 esac
7644 _ACEOF
7646 # Neutralize VPATH when `$srcdir' = `.'.
7647 # Shell code in configure.ac might set extrasub.
7648 # FIXME: do we really want to maintain this feature?
7649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7650 ac_sed_extra="$ac_vpsub
7651 $extrasub
7652 _ACEOF
7653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7655 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7656 s|@configure_input@|$ac_sed_conf_input|;t t
7657 s&@top_builddir@&$ac_top_builddir_sub&;t t
7658 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7659 s&@srcdir@&$ac_srcdir&;t t
7660 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7661 s&@top_srcdir@&$ac_top_srcdir&;t t
7662 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7663 s&@builddir@&$ac_builddir&;t t
7664 s&@abs_builddir@&$ac_abs_builddir&;t t
7665 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7666 s&@INSTALL@&$ac_INSTALL&;t t
7667 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7668 $ac_datarootdir_hack
7670 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7671 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7673 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7674 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7675 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7676 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7678 which seems to be undefined. Please make sure it is defined" >&5
7679 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7680 which seems to be undefined. Please make sure it is defined" >&2;}
7682 rm -f "$ac_tmp/stdin"
7683 case $ac_file in
7684 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7685 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7686 esac \
7687 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7691 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7692 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
7694 esac
7697 case $ac_file$ac_mode in
7698 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7699 # Older Autoconf quotes --file arguments for eval, but not when files
7700 # are listed without --file. Let's play safe and only enable the eval
7701 # if we detect the quoting.
7702 # TODO: see whether this extra hack can be removed once we start
7703 # requiring Autoconf 2.70 or later.
7704 case $CONFIG_FILES in #(
7705 *\'*) :
7706 eval set x "$CONFIG_FILES" ;; #(
7707 *) :
7708 set x $CONFIG_FILES ;; #(
7709 *) :
7711 esac
7712 shift
7713 # Used to flag and report bootstrapping failures.
7714 am_rc=0
7715 for am_mf
7717 # Strip MF so we end up with the name of the file.
7718 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
7719 # Check whether this is an Automake generated Makefile which includes
7720 # dependency-tracking related rules and includes.
7721 # Grep'ing the whole file directly is not great: AIX grep has a line
7722 # limit of 2048, but all sed's we know have understand at least 4000.
7723 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
7724 || continue
7725 am_dirpart=`$as_dirname -- "$am_mf" ||
7726 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7727 X"$am_mf" : 'X\(//\)[^/]' \| \
7728 X"$am_mf" : 'X\(//\)$' \| \
7729 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7730 printf "%s\n" X"$am_mf" |
7731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7732 s//\1/
7735 /^X\(\/\/\)[^/].*/{
7736 s//\1/
7739 /^X\(\/\/\)$/{
7740 s//\1/
7743 /^X\(\/\).*/{
7744 s//\1/
7747 s/.*/./; q'`
7748 am_filepart=`$as_basename -- "$am_mf" ||
7749 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
7750 X"$am_mf" : 'X\(//\)$' \| \
7751 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7752 printf "%s\n" X/"$am_mf" |
7753 sed '/^.*\/\([^/][^/]*\)\/*$/{
7754 s//\1/
7757 /^X\/\(\/\/\)$/{
7758 s//\1/
7761 /^X\/\(\/\).*/{
7762 s//\1/
7765 s/.*/./; q'`
7766 { echo "$as_me:$LINENO: cd "$am_dirpart" \
7767 && sed -e '/# am--include-marker/d' "$am_filepart" \
7768 | $MAKE -f - am--depfiles" >&5
7769 (cd "$am_dirpart" \
7770 && sed -e '/# am--include-marker/d' "$am_filepart" \
7771 | $MAKE -f - am--depfiles) >&5 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } || am_rc=$?
7775 done
7776 if test $am_rc -ne 0; then
7777 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7778 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7779 as_fn_error $? "Something went wrong bootstrapping makefile fragments
7780 for automatic dependency tracking. If GNU make was not used, consider
7781 re-running the configure script with MAKE=\"gmake\" (or whatever is
7782 necessary). You can also try re-running configure with the
7783 '--disable-dependency-tracking' option to at least be able to build
7784 the package (albeit without support for automatic dependency tracking).
7785 See \`config.log' for more details" "$LINENO" 5; }
7787 { am_dirpart=; unset am_dirpart;}
7788 { am_filepart=; unset am_filepart;}
7789 { am_mf=; unset am_mf;}
7790 { am_rc=; unset am_rc;}
7791 rm -f conftest-deps.mk
7795 esac
7796 done # for ac_tag
7799 as_fn_exit 0
7800 _ACEOF
7801 ac_clean_files=$ac_clean_files_save
7803 test $ac_write_fail = 0 ||
7804 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7807 # configure is writing to config.log, and then calls config.status.
7808 # config.status does its own redirection, appending to config.log.
7809 # Unfortunately, on DOS this fails, as config.log is still kept open
7810 # by configure, so config.status won't be able to write to it; its
7811 # output is simply discarded. So we exec the FD to /dev/null,
7812 # effectively closing config.log, so it can be properly (re)opened and
7813 # appended to by config.status. When coming back to configure, we
7814 # need to make the FD available again.
7815 if test "$no_create" != yes; then
7816 ac_cs_success=:
7817 ac_config_status_args=
7818 test "$silent" = yes &&
7819 ac_config_status_args="$ac_config_status_args --quiet"
7820 exec 5>/dev/null
7821 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7822 exec 5>>config.log
7823 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7824 # would make configure fail if this is the last instruction.
7825 $ac_cs_success || as_fn_exit 1
7827 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7829 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Running qmake to generate the makefile..." >&5
7834 printf "%s\n" "$as_me: Running qmake to generate the makefile..." >&6;}
7835 TOPDIR="$(cd "$(dirname "$0")" && pwd)"
7836 $QT_QMAKE -r "$TOPDIR/qbittorrent.pro" "QMAKE_LRELEASE=$QMAKE_LRELEASE"
7837 qmake_ret="$?"
7839 printf "%s\n"
7840 if test "x$qmake_ret" != "x0"
7841 then :
7842 as_fn_error $? "$QT_QMAKE failed to generate the makefile" "$LINENO" 5
7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Good, the configure finished." >&5
7846 printf "%s\n" "$as_me: Good, the configure finished." >&6;}
7847 printf "%s\n"