GHA CI: fix environment variable not being used
[qBittorrent.git] / configure
blob773548c5dd5606501688ae6eb7bd79e3723c1a88
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for qbittorrent v4.6.0beta2.
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.6.0beta2'
615 PACKAGE_STRING='qbittorrent v4.6.0beta2'
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.6.0beta2 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.6.0beta2:";;
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.15.2, 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.6.0beta2
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.6.0beta2, 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.6.0beta2'
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 to enable specific tweaks for current host \"$host_os\"" >&5
5192 printf %s "checking whether to enable specific tweaks for current host \"$host_os\"... " >&6; }
5193 case "$host_os" in
5194 *darwin*)
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5196 printf "%s\n" "yes" >&6; }
5197 enable_qt_dbus=no
5200 *freebsd*)
5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5202 printf "%s\n" "yes" >&6; }
5203 LIBS="-lexecinfo $LIBS"
5206 *haiku*)
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5208 printf "%s\n" "yes" >&6; }
5209 LIBS="-lnetwork $LIBS"
5212 *openbsd*)
5213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5214 printf "%s\n" "yes" >&6; }
5215 LIBS="-lexecinfo $LIBS"
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 printf "%s\n" "no" >&6; }
5222 esac
5224 # Require 0.23 pkg-config
5232 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5233 if test -n "$ac_tool_prefix"; then
5234 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5235 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 printf %s "checking for $ac_word... " >&6; }
5238 if test ${ac_cv_path_PKG_CONFIG+y}
5239 then :
5240 printf %s "(cached) " >&6
5241 else $as_nop
5242 case $PKG_CONFIG in
5243 [\\/]* | ?:[\\/]*)
5244 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5250 IFS=$as_save_IFS
5251 case $as_dir in #(((
5252 '') as_dir=./ ;;
5253 */) ;;
5254 *) as_dir=$as_dir/ ;;
5255 esac
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5258 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5260 break 2
5262 done
5263 done
5264 IFS=$as_save_IFS
5267 esac
5269 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5270 if test -n "$PKG_CONFIG"; then
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5272 printf "%s\n" "$PKG_CONFIG" >&6; }
5273 else
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275 printf "%s\n" "no" >&6; }
5280 if test -z "$ac_cv_path_PKG_CONFIG"; then
5281 ac_pt_PKG_CONFIG=$PKG_CONFIG
5282 # Extract the first word of "pkg-config", so it can be a program name with args.
5283 set dummy pkg-config; ac_word=$2
5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5285 printf %s "checking for $ac_word... " >&6; }
5286 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5287 then :
5288 printf %s "(cached) " >&6
5289 else $as_nop
5290 case $ac_pt_PKG_CONFIG in
5291 [\\/]* | ?:[\\/]*)
5292 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH
5298 IFS=$as_save_IFS
5299 case $as_dir in #(((
5300 '') as_dir=./ ;;
5301 */) ;;
5302 *) as_dir=$as_dir/ ;;
5303 esac
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5306 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5308 break 2
5310 done
5311 done
5312 IFS=$as_save_IFS
5315 esac
5317 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5318 if test -n "$ac_pt_PKG_CONFIG"; then
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5320 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5321 else
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 printf "%s\n" "no" >&6; }
5326 if test "x$ac_pt_PKG_CONFIG" = x; then
5327 PKG_CONFIG=""
5328 else
5329 case $cross_compiling:$ac_tool_warned in
5330 yes:)
5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5332 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5333 ac_tool_warned=yes ;;
5334 esac
5335 PKG_CONFIG=$ac_pt_PKG_CONFIG
5337 else
5338 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5342 if test -n "$PKG_CONFIG"; then
5343 _pkg_min_version=0.23
5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5345 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5346 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5348 printf "%s\n" "yes" >&6; }
5349 else
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 printf "%s\n" "no" >&6; }
5352 PKG_CONFIG=""
5355 if test "x$PKG_CONFIG" = "x"
5356 then :
5357 as_fn_error $? "Could not find pkg-config" "$LINENO" 5
5360 # Check which arguments were set and act accordingly
5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the Debug build" >&5
5362 printf %s "checking whether to enable the Debug build... " >&6; }
5363 case "x$enable_debug" in #(
5364 "xno") :
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 printf "%s\n" "no" >&6; }
5367 QBT_ADD_CONFIG="$QBT_ADD_CONFIG release"
5368 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG debug" ;; #(
5369 "xyes") :
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5371 printf "%s\n" "yes" >&6; }
5372 QBT_ADD_CONFIG="$QBT_ADD_CONFIG debug"
5373 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG release" ;; #(
5374 *) :
5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
5376 printf "%s\n" "$enable_debug" >&6; }
5377 as_fn_error $? "Unknown option \"$enable_debug\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5378 esac
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the stacktrace feature" >&5
5381 printf %s "checking whether to enable the stacktrace feature... " >&6; }
5383 case "x$enable_stacktrace" in #(
5384 "xno") :
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 printf "%s\n" "no" >&6; }
5387 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG stacktrace" ;; #(
5388 "xyes") :
5389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5390 printf "%s\n" "yes" >&6; }
5391 QBT_ADD_CONFIG="$QBT_ADD_CONFIG stacktrace" ;; #(
5392 "xauto") :
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 #include <execinfo.h>
5396 _ACEOF
5397 if ac_fn_cxx_try_compile "$LINENO"
5398 then :
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5400 printf "%s\n" "yes" >&6; }
5401 QBT_ADD_CONFIG="$QBT_ADD_CONFIG stacktrace"
5402 else $as_nop
5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 printf "%s\n" "no" >&6; }
5405 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG stacktrace"
5407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; #(
5408 *) :
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_stacktrace" >&5
5410 printf "%s\n" "$enable_stacktrace" >&6; }
5411 as_fn_error $? "Unknown option \"$enable_stacktrace\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5412 esac
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the GUI" >&5
5415 printf %s "checking whether to enable the GUI... " >&6; }
5416 case "x$enable_gui" in #(
5417 "xyes") :
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5419 printf "%s\n" "yes" >&6; }
5420 enable_systemd=no
5421 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG nogui" ;; #(
5422 "xno") :
5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 printf "%s\n" "no" >&6; }
5425 enable_qt_dbus=no
5426 QBT_ADD_CONFIG="$QBT_ADD_CONFIG nogui" ;; #(
5427 *) :
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gui" >&5
5429 printf "%s\n" "$enable_gui" >&6; }
5430 as_fn_error $? "Unknown option \"$enable_gui\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5431 esac
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install the systemd service file" >&5
5434 printf %s "checking whether to install the systemd service file... " >&6; }
5435 case "x$enable_systemd" in #(
5436 "xyes") :
5437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5438 printf "%s\n" "yes" >&6; }
5439 QBT_ADD_CONFIG="$QBT_ADD_CONFIG systemd" ;; #(
5440 "xno") :
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 printf "%s\n" "no" >&6; }
5443 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG systemd" ;; #(
5444 *) :
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_systemd" >&5
5446 printf "%s\n" "$enable_systemd" >&6; }
5447 as_fn_error $? "Unknown option \"$enable_systemd\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5448 esac
5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the WebUI" >&5
5451 printf %s "checking whether to enable the WebUI... " >&6; }
5452 case "x$enable_webui" in #(
5453 "xyes") :
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5455 printf "%s\n" "yes" >&6; }
5456 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG nowebui" ;; #(
5457 "xno") :
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 printf "%s\n" "no" >&6; }
5460 QBT_ADD_CONFIG="$QBT_ADD_CONFIG nowebui" ;; #(
5461 *) :
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_webui" >&5
5463 printf "%s\n" "$enable_webui" >&6; }
5464 as_fn_error $? "Unknown option \"$enable_webui\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5465 esac
5467 if test -n "$PKG_CONFIG" && \
5468 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.15.2\""; } >&5
5469 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.15.2") 2>&5
5470 ac_status=$?
5471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5472 test $ac_status = 0; }; then
5474 if test -n "$QT_QMAKE"; then
5475 pkg_cv_QT_QMAKE="$QT_QMAKE"
5476 elif test -n "$PKG_CONFIG"; then
5477 if test -n "$PKG_CONFIG" && \
5478 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.15.2\""; } >&5
5479 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.15.2") 2>&5
5480 ac_status=$?
5481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5482 test $ac_status = 0; }; then
5483 pkg_cv_QT_QMAKE=`$PKG_CONFIG --variable="host_bins" "Qt5Core >= 5.15.2" 2>/dev/null`
5484 test "x$?" != "x0" && pkg_failed=yes
5485 else
5486 pkg_failed=yes
5488 else
5489 pkg_failed=untried
5491 QT_QMAKE=$pkg_cv_QT_QMAKE
5493 if test "x$QT_QMAKE" = x""
5494 then :
5500 if test -f "$QT_QMAKE/qmake"
5501 then :
5502 QT_QMAKE="$QT_QMAKE/qmake"
5503 else $as_nop
5504 if test -f "$QT_QMAKE/qmake-qt5"
5505 then :
5506 QT_QMAKE="$QT_QMAKE/qmake-qt5"
5507 else $as_nop
5508 QT_QMAKE=""
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5 qmake >= 5.15.2" >&5
5514 printf %s "checking for Qt5 qmake >= 5.15.2... " >&6; }
5515 if test "x$QT_QMAKE" != "x"
5516 then :
5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QT_QMAKE" >&5
5518 printf "%s\n" "$QT_QMAKE" >&6; }
5519 else $as_nop
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5521 printf "%s\n" "not found" >&6; }
5525 if test "x$QT_QMAKE" = "x"
5526 then :
5527 as_fn_error $? "Could not find qmake" "$LINENO" 5
5530 if test "x$enable_gui" = "xyes"
5531 then :
5533 pkg_failed=no
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5Svg >= 5.15.2" >&5
5535 printf %s "checking for Qt5Svg >= 5.15.2... " >&6; }
5537 if test -n "$Qt5Svg_CFLAGS"; then
5538 pkg_cv_Qt5Svg_CFLAGS="$Qt5Svg_CFLAGS"
5539 elif test -n "$PKG_CONFIG"; then
5540 if test -n "$PKG_CONFIG" && \
5541 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Svg >= 5.15.2\""; } >&5
5542 ($PKG_CONFIG --exists --print-errors "Qt5Svg >= 5.15.2") 2>&5
5543 ac_status=$?
5544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5545 test $ac_status = 0; }; then
5546 pkg_cv_Qt5Svg_CFLAGS=`$PKG_CONFIG --cflags "Qt5Svg >= 5.15.2" 2>/dev/null`
5547 test "x$?" != "x0" && pkg_failed=yes
5548 else
5549 pkg_failed=yes
5551 else
5552 pkg_failed=untried
5554 if test -n "$Qt5Svg_LIBS"; then
5555 pkg_cv_Qt5Svg_LIBS="$Qt5Svg_LIBS"
5556 elif test -n "$PKG_CONFIG"; then
5557 if test -n "$PKG_CONFIG" && \
5558 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Svg >= 5.15.2\""; } >&5
5559 ($PKG_CONFIG --exists --print-errors "Qt5Svg >= 5.15.2") 2>&5
5560 ac_status=$?
5561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5562 test $ac_status = 0; }; then
5563 pkg_cv_Qt5Svg_LIBS=`$PKG_CONFIG --libs "Qt5Svg >= 5.15.2" 2>/dev/null`
5564 test "x$?" != "x0" && pkg_failed=yes
5565 else
5566 pkg_failed=yes
5568 else
5569 pkg_failed=untried
5574 if test $pkg_failed = yes; then
5575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 printf "%s\n" "no" >&6; }
5578 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5579 _pkg_short_errors_supported=yes
5580 else
5581 _pkg_short_errors_supported=no
5583 if test $_pkg_short_errors_supported = yes; then
5584 Qt5Svg_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Qt5Svg >= 5.15.2" 2>&1`
5585 else
5586 Qt5Svg_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "Qt5Svg >= 5.15.2" 2>&1`
5588 # Put the nasty error message in config.log where it belongs
5589 echo "$Qt5Svg_PKG_ERRORS" >&5
5591 as_fn_error $? "Package requirements (Qt5Svg >= 5.15.2) were not met:
5593 $Qt5Svg_PKG_ERRORS
5595 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5596 installed software in a non-standard prefix.
5598 Alternatively, you may set the environment variables Qt5Svg_CFLAGS
5599 and Qt5Svg_LIBS to avoid the need to call pkg-config.
5600 See the pkg-config man page for more details." "$LINENO" 5
5601 elif test $pkg_failed = untried; then
5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 printf "%s\n" "no" >&6; }
5604 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5605 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5606 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5607 is in your PATH or set the PKG_CONFIG environment variable to the full
5608 path to pkg-config.
5610 Alternatively, you may set the environment variables Qt5Svg_CFLAGS
5611 and Qt5Svg_LIBS to avoid the need to call pkg-config.
5612 See the pkg-config man page for more details.
5614 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5615 See \`config.log' for more details" "$LINENO" 5; }
5616 else
5617 Qt5Svg_CFLAGS=$pkg_cv_Qt5Svg_CFLAGS
5618 Qt5Svg_LIBS=$pkg_cv_Qt5Svg_LIBS
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5620 printf "%s\n" "yes" >&6; }
5625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether QtDBus should be enabled" >&5
5626 printf %s "checking whether QtDBus should be enabled... " >&6; }
5627 case "x$enable_qt_dbus" in #(
5628 "xyes") :
5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5630 printf "%s\n" "yes" >&6; }
5631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5DBus >= 5.15.2" >&5
5632 printf %s "checking for Qt5DBus >= 5.15.2... " >&6; }
5633 if test -n "$PKG_CONFIG" && \
5634 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5DBus >= 5.15.2\""; } >&5
5635 ($PKG_CONFIG --exists --print-errors "Qt5DBus >= 5.15.2") 2>&5
5636 ac_status=$?
5637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5638 test $ac_status = 0; }; then
5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
5640 printf "%s\n" "found" >&6; }
5641 HAVE_QTDBUS=true
5642 else
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5644 printf "%s\n" "not found" >&6; }
5645 HAVE_QTDBUS=false
5648 if test "x$HAVE_QTDBUS" = "xfalse"
5649 then :
5650 as_fn_error $? "Could not find QtDBus" "$LINENO" 5
5651 else $as_nop
5652 QBT_ADD_CONFIG="$QBT_ADD_CONFIG dbus" QBT_ADD_DEFINES="$QBT_ADD_DEFINES QBT_USES_DBUS"
5654 fi ;; #(
5655 "xno") :
5656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657 printf "%s\n" "no" >&6; }
5658 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG dbus" ;; #(
5659 *) :
5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_qt_dbus" >&5
5661 printf "%s\n" "$enable_qt_dbus" >&6; }
5662 as_fn_error $? "Unknown option \"$enable_qt_dbus\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5663 esac
5668 # Check whether --with-boost was given.
5669 if test ${with_boost+y}
5670 then :
5671 withval=$with_boost;
5672 case $withval in #(
5673 no) :
5674 want_boost="no";_AX_BOOST_BASE_boost_path="" ;; #(
5675 yes) :
5676 want_boost="yes";_AX_BOOST_BASE_boost_path="" ;; #(
5677 *) :
5678 want_boost="yes";_AX_BOOST_BASE_boost_path="$withval" ;;
5679 esac
5681 else $as_nop
5682 want_boost="yes"
5688 # Check whether --with-boost-libdir was given.
5689 if test ${with_boost_libdir+y}
5690 then :
5691 withval=$with_boost_libdir;
5692 if test -d "$withval"
5693 then :
5694 _AX_BOOST_BASE_boost_lib_path="$withval"
5695 else $as_nop
5696 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
5699 else $as_nop
5700 _AX_BOOST_BASE_boost_lib_path=""
5704 BOOST_LDFLAGS=""
5705 BOOST_CPPFLAGS=""
5706 if test "x$want_boost" = "xyes"
5707 then :
5710 if test "x1.71" = "x"
5711 then :
5712 _AX_BOOST_BASE_TONUMERICVERSION_req="1.20.0"
5713 else $as_nop
5714 _AX_BOOST_BASE_TONUMERICVERSION_req="1.71"
5716 _AX_BOOST_BASE_TONUMERICVERSION_req_shorten=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\.[0-9]*\)'`
5717 _AX_BOOST_BASE_TONUMERICVERSION_req_major=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\)'`
5718 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_major" = "x"
5719 then :
5720 as_fn_error $? "You should at least specify libboost major version" "$LINENO" 5
5722 _AX_BOOST_BASE_TONUMERICVERSION_req_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.\([0-9]*\)'`
5723 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_minor" = "x"
5724 then :
5725 _AX_BOOST_BASE_TONUMERICVERSION_req_minor="0"
5727 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
5728 if test "X$_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor" = "X"
5729 then :
5730 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor="0"
5732 _AX_BOOST_BASE_TONUMERICVERSION_RET=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req_major \* 100000 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_minor \* 100 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor`
5733 WANT_BOOST_VERSION=$_AX_BOOST_BASE_TONUMERICVERSION_RET
5735 succeeded=no
5739 case ${host_cpu} in #(
5740 x86_64) :
5741 libsubdirs="lib64 libx32 lib lib64" ;; #(
5742 mips*64*) :
5743 libsubdirs="lib64 lib32 lib lib64" ;; #(
5744 ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64|e2k) :
5745 libsubdirs="lib64 lib lib64" ;; #(
5746 *) :
5747 libsubdirs="lib"
5749 esac
5751 case ${host_cpu} in #(
5752 i?86) :
5753 multiarch_libsubdir="lib/i386-${host_os}" ;; #(
5754 armv7l) :
5755 multiarch_libsubdir="lib/arm-${host_os}" ;; #(
5756 *) :
5757 multiarch_libsubdir="lib/${host_cpu}-${host_os}"
5759 esac
5761 if test "x$_AX_BOOST_BASE_boost_path" != "x"
5762 then :
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.71 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"" >&5
5765 printf %s "checking for boostlib >= 1.71 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"... " >&6; }
5766 if test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"
5767 then :
5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5770 printf "%s\n" "yes" >&6; }
5771 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include"
5772 for _AX_BOOST_BASE_boost_path_tmp in $multiarch_libsubdir $libsubdirs; do
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.71 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"" >&5
5774 printf %s "checking for boostlib >= 1.71 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"... " >&6; }
5775 if test -d "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" && test -r "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp"
5776 then :
5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5779 printf "%s\n" "yes" >&6; }
5780 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp";
5781 break;
5783 else $as_nop
5784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 printf "%s\n" "no" >&6; }
5787 done
5788 else $as_nop
5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791 printf "%s\n" "no" >&6; }
5794 else $as_nop
5796 if test X"$cross_compiling" = Xyes; then
5797 search_libsubdirs=$multiarch_libsubdir
5798 else
5799 search_libsubdirs="$multiarch_libsubdir $libsubdirs"
5801 for _AX_BOOST_BASE_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
5802 if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then
5803 for libsubdir in $search_libsubdirs ; do
5804 if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5805 done
5806 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir"
5807 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path_tmp/include"
5808 break;
5810 done
5814 if test "x$_AX_BOOST_BASE_boost_lib_path" != "x"
5815 then :
5816 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path"
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.71 ($WANT_BOOST_VERSION)" >&5
5820 printf %s "checking for boostlib >= 1.71 ($WANT_BOOST_VERSION)... " >&6; }
5821 CPPFLAGS_SAVED="$CPPFLAGS"
5822 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
5823 export CPPFLAGS
5825 LDFLAGS_SAVED="$LDFLAGS"
5826 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
5827 export LDFLAGS
5830 ac_ext=cpp
5831 ac_cpp='$CXXCPP $CPPFLAGS'
5832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5839 #include <boost/version.hpp>
5842 main (void)
5845 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
5848 return 0;
5850 _ACEOF
5851 if ac_fn_cxx_try_compile "$LINENO"
5852 then :
5854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5855 printf "%s\n" "yes" >&6; }
5856 succeeded=yes
5857 found_system=yes
5860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5861 ac_ext=cpp
5862 ac_cpp='$CXXCPP $CPPFLAGS'
5863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5870 if test "x$succeeded" != "xyes" ; then
5871 CPPFLAGS="$CPPFLAGS_SAVED"
5872 LDFLAGS="$LDFLAGS_SAVED"
5873 BOOST_CPPFLAGS=
5874 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5875 BOOST_LDFLAGS=
5877 _version=0
5878 if test -n "$_AX_BOOST_BASE_boost_path" ; then
5879 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then
5880 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
5881 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
5882 V_CHECK=`expr $_version_tmp \> $_version`
5883 if test "x$V_CHECK" = "x1" ; then
5884 _version=$_version_tmp
5886 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
5887 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include/boost-$VERSION_UNDERSCORE"
5888 done
5889 if test -z "$BOOST_CPPFLAGS"; then
5890 if test -d "$_AX_BOOST_BASE_boost_path/boost" && test -r "$_AX_BOOST_BASE_boost_path/boost"; then
5891 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path"
5894 if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then
5895 for libsubdir in $libsubdirs ; do
5896 if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5897 done
5898 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$libsubdir"
5901 else
5902 if test "x$cross_compiling" != "xyes" ; then
5903 for _AX_BOOST_BASE_boost_path in /usr /usr/local /opt /opt/local ; do
5904 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then
5905 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
5906 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
5907 V_CHECK=`expr $_version_tmp \> $_version`
5908 if test "x$V_CHECK" = "x1" ; then
5909 _version=$_version_tmp
5910 best_path=$_AX_BOOST_BASE_boost_path
5912 done
5914 done
5916 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
5917 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
5918 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5919 for libsubdir in $libsubdirs ; do
5920 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5921 done
5922 BOOST_LDFLAGS="-L$best_path/$libsubdir"
5926 if test -n "$BOOST_ROOT" ; then
5927 for libsubdir in $libsubdirs ; do
5928 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5929 done
5930 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
5931 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
5932 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
5933 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
5934 V_CHECK=`expr $stage_version_shorten \>\= $_version`
5935 if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
5937 printf "%s\n" "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
5938 BOOST_CPPFLAGS="-I$BOOST_ROOT"
5939 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
5945 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
5946 export CPPFLAGS
5947 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
5948 export LDFLAGS
5950 ac_ext=cpp
5951 ac_cpp='$CXXCPP $CPPFLAGS'
5952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h. */
5959 #include <boost/version.hpp>
5962 main (void)
5965 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
5968 return 0;
5970 _ACEOF
5971 if ac_fn_cxx_try_compile "$LINENO"
5972 then :
5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5975 printf "%s\n" "yes" >&6; }
5976 succeeded=yes
5977 found_system=yes
5980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5981 ac_ext=cpp
5982 ac_cpp='$CXXCPP $CPPFLAGS'
5983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5989 if test "x$succeeded" != "xyes" ; then
5990 if test "x$_version" = "x0" ; then
5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version 1.71 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
5992 printf "%s\n" "$as_me: We could not detect the boost libraries (version 1.71 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;}
5993 else
5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
5995 printf "%s\n" "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
5997 # execute ACTION-IF-NOT-FOUND (if present):
5998 as_fn_error $? "Could not find Boost" "$LINENO" 5
5999 else
6001 printf "%s\n" "#define HAVE_BOOST /**/" >>confdefs.h
6003 # execute ACTION-IF-FOUND (if present):
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost CXXFLAGS: \"$BOOST_CPPFLAGS\"" >&5
6005 printf "%s\n" "$as_me: Boost CXXFLAGS: \"$BOOST_CPPFLAGS\"" >&6;}
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost LDFLAGS: \"$BOOST_LDFLAGS\"" >&5
6007 printf "%s\n" "$as_me: Boost LDFLAGS: \"$BOOST_LDFLAGS\"" >&6;}
6010 CPPFLAGS="$CPPFLAGS_SAVED"
6011 LDFLAGS="$LDFLAGS_SAVED"
6018 CXXFLAGS="$BOOST_CPPFLAGS $CXXFLAGS"
6019 LDFLAGS="$BOOST_LDFLAGS $LDFLAGS"
6021 # add workaround for problematic boost version
6022 # taken from ax_boost_base.m4
6026 pkg_failed=no
6027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtorrent-rasterbar >= 2.0.9" >&5
6028 printf %s "checking for libtorrent-rasterbar >= 2.0.9... " >&6; }
6030 if test -n "$libtorrent_CFLAGS"; then
6031 pkg_cv_libtorrent_CFLAGS="$libtorrent_CFLAGS"
6032 elif test -n "$PKG_CONFIG"; then
6033 if test -n "$PKG_CONFIG" && \
6034 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 2.0.9\""; } >&5
6035 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 2.0.9") 2>&5
6036 ac_status=$?
6037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6038 test $ac_status = 0; }; then
6039 pkg_cv_libtorrent_CFLAGS=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 2.0.9" 2>/dev/null`
6040 test "x$?" != "x0" && pkg_failed=yes
6041 else
6042 pkg_failed=yes
6044 else
6045 pkg_failed=untried
6047 if test -n "$libtorrent_LIBS"; then
6048 pkg_cv_libtorrent_LIBS="$libtorrent_LIBS"
6049 elif test -n "$PKG_CONFIG"; then
6050 if test -n "$PKG_CONFIG" && \
6051 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 2.0.9\""; } >&5
6052 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 2.0.9") 2>&5
6053 ac_status=$?
6054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6055 test $ac_status = 0; }; then
6056 pkg_cv_libtorrent_LIBS=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 2.0.9" 2>/dev/null`
6057 test "x$?" != "x0" && pkg_failed=yes
6058 else
6059 pkg_failed=yes
6061 else
6062 pkg_failed=untried
6067 if test $pkg_failed = yes; then
6068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069 printf "%s\n" "no" >&6; }
6071 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6072 _pkg_short_errors_supported=yes
6073 else
6074 _pkg_short_errors_supported=no
6076 if test $_pkg_short_errors_supported = yes; then
6077 libtorrent_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 2.0.9" 2>&1`
6078 else
6079 libtorrent_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 2.0.9" 2>&1`
6081 # Put the nasty error message in config.log where it belongs
6082 echo "$libtorrent_PKG_ERRORS" >&5
6085 pkg_failed=no
6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2" >&5
6087 printf %s "checking for libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2... " >&6; }
6089 if test -n "$libtorrent_CFLAGS"; then
6090 pkg_cv_libtorrent_CFLAGS="$libtorrent_CFLAGS"
6091 elif test -n "$PKG_CONFIG"; then
6092 if test -n "$PKG_CONFIG" && \
6093 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2\""; } >&5
6094 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2") 2>&5
6095 ac_status=$?
6096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6097 test $ac_status = 0; }; then
6098 pkg_cv_libtorrent_CFLAGS=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2" 2>/dev/null`
6099 test "x$?" != "x0" && pkg_failed=yes
6100 else
6101 pkg_failed=yes
6103 else
6104 pkg_failed=untried
6106 if test -n "$libtorrent_LIBS"; then
6107 pkg_cv_libtorrent_LIBS="$libtorrent_LIBS"
6108 elif test -n "$PKG_CONFIG"; then
6109 if test -n "$PKG_CONFIG" && \
6110 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2\""; } >&5
6111 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2") 2>&5
6112 ac_status=$?
6113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6114 test $ac_status = 0; }; then
6115 pkg_cv_libtorrent_LIBS=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2" 2>/dev/null`
6116 test "x$?" != "x0" && pkg_failed=yes
6117 else
6118 pkg_failed=yes
6120 else
6121 pkg_failed=untried
6126 if test $pkg_failed = yes; then
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128 printf "%s\n" "no" >&6; }
6130 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6131 _pkg_short_errors_supported=yes
6132 else
6133 _pkg_short_errors_supported=no
6135 if test $_pkg_short_errors_supported = yes; then
6136 libtorrent_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2" 2>&1`
6137 else
6138 libtorrent_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2" 2>&1`
6140 # Put the nasty error message in config.log where it belongs
6141 echo "$libtorrent_PKG_ERRORS" >&5
6143 as_fn_error $? "Package requirements (libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2) were not met:
6145 $libtorrent_PKG_ERRORS
6147 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6148 installed software in a non-standard prefix.
6150 Alternatively, you may set the environment variables libtorrent_CFLAGS
6151 and libtorrent_LIBS to avoid the need to call pkg-config.
6152 See the pkg-config man page for more details." "$LINENO" 5
6153 elif test $pkg_failed = untried; then
6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 printf "%s\n" "no" >&6; }
6156 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6157 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6158 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6159 is in your PATH or set the PKG_CONFIG environment variable to the full
6160 path to pkg-config.
6162 Alternatively, you may set the environment variables libtorrent_CFLAGS
6163 and libtorrent_LIBS to avoid the need to call pkg-config.
6164 See the pkg-config man page for more details.
6166 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6167 See \`config.log' for more details" "$LINENO" 5; }
6168 else
6169 libtorrent_CFLAGS=$pkg_cv_libtorrent_CFLAGS
6170 libtorrent_LIBS=$pkg_cv_libtorrent_LIBS
6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6172 printf "%s\n" "yes" >&6; }
6173 CXXFLAGS="$libtorrent_CFLAGS $CXXFLAGS" LIBS="$libtorrent_LIBS $LIBS"
6175 elif test $pkg_failed = untried; then
6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 printf "%s\n" "no" >&6; }
6179 pkg_failed=no
6180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2" >&5
6181 printf %s "checking for libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2... " >&6; }
6183 if test -n "$libtorrent_CFLAGS"; then
6184 pkg_cv_libtorrent_CFLAGS="$libtorrent_CFLAGS"
6185 elif test -n "$PKG_CONFIG"; then
6186 if test -n "$PKG_CONFIG" && \
6187 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2\""; } >&5
6188 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2") 2>&5
6189 ac_status=$?
6190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6191 test $ac_status = 0; }; then
6192 pkg_cv_libtorrent_CFLAGS=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2" 2>/dev/null`
6193 test "x$?" != "x0" && pkg_failed=yes
6194 else
6195 pkg_failed=yes
6197 else
6198 pkg_failed=untried
6200 if test -n "$libtorrent_LIBS"; then
6201 pkg_cv_libtorrent_LIBS="$libtorrent_LIBS"
6202 elif test -n "$PKG_CONFIG"; then
6203 if test -n "$PKG_CONFIG" && \
6204 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2\""; } >&5
6205 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2") 2>&5
6206 ac_status=$?
6207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6208 test $ac_status = 0; }; then
6209 pkg_cv_libtorrent_LIBS=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2" 2>/dev/null`
6210 test "x$?" != "x0" && pkg_failed=yes
6211 else
6212 pkg_failed=yes
6214 else
6215 pkg_failed=untried
6220 if test $pkg_failed = yes; then
6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222 printf "%s\n" "no" >&6; }
6224 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6225 _pkg_short_errors_supported=yes
6226 else
6227 _pkg_short_errors_supported=no
6229 if test $_pkg_short_errors_supported = yes; then
6230 libtorrent_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2" 2>&1`
6231 else
6232 libtorrent_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2" 2>&1`
6234 # Put the nasty error message in config.log where it belongs
6235 echo "$libtorrent_PKG_ERRORS" >&5
6237 as_fn_error $? "Package requirements (libtorrent-rasterbar >= 1.2.19 libtorrent-rasterbar < 2) were not met:
6239 $libtorrent_PKG_ERRORS
6241 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6242 installed software in a non-standard prefix.
6244 Alternatively, you may set the environment variables libtorrent_CFLAGS
6245 and libtorrent_LIBS to avoid the need to call pkg-config.
6246 See the pkg-config man page for more details." "$LINENO" 5
6247 elif test $pkg_failed = untried; then
6248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249 printf "%s\n" "no" >&6; }
6250 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6251 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6252 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6253 is in your PATH or set the PKG_CONFIG environment variable to the full
6254 path to pkg-config.
6256 Alternatively, you may set the environment variables libtorrent_CFLAGS
6257 and libtorrent_LIBS to avoid the need to call pkg-config.
6258 See the pkg-config man page for more details.
6260 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6261 See \`config.log' for more details" "$LINENO" 5; }
6262 else
6263 libtorrent_CFLAGS=$pkg_cv_libtorrent_CFLAGS
6264 libtorrent_LIBS=$pkg_cv_libtorrent_LIBS
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6266 printf "%s\n" "yes" >&6; }
6267 CXXFLAGS="$libtorrent_CFLAGS $CXXFLAGS" LIBS="$libtorrent_LIBS $LIBS"
6269 else
6270 libtorrent_CFLAGS=$pkg_cv_libtorrent_CFLAGS
6271 libtorrent_LIBS=$pkg_cv_libtorrent_LIBS
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6273 printf "%s\n" "yes" >&6; }
6274 CXXFLAGS="$libtorrent_CFLAGS $CXXFLAGS" LIBS="$libtorrent_LIBS $LIBS" QBT_ADD_DEFINES="$QBT_ADD_DEFINES QBT_USES_LIBTORRENT2"
6278 pkg_failed=no
6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.1.1" >&5
6280 printf %s "checking for openssl >= 1.1.1... " >&6; }
6282 if test -n "$openssl_CFLAGS"; then
6283 pkg_cv_openssl_CFLAGS="$openssl_CFLAGS"
6284 elif test -n "$PKG_CONFIG"; then
6285 if test -n "$PKG_CONFIG" && \
6286 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.1\""; } >&5
6287 ($PKG_CONFIG --exists --print-errors "openssl >= 1.1.1") 2>&5
6288 ac_status=$?
6289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6290 test $ac_status = 0; }; then
6291 pkg_cv_openssl_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.1.1" 2>/dev/null`
6292 test "x$?" != "x0" && pkg_failed=yes
6293 else
6294 pkg_failed=yes
6296 else
6297 pkg_failed=untried
6299 if test -n "$openssl_LIBS"; then
6300 pkg_cv_openssl_LIBS="$openssl_LIBS"
6301 elif test -n "$PKG_CONFIG"; then
6302 if test -n "$PKG_CONFIG" && \
6303 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.1\""; } >&5
6304 ($PKG_CONFIG --exists --print-errors "openssl >= 1.1.1") 2>&5
6305 ac_status=$?
6306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6307 test $ac_status = 0; }; then
6308 pkg_cv_openssl_LIBS=`$PKG_CONFIG --libs "openssl >= 1.1.1" 2>/dev/null`
6309 test "x$?" != "x0" && pkg_failed=yes
6310 else
6311 pkg_failed=yes
6313 else
6314 pkg_failed=untried
6319 if test $pkg_failed = yes; then
6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 printf "%s\n" "no" >&6; }
6323 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6324 _pkg_short_errors_supported=yes
6325 else
6326 _pkg_short_errors_supported=no
6328 if test $_pkg_short_errors_supported = yes; then
6329 openssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.1.1" 2>&1`
6330 else
6331 openssl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.1.1" 2>&1`
6333 # Put the nasty error message in config.log where it belongs
6334 echo "$openssl_PKG_ERRORS" >&5
6336 as_fn_error $? "Package requirements (openssl >= 1.1.1) were not met:
6338 $openssl_PKG_ERRORS
6340 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6341 installed software in a non-standard prefix.
6343 Alternatively, you may set the environment variables openssl_CFLAGS
6344 and openssl_LIBS to avoid the need to call pkg-config.
6345 See the pkg-config man page for more details." "$LINENO" 5
6346 elif test $pkg_failed = untried; then
6347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 printf "%s\n" "no" >&6; }
6349 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6350 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6351 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6352 is in your PATH or set the PKG_CONFIG environment variable to the full
6353 path to pkg-config.
6355 Alternatively, you may set the environment variables openssl_CFLAGS
6356 and openssl_LIBS to avoid the need to call pkg-config.
6357 See the pkg-config man page for more details.
6359 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6360 See \`config.log' for more details" "$LINENO" 5; }
6361 else
6362 openssl_CFLAGS=$pkg_cv_openssl_CFLAGS
6363 openssl_LIBS=$pkg_cv_openssl_LIBS
6364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6365 printf "%s\n" "yes" >&6; }
6366 CXXFLAGS="$openssl_CFLAGS $CXXFLAGS"
6367 LIBS="$openssl_LIBS $LIBS"
6371 pkg_failed=no
6372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.2.11" >&5
6373 printf %s "checking for zlib >= 1.2.11... " >&6; }
6375 if test -n "$zlib_CFLAGS"; then
6376 pkg_cv_zlib_CFLAGS="$zlib_CFLAGS"
6377 elif test -n "$PKG_CONFIG"; then
6378 if test -n "$PKG_CONFIG" && \
6379 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.11\""; } >&5
6380 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.11") 2>&5
6381 ac_status=$?
6382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6383 test $ac_status = 0; }; then
6384 pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.11" 2>/dev/null`
6385 test "x$?" != "x0" && pkg_failed=yes
6386 else
6387 pkg_failed=yes
6389 else
6390 pkg_failed=untried
6392 if test -n "$zlib_LIBS"; then
6393 pkg_cv_zlib_LIBS="$zlib_LIBS"
6394 elif test -n "$PKG_CONFIG"; then
6395 if test -n "$PKG_CONFIG" && \
6396 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.11\""; } >&5
6397 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.11") 2>&5
6398 ac_status=$?
6399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6400 test $ac_status = 0; }; then
6401 pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.11" 2>/dev/null`
6402 test "x$?" != "x0" && pkg_failed=yes
6403 else
6404 pkg_failed=yes
6406 else
6407 pkg_failed=untried
6412 if test $pkg_failed = yes; then
6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414 printf "%s\n" "no" >&6; }
6416 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6417 _pkg_short_errors_supported=yes
6418 else
6419 _pkg_short_errors_supported=no
6421 if test $_pkg_short_errors_supported = yes; then
6422 zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.11" 2>&1`
6423 else
6424 zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.11" 2>&1`
6426 # Put the nasty error message in config.log where it belongs
6427 echo "$zlib_PKG_ERRORS" >&5
6429 as_fn_error $? "Package requirements (zlib >= 1.2.11) were not met:
6431 $zlib_PKG_ERRORS
6433 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6434 installed software in a non-standard prefix.
6436 Alternatively, you may set the environment variables zlib_CFLAGS
6437 and zlib_LIBS to avoid the need to call pkg-config.
6438 See the pkg-config man page for more details." "$LINENO" 5
6439 elif test $pkg_failed = untried; then
6440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 printf "%s\n" "no" >&6; }
6442 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6443 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6444 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6445 is in your PATH or set the PKG_CONFIG environment variable to the full
6446 path to pkg-config.
6448 Alternatively, you may set the environment variables zlib_CFLAGS
6449 and zlib_LIBS to avoid the need to call pkg-config.
6450 See the pkg-config man page for more details.
6452 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6453 See \`config.log' for more details" "$LINENO" 5; }
6454 else
6455 zlib_CFLAGS=$pkg_cv_zlib_CFLAGS
6456 zlib_LIBS=$pkg_cv_zlib_LIBS
6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6458 printf "%s\n" "yes" >&6; }
6459 CXXFLAGS="$zlib_CFLAGS $CXXFLAGS"
6460 LIBS="$zlib_LIBS $LIBS"
6463 # Check if already in >= C++17 mode because of the flags returned by one of the above packages
6464 TMP_CXXFLAGS="$CXXFLAGS"
6465 CXXFLAGS=""
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler defaults to C++17 or later mode" >&5
6467 printf %s "checking if compiler defaults to C++17 or later mode... " >&6; }
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6471 #ifndef __cplusplus
6472 #error "This is not a C++ compiler"
6473 #elif __cplusplus < 201703L
6474 #error "This is not a C++17 compiler"
6475 #endif
6477 main (void)
6481 return 0;
6484 _ACEOF
6485 if ac_fn_cxx_try_compile "$LINENO"
6486 then :
6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6488 printf "%s\n" "yes" >&6; }
6489 QBT_CXX17_FOUND="yes"
6490 else $as_nop
6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 printf "%s\n" "no" >&6; }
6493 QBT_CXX17_FOUND="no"
6495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6497 # In case of no, check if the compiler can support at least C++17
6498 # and if yes, enable it leaving a warning to the user
6499 if test "x$QBT_CXX17_FOUND" = "xno"
6500 then :
6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports C++17" >&5
6502 printf %s "checking if compiler supports C++17... " >&6; }
6503 CXXFLAGS="-std=c++17"
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6507 #ifndef __cplusplus
6508 #error "This is not a C++ compiler"
6509 #elif __cplusplus < 201703L
6510 #error "This is not a C++17 compiler"
6511 #endif
6513 main (void)
6517 return 0;
6520 _ACEOF
6521 if ac_fn_cxx_try_compile "$LINENO"
6522 then :
6523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6524 printf "%s\n" "yes" >&6; }
6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C++17 is disabled by the set compiler flags" >&5
6526 printf %s "checking if C++17 is disabled by the set compiler flags... " >&6; }
6527 # prepend the flag so it won't override conflicting user defined flags
6528 CXXFLAGS="-std=c++17 $TMP_CXXFLAGS"
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6532 #ifndef __cplusplus
6533 #error "This is not a C++ compiler"
6534 #elif __cplusplus < 201703L
6535 #error "This is not a C++17 compiler"
6536 #endif
6538 main (void)
6542 return 0;
6545 _ACEOF
6546 if ac_fn_cxx_try_compile "$LINENO"
6547 then :
6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6549 printf "%s\n" "no" >&6; }
6550 QBT_ADD_CONFIG="$QBT_ADD_CONFIG c++17"
6551 { 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
6552 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;}
6553 else $as_nop
6554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6555 printf "%s\n" "yes" >&6; }
6556 as_fn_error $? "The compiler supports C++17 but the user or a dependency has explicitly enabled a lower mode." "$LINENO" 5
6558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6559 else $as_nop
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 printf "%s\n" "no" >&6; }
6562 as_fn_error $? "A compiler supporting C++17 is required." "$LINENO" 5
6564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6567 CXXFLAGS="$TMP_CXXFLAGS"
6569 # These are required because autoconf doesn't expand these **particular**
6570 # vars automatically. And qmake cannot autoexpand them.
6572 prefix_NONE=
6573 exec_prefix_NONE=
6574 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
6575 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
6576 eval ax_define_dir="\"$prefix\""
6577 eval ax_define_dir="\"$ax_define_dir\""
6578 EXPAND_PREFIX="$ax_define_dir"
6580 printf "%s\n" "#define EXPAND_PREFIX \"$ax_define_dir\"" >>confdefs.h
6582 test "$prefix_NONE" && prefix=NONE
6583 test "$exec_prefix_NONE" && exec_prefix=NONE
6586 prefix_NONE=
6587 exec_prefix_NONE=
6588 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
6589 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
6590 eval ax_define_dir="\"$bindir\""
6591 eval ax_define_dir="\"$ax_define_dir\""
6592 EXPAND_BINDIR="$ax_define_dir"
6594 printf "%s\n" "#define EXPAND_BINDIR \"$ax_define_dir\"" >>confdefs.h
6596 test "$prefix_NONE" && prefix=NONE
6597 test "$exec_prefix_NONE" && exec_prefix=NONE
6600 prefix_NONE=
6601 exec_prefix_NONE=
6602 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
6603 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
6604 eval ax_define_dir="\"$datadir\""
6605 eval ax_define_dir="\"$ax_define_dir\""
6606 EXPAND_DATADIR="$ax_define_dir"
6608 printf "%s\n" "#define EXPAND_DATADIR \"$ax_define_dir\"" >>confdefs.h
6610 test "$prefix_NONE" && prefix=NONE
6611 test "$exec_prefix_NONE" && exec_prefix=NONE
6614 prefix_NONE=
6615 exec_prefix_NONE=
6616 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
6617 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
6618 eval ax_define_dir="\"$mandir\""
6619 eval ax_define_dir="\"$ax_define_dir\""
6620 EXPAND_MANDIR="$ax_define_dir"
6622 printf "%s\n" "#define EXPAND_MANDIR \"$ax_define_dir\"" >>confdefs.h
6624 test "$prefix_NONE" && prefix=NONE
6625 test "$exec_prefix_NONE" && exec_prefix=NONE
6628 # Original extract() function contributed by pmzqla
6629 # $*: Strings to parse
6630 # Set $QBT_CONF_DEFINES, $QBT_CONF_INCLUDES, $QBT_CONF_EXTRA_CFLAGS
6631 extract() {
6632 if [ -z "$*" ]; then
6633 echo "Input string required"
6634 return 1
6637 # BSD sed needs an actual newline character in the substitute command
6638 new_line='
6640 # Convert " -" to "\n" if not between quotes and remove possible leading white spaces
6641 string=$(echo " $*" | $SED -e "s: -:\\${new_line}:g" -e 's:"\(.*\)\n\(.*\)":\"\1 -\2":g' -e "s:'\(.*\)\n\(.*\)':\'\1 -\2':g" -e 's/^[[:space:]]*//')
6642 SAVEIFS=$IFS
6643 IFS=$(printf "\n\b")
6644 for i in $string; do
6645 case "$(echo "$i" | cut -c1)" in
6646 '') ;;
6647 D) QBT_CONF_DEFINES="$QBT_CONF_DEFINES $(echo $i | cut -c2-)";;
6648 I) QBT_CONF_INCLUDES="$QBT_CONF_INCLUDES $(echo $i | cut -c2-)";;
6649 *) QBT_CONF_EXTRA_CFLAGS="$QBT_CONF_EXTRA_CFLAGS -$i";;
6650 esac
6651 done
6652 IFS=$SAVEIFS
6655 extract "$CFLAGS $CXXFLAGS"
6656 QBT_ADD_DEFINES="$QBT_ADD_DEFINES $QBT_CONF_DEFINES"
6658 # Substitute the values of these vars in conf.pri.in
6668 QBT_CONFIG_FILES="conf.pri"
6670 if test "x$enable_systemd" = "xyes"
6671 then :
6672 QBT_CONFIG_FILES="$QBT_CONFIG_FILES dist/unix/systemd/qbittorrent-nox@.service"
6675 ac_config_files="$ac_config_files "$QBT_CONFIG_FILES""
6677 cat >confcache <<\_ACEOF
6678 # This file is a shell script that caches the results of configure
6679 # tests run on this system so they can be shared between configure
6680 # scripts and configure runs, see configure's option --config-cache.
6681 # It is not useful on other systems. If it contains results you don't
6682 # want to keep, you may remove or edit it.
6684 # config.status only pays attention to the cache file if you give it
6685 # the --recheck option to rerun configure.
6687 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6688 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6689 # following values.
6691 _ACEOF
6693 # The following way of writing the cache mishandles newlines in values,
6694 # but we know of no workaround that is simple, portable, and efficient.
6695 # So, we kill variables containing newlines.
6696 # Ultrix sh set writes to stderr and can't be redirected directly,
6697 # and sets the high bit in the cache file unless we assign to the vars.
6699 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6700 eval ac_val=\$$ac_var
6701 case $ac_val in #(
6702 *${as_nl}*)
6703 case $ac_var in #(
6704 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6705 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6706 esac
6707 case $ac_var in #(
6708 _ | IFS | as_nl) ;; #(
6709 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6710 *) { eval $ac_var=; unset $ac_var;} ;;
6711 esac ;;
6712 esac
6713 done
6715 (set) 2>&1 |
6716 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6717 *${as_nl}ac_space=\ *)
6718 # `set' does not quote correctly, so add quotes: double-quote
6719 # substitution turns \\\\ into \\, and sed turns \\ into \.
6720 sed -n \
6721 "s/'/'\\\\''/g;
6722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6723 ;; #(
6725 # `set' quotes correctly as required by POSIX, so do not add quotes.
6726 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6728 esac |
6729 sort
6731 sed '
6732 /^ac_cv_env_/b end
6733 t clear
6734 :clear
6735 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6736 t end
6737 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6738 :end' >>confcache
6739 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6740 if test -w "$cache_file"; then
6741 if test "x$cache_file" != "x/dev/null"; then
6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6743 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6744 if test ! -f "$cache_file" || test -h "$cache_file"; then
6745 cat confcache >"$cache_file"
6746 else
6747 case $cache_file in #(
6748 */* | ?:*)
6749 mv -f confcache "$cache_file"$$ &&
6750 mv -f "$cache_file"$$ "$cache_file" ;; #(
6752 mv -f confcache "$cache_file" ;;
6753 esac
6756 else
6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6758 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6761 rm -f confcache
6763 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6764 # Let make expand exec_prefix.
6765 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6767 # Transform confdefs.h into DEFS.
6768 # Protect against shell expansion while executing Makefile rules.
6769 # Protect against Makefile macro expansion.
6771 # If the first sed substitution is executed (which looks for macros that
6772 # take arguments), then branch to the quote section. Otherwise,
6773 # look for a macro that doesn't take arguments.
6774 ac_script='
6775 :mline
6776 /\\$/{
6778 s,\\\n,,
6779 b mline
6781 t clear
6782 :clear
6783 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
6784 t quote
6785 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
6786 t quote
6787 b any
6788 :quote
6789 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6790 s/\[/\\&/g
6791 s/\]/\\&/g
6792 s/\$/$$/g
6794 :any
6797 s/^\n//
6798 s/\n/ /g
6802 DEFS=`sed -n "$ac_script" confdefs.h`
6805 ac_libobjs=
6806 ac_ltlibobjs=
6808 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6809 # 1. Remove the extension, and $U if already installed.
6810 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6811 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6812 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6813 # will be set to the directory where LIBOBJS objects are built.
6814 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6815 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6816 done
6817 LIBOBJS=$ac_libobjs
6819 LTLIBOBJS=$ac_ltlibobjs
6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6823 printf %s "checking that generated files are newer than configure... " >&6; }
6824 if test -n "$am_sleep_pid"; then
6825 # Hide warnings about reused PIDs.
6826 wait $am_sleep_pid 2>/dev/null
6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
6829 printf "%s\n" "done" >&6; }
6830 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6831 as_fn_error $? "conditional \"AMDEP\" was never defined.
6832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6834 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6835 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6838 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6839 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
6840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6842 if test -n "$EXEEXT"; then
6843 am__EXEEXT_TRUE=
6844 am__EXEEXT_FALSE='#'
6845 else
6846 am__EXEEXT_TRUE='#'
6847 am__EXEEXT_FALSE=
6851 : "${CONFIG_STATUS=./config.status}"
6852 ac_write_fail=0
6853 ac_clean_files_save=$ac_clean_files
6854 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6856 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6857 as_write_fail=0
6858 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6859 #! $SHELL
6860 # Generated by $as_me.
6861 # Run this file to recreate the current configuration.
6862 # Compiler output produced by configure, useful for debugging
6863 # configure, is in config.log if it exists.
6865 debug=false
6866 ac_cs_recheck=false
6867 ac_cs_silent=false
6869 SHELL=\${CONFIG_SHELL-$SHELL}
6870 export SHELL
6871 _ASEOF
6872 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6873 ## -------------------- ##
6874 ## M4sh Initialization. ##
6875 ## -------------------- ##
6877 # Be more Bourne compatible
6878 DUALCASE=1; export DUALCASE # for MKS sh
6879 as_nop=:
6880 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6881 then :
6882 emulate sh
6883 NULLCMD=:
6884 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6885 # is contrary to our usage. Disable this feature.
6886 alias -g '${1+"$@"}'='"$@"'
6887 setopt NO_GLOB_SUBST
6888 else $as_nop
6889 case `(set -o) 2>/dev/null` in #(
6890 *posix*) :
6891 set -o posix ;; #(
6892 *) :
6894 esac
6899 # Reset variables that may have inherited troublesome values from
6900 # the environment.
6902 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6903 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6904 # side effect of setting IFS to empty, thus disabling word splitting.)
6905 # Quoting is to prevent editors from complaining about space-tab.
6906 as_nl='
6908 export as_nl
6909 IFS=" "" $as_nl"
6911 PS1='$ '
6912 PS2='> '
6913 PS4='+ '
6915 # Ensure predictable behavior from utilities with locale-dependent output.
6916 LC_ALL=C
6917 export LC_ALL
6918 LANGUAGE=C
6919 export LANGUAGE
6921 # We cannot yet rely on "unset" to work, but we need these variables
6922 # to be unset--not just set to an empty or harmless value--now, to
6923 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6924 # also avoids known problems related to "unset" and subshell syntax
6925 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6926 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6927 do eval test \${$as_var+y} \
6928 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6929 done
6931 # Ensure that fds 0, 1, and 2 are open.
6932 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
6933 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
6934 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
6936 # The user is always right.
6937 if ${PATH_SEPARATOR+false} :; then
6938 PATH_SEPARATOR=:
6939 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6940 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6941 PATH_SEPARATOR=';'
6946 # Find who we are. Look in the path if we contain no directory separator.
6947 as_myself=
6948 case $0 in #((
6949 *[\\/]* ) as_myself=$0 ;;
6950 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6953 IFS=$as_save_IFS
6954 case $as_dir in #(((
6955 '') as_dir=./ ;;
6956 */) ;;
6957 *) as_dir=$as_dir/ ;;
6958 esac
6959 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
6960 done
6961 IFS=$as_save_IFS
6964 esac
6965 # We did not find ourselves, most probably we were run as `sh COMMAND'
6966 # in which case we are not to be found in the path.
6967 if test "x$as_myself" = x; then
6968 as_myself=$0
6970 if test ! -f "$as_myself"; then
6971 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6972 exit 1
6977 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6978 # ----------------------------------------
6979 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6980 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6981 # script with STATUS, using 1 if that was 0.
6982 as_fn_error ()
6984 as_status=$1; test $as_status -eq 0 && as_status=1
6985 if test "$4"; then
6986 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6989 printf "%s\n" "$as_me: error: $2" >&2
6990 as_fn_exit $as_status
6991 } # as_fn_error
6995 # as_fn_set_status STATUS
6996 # -----------------------
6997 # Set $? to STATUS, without forking.
6998 as_fn_set_status ()
7000 return $1
7001 } # as_fn_set_status
7003 # as_fn_exit STATUS
7004 # -----------------
7005 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7006 as_fn_exit ()
7008 set +e
7009 as_fn_set_status $1
7010 exit $1
7011 } # as_fn_exit
7013 # as_fn_unset VAR
7014 # ---------------
7015 # Portably unset VAR.
7016 as_fn_unset ()
7018 { eval $1=; unset $1;}
7020 as_unset=as_fn_unset
7022 # as_fn_append VAR VALUE
7023 # ----------------------
7024 # Append the text in VALUE to the end of the definition contained in VAR. Take
7025 # advantage of any shell optimizations that allow amortized linear growth over
7026 # repeated appends, instead of the typical quadratic growth present in naive
7027 # implementations.
7028 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
7029 then :
7030 eval 'as_fn_append ()
7032 eval $1+=\$2
7034 else $as_nop
7035 as_fn_append ()
7037 eval $1=\$$1\$2
7039 fi # as_fn_append
7041 # as_fn_arith ARG...
7042 # ------------------
7043 # Perform arithmetic evaluation on the ARGs, and store the result in the
7044 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7045 # must be portable across $(()) and expr.
7046 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
7047 then :
7048 eval 'as_fn_arith ()
7050 as_val=$(( $* ))
7052 else $as_nop
7053 as_fn_arith ()
7055 as_val=`expr "$@" || test $? -eq 1`
7057 fi # as_fn_arith
7060 if expr a : '\(a\)' >/dev/null 2>&1 &&
7061 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7062 as_expr=expr
7063 else
7064 as_expr=false
7067 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7068 as_basename=basename
7069 else
7070 as_basename=false
7073 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7074 as_dirname=dirname
7075 else
7076 as_dirname=false
7079 as_me=`$as_basename -- "$0" ||
7080 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7081 X"$0" : 'X\(//\)$' \| \
7082 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7083 printf "%s\n" X/"$0" |
7084 sed '/^.*\/\([^/][^/]*\)\/*$/{
7085 s//\1/
7088 /^X\/\(\/\/\)$/{
7089 s//\1/
7092 /^X\/\(\/\).*/{
7093 s//\1/
7096 s/.*/./; q'`
7098 # Avoid depending upon Character Ranges.
7099 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7100 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7101 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7102 as_cr_digits='0123456789'
7103 as_cr_alnum=$as_cr_Letters$as_cr_digits
7106 # Determine whether it's possible to make 'echo' print without a newline.
7107 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
7108 # for compatibility with existing Makefiles.
7109 ECHO_C= ECHO_N= ECHO_T=
7110 case `echo -n x` in #(((((
7111 -n*)
7112 case `echo 'xy\c'` in
7113 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7114 xy) ECHO_C='\c';;
7115 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7116 ECHO_T=' ';;
7117 esac;;
7119 ECHO_N='-n';;
7120 esac
7122 # For backward compatibility with old third-party macros, we provide
7123 # the shell variables $as_echo and $as_echo_n. New code should use
7124 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
7125 as_echo='printf %s\n'
7126 as_echo_n='printf %s'
7128 rm -f conf$$ conf$$.exe conf$$.file
7129 if test -d conf$$.dir; then
7130 rm -f conf$$.dir/conf$$.file
7131 else
7132 rm -f conf$$.dir
7133 mkdir conf$$.dir 2>/dev/null
7135 if (echo >conf$$.file) 2>/dev/null; then
7136 if ln -s conf$$.file conf$$ 2>/dev/null; then
7137 as_ln_s='ln -s'
7138 # ... but there are two gotchas:
7139 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7140 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7141 # In both cases, we have to default to `cp -pR'.
7142 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7143 as_ln_s='cp -pR'
7144 elif ln conf$$.file conf$$ 2>/dev/null; then
7145 as_ln_s=ln
7146 else
7147 as_ln_s='cp -pR'
7149 else
7150 as_ln_s='cp -pR'
7152 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7153 rmdir conf$$.dir 2>/dev/null
7156 # as_fn_mkdir_p
7157 # -------------
7158 # Create "$as_dir" as a directory, including parents if necessary.
7159 as_fn_mkdir_p ()
7162 case $as_dir in #(
7163 -*) as_dir=./$as_dir;;
7164 esac
7165 test -d "$as_dir" || eval $as_mkdir_p || {
7166 as_dirs=
7167 while :; do
7168 case $as_dir in #(
7169 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7170 *) as_qdir=$as_dir;;
7171 esac
7172 as_dirs="'$as_qdir' $as_dirs"
7173 as_dir=`$as_dirname -- "$as_dir" ||
7174 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7175 X"$as_dir" : 'X\(//\)[^/]' \| \
7176 X"$as_dir" : 'X\(//\)$' \| \
7177 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7178 printf "%s\n" X"$as_dir" |
7179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7180 s//\1/
7183 /^X\(\/\/\)[^/].*/{
7184 s//\1/
7187 /^X\(\/\/\)$/{
7188 s//\1/
7191 /^X\(\/\).*/{
7192 s//\1/
7195 s/.*/./; q'`
7196 test -d "$as_dir" && break
7197 done
7198 test -z "$as_dirs" || eval "mkdir $as_dirs"
7199 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7202 } # as_fn_mkdir_p
7203 if mkdir -p . 2>/dev/null; then
7204 as_mkdir_p='mkdir -p "$as_dir"'
7205 else
7206 test -d ./-p && rmdir ./-p
7207 as_mkdir_p=false
7211 # as_fn_executable_p FILE
7212 # -----------------------
7213 # Test if FILE is an executable regular file.
7214 as_fn_executable_p ()
7216 test -f "$1" && test -x "$1"
7217 } # as_fn_executable_p
7218 as_test_x='test -x'
7219 as_executable_p=as_fn_executable_p
7221 # Sed expression to map a string onto a valid CPP name.
7222 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7224 # Sed expression to map a string onto a valid variable name.
7225 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7228 exec 6>&1
7229 ## ----------------------------------- ##
7230 ## Main body of $CONFIG_STATUS script. ##
7231 ## ----------------------------------- ##
7232 _ASEOF
7233 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7236 # Save the log message, to keep $0 and so on meaningful, and to
7237 # report actual input values of CONFIG_FILES etc. instead of their
7238 # values after options handling.
7239 ac_log="
7240 This file was extended by qbittorrent $as_me v4.6.0beta2, which was
7241 generated by GNU Autoconf 2.71. Invocation command line was
7243 CONFIG_FILES = $CONFIG_FILES
7244 CONFIG_HEADERS = $CONFIG_HEADERS
7245 CONFIG_LINKS = $CONFIG_LINKS
7246 CONFIG_COMMANDS = $CONFIG_COMMANDS
7247 $ $0 $@
7249 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7252 _ACEOF
7254 case $ac_config_files in *"
7255 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7256 esac
7260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7261 # Files that config.status was made for.
7262 config_files="$ac_config_files"
7263 config_commands="$ac_config_commands"
7265 _ACEOF
7267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7268 ac_cs_usage="\
7269 \`$as_me' instantiates files and other configuration actions
7270 from templates according to the current configuration. Unless the files
7271 and actions are specified as TAGs, all are instantiated by default.
7273 Usage: $0 [OPTION]... [TAG]...
7275 -h, --help print this help, then exit
7276 -V, --version print version number and configuration settings, then exit
7277 --config print configuration, then exit
7278 -q, --quiet, --silent
7279 do not print progress messages
7280 -d, --debug don't remove temporary files
7281 --recheck update $as_me by reconfiguring in the same conditions
7282 --file=FILE[:TEMPLATE]
7283 instantiate the configuration file FILE
7285 Configuration files:
7286 $config_files
7288 Configuration commands:
7289 $config_commands
7291 Report bugs to <bugs.qbittorrent.org>.
7292 qbittorrent home page: <https://www.qbittorrent.org/>."
7294 _ACEOF
7295 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7296 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7298 ac_cs_config='$ac_cs_config_escaped'
7299 ac_cs_version="\\
7300 qbittorrent config.status v4.6.0beta2
7301 configured by $0, generated by GNU Autoconf 2.71,
7302 with options \\"\$ac_cs_config\\"
7304 Copyright (C) 2021 Free Software Foundation, Inc.
7305 This config.status script is free software; the Free Software Foundation
7306 gives unlimited permission to copy, distribute and modify it."
7308 ac_pwd='$ac_pwd'
7309 srcdir='$srcdir'
7310 INSTALL='$INSTALL'
7311 MKDIR_P='$MKDIR_P'
7312 AWK='$AWK'
7313 test -n "\$AWK" || AWK=awk
7314 _ACEOF
7316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7317 # The default lists apply if the user does not specify any file.
7318 ac_need_defaults=:
7319 while test $# != 0
7321 case $1 in
7322 --*=?*)
7323 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7324 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7325 ac_shift=:
7327 --*=)
7328 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7329 ac_optarg=
7330 ac_shift=:
7333 ac_option=$1
7334 ac_optarg=$2
7335 ac_shift=shift
7337 esac
7339 case $ac_option in
7340 # Handling of the options.
7341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7342 ac_cs_recheck=: ;;
7343 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7344 printf "%s\n" "$ac_cs_version"; exit ;;
7345 --config | --confi | --conf | --con | --co | --c )
7346 printf "%s\n" "$ac_cs_config"; exit ;;
7347 --debug | --debu | --deb | --de | --d | -d )
7348 debug=: ;;
7349 --file | --fil | --fi | --f )
7350 $ac_shift
7351 case $ac_optarg in
7352 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7353 '') as_fn_error $? "missing file argument" ;;
7354 esac
7355 as_fn_append CONFIG_FILES " '$ac_optarg'"
7356 ac_need_defaults=false;;
7357 --he | --h | --help | --hel | -h )
7358 printf "%s\n" "$ac_cs_usage"; exit ;;
7359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7360 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7361 ac_cs_silent=: ;;
7363 # This is an error.
7364 -*) as_fn_error $? "unrecognized option: \`$1'
7365 Try \`$0 --help' for more information." ;;
7367 *) as_fn_append ac_config_targets " $1"
7368 ac_need_defaults=false ;;
7370 esac
7371 shift
7372 done
7374 ac_configure_extra_args=
7376 if $ac_cs_silent; then
7377 exec 6>/dev/null
7378 ac_configure_extra_args="$ac_configure_extra_args --silent"
7381 _ACEOF
7382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7383 if \$ac_cs_recheck; then
7384 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7385 shift
7386 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7387 CONFIG_SHELL='$SHELL'
7388 export CONFIG_SHELL
7389 exec "\$@"
7392 _ACEOF
7393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7394 exec 5>>config.log
7396 echo
7397 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7398 ## Running $as_me. ##
7399 _ASBOX
7400 printf "%s\n" "$ac_log"
7401 } >&5
7403 _ACEOF
7404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7406 # INIT-COMMANDS
7408 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
7410 _ACEOF
7412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7414 # Handling of arguments.
7415 for ac_config_target in $ac_config_targets
7417 case $ac_config_target in
7418 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7419 ""$QBT_CONFIG_FILES"") CONFIG_FILES="$CONFIG_FILES "$QBT_CONFIG_FILES"" ;;
7421 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7422 esac
7423 done
7426 # If the user did not use the arguments to specify the items to instantiate,
7427 # then the envvar interface is used. Set only those that are not.
7428 # We use the long form for the default assignment because of an extremely
7429 # bizarre bug on SunOS 4.1.3.
7430 if $ac_need_defaults; then
7431 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
7432 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
7435 # Have a temporary directory for convenience. Make it in the build tree
7436 # simply because there is no reason against having it here, and in addition,
7437 # creating and moving files from /tmp can sometimes cause problems.
7438 # Hook for its removal unless debugging.
7439 # Note that there is a small window in which the directory will not be cleaned:
7440 # after its creation but before its name has been assigned to `$tmp'.
7441 $debug ||
7443 tmp= ac_tmp=
7444 trap 'exit_status=$?
7445 : "${ac_tmp:=$tmp}"
7446 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7448 trap 'as_fn_exit 1' 1 2 13 15
7450 # Create a (secure) tmp directory for tmp files.
7453 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7454 test -d "$tmp"
7455 } ||
7457 tmp=./conf$$-$RANDOM
7458 (umask 077 && mkdir "$tmp")
7459 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7460 ac_tmp=$tmp
7462 # Set up the scripts for CONFIG_FILES section.
7463 # No need to generate them if there are no CONFIG_FILES.
7464 # This happens for instance with `./config.status config.h'.
7465 if test -n "$CONFIG_FILES"; then
7468 ac_cr=`echo X | tr X '\015'`
7469 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7470 # But we know of no other shell where ac_cr would be empty at this
7471 # point, so we can use a bashism as a fallback.
7472 if test "x$ac_cr" = x; then
7473 eval ac_cr=\$\'\\r\'
7475 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7476 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7477 ac_cs_awk_cr='\\r'
7478 else
7479 ac_cs_awk_cr=$ac_cr
7482 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7483 _ACEOF
7487 echo "cat >conf$$subs.awk <<_ACEOF" &&
7488 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7489 echo "_ACEOF"
7490 } >conf$$subs.sh ||
7491 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7492 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7493 ac_delim='%!_!# '
7494 for ac_last_try in false false false false false :; do
7495 . ./conf$$subs.sh ||
7496 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7498 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7499 if test $ac_delim_n = $ac_delim_num; then
7500 break
7501 elif $ac_last_try; then
7502 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7503 else
7504 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7506 done
7507 rm -f conf$$subs.sh
7509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7510 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7511 _ACEOF
7512 sed -n '
7514 s/^/S["/; s/!.*/"]=/
7517 s/^[^!]*!//
7518 :repl
7519 t repl
7520 s/'"$ac_delim"'$//
7521 t delim
7524 s/\(.\{148\}\)..*/\1/
7525 t more1
7526 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7529 b repl
7530 :more1
7531 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7534 s/.\{148\}//
7535 t nl
7536 :delim
7538 s/\(.\{148\}\)..*/\1/
7539 t more2
7540 s/["\\]/\\&/g; s/^/"/; s/$/"/
7543 :more2
7544 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7547 s/.\{148\}//
7548 t delim
7549 ' <conf$$subs.awk | sed '
7550 /^[^""]/{
7552 s/\n//
7554 ' >>$CONFIG_STATUS || ac_write_fail=1
7555 rm -f conf$$subs.awk
7556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7557 _ACAWK
7558 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7559 for (key in S) S_is_set[key] = 1
7560 FS = "\a"
7564 line = $ 0
7565 nfields = split(line, field, "@")
7566 substed = 0
7567 len = length(field[1])
7568 for (i = 2; i < nfields; i++) {
7569 key = field[i]
7570 keylen = length(key)
7571 if (S_is_set[key]) {
7572 value = S[key]
7573 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7574 len += length(value) + length(field[++i])
7575 substed = 1
7576 } else
7577 len += 1 + keylen
7580 print line
7583 _ACAWK
7584 _ACEOF
7585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7586 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7587 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7588 else
7590 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7591 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7592 _ACEOF
7594 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7595 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7596 # trailing colons and then remove the whole line if VPATH becomes empty
7597 # (actually we leave an empty line to preserve line numbers).
7598 if test "x$srcdir" = x.; then
7599 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7601 s///
7602 s/^/:/
7603 s/[ ]*$/:/
7604 s/:\$(srcdir):/:/g
7605 s/:\${srcdir}:/:/g
7606 s/:@srcdir@:/:/g
7607 s/^:*//
7608 s/:*$//
7610 s/\(=[ ]*\).*/\1/
7612 s/\n//
7613 s/^[^=]*=[ ]*$//
7617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7618 fi # test -n "$CONFIG_FILES"
7621 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
7622 shift
7623 for ac_tag
7625 case $ac_tag in
7626 :[FHLC]) ac_mode=$ac_tag; continue;;
7627 esac
7628 case $ac_mode$ac_tag in
7629 :[FHL]*:*);;
7630 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7631 :[FH]-) ac_tag=-:-;;
7632 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7633 esac
7634 ac_save_IFS=$IFS
7635 IFS=:
7636 set x $ac_tag
7637 IFS=$ac_save_IFS
7638 shift
7639 ac_file=$1
7640 shift
7642 case $ac_mode in
7643 :L) ac_source=$1;;
7644 :[FH])
7645 ac_file_inputs=
7646 for ac_f
7648 case $ac_f in
7649 -) ac_f="$ac_tmp/stdin";;
7650 *) # Look for the file first in the build tree, then in the source tree
7651 # (if the path is not absolute). The absolute path cannot be DOS-style,
7652 # because $ac_f cannot contain `:'.
7653 test -f "$ac_f" ||
7654 case $ac_f in
7655 [\\/$]*) false;;
7656 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7657 esac ||
7658 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7659 esac
7660 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7661 as_fn_append ac_file_inputs " '$ac_f'"
7662 done
7664 # Let's still pretend it is `configure' which instantiates (i.e., don't
7665 # use $as_me), people would be surprised to read:
7666 # /* config.h. Generated by config.status. */
7667 configure_input='Generated from '`
7668 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7669 `' by configure.'
7670 if test x"$ac_file" != x-; then
7671 configure_input="$ac_file. $configure_input"
7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7673 printf "%s\n" "$as_me: creating $ac_file" >&6;}
7675 # Neutralize special characters interpreted by sed in replacement strings.
7676 case $configure_input in #(
7677 *\&* | *\|* | *\\* )
7678 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
7679 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7680 *) ac_sed_conf_input=$configure_input;;
7681 esac
7683 case $ac_tag in
7684 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7685 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7686 esac
7688 esac
7690 ac_dir=`$as_dirname -- "$ac_file" ||
7691 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7692 X"$ac_file" : 'X\(//\)[^/]' \| \
7693 X"$ac_file" : 'X\(//\)$' \| \
7694 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7695 printf "%s\n" X"$ac_file" |
7696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7697 s//\1/
7700 /^X\(\/\/\)[^/].*/{
7701 s//\1/
7704 /^X\(\/\/\)$/{
7705 s//\1/
7708 /^X\(\/\).*/{
7709 s//\1/
7712 s/.*/./; q'`
7713 as_dir="$ac_dir"; as_fn_mkdir_p
7714 ac_builddir=.
7716 case "$ac_dir" in
7717 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7719 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7720 # A ".." for each directory in $ac_dir_suffix.
7721 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7722 case $ac_top_builddir_sub in
7723 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7724 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7725 esac ;;
7726 esac
7727 ac_abs_top_builddir=$ac_pwd
7728 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7729 # for backward compatibility:
7730 ac_top_builddir=$ac_top_build_prefix
7732 case $srcdir in
7733 .) # We are building in place.
7734 ac_srcdir=.
7735 ac_top_srcdir=$ac_top_builddir_sub
7736 ac_abs_top_srcdir=$ac_pwd ;;
7737 [\\/]* | ?:[\\/]* ) # Absolute name.
7738 ac_srcdir=$srcdir$ac_dir_suffix;
7739 ac_top_srcdir=$srcdir
7740 ac_abs_top_srcdir=$srcdir ;;
7741 *) # Relative name.
7742 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7743 ac_top_srcdir=$ac_top_build_prefix$srcdir
7744 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7745 esac
7746 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7749 case $ac_mode in
7752 # CONFIG_FILE
7755 case $INSTALL in
7756 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7757 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7758 esac
7759 ac_MKDIR_P=$MKDIR_P
7760 case $MKDIR_P in
7761 [\\/$]* | ?:[\\/]* ) ;;
7762 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7763 esac
7764 _ACEOF
7766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7767 # If the template does not know about datarootdir, expand it.
7768 # FIXME: This hack should be removed a few years after 2.60.
7769 ac_datarootdir_hack=; ac_datarootdir_seen=
7770 ac_sed_dataroot='
7771 /datarootdir/ {
7775 /@datadir@/p
7776 /@docdir@/p
7777 /@infodir@/p
7778 /@localedir@/p
7779 /@mandir@/p'
7780 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7781 *datarootdir*) ac_datarootdir_seen=yes;;
7782 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7784 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7785 _ACEOF
7786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7787 ac_datarootdir_hack='
7788 s&@datadir@&$datadir&g
7789 s&@docdir@&$docdir&g
7790 s&@infodir@&$infodir&g
7791 s&@localedir@&$localedir&g
7792 s&@mandir@&$mandir&g
7793 s&\\\${datarootdir}&$datarootdir&g' ;;
7794 esac
7795 _ACEOF
7797 # Neutralize VPATH when `$srcdir' = `.'.
7798 # Shell code in configure.ac might set extrasub.
7799 # FIXME: do we really want to maintain this feature?
7800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7801 ac_sed_extra="$ac_vpsub
7802 $extrasub
7803 _ACEOF
7804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7807 s|@configure_input@|$ac_sed_conf_input|;t t
7808 s&@top_builddir@&$ac_top_builddir_sub&;t t
7809 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7810 s&@srcdir@&$ac_srcdir&;t t
7811 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7812 s&@top_srcdir@&$ac_top_srcdir&;t t
7813 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7814 s&@builddir@&$ac_builddir&;t t
7815 s&@abs_builddir@&$ac_abs_builddir&;t t
7816 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7817 s&@INSTALL@&$ac_INSTALL&;t t
7818 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7819 $ac_datarootdir_hack
7821 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7822 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7824 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7825 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7826 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7827 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7829 which seems to be undefined. Please make sure it is defined" >&5
7830 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7831 which seems to be undefined. Please make sure it is defined" >&2;}
7833 rm -f "$ac_tmp/stdin"
7834 case $ac_file in
7835 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7836 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7837 esac \
7838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7842 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7843 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
7845 esac
7848 case $ac_file$ac_mode in
7849 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7850 # Older Autoconf quotes --file arguments for eval, but not when files
7851 # are listed without --file. Let's play safe and only enable the eval
7852 # if we detect the quoting.
7853 # TODO: see whether this extra hack can be removed once we start
7854 # requiring Autoconf 2.70 or later.
7855 case $CONFIG_FILES in #(
7856 *\'*) :
7857 eval set x "$CONFIG_FILES" ;; #(
7858 *) :
7859 set x $CONFIG_FILES ;; #(
7860 *) :
7862 esac
7863 shift
7864 # Used to flag and report bootstrapping failures.
7865 am_rc=0
7866 for am_mf
7868 # Strip MF so we end up with the name of the file.
7869 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
7870 # Check whether this is an Automake generated Makefile which includes
7871 # dependency-tracking related rules and includes.
7872 # Grep'ing the whole file directly is not great: AIX grep has a line
7873 # limit of 2048, but all sed's we know have understand at least 4000.
7874 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
7875 || continue
7876 am_dirpart=`$as_dirname -- "$am_mf" ||
7877 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7878 X"$am_mf" : 'X\(//\)[^/]' \| \
7879 X"$am_mf" : 'X\(//\)$' \| \
7880 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7881 printf "%s\n" X"$am_mf" |
7882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7883 s//\1/
7886 /^X\(\/\/\)[^/].*/{
7887 s//\1/
7890 /^X\(\/\/\)$/{
7891 s//\1/
7894 /^X\(\/\).*/{
7895 s//\1/
7898 s/.*/./; q'`
7899 am_filepart=`$as_basename -- "$am_mf" ||
7900 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
7901 X"$am_mf" : 'X\(//\)$' \| \
7902 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7903 printf "%s\n" X/"$am_mf" |
7904 sed '/^.*\/\([^/][^/]*\)\/*$/{
7905 s//\1/
7908 /^X\/\(\/\/\)$/{
7909 s//\1/
7912 /^X\/\(\/\).*/{
7913 s//\1/
7916 s/.*/./; q'`
7917 { echo "$as_me:$LINENO: cd "$am_dirpart" \
7918 && sed -e '/# am--include-marker/d' "$am_filepart" \
7919 | $MAKE -f - am--depfiles" >&5
7920 (cd "$am_dirpart" \
7921 && sed -e '/# am--include-marker/d' "$am_filepart" \
7922 | $MAKE -f - am--depfiles) >&5 2>&5
7923 ac_status=$?
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } || am_rc=$?
7926 done
7927 if test $am_rc -ne 0; then
7928 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7929 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7930 as_fn_error $? "Something went wrong bootstrapping makefile fragments
7931 for automatic dependency tracking. If GNU make was not used, consider
7932 re-running the configure script with MAKE=\"gmake\" (or whatever is
7933 necessary). You can also try re-running configure with the
7934 '--disable-dependency-tracking' option to at least be able to build
7935 the package (albeit without support for automatic dependency tracking).
7936 See \`config.log' for more details" "$LINENO" 5; }
7938 { am_dirpart=; unset am_dirpart;}
7939 { am_filepart=; unset am_filepart;}
7940 { am_mf=; unset am_mf;}
7941 { am_rc=; unset am_rc;}
7942 rm -f conftest-deps.mk
7946 esac
7947 done # for ac_tag
7950 as_fn_exit 0
7951 _ACEOF
7952 ac_clean_files=$ac_clean_files_save
7954 test $ac_write_fail = 0 ||
7955 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7958 # configure is writing to config.log, and then calls config.status.
7959 # config.status does its own redirection, appending to config.log.
7960 # Unfortunately, on DOS this fails, as config.log is still kept open
7961 # by configure, so config.status won't be able to write to it; its
7962 # output is simply discarded. So we exec the FD to /dev/null,
7963 # effectively closing config.log, so it can be properly (re)opened and
7964 # appended to by config.status. When coming back to configure, we
7965 # need to make the FD available again.
7966 if test "$no_create" != yes; then
7967 ac_cs_success=:
7968 ac_config_status_args=
7969 test "$silent" = yes &&
7970 ac_config_status_args="$ac_config_status_args --quiet"
7971 exec 5>/dev/null
7972 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7973 exec 5>>config.log
7974 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7975 # would make configure fail if this is the last instruction.
7976 $ac_cs_success || as_fn_exit 1
7978 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7980 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Running qmake to generate the makefile..." >&5
7985 printf "%s\n" "$as_me: Running qmake to generate the makefile..." >&6;}
7986 TOPDIR="$(cd "$(dirname "$0")" && pwd)"
7987 $QT_QMAKE -r "$TOPDIR/qbittorrent.pro" "QMAKE_LRELEASE=$QMAKE_LRELEASE"
7988 qmake_ret="$?"
7990 printf "%s\n"
7991 if test "x$qmake_ret" != "x0"
7992 then :
7993 as_fn_error $? "$QT_QMAKE failed to generate the makefile" "$LINENO" 5
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Good, the configure finished." >&5
7997 printf "%s\n" "$as_me: Good, the configure finished." >&6;}
7998 printf "%s\n"