Ignore file heath for 3rd party libraries
[qBittorrent.git] / configure
blob44110faa5b649bfb8495fcf1a2a3f75e81deee5f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for qbittorrent v4.4.0alpha.
5 # Report bugs to <bugs.qbittorrent.org>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
35 esac
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
49 export as_nl
50 IFS=" "" $as_nl"
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
158 esac
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271 $0: bugs.qbittorrent.org about your system, including any
272 $0: error possibly output before this message. Then install
273 $0: a modern shell, or manually run the script under such a
274 $0: shell if you do have one."
276 exit 1
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
294 { eval $1=; unset $1;}
296 as_unset=as_fn_unset
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
304 return $1
305 } # as_fn_set_status
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316 # as_fn_nop
317 # ---------
318 # Do nothing but, unlike ":", preserve the value of $?.
319 as_fn_nop ()
321 return $?
323 as_nop=as_fn_nop
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
356 /^X\(\/\/\)$/{
357 s//\1/
360 /^X\(\/\).*/{
361 s//\1/
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 } # as_fn_mkdir_p
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
387 then :
388 eval 'as_fn_append ()
390 eval $1+=\$2
392 else $as_nop
393 as_fn_append ()
395 eval $1=\$$1\$2
397 fi # as_fn_append
399 # as_fn_arith ARG...
400 # ------------------
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
405 then :
406 eval 'as_fn_arith ()
408 as_val=$(( $* ))
410 else $as_nop
411 as_fn_arith ()
413 as_val=`expr "$@" || test $? -eq 1`
415 fi # as_fn_arith
417 # as_fn_nop
418 # ---------
419 # Do nothing but, unlike ":", preserve the value of $?.
420 as_fn_nop ()
422 return $?
424 as_nop=as_fn_nop
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
431 as_fn_error ()
433 as_status=$1; test $as_status -eq 0 && as_status=1
434 if test "$4"; then
435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit $as_status
440 } # as_fn_error
442 if expr a : '\(a\)' >/dev/null 2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
444 as_expr=expr
445 else
446 as_expr=false
449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
450 as_basename=basename
451 else
452 as_basename=false
455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
456 as_dirname=dirname
457 else
458 as_dirname=false
461 as_me=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
467 s//\1/
470 /^X\/\(\/\/\)$/{
471 s//\1/
474 /^X\/\(\/\).*/{
475 s//\1/
478 s/.*/./; q'`
480 # Avoid depending upon Character Ranges.
481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits='0123456789'
485 as_cr_alnum=$as_cr_Letters$as_cr_digits
488 as_lineno_1=$LINENO as_lineno_1a=$LINENO
489 as_lineno_2=$LINENO as_lineno_2a=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 sed -n '
495 /[$]LINENO/=
496 ' <$as_myself |
497 sed '
498 s/[$]LINENO.*/&-/
499 t lineno
501 :lineno
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
537 ECHO_N='-n';;
538 esac
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
568 else
569 as_ln_s='cp -pR'
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
600 # Initializations.
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
611 # Identity of this package.
612 PACKAGE_NAME='qbittorrent'
613 PACKAGE_TARNAME='qbittorrent'
614 PACKAGE_VERSION='v4.4.0alpha'
615 PACKAGE_STRING='qbittorrent v4.4.0alpha'
616 PACKAGE_BUGREPORT='bugs.qbittorrent.org'
617 PACKAGE_URL='https://www.qbittorrent.org/'
619 ac_subst_vars='am__EXEEXT_FALSE
620 am__EXEEXT_TRUE
621 LTLIBOBJS
622 LIBOBJS
623 QBT_REMOVE_DEFINES
624 QBT_ADD_DEFINES
625 QBT_REMOVE_CONFIG
626 QBT_ADD_CONFIG
627 QBT_CONF_EXTRA_CFLAGS
628 QBT_CONF_INCLUDES
629 QBT_CXX
630 QBT_CC
631 EXPAND_MANDIR
632 EXPAND_DATADIR
633 EXPAND_BINDIR
634 EXPAND_PREFIX
635 zlib_LIBS
636 zlib_CFLAGS
637 openssl_LIBS
638 openssl_CFLAGS
639 libtorrent_LIBS
640 libtorrent_CFLAGS
641 BOOST_LDFLAGS
642 BOOST_CPPFLAGS
643 Qt5Svg_LIBS
644 Qt5Svg_CFLAGS
645 QT_QMAKE
646 PKG_CONFIG_LIBDIR
647 PKG_CONFIG_PATH
648 PKG_CONFIG
649 AM_BACKSLASH
650 AM_DEFAULT_VERBOSITY
651 AM_DEFAULT_V
652 AM_V
653 am__fastdepCXX_FALSE
654 am__fastdepCXX_TRUE
655 CXXDEPMODE
656 am__fastdepCC_FALSE
657 am__fastdepCC_TRUE
658 CCDEPMODE
659 am__nodep
660 AMDEPBACKSLASH
661 AMDEP_FALSE
662 AMDEP_TRUE
663 am__include
664 DEPDIR
665 am__untar
666 am__tar
667 AMTAR
668 am__leading_dot
669 SET_MAKE
671 mkdir_p
672 MKDIR_P
673 INSTALL_STRIP_PROGRAM
674 STRIP
675 install_sh
676 MAKEINFO
677 AUTOHEADER
678 AUTOMAKE
679 AUTOCONF
680 ACLOCAL
681 VERSION
682 PACKAGE
683 CYGPATH_W
684 am__isrc
685 INSTALL_DATA
686 INSTALL_SCRIPT
687 INSTALL_PROGRAM
688 host_os
689 host_vendor
690 host_cpu
691 host
692 build_os
693 build_vendor
694 build_cpu
695 build
697 ac_ct_CXX
698 CXXFLAGS
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
707 target_alias
708 host_alias
709 build_alias
710 LIBS
711 ECHO_T
712 ECHO_N
713 ECHO_C
714 DEFS
715 mandir
716 localedir
717 libdir
718 psdir
719 pdfdir
720 dvidir
721 htmldir
722 infodir
723 docdir
724 oldincludedir
725 includedir
726 runstatedir
727 localstatedir
728 sharedstatedir
729 sysconfdir
730 datadir
731 datarootdir
732 libexecdir
733 sbindir
734 bindir
735 program_transform_name
736 prefix
737 exec_prefix
738 PACKAGE_URL
739 PACKAGE_BUGREPORT
740 PACKAGE_STRING
741 PACKAGE_VERSION
742 PACKAGE_TARNAME
743 PACKAGE_NAME
744 PATH_SEPARATOR
745 SHELL
746 am__quote'
747 ac_subst_files=''
748 ac_user_opts='
749 enable_option_checking
750 enable_dependency_tracking
751 enable_silent_rules
752 enable_debug
753 enable_stacktrace
754 enable_gui
755 enable_systemd
756 enable_webui
757 enable_qt_dbus
758 with_boost
759 with_boost_libdir
761 ac_precious_vars='build_alias
762 host_alias
763 target_alias
765 CFLAGS
766 LDFLAGS
767 LIBS
768 CPPFLAGS
770 CXXFLAGS
772 PKG_CONFIG
773 PKG_CONFIG_PATH
774 PKG_CONFIG_LIBDIR
775 QT_QMAKE
776 Qt5Svg_CFLAGS
777 Qt5Svg_LIBS
778 libtorrent_CFLAGS
779 libtorrent_LIBS
780 openssl_CFLAGS
781 openssl_LIBS
782 zlib_CFLAGS
783 zlib_LIBS'
786 # Initialize some variables set by options.
787 ac_init_help=
788 ac_init_version=false
789 ac_unrecognized_opts=
790 ac_unrecognized_sep=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
793 cache_file=/dev/null
794 exec_prefix=NONE
795 no_create=
796 no_recursion=
797 prefix=NONE
798 program_prefix=NONE
799 program_suffix=NONE
800 program_transform_name=s,x,x,
801 silent=
802 site=
803 srcdir=
804 verbose=
805 x_includes=NONE
806 x_libraries=NONE
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir='${exec_prefix}/bin'
815 sbindir='${exec_prefix}/sbin'
816 libexecdir='${exec_prefix}/libexec'
817 datarootdir='${prefix}/share'
818 datadir='${datarootdir}'
819 sysconfdir='${prefix}/etc'
820 sharedstatedir='${prefix}/com'
821 localstatedir='${prefix}/var'
822 runstatedir='${localstatedir}/run'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir='${datarootdir}/info'
827 htmldir='${docdir}'
828 dvidir='${docdir}'
829 pdfdir='${docdir}'
830 psdir='${docdir}'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
835 ac_prev=
836 ac_dashdash=
837 for ac_option
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\$ac_option
842 ac_prev=
843 continue
846 case $ac_option in
847 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *=) ac_optarg= ;;
849 *) ac_optarg=yes ;;
850 esac
852 case $ac_dashdash$ac_option in
854 ac_dashdash=yes ;;
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 bindir=$ac_optarg ;;
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
873 --config-cache | -C)
874 cache_file=config.cache ;;
876 -datadir | --datadir | --datadi | --datad)
877 ac_prev=datadir ;;
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
888 -disable-* | --disable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: \`$ac_useropt'"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=no ;;
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
914 -enable-* | --enable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error $? "invalid feature name: \`$ac_useropt'"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=\$ac_optarg ;;
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
941 with_gas=yes ;;
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
959 htmldir=$ac_optarg ;;
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 libdir=$ac_optarg ;;
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
985 -localedir | --localedir | --localedi | --localed | --locale)
986 ac_prev=localedir ;;
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir=$ac_optarg ;;
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1008 no_create=yes ;;
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 ac_prev=prefix ;;
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
1073 -runstatedir | --runstatedir | --runstatedi | --runstated \
1074 | --runstate | --runstat | --runsta | --runst | --runs \
1075 | --run | --ru | --r)
1076 ac_prev=runstatedir ;;
1077 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1078 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1079 | --run=* | --ru=* | --r=*)
1080 runstatedir=$ac_optarg ;;
1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083 ac_prev=sbindir ;;
1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085 | --sbi=* | --sb=*)
1086 sbindir=$ac_optarg ;;
1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090 | --sharedst | --shareds | --shared | --share | --shar \
1091 | --sha | --sh)
1092 ac_prev=sharedstatedir ;;
1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096 | --sha=* | --sh=*)
1097 sharedstatedir=$ac_optarg ;;
1099 -site | --site | --sit)
1100 ac_prev=site ;;
1101 -site=* | --site=* | --sit=*)
1102 site=$ac_optarg ;;
1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105 ac_prev=srcdir ;;
1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107 srcdir=$ac_optarg ;;
1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110 | --syscon | --sysco | --sysc | --sys | --sy)
1111 ac_prev=sysconfdir ;;
1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114 sysconfdir=$ac_optarg ;;
1116 -target | --target | --targe | --targ | --tar | --ta | --t)
1117 ac_prev=target_alias ;;
1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119 target_alias=$ac_optarg ;;
1121 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122 verbose=yes ;;
1124 -version | --version | --versio | --versi | --vers | -V)
1125 ac_init_version=: ;;
1127 -with-* | --with-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: \`$ac_useropt'"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1136 "with_$ac_useropt"
1137 "*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval with_$ac_useropt=\$ac_optarg ;;
1143 -without-* | --without-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: \`$ac_useropt'"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1152 "with_$ac_useropt"
1153 "*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval with_$ac_useropt=no ;;
1159 --x)
1160 # Obsolete; use --with-x.
1161 with_x=yes ;;
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164 | --x-incl | --x-inc | --x-in | --x-i)
1165 ac_prev=x_includes ;;
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168 x_includes=$ac_optarg ;;
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172 ac_prev=x_libraries ;;
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175 x_libraries=$ac_optarg ;;
1177 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1178 Try \`$0 --help' for more information"
1181 *=*)
1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
1184 case $ac_envvar in #(
1185 '' | [0-9]* | *[!_$as_cr_alnum]* )
1186 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1187 esac
1188 eval $ac_envvar=\$ac_optarg
1189 export $ac_envvar ;;
1192 # FIXME: should be removed in autoconf 3.0.
1193 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1199 esac
1200 done
1202 if test -n "$ac_prev"; then
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204 as_fn_error $? "missing argument to $ac_option"
1207 if test -n "$ac_unrecognized_opts"; then
1208 case $enable_option_checking in
1209 no) ;;
1210 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1211 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1212 esac
1215 # Check all directory arguments for consistency.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir runstatedir
1221 eval ac_val=\$$ac_var
1222 # Remove trailing slashes.
1223 case $ac_val in
1224 */ )
1225 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226 eval $ac_var=\$ac_val;;
1227 esac
1228 # Be sure to have absolute directory names.
1229 case $ac_val in
1230 [\\/$]* | ?:[\\/]* ) continue;;
1231 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232 esac
1233 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1234 done
1236 # There might be people who depend on the old broken behavior: `$host'
1237 # used to hold the argument of --host etc.
1238 # FIXME: To remove some day.
1239 build=$build_alias
1240 host=$host_alias
1241 target=$target_alias
1243 # FIXME: To remove some day.
1244 if test "x$host_alias" != x; then
1245 if test "x$build_alias" = x; then
1246 cross_compiling=maybe
1247 elif test "x$build_alias" != "x$host_alias"; then
1248 cross_compiling=yes
1252 ac_tool_prefix=
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255 test "$silent" = yes && exec 6>/dev/null
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error $? "working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error $? "pwd does not report name of working directory"
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 printf "%s\n" X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/
1280 /^X\(\/\/\)[^/].*/{
1281 s//\1/
1284 /^X\(\/\/\)$/{
1285 s//\1/
1288 /^X\(\/\).*/{
1289 s//\1/
1292 s/.*/./; q'`
1293 srcdir=$ac_confdir
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 srcdir=..
1297 else
1298 ac_srcdir_defaulted=no
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 ac_abs_confdir=`(
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307 pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332 \`configure' configures qbittorrent v4.4.0alpha to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1341 Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking ...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/qbittorrent]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1386 _ACEOF
1388 cat <<\_ACEOF
1390 Program names:
1391 --program-prefix=PREFIX prepend PREFIX to installed program names
1392 --program-suffix=SUFFIX append SUFFIX to installed program names
1393 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1395 System types:
1396 --build=BUILD configure for building on BUILD [guessed]
1397 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1398 _ACEOF
1401 if test -n "$ac_init_help"; then
1402 case $ac_init_help in
1403 short | recursive ) echo "Configuration of qbittorrent v4.4.0alpha:";;
1404 esac
1405 cat <<\_ACEOF
1407 Optional Features:
1408 --disable-option-checking ignore unrecognized --enable/--with options
1409 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1410 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1411 --enable-dependency-tracking
1412 do not reject slow dependency extractors
1413 --disable-dependency-tracking
1414 speeds up one-time build
1415 --enable-silent-rules less verbose build output (undo: "make V=1")
1416 --disable-silent-rules verbose build output (undo: "make V=0")
1417 --enable-debug Enable debug build
1418 --enable-stacktrace Enable stacktrace feature (default=auto)
1419 --disable-gui Disable the GUI for headless running. Disables
1420 QtDBus and the GeoIP Database.
1421 --enable-systemd Install the systemd service file (headless only).
1422 --disable-webui Disable the WebUI.
1423 --disable-qt-dbus Disable use of QtDBus (GUI only)
1425 Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --with-boost[=ARG] use Boost library from a standard location
1429 (ARG=yes), from the specified location (ARG=<path>),
1430 or disable it (ARG=no) [ARG=yes]
1431 --with-boost-libdir=LIB_DIR
1432 Force given directory for boost libraries. Note that
1433 this will override library path detection, so use
1434 this parameter only if default library detection
1435 fails and you know exactly where your boost
1436 libraries are located.
1438 Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
1443 LIBS libraries to pass to the linker, e.g. -l<library>
1444 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1445 you have headers in a nonstandard directory <include dir>
1446 CXX C++ compiler command
1447 CXXFLAGS C++ compiler flags
1448 PKG_CONFIG path to pkg-config utility
1449 PKG_CONFIG_PATH
1450 directories to add to pkg-config's search path
1451 PKG_CONFIG_LIBDIR
1452 path overriding pkg-config's built-in search path
1453 QT_QMAKE value of host_bins for Qt5Core >= 5.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.4.0alpha
1537 generated by GNU Autoconf 2.71
1539 Copyright (C) 2021 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1542 _ACEOF
1543 exit
1546 ## ------------------------ ##
1547 ## Autoconf initialization. ##
1548 ## ------------------------ ##
1550 # ac_fn_c_try_compile LINENO
1551 # --------------------------
1552 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_compile ()
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext conftest.beam
1557 if { { ac_try="$ac_compile"
1558 case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561 esac
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 printf "%s\n" "$ac_try_echo"; } >&5
1564 (eval "$ac_compile") 2>conftest.err
1565 ac_status=$?
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest.$ac_objext
1576 then :
1577 ac_retval=0
1578 else $as_nop
1579 printf "%s\n" "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1582 ac_retval=1
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1587 } # ac_fn_c_try_compile
1589 # ac_fn_cxx_try_compile LINENO
1590 # ----------------------------
1591 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_cxx_try_compile ()
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 rm -f conftest.$ac_objext conftest.beam
1596 if { { ac_try="$ac_compile"
1597 case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 printf "%s\n" "$ac_try_echo"; } >&5
1603 (eval "$ac_compile") 2>conftest.err
1604 ac_status=$?
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_cxx_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest.$ac_objext
1615 then :
1616 ac_retval=0
1617 else $as_nop
1618 printf "%s\n" "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1621 ac_retval=1
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1626 } # ac_fn_cxx_try_compile
1627 ac_configure_args_raw=
1628 for ac_arg
1630 case $ac_arg in
1631 *\'*)
1632 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1633 esac
1634 as_fn_append ac_configure_args_raw " '$ac_arg'"
1635 done
1637 case $ac_configure_args_raw in
1638 *$as_nl*)
1639 ac_safe_unquote= ;;
1641 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1642 ac_unsafe_a="$ac_unsafe_z#~"
1643 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1644 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1645 esac
1647 cat >config.log <<_ACEOF
1648 This file contains any messages produced by compilers while
1649 running configure, to aid debugging if configure makes a mistake.
1651 It was created by qbittorrent $as_me v4.4.0alpha, which was
1652 generated by GNU Autoconf 2.71. Invocation command line was
1654 $ $0$ac_configure_args_raw
1656 _ACEOF
1657 exec 5>>config.log
1659 cat <<_ASUNAME
1660 ## --------- ##
1661 ## Platform. ##
1662 ## --------- ##
1664 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1665 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1666 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1667 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1668 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1670 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1671 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1673 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1674 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1675 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1676 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1677 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1678 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1679 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1681 _ASUNAME
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 for as_dir in $PATH
1686 IFS=$as_save_IFS
1687 case $as_dir in #(((
1688 '') as_dir=./ ;;
1689 */) ;;
1690 *) as_dir=$as_dir/ ;;
1691 esac
1692 printf "%s\n" "PATH: $as_dir"
1693 done
1694 IFS=$as_save_IFS
1696 } >&5
1698 cat >&5 <<_ACEOF
1701 ## ----------- ##
1702 ## Core tests. ##
1703 ## ----------- ##
1705 _ACEOF
1708 # Keep a trace of the command line.
1709 # Strip out --no-create and --no-recursion so they do not pile up.
1710 # Strip out --silent because we don't want to record it for future runs.
1711 # Also quote any args containing shell meta-characters.
1712 # Make two passes to allow for proper duplicate-argument suppression.
1713 ac_configure_args=
1714 ac_configure_args0=
1715 ac_configure_args1=
1716 ac_must_keep_next=false
1717 for ac_pass in 1 2
1719 for ac_arg
1721 case $ac_arg in
1722 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1724 | -silent | --silent | --silen | --sile | --sil)
1725 continue ;;
1726 *\'*)
1727 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1728 esac
1729 case $ac_pass in
1730 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1732 as_fn_append ac_configure_args1 " '$ac_arg'"
1733 if test $ac_must_keep_next = true; then
1734 ac_must_keep_next=false # Got value, back to normal.
1735 else
1736 case $ac_arg in
1737 *=* | --config-cache | -C | -disable-* | --disable-* \
1738 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1739 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1740 | -with-* | --with-* | -without-* | --without-* | --x)
1741 case "$ac_configure_args0 " in
1742 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1743 esac
1745 -* ) ac_must_keep_next=true ;;
1746 esac
1748 as_fn_append ac_configure_args " '$ac_arg'"
1750 esac
1751 done
1752 done
1753 { ac_configure_args0=; unset ac_configure_args0;}
1754 { ac_configure_args1=; unset ac_configure_args1;}
1756 # When interrupted or exit'd, cleanup temporary files, and complete
1757 # config.log. We remove comments because anyway the quotes in there
1758 # would cause problems or look ugly.
1759 # WARNING: Use '\'' to represent an apostrophe within the trap.
1760 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1761 trap 'exit_status=$?
1762 # Sanitize IFS.
1763 IFS=" "" $as_nl"
1764 # Save into config.log some information that might help in debugging.
1766 echo
1768 printf "%s\n" "## ---------------- ##
1769 ## Cache variables. ##
1770 ## ---------------- ##"
1771 echo
1772 # The following way of writing the cache mishandles newlines in values,
1774 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1775 eval ac_val=\$$ac_var
1776 case $ac_val in #(
1777 *${as_nl}*)
1778 case $ac_var in #(
1779 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1780 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1781 esac
1782 case $ac_var in #(
1783 _ | IFS | as_nl) ;; #(
1784 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1785 *) { eval $ac_var=; unset $ac_var;} ;;
1786 esac ;;
1787 esac
1788 done
1789 (set) 2>&1 |
1790 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1791 *${as_nl}ac_space=\ *)
1792 sed -n \
1793 "s/'\''/'\''\\\\'\'''\''/g;
1794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1795 ;; #(
1797 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1799 esac |
1800 sort
1802 echo
1804 printf "%s\n" "## ----------------- ##
1805 ## Output variables. ##
1806 ## ----------------- ##"
1807 echo
1808 for ac_var in $ac_subst_vars
1810 eval ac_val=\$$ac_var
1811 case $ac_val in
1812 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813 esac
1814 printf "%s\n" "$ac_var='\''$ac_val'\''"
1815 done | sort
1816 echo
1818 if test -n "$ac_subst_files"; then
1819 printf "%s\n" "## ------------------- ##
1820 ## File substitutions. ##
1821 ## ------------------- ##"
1822 echo
1823 for ac_var in $ac_subst_files
1825 eval ac_val=\$$ac_var
1826 case $ac_val in
1827 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828 esac
1829 printf "%s\n" "$ac_var='\''$ac_val'\''"
1830 done | sort
1831 echo
1834 if test -s confdefs.h; then
1835 printf "%s\n" "## ----------- ##
1836 ## confdefs.h. ##
1837 ## ----------- ##"
1838 echo
1839 cat confdefs.h
1840 echo
1842 test "$ac_signal" != 0 &&
1843 printf "%s\n" "$as_me: caught signal $ac_signal"
1844 printf "%s\n" "$as_me: exit $exit_status"
1845 } >&5
1846 rm -f core *.core core.conftest.* &&
1847 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1848 exit $exit_status
1850 for ac_signal in 1 2 13 15; do
1851 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1852 done
1853 ac_signal=0
1855 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1856 rm -f -r conftest* confdefs.h
1858 printf "%s\n" "/* confdefs.h */" > confdefs.h
1860 # Predefined preprocessor variables.
1862 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1864 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1866 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1868 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1870 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1872 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1875 # Let the site file select an alternate cache file if it wants to.
1876 # Prefer an explicitly selected file to automatically selected ones.
1877 if test -n "$CONFIG_SITE"; then
1878 ac_site_files="$CONFIG_SITE"
1879 elif test "x$prefix" != xNONE; then
1880 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1881 else
1882 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1885 for ac_site_file in $ac_site_files
1887 case $ac_site_file in #(
1888 */*) :
1889 ;; #(
1890 *) :
1891 ac_site_file=./$ac_site_file ;;
1892 esac
1893 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1895 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1896 sed 's/^/| /' "$ac_site_file" >&5
1897 . "$ac_site_file" \
1898 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1899 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1900 as_fn_error $? "failed to load site script $ac_site_file
1901 See \`config.log' for more details" "$LINENO" 5; }
1903 done
1905 if test -r "$cache_file"; then
1906 # Some versions of bash will fail to source /dev/null (special files
1907 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1908 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1910 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1911 case $cache_file in
1912 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1913 *) . "./$cache_file";;
1914 esac
1916 else
1917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1918 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1919 >$cache_file
1922 # Test code for whether the C compiler supports C89 (global declarations)
1923 ac_c_conftest_c89_globals='
1924 /* Does the compiler advertise C89 conformance?
1925 Do not test the value of __STDC__, because some compilers set it to 0
1926 while being otherwise adequately conformant. */
1927 #if !defined __STDC__
1928 # error "Compiler does not advertise C89 conformance"
1929 #endif
1931 #include <stddef.h>
1932 #include <stdarg.h>
1933 struct stat;
1934 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1935 struct buf { int x; };
1936 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1937 static char *e (p, i)
1938 char **p;
1939 int i;
1941 return p[i];
1943 static char *f (char * (*g) (char **, int), char **p, ...)
1945 char *s;
1946 va_list v;
1947 va_start (v,p);
1948 s = g (p, va_arg (v,int));
1949 va_end (v);
1950 return s;
1953 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1954 function prototypes and stuff, but not \xHH hex character constants.
1955 These do not provoke an error unfortunately, instead are silently treated
1956 as an "x". The following induces an error, until -std is added to get
1957 proper ANSI mode. Curiously \x00 != x always comes out true, for an
1958 array size at least. It is necessary to write \x00 == 0 to get something
1959 that is true only with -std. */
1960 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1962 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1963 inside strings and character constants. */
1964 #define FOO(x) '\''x'\''
1965 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
1967 int test (int i, double x);
1968 struct s1 {int (*f) (int a);};
1969 struct s2 {int (*f) (double a);};
1970 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
1971 int, int);'
1973 # Test code for whether the C compiler supports C89 (body of main).
1974 ac_c_conftest_c89_main='
1975 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
1978 # Test code for whether the C compiler supports C99 (global declarations)
1979 ac_c_conftest_c99_globals='
1980 // Does the compiler advertise C99 conformance?
1981 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
1982 # error "Compiler does not advertise C99 conformance"
1983 #endif
1985 #include <stdbool.h>
1986 extern int puts (const char *);
1987 extern int printf (const char *, ...);
1988 extern int dprintf (int, const char *, ...);
1989 extern void *malloc (size_t);
1991 // Check varargs macros. These examples are taken from C99 6.10.3.5.
1992 // dprintf is used instead of fprintf to avoid needing to declare
1993 // FILE and stderr.
1994 #define debug(...) dprintf (2, __VA_ARGS__)
1995 #define showlist(...) puts (#__VA_ARGS__)
1996 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1997 static void
1998 test_varargs_macros (void)
2000 int x = 1234;
2001 int y = 5678;
2002 debug ("Flag");
2003 debug ("X = %d\n", x);
2004 showlist (The first, second, and third items.);
2005 report (x>y, "x is %d but y is %d", x, y);
2008 // Check long long types.
2009 #define BIG64 18446744073709551615ull
2010 #define BIG32 4294967295ul
2011 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2012 #if !BIG_OK
2013 #error "your preprocessor is broken"
2014 #endif
2015 #if BIG_OK
2016 #else
2017 #error "your preprocessor is broken"
2018 #endif
2019 static long long int bignum = -9223372036854775807LL;
2020 static unsigned long long int ubignum = BIG64;
2022 struct incomplete_array
2024 int datasize;
2025 double data[];
2028 struct named_init {
2029 int number;
2030 const wchar_t *name;
2031 double average;
2034 typedef const char *ccp;
2036 static inline int
2037 test_restrict (ccp restrict text)
2039 // See if C++-style comments work.
2040 // Iterate through items via the restricted pointer.
2041 // Also check for declarations in for loops.
2042 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2043 continue;
2044 return 0;
2047 // Check varargs and va_copy.
2048 static bool
2049 test_varargs (const char *format, ...)
2051 va_list args;
2052 va_start (args, format);
2053 va_list args_copy;
2054 va_copy (args_copy, args);
2056 const char *str = "";
2057 int number = 0;
2058 float fnumber = 0;
2060 while (*format)
2062 switch (*format++)
2064 case '\''s'\'': // string
2065 str = va_arg (args_copy, const char *);
2066 break;
2067 case '\''d'\'': // int
2068 number = va_arg (args_copy, int);
2069 break;
2070 case '\''f'\'': // float
2071 fnumber = va_arg (args_copy, double);
2072 break;
2073 default:
2074 break;
2077 va_end (args_copy);
2078 va_end (args);
2080 return *str && number && fnumber;
2084 # Test code for whether the C compiler supports C99 (body of main).
2085 ac_c_conftest_c99_main='
2086 // Check bool.
2087 _Bool success = false;
2088 success |= (argc != 0);
2090 // Check restrict.
2091 if (test_restrict ("String literal") == 0)
2092 success = true;
2093 char *restrict newvar = "Another string";
2095 // Check varargs.
2096 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2097 test_varargs_macros ();
2099 // Check flexible array members.
2100 struct incomplete_array *ia =
2101 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2102 ia->datasize = 10;
2103 for (int i = 0; i < ia->datasize; ++i)
2104 ia->data[i] = i * 1.234;
2106 // Check named initializers.
2107 struct named_init ni = {
2108 .number = 34,
2109 .name = L"Test wide string",
2110 .average = 543.34343,
2113 ni.number = 58;
2115 int dynamic_array[ni.number];
2116 dynamic_array[0] = argv[0][0];
2117 dynamic_array[ni.number - 1] = 543;
2119 // work around unused variable warnings
2120 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2121 || dynamic_array[ni.number - 1] != 543);
2124 # Test code for whether the C compiler supports C11 (global declarations)
2125 ac_c_conftest_c11_globals='
2126 // Does the compiler advertise C11 conformance?
2127 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2128 # error "Compiler does not advertise C11 conformance"
2129 #endif
2131 // Check _Alignas.
2132 char _Alignas (double) aligned_as_double;
2133 char _Alignas (0) no_special_alignment;
2134 extern char aligned_as_int;
2135 char _Alignas (0) _Alignas (int) aligned_as_int;
2137 // Check _Alignof.
2138 enum
2140 int_alignment = _Alignof (int),
2141 int_array_alignment = _Alignof (int[100]),
2142 char_alignment = _Alignof (char)
2144 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2146 // Check _Noreturn.
2147 int _Noreturn does_not_return (void) { for (;;) continue; }
2149 // Check _Static_assert.
2150 struct test_static_assert
2152 int x;
2153 _Static_assert (sizeof (int) <= sizeof (long int),
2154 "_Static_assert does not work in struct");
2155 long int y;
2158 // Check UTF-8 literals.
2159 #define u8 syntax error!
2160 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2162 // Check duplicate typedefs.
2163 typedef long *long_ptr;
2164 typedef long int *long_ptr;
2165 typedef long_ptr long_ptr;
2167 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2168 struct anonymous
2170 union {
2171 struct { int i; int j; };
2172 struct { int k; long int l; } w;
2174 int m;
2175 } v1;
2178 # Test code for whether the C compiler supports C11 (body of main).
2179 ac_c_conftest_c11_main='
2180 _Static_assert ((offsetof (struct anonymous, i)
2181 == offsetof (struct anonymous, w.k)),
2182 "Anonymous union alignment botch");
2183 v1.i = 2;
2184 v1.w.k = 5;
2185 ok |= v1.i != 5;
2188 # Test code for whether the C compiler supports C11 (complete).
2189 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2190 ${ac_c_conftest_c99_globals}
2191 ${ac_c_conftest_c11_globals}
2194 main (int argc, char **argv)
2196 int ok = 0;
2197 ${ac_c_conftest_c89_main}
2198 ${ac_c_conftest_c99_main}
2199 ${ac_c_conftest_c11_main}
2200 return ok;
2204 # Test code for whether the C compiler supports C99 (complete).
2205 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2206 ${ac_c_conftest_c99_globals}
2209 main (int argc, char **argv)
2211 int ok = 0;
2212 ${ac_c_conftest_c89_main}
2213 ${ac_c_conftest_c99_main}
2214 return ok;
2218 # Test code for whether the C compiler supports C89 (complete).
2219 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2222 main (int argc, char **argv)
2224 int ok = 0;
2225 ${ac_c_conftest_c89_main}
2226 return ok;
2230 # Test code for whether the C++ compiler supports C++98 (global declarations)
2231 ac_cxx_conftest_cxx98_globals='
2232 // Does the compiler advertise C++98 conformance?
2233 #if !defined __cplusplus || __cplusplus < 199711L
2234 # error "Compiler does not advertise C++98 conformance"
2235 #endif
2237 // These inclusions are to reject old compilers that
2238 // lack the unsuffixed header files.
2239 #include <cstdlib>
2240 #include <exception>
2242 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2243 extern void assert (int);
2244 namespace std {
2245 extern int strcmp (const char *, const char *);
2248 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2249 using std::exception;
2250 using std::strcmp;
2252 namespace {
2254 void test_exception_syntax()
2256 try {
2257 throw "test";
2258 } catch (const char *s) {
2259 // Extra parentheses suppress a warning when building autoconf itself,
2260 // due to lint rules shared with more typical C programs.
2261 assert (!(strcmp) (s, "test"));
2265 template <typename T> struct test_template
2267 T const val;
2268 explicit test_template(T t) : val(t) {}
2269 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2272 } // anonymous namespace
2275 # Test code for whether the C++ compiler supports C++98 (body of main)
2276 ac_cxx_conftest_cxx98_main='
2277 assert (argc);
2278 assert (! argv[0]);
2280 test_exception_syntax ();
2281 test_template<double> tt (2.0);
2282 assert (tt.add (4) == 6.0);
2283 assert (true && !false);
2287 # Test code for whether the C++ compiler supports C++11 (global declarations)
2288 ac_cxx_conftest_cxx11_globals='
2289 // Does the compiler advertise C++ 2011 conformance?
2290 #if !defined __cplusplus || __cplusplus < 201103L
2291 # error "Compiler does not advertise C++11 conformance"
2292 #endif
2294 namespace cxx11test
2296 constexpr int get_val() { return 20; }
2298 struct testinit
2300 int i;
2301 double d;
2304 class delegate
2306 public:
2307 delegate(int n) : n(n) {}
2308 delegate(): delegate(2354) {}
2310 virtual int getval() { return this->n; };
2311 protected:
2312 int n;
2315 class overridden : public delegate
2317 public:
2318 overridden(int n): delegate(n) {}
2319 virtual int getval() override final { return this->n * 2; }
2322 class nocopy
2324 public:
2325 nocopy(int i): i(i) {}
2326 nocopy() = default;
2327 nocopy(const nocopy&) = delete;
2328 nocopy & operator=(const nocopy&) = delete;
2329 private:
2330 int i;
2333 // for testing lambda expressions
2334 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2336 return f(v);
2339 // for testing variadic templates and trailing return types
2340 template <typename V> auto sum(V first) -> V
2342 return first;
2344 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2346 return first + sum(rest...);
2351 # Test code for whether the C++ compiler supports C++11 (body of main)
2352 ac_cxx_conftest_cxx11_main='
2354 // Test auto and decltype
2355 auto a1 = 6538;
2356 auto a2 = 48573953.4;
2357 auto a3 = "String literal";
2359 int total = 0;
2360 for (auto i = a3; *i; ++i) { total += *i; }
2362 decltype(a2) a4 = 34895.034;
2365 // Test constexpr
2366 short sa[cxx11test::get_val()] = { 0 };
2369 // Test initializer lists
2370 cxx11test::testinit il = { 4323, 435234.23544 };
2373 // Test range-based for
2374 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2375 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2376 for (auto &x : array) { x += 23; }
2379 // Test lambda expressions
2380 using cxx11test::eval;
2381 assert (eval ([](int x) { return x*2; }, 21) == 42);
2382 double d = 2.0;
2383 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2384 assert (d == 5.0);
2385 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2386 assert (d == 5.0);
2389 // Test use of variadic templates
2390 using cxx11test::sum;
2391 auto a = sum(1);
2392 auto b = sum(1, 2);
2393 auto c = sum(1.0, 2.0, 3.0);
2396 // Test constructor delegation
2397 cxx11test::delegate d1;
2398 cxx11test::delegate d2();
2399 cxx11test::delegate d3(45);
2402 // Test override and final
2403 cxx11test::overridden o1(55464);
2406 // Test nullptr
2407 char *c = nullptr;
2410 // Test template brackets
2411 test_template<::test_template<int>> v(test_template<int>(12));
2414 // Unicode literals
2415 char const *utf8 = u8"UTF-8 string \u2500";
2416 char16_t const *utf16 = u"UTF-8 string \u2500";
2417 char32_t const *utf32 = U"UTF-32 string \u2500";
2421 # Test code for whether the C compiler supports C++11 (complete).
2422 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2423 ${ac_cxx_conftest_cxx11_globals}
2426 main (int argc, char **argv)
2428 int ok = 0;
2429 ${ac_cxx_conftest_cxx98_main}
2430 ${ac_cxx_conftest_cxx11_main}
2431 return ok;
2435 # Test code for whether the C compiler supports C++98 (complete).
2436 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2438 main (int argc, char **argv)
2440 int ok = 0;
2441 ${ac_cxx_conftest_cxx98_main}
2442 return ok;
2447 # Auxiliary files required by this configure script.
2448 ac_aux_files="missing install-sh config.guess config.sub compile"
2450 # Locations in which to look for auxiliary files.
2451 ac_aux_dir_candidates="${srcdir}/build-aux"
2453 # Search for a directory containing all of the required auxiliary files,
2454 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2455 # If we don't find one directory that contains all the files we need,
2456 # we report the set of missing files from the *first* directory in
2457 # $ac_aux_dir_candidates and give up.
2458 ac_missing_aux_files=""
2459 ac_first_candidate=:
2460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 as_found=false
2463 for as_dir in $ac_aux_dir_candidates
2465 IFS=$as_save_IFS
2466 case $as_dir in #(((
2467 '') as_dir=./ ;;
2468 */) ;;
2469 *) as_dir=$as_dir/ ;;
2470 esac
2471 as_found=:
2473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2474 ac_aux_dir_found=yes
2475 ac_install_sh=
2476 for ac_aux in $ac_aux_files
2478 # As a special case, if "install-sh" is required, that requirement
2479 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2480 # and $ac_install_sh is set appropriately for whichever one is found.
2481 if test x"$ac_aux" = x"install-sh"
2482 then
2483 if test -f "${as_dir}install-sh"; then
2484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2485 ac_install_sh="${as_dir}install-sh -c"
2486 elif test -f "${as_dir}install.sh"; then
2487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2488 ac_install_sh="${as_dir}install.sh -c"
2489 elif test -f "${as_dir}shtool"; then
2490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2491 ac_install_sh="${as_dir}shtool install -c"
2492 else
2493 ac_aux_dir_found=no
2494 if $ac_first_candidate; then
2495 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2496 else
2497 break
2500 else
2501 if test -f "${as_dir}${ac_aux}"; then
2502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2503 else
2504 ac_aux_dir_found=no
2505 if $ac_first_candidate; then
2506 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2507 else
2508 break
2512 done
2513 if test "$ac_aux_dir_found" = yes; then
2514 ac_aux_dir="$as_dir"
2515 break
2517 ac_first_candidate=false
2519 as_found=false
2520 done
2521 IFS=$as_save_IFS
2522 if $as_found
2523 then :
2525 else $as_nop
2526 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2530 # These three variables are undocumented and unsupported,
2531 # and are intended to be withdrawn in a future Autoconf release.
2532 # They can cause serious problems if a builder's source tree is in a directory
2533 # whose full name contains unusual characters.
2534 if test -f "${ac_aux_dir}config.guess"; then
2535 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2537 if test -f "${ac_aux_dir}config.sub"; then
2538 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2540 if test -f "$ac_aux_dir/configure"; then
2541 ac_configure="$SHELL ${ac_aux_dir}configure"
2544 # Check that the precious variables saved in the cache have kept the same
2545 # value.
2546 ac_cache_corrupted=false
2547 for ac_var in $ac_precious_vars; do
2548 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2549 eval ac_new_set=\$ac_env_${ac_var}_set
2550 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2551 eval ac_new_val=\$ac_env_${ac_var}_value
2552 case $ac_old_set,$ac_new_set in
2553 set,)
2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2555 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2556 ac_cache_corrupted=: ;;
2557 ,set)
2558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2559 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2560 ac_cache_corrupted=: ;;
2561 ,);;
2563 if test "x$ac_old_val" != "x$ac_new_val"; then
2564 # differences in whitespace do not lead to failure.
2565 ac_old_val_w=`echo x $ac_old_val`
2566 ac_new_val_w=`echo x $ac_new_val`
2567 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2569 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2570 ac_cache_corrupted=:
2571 else
2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2573 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2574 eval $ac_var=\$ac_old_val
2576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2577 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2579 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2580 fi;;
2581 esac
2582 # Pass precious variables to config.status.
2583 if test "$ac_new_set" = set; then
2584 case $ac_new_val in
2585 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2586 *) ac_arg=$ac_var=$ac_new_val ;;
2587 esac
2588 case " $ac_configure_args " in
2589 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2590 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2591 esac
2593 done
2594 if $ac_cache_corrupted; then
2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2598 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2599 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2600 and start over" "$LINENO" 5
2602 ## -------------------- ##
2603 ## Main body of script. ##
2604 ## -------------------- ##
2606 ac_ext=c
2607 ac_cpp='$CPP $CPPFLAGS'
2608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2615 : ${CFLAGS=""}
2616 : ${CXXFLAGS=""}
2626 ac_ext=c
2627 ac_cpp='$CPP $CPPFLAGS'
2628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631 if test -n "$ac_tool_prefix"; then
2632 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2633 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 printf %s "checking for $ac_word... " >&6; }
2636 if test ${ac_cv_prog_CC+y}
2637 then :
2638 printf %s "(cached) " >&6
2639 else $as_nop
2640 if test -n "$CC"; then
2641 ac_cv_prog_CC="$CC" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2646 IFS=$as_save_IFS
2647 case $as_dir in #(((
2648 '') as_dir=./ ;;
2649 */) ;;
2650 *) as_dir=$as_dir/ ;;
2651 esac
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2654 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2656 break 2
2658 done
2659 done
2660 IFS=$as_save_IFS
2664 CC=$ac_cv_prog_CC
2665 if test -n "$CC"; then
2666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2667 printf "%s\n" "$CC" >&6; }
2668 else
2669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670 printf "%s\n" "no" >&6; }
2675 if test -z "$ac_cv_prog_CC"; then
2676 ac_ct_CC=$CC
2677 # Extract the first word of "gcc", so it can be a program name with args.
2678 set dummy gcc; ac_word=$2
2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 printf %s "checking for $ac_word... " >&6; }
2681 if test ${ac_cv_prog_ac_ct_CC+y}
2682 then :
2683 printf %s "(cached) " >&6
2684 else $as_nop
2685 if test -n "$ac_ct_CC"; then
2686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2691 IFS=$as_save_IFS
2692 case $as_dir in #(((
2693 '') as_dir=./ ;;
2694 */) ;;
2695 *) as_dir=$as_dir/ ;;
2696 esac
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2699 ac_cv_prog_ac_ct_CC="gcc"
2700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2701 break 2
2703 done
2704 done
2705 IFS=$as_save_IFS
2709 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2710 if test -n "$ac_ct_CC"; then
2711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2712 printf "%s\n" "$ac_ct_CC" >&6; }
2713 else
2714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 printf "%s\n" "no" >&6; }
2718 if test "x$ac_ct_CC" = x; then
2719 CC=""
2720 else
2721 case $cross_compiling:$ac_tool_warned in
2722 yes:)
2723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2724 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2725 ac_tool_warned=yes ;;
2726 esac
2727 CC=$ac_ct_CC
2729 else
2730 CC="$ac_cv_prog_CC"
2733 if test -z "$CC"; then
2734 if test -n "$ac_tool_prefix"; then
2735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2736 set dummy ${ac_tool_prefix}cc; ac_word=$2
2737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738 printf %s "checking for $ac_word... " >&6; }
2739 if test ${ac_cv_prog_CC+y}
2740 then :
2741 printf %s "(cached) " >&6
2742 else $as_nop
2743 if test -n "$CC"; then
2744 ac_cv_prog_CC="$CC" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2749 IFS=$as_save_IFS
2750 case $as_dir in #(((
2751 '') as_dir=./ ;;
2752 */) ;;
2753 *) as_dir=$as_dir/ ;;
2754 esac
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2757 ac_cv_prog_CC="${ac_tool_prefix}cc"
2758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2759 break 2
2761 done
2762 done
2763 IFS=$as_save_IFS
2767 CC=$ac_cv_prog_CC
2768 if test -n "$CC"; then
2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2770 printf "%s\n" "$CC" >&6; }
2771 else
2772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 printf "%s\n" "no" >&6; }
2779 if test -z "$CC"; then
2780 # Extract the first word of "cc", so it can be a program name with args.
2781 set dummy cc; ac_word=$2
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 printf %s "checking for $ac_word... " >&6; }
2784 if test ${ac_cv_prog_CC+y}
2785 then :
2786 printf %s "(cached) " >&6
2787 else $as_nop
2788 if test -n "$CC"; then
2789 ac_cv_prog_CC="$CC" # Let the user override the test.
2790 else
2791 ac_prog_rejected=no
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2795 IFS=$as_save_IFS
2796 case $as_dir in #(((
2797 '') as_dir=./ ;;
2798 */) ;;
2799 *) as_dir=$as_dir/ ;;
2800 esac
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2803 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2804 ac_prog_rejected=yes
2805 continue
2807 ac_cv_prog_CC="cc"
2808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2809 break 2
2811 done
2812 done
2813 IFS=$as_save_IFS
2815 if test $ac_prog_rejected = yes; then
2816 # We found a bogon in the path, so make sure we never use it.
2817 set dummy $ac_cv_prog_CC
2818 shift
2819 if test $# != 0; then
2820 # We chose a different compiler from the bogus one.
2821 # However, it has the same basename, so the bogon will be chosen
2822 # first if we set CC to just the basename; use the full file name.
2823 shift
2824 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2829 CC=$ac_cv_prog_CC
2830 if test -n "$CC"; then
2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2832 printf "%s\n" "$CC" >&6; }
2833 else
2834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 printf "%s\n" "no" >&6; }
2840 if test -z "$CC"; then
2841 if test -n "$ac_tool_prefix"; then
2842 for ac_prog in cl.exe
2844 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2845 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 printf %s "checking for $ac_word... " >&6; }
2848 if test ${ac_cv_prog_CC+y}
2849 then :
2850 printf %s "(cached) " >&6
2851 else $as_nop
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2858 IFS=$as_save_IFS
2859 case $as_dir in #(((
2860 '') as_dir=./ ;;
2861 */) ;;
2862 *) as_dir=$as_dir/ ;;
2863 esac
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2868 break 2
2870 done
2871 done
2872 IFS=$as_save_IFS
2876 CC=$ac_cv_prog_CC
2877 if test -n "$CC"; then
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879 printf "%s\n" "$CC" >&6; }
2880 else
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 printf "%s\n" "no" >&6; }
2886 test -n "$CC" && break
2887 done
2889 if test -z "$CC"; then
2890 ac_ct_CC=$CC
2891 for ac_prog in cl.exe
2893 # Extract the first word of "$ac_prog", so it can be a program name with args.
2894 set dummy $ac_prog; ac_word=$2
2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 printf %s "checking for $ac_word... " >&6; }
2897 if test ${ac_cv_prog_ac_ct_CC+y}
2898 then :
2899 printf %s "(cached) " >&6
2900 else $as_nop
2901 if test -n "$ac_ct_CC"; then
2902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2907 IFS=$as_save_IFS
2908 case $as_dir in #(((
2909 '') as_dir=./ ;;
2910 */) ;;
2911 *) as_dir=$as_dir/ ;;
2912 esac
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2915 ac_cv_prog_ac_ct_CC="$ac_prog"
2916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2917 break 2
2919 done
2920 done
2921 IFS=$as_save_IFS
2925 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2926 if test -n "$ac_ct_CC"; then
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2928 printf "%s\n" "$ac_ct_CC" >&6; }
2929 else
2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 printf "%s\n" "no" >&6; }
2935 test -n "$ac_ct_CC" && break
2936 done
2938 if test "x$ac_ct_CC" = x; then
2939 CC=""
2940 else
2941 case $cross_compiling:$ac_tool_warned in
2942 yes:)
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2944 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2945 ac_tool_warned=yes ;;
2946 esac
2947 CC=$ac_ct_CC
2952 if test -z "$CC"; then
2953 if test -n "$ac_tool_prefix"; then
2954 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2955 set dummy ${ac_tool_prefix}clang; ac_word=$2
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 printf %s "checking for $ac_word... " >&6; }
2958 if test ${ac_cv_prog_CC+y}
2959 then :
2960 printf %s "(cached) " >&6
2961 else $as_nop
2962 if test -n "$CC"; then
2963 ac_cv_prog_CC="$CC" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2968 IFS=$as_save_IFS
2969 case $as_dir in #(((
2970 '') as_dir=./ ;;
2971 */) ;;
2972 *) as_dir=$as_dir/ ;;
2973 esac
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2976 ac_cv_prog_CC="${ac_tool_prefix}clang"
2977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2978 break 2
2980 done
2981 done
2982 IFS=$as_save_IFS
2986 CC=$ac_cv_prog_CC
2987 if test -n "$CC"; then
2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2989 printf "%s\n" "$CC" >&6; }
2990 else
2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 printf "%s\n" "no" >&6; }
2997 if test -z "$ac_cv_prog_CC"; then
2998 ac_ct_CC=$CC
2999 # Extract the first word of "clang", so it can be a program name with args.
3000 set dummy clang; ac_word=$2
3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 printf %s "checking for $ac_word... " >&6; }
3003 if test ${ac_cv_prog_ac_ct_CC+y}
3004 then :
3005 printf %s "(cached) " >&6
3006 else $as_nop
3007 if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3013 IFS=$as_save_IFS
3014 case $as_dir in #(((
3015 '') as_dir=./ ;;
3016 */) ;;
3017 *) as_dir=$as_dir/ ;;
3018 esac
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3021 ac_cv_prog_ac_ct_CC="clang"
3022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3023 break 2
3025 done
3026 done
3027 IFS=$as_save_IFS
3031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3032 if test -n "$ac_ct_CC"; then
3033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3034 printf "%s\n" "$ac_ct_CC" >&6; }
3035 else
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 printf "%s\n" "no" >&6; }
3040 if test "x$ac_ct_CC" = x; then
3041 CC=""
3042 else
3043 case $cross_compiling:$ac_tool_warned in
3044 yes:)
3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3046 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3047 ac_tool_warned=yes ;;
3048 esac
3049 CC=$ac_ct_CC
3051 else
3052 CC="$ac_cv_prog_CC"
3058 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3060 as_fn_error $? "no acceptable C compiler found in \$PATH
3061 See \`config.log' for more details" "$LINENO" 5; }
3063 # Provide some information about the compiler.
3064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3065 set X $ac_compile
3066 ac_compiler=$2
3067 for ac_option in --version -v -V -qversion -version; do
3068 { { ac_try="$ac_compiler $ac_option >&5"
3069 case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 printf "%s\n" "$ac_try_echo"; } >&5
3075 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3076 ac_status=$?
3077 if test -s conftest.err; then
3078 sed '10a\
3079 ... rest of stderr output deleted ...
3080 10q' conftest.err >conftest.er1
3081 cat conftest.er1 >&5
3083 rm -f conftest.er1 conftest.err
3084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085 test $ac_status = 0; }
3086 done
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089 /* end confdefs.h. */
3092 main (void)
3096 return 0;
3098 _ACEOF
3099 ac_clean_files_save=$ac_clean_files
3100 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3101 # Try to create an executable without -o first, disregard a.out.
3102 # It will help us diagnose broken compilers, and finding out an intuition
3103 # of exeext.
3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3105 printf %s "checking whether the C compiler works... " >&6; }
3106 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3108 # The possible output files:
3109 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3111 ac_rmfiles=
3112 for ac_file in $ac_files
3114 case $ac_file in
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3116 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3117 esac
3118 done
3119 rm -f $ac_rmfiles
3121 if { { ac_try="$ac_link_default"
3122 case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125 esac
3126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 printf "%s\n" "$ac_try_echo"; } >&5
3128 (eval "$ac_link_default") 2>&5
3129 ac_status=$?
3130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131 test $ac_status = 0; }
3132 then :
3133 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3134 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3135 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3136 # so that the user can short-circuit this test for compilers unknown to
3137 # Autoconf.
3138 for ac_file in $ac_files ''
3140 test -f "$ac_file" || continue
3141 case $ac_file in
3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3144 [ab].out )
3145 # We found the default executable, but exeext='' is most
3146 # certainly right.
3147 break;;
3148 *.* )
3149 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3150 then :; else
3151 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3153 # We set ac_cv_exeext here because the later test for it is not
3154 # safe: cross compilers may not add the suffix if given an `-o'
3155 # argument, so we may need to know it at that point already.
3156 # Even if this section looks crufty: it has the advantage of
3157 # actually working.
3158 break;;
3160 break;;
3161 esac
3162 done
3163 test "$ac_cv_exeext" = no && ac_cv_exeext=
3165 else $as_nop
3166 ac_file=''
3168 if test -z "$ac_file"
3169 then :
3170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 printf "%s\n" "no" >&6; }
3172 printf "%s\n" "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3175 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3177 as_fn_error 77 "C compiler cannot create executables
3178 See \`config.log' for more details" "$LINENO" 5; }
3179 else $as_nop
3180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3181 printf "%s\n" "yes" >&6; }
3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3184 printf %s "checking for C compiler default output file name... " >&6; }
3185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3186 printf "%s\n" "$ac_file" >&6; }
3187 ac_exeext=$ac_cv_exeext
3189 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3190 ac_clean_files=$ac_clean_files_save
3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3192 printf %s "checking for suffix of executables... " >&6; }
3193 if { { ac_try="$ac_link"
3194 case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197 esac
3198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199 printf "%s\n" "$ac_try_echo"; } >&5
3200 (eval "$ac_link") 2>&5
3201 ac_status=$?
3202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 test $ac_status = 0; }
3204 then :
3205 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3206 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3207 # work properly (i.e., refer to `conftest.exe'), while it won't with
3208 # `rm'.
3209 for ac_file in conftest.exe conftest conftest.*; do
3210 test -f "$ac_file" || continue
3211 case $ac_file in
3212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3213 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3214 break;;
3215 * ) break;;
3216 esac
3217 done
3218 else $as_nop
3219 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3222 See \`config.log' for more details" "$LINENO" 5; }
3224 rm -f conftest conftest$ac_cv_exeext
3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3226 printf "%s\n" "$ac_cv_exeext" >&6; }
3228 rm -f conftest.$ac_ext
3229 EXEEXT=$ac_cv_exeext
3230 ac_exeext=$EXEEXT
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3233 #include <stdio.h>
3235 main (void)
3237 FILE *f = fopen ("conftest.out", "w");
3238 return ferror (f) || fclose (f) != 0;
3241 return 0;
3243 _ACEOF
3244 ac_clean_files="$ac_clean_files conftest.out"
3245 # Check that the compiler produces executables we can run. If not, either
3246 # the compiler is broken, or we cross compile.
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3248 printf %s "checking whether we are cross compiling... " >&6; }
3249 if test "$cross_compiling" != yes; then
3250 { { ac_try="$ac_link"
3251 case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254 esac
3255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256 printf "%s\n" "$ac_try_echo"; } >&5
3257 (eval "$ac_link") 2>&5
3258 ac_status=$?
3259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }
3261 if { ac_try='./conftest$ac_cv_exeext'
3262 { { case "(($ac_try" in
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3265 esac
3266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267 printf "%s\n" "$ac_try_echo"; } >&5
3268 (eval "$ac_try") 2>&5
3269 ac_status=$?
3270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271 test $ac_status = 0; }; }; then
3272 cross_compiling=no
3273 else
3274 if test "$cross_compiling" = maybe; then
3275 cross_compiling=yes
3276 else
3277 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error 77 "cannot run C compiled programs.
3280 If you meant to cross compile, use \`--host'.
3281 See \`config.log' for more details" "$LINENO" 5; }
3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3286 printf "%s\n" "$cross_compiling" >&6; }
3288 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3289 ac_clean_files=$ac_clean_files_save
3290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3291 printf %s "checking for suffix of object files... " >&6; }
3292 if test ${ac_cv_objext+y}
3293 then :
3294 printf %s "(cached) " >&6
3295 else $as_nop
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3300 main (void)
3304 return 0;
3306 _ACEOF
3307 rm -f conftest.o conftest.obj
3308 if { { ac_try="$ac_compile"
3309 case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312 esac
3313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314 printf "%s\n" "$ac_try_echo"; } >&5
3315 (eval "$ac_compile") 2>&5
3316 ac_status=$?
3317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318 test $ac_status = 0; }
3319 then :
3320 for ac_file in conftest.o conftest.obj conftest.*; do
3321 test -f "$ac_file" || continue;
3322 case $ac_file in
3323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3324 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3325 break;;
3326 esac
3327 done
3328 else $as_nop
3329 printf "%s\n" "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3332 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3334 as_fn_error $? "cannot compute suffix of object files: cannot compile
3335 See \`config.log' for more details" "$LINENO" 5; }
3337 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3340 printf "%s\n" "$ac_cv_objext" >&6; }
3341 OBJEXT=$ac_cv_objext
3342 ac_objext=$OBJEXT
3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3344 printf %s "checking whether the compiler supports GNU C... " >&6; }
3345 if test ${ac_cv_c_compiler_gnu+y}
3346 then :
3347 printf %s "(cached) " >&6
3348 else $as_nop
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3353 main (void)
3355 #ifndef __GNUC__
3356 choke me
3357 #endif
3360 return 0;
3362 _ACEOF
3363 if ac_fn_c_try_compile "$LINENO"
3364 then :
3365 ac_compiler_gnu=yes
3366 else $as_nop
3367 ac_compiler_gnu=no
3369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3370 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3374 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3377 if test $ac_compiler_gnu = yes; then
3378 GCC=yes
3379 else
3380 GCC=
3382 ac_test_CFLAGS=${CFLAGS+y}
3383 ac_save_CFLAGS=$CFLAGS
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3385 printf %s "checking whether $CC accepts -g... " >&6; }
3386 if test ${ac_cv_prog_cc_g+y}
3387 then :
3388 printf %s "(cached) " >&6
3389 else $as_nop
3390 ac_save_c_werror_flag=$ac_c_werror_flag
3391 ac_c_werror_flag=yes
3392 ac_cv_prog_cc_g=no
3393 CFLAGS="-g"
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3398 main (void)
3402 return 0;
3404 _ACEOF
3405 if ac_fn_c_try_compile "$LINENO"
3406 then :
3407 ac_cv_prog_cc_g=yes
3408 else $as_nop
3409 CFLAGS=""
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3414 main (void)
3418 return 0;
3420 _ACEOF
3421 if ac_fn_c_try_compile "$LINENO"
3422 then :
3424 else $as_nop
3425 ac_c_werror_flag=$ac_save_c_werror_flag
3426 CFLAGS="-g"
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3431 main (void)
3435 return 0;
3437 _ACEOF
3438 if ac_fn_c_try_compile "$LINENO"
3439 then :
3440 ac_cv_prog_cc_g=yes
3442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3447 ac_c_werror_flag=$ac_save_c_werror_flag
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3450 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3451 if test $ac_test_CFLAGS; then
3452 CFLAGS=$ac_save_CFLAGS
3453 elif test $ac_cv_prog_cc_g = yes; then
3454 if test "$GCC" = yes; then
3455 CFLAGS="-g -O2"
3456 else
3457 CFLAGS="-g"
3459 else
3460 if test "$GCC" = yes; then
3461 CFLAGS="-O2"
3462 else
3463 CFLAGS=
3466 ac_prog_cc_stdc=no
3467 if test x$ac_prog_cc_stdc = xno
3468 then :
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3470 printf %s "checking for $CC option to enable C11 features... " >&6; }
3471 if test ${ac_cv_prog_cc_c11+y}
3472 then :
3473 printf %s "(cached) " >&6
3474 else $as_nop
3475 ac_cv_prog_cc_c11=no
3476 ac_save_CC=$CC
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3479 $ac_c_conftest_c11_program
3480 _ACEOF
3481 for ac_arg in '' -std=gnu11
3483 CC="$ac_save_CC $ac_arg"
3484 if ac_fn_c_try_compile "$LINENO"
3485 then :
3486 ac_cv_prog_cc_c11=$ac_arg
3488 rm -f core conftest.err conftest.$ac_objext conftest.beam
3489 test "x$ac_cv_prog_cc_c11" != "xno" && break
3490 done
3491 rm -f conftest.$ac_ext
3492 CC=$ac_save_CC
3495 if test "x$ac_cv_prog_cc_c11" = xno
3496 then :
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3498 printf "%s\n" "unsupported" >&6; }
3499 else $as_nop
3500 if test "x$ac_cv_prog_cc_c11" = x
3501 then :
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3503 printf "%s\n" "none needed" >&6; }
3504 else $as_nop
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3506 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3507 CC="$CC $ac_cv_prog_cc_c11"
3509 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3510 ac_prog_cc_stdc=c11
3513 if test x$ac_prog_cc_stdc = xno
3514 then :
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3516 printf %s "checking for $CC option to enable C99 features... " >&6; }
3517 if test ${ac_cv_prog_cc_c99+y}
3518 then :
3519 printf %s "(cached) " >&6
3520 else $as_nop
3521 ac_cv_prog_cc_c99=no
3522 ac_save_CC=$CC
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3525 $ac_c_conftest_c99_program
3526 _ACEOF
3527 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3529 CC="$ac_save_CC $ac_arg"
3530 if ac_fn_c_try_compile "$LINENO"
3531 then :
3532 ac_cv_prog_cc_c99=$ac_arg
3534 rm -f core conftest.err conftest.$ac_objext conftest.beam
3535 test "x$ac_cv_prog_cc_c99" != "xno" && break
3536 done
3537 rm -f conftest.$ac_ext
3538 CC=$ac_save_CC
3541 if test "x$ac_cv_prog_cc_c99" = xno
3542 then :
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3544 printf "%s\n" "unsupported" >&6; }
3545 else $as_nop
3546 if test "x$ac_cv_prog_cc_c99" = x
3547 then :
3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3549 printf "%s\n" "none needed" >&6; }
3550 else $as_nop
3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3552 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3553 CC="$CC $ac_cv_prog_cc_c99"
3555 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3556 ac_prog_cc_stdc=c99
3559 if test x$ac_prog_cc_stdc = xno
3560 then :
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3562 printf %s "checking for $CC option to enable C89 features... " >&6; }
3563 if test ${ac_cv_prog_cc_c89+y}
3564 then :
3565 printf %s "(cached) " >&6
3566 else $as_nop
3567 ac_cv_prog_cc_c89=no
3568 ac_save_CC=$CC
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3571 $ac_c_conftest_c89_program
3572 _ACEOF
3573 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3575 CC="$ac_save_CC $ac_arg"
3576 if ac_fn_c_try_compile "$LINENO"
3577 then :
3578 ac_cv_prog_cc_c89=$ac_arg
3580 rm -f core conftest.err conftest.$ac_objext conftest.beam
3581 test "x$ac_cv_prog_cc_c89" != "xno" && break
3582 done
3583 rm -f conftest.$ac_ext
3584 CC=$ac_save_CC
3587 if test "x$ac_cv_prog_cc_c89" = xno
3588 then :
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3590 printf "%s\n" "unsupported" >&6; }
3591 else $as_nop
3592 if test "x$ac_cv_prog_cc_c89" = x
3593 then :
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3595 printf "%s\n" "none needed" >&6; }
3596 else $as_nop
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3598 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3599 CC="$CC $ac_cv_prog_cc_c89"
3601 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3602 ac_prog_cc_stdc=c89
3606 ac_ext=c
3607 ac_cpp='$CPP $CPPFLAGS'
3608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614 # Expand $ac_aux_dir to an absolute path.
3615 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3618 ac_ext=c
3619 ac_cpp='$CPP $CPPFLAGS'
3620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3624 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3625 if test ${am_cv_prog_cc_c_o+y}
3626 then :
3627 printf %s "(cached) " >&6
3628 else $as_nop
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3633 main (void)
3637 return 0;
3639 _ACEOF
3640 # Make sure it works both with $CC and with simple cc.
3641 # Following AC_PROG_CC_C_O, we do the test twice because some
3642 # compilers refuse to overwrite an existing .o file with -o,
3643 # though they will create one.
3644 am_cv_prog_cc_c_o=yes
3645 for am_i in 1 2; do
3646 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3647 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } \
3651 && test -f conftest2.$ac_objext; then
3652 : OK
3653 else
3654 am_cv_prog_cc_c_o=no
3655 break
3657 done
3658 rm -f core conftest*
3659 unset am_i
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3662 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3663 if test "$am_cv_prog_cc_c_o" != yes; then
3664 # Losing compiler, so override with the script.
3665 # FIXME: It is wrong to rewrite CC.
3666 # But if we don't then we get into trouble of one sort or another.
3667 # A longer-term fix would be to have automake use am__CC in this case,
3668 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3669 CC="$am_aux_dir/compile $CC"
3671 ac_ext=c
3672 ac_cpp='$CPP $CPPFLAGS'
3673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684 ac_ext=cpp
3685 ac_cpp='$CXXCPP $CPPFLAGS'
3686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3689 if test -z "$CXX"; then
3690 if test -n "$CCC"; then
3691 CXX=$CCC
3692 else
3693 if test -n "$ac_tool_prefix"; then
3694 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699 printf %s "checking for $ac_word... " >&6; }
3700 if test ${ac_cv_prog_CXX+y}
3701 then :
3702 printf %s "(cached) " >&6
3703 else $as_nop
3704 if test -n "$CXX"; then
3705 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3706 else
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3710 IFS=$as_save_IFS
3711 case $as_dir in #(((
3712 '') as_dir=./ ;;
3713 */) ;;
3714 *) as_dir=$as_dir/ ;;
3715 esac
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3720 break 2
3722 done
3723 done
3724 IFS=$as_save_IFS
3728 CXX=$ac_cv_prog_CXX
3729 if test -n "$CXX"; then
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3731 printf "%s\n" "$CXX" >&6; }
3732 else
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 printf "%s\n" "no" >&6; }
3738 test -n "$CXX" && break
3739 done
3741 if test -z "$CXX"; then
3742 ac_ct_CXX=$CXX
3743 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3745 # Extract the first word of "$ac_prog", so it can be a program name with args.
3746 set dummy $ac_prog; ac_word=$2
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 printf %s "checking for $ac_word... " >&6; }
3749 if test ${ac_cv_prog_ac_ct_CXX+y}
3750 then :
3751 printf %s "(cached) " >&6
3752 else $as_nop
3753 if test -n "$ac_ct_CXX"; then
3754 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3755 else
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 for as_dir in $PATH
3759 IFS=$as_save_IFS
3760 case $as_dir in #(((
3761 '') as_dir=./ ;;
3762 */) ;;
3763 *) as_dir=$as_dir/ ;;
3764 esac
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3767 ac_cv_prog_ac_ct_CXX="$ac_prog"
3768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3769 break 2
3771 done
3772 done
3773 IFS=$as_save_IFS
3777 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3778 if test -n "$ac_ct_CXX"; then
3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3780 printf "%s\n" "$ac_ct_CXX" >&6; }
3781 else
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 printf "%s\n" "no" >&6; }
3787 test -n "$ac_ct_CXX" && break
3788 done
3790 if test "x$ac_ct_CXX" = x; then
3791 CXX="g++"
3792 else
3793 case $cross_compiling:$ac_tool_warned in
3794 yes:)
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3796 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3797 ac_tool_warned=yes ;;
3798 esac
3799 CXX=$ac_ct_CXX
3805 # Provide some information about the compiler.
3806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3807 set X $ac_compile
3808 ac_compiler=$2
3809 for ac_option in --version -v -V -qversion; do
3810 { { ac_try="$ac_compiler $ac_option >&5"
3811 case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3814 esac
3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 printf "%s\n" "$ac_try_echo"; } >&5
3817 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3818 ac_status=$?
3819 if test -s conftest.err; then
3820 sed '10a\
3821 ... rest of stderr output deleted ...
3822 10q' conftest.err >conftest.er1
3823 cat conftest.er1 >&5
3825 rm -f conftest.er1 conftest.err
3826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }
3828 done
3830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
3831 printf %s "checking whether the compiler supports GNU C++... " >&6; }
3832 if test ${ac_cv_cxx_compiler_gnu+y}
3833 then :
3834 printf %s "(cached) " >&6
3835 else $as_nop
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3840 main (void)
3842 #ifndef __GNUC__
3843 choke me
3844 #endif
3847 return 0;
3849 _ACEOF
3850 if ac_fn_cxx_try_compile "$LINENO"
3851 then :
3852 ac_compiler_gnu=yes
3853 else $as_nop
3854 ac_compiler_gnu=no
3856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3857 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3861 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
3862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3864 if test $ac_compiler_gnu = yes; then
3865 GXX=yes
3866 else
3867 GXX=
3869 ac_test_CXXFLAGS=${CXXFLAGS+y}
3870 ac_save_CXXFLAGS=$CXXFLAGS
3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3872 printf %s "checking whether $CXX accepts -g... " >&6; }
3873 if test ${ac_cv_prog_cxx_g+y}
3874 then :
3875 printf %s "(cached) " >&6
3876 else $as_nop
3877 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3878 ac_cxx_werror_flag=yes
3879 ac_cv_prog_cxx_g=no
3880 CXXFLAGS="-g"
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3885 main (void)
3889 return 0;
3891 _ACEOF
3892 if ac_fn_cxx_try_compile "$LINENO"
3893 then :
3894 ac_cv_prog_cxx_g=yes
3895 else $as_nop
3896 CXXFLAGS=""
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3901 main (void)
3905 return 0;
3907 _ACEOF
3908 if ac_fn_cxx_try_compile "$LINENO"
3909 then :
3911 else $as_nop
3912 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3913 CXXFLAGS="-g"
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3918 main (void)
3922 return 0;
3924 _ACEOF
3925 if ac_fn_cxx_try_compile "$LINENO"
3926 then :
3927 ac_cv_prog_cxx_g=yes
3929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3934 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3937 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
3938 if test $ac_test_CXXFLAGS; then
3939 CXXFLAGS=$ac_save_CXXFLAGS
3940 elif test $ac_cv_prog_cxx_g = yes; then
3941 if test "$GXX" = yes; then
3942 CXXFLAGS="-g -O2"
3943 else
3944 CXXFLAGS="-g"
3946 else
3947 if test "$GXX" = yes; then
3948 CXXFLAGS="-O2"
3949 else
3950 CXXFLAGS=
3953 ac_prog_cxx_stdcxx=no
3954 if test x$ac_prog_cxx_stdcxx = xno
3955 then :
3956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
3957 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
3958 if test ${ac_cv_prog_cxx_11+y}
3959 then :
3960 printf %s "(cached) " >&6
3961 else $as_nop
3962 ac_cv_prog_cxx_11=no
3963 ac_save_CXX=$CXX
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966 $ac_cxx_conftest_cxx11_program
3967 _ACEOF
3968 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
3970 CXX="$ac_save_CXX $ac_arg"
3971 if ac_fn_cxx_try_compile "$LINENO"
3972 then :
3973 ac_cv_prog_cxx_cxx11=$ac_arg
3975 rm -f core conftest.err conftest.$ac_objext conftest.beam
3976 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
3977 done
3978 rm -f conftest.$ac_ext
3979 CXX=$ac_save_CXX
3982 if test "x$ac_cv_prog_cxx_cxx11" = xno
3983 then :
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3985 printf "%s\n" "unsupported" >&6; }
3986 else $as_nop
3987 if test "x$ac_cv_prog_cxx_cxx11" = x
3988 then :
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3990 printf "%s\n" "none needed" >&6; }
3991 else $as_nop
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
3993 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
3994 CXX="$CXX $ac_cv_prog_cxx_cxx11"
3996 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
3997 ac_prog_cxx_stdcxx=cxx11
4000 if test x$ac_prog_cxx_stdcxx = xno
4001 then :
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4003 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4004 if test ${ac_cv_prog_cxx_98+y}
4005 then :
4006 printf %s "(cached) " >&6
4007 else $as_nop
4008 ac_cv_prog_cxx_98=no
4009 ac_save_CXX=$CXX
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012 $ac_cxx_conftest_cxx98_program
4013 _ACEOF
4014 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4016 CXX="$ac_save_CXX $ac_arg"
4017 if ac_fn_cxx_try_compile "$LINENO"
4018 then :
4019 ac_cv_prog_cxx_cxx98=$ac_arg
4021 rm -f core conftest.err conftest.$ac_objext conftest.beam
4022 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4023 done
4024 rm -f conftest.$ac_ext
4025 CXX=$ac_save_CXX
4028 if test "x$ac_cv_prog_cxx_cxx98" = xno
4029 then :
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4031 printf "%s\n" "unsupported" >&6; }
4032 else $as_nop
4033 if test "x$ac_cv_prog_cxx_cxx98" = x
4034 then :
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4036 printf "%s\n" "none needed" >&6; }
4037 else $as_nop
4038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4039 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4040 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4042 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4043 ac_prog_cxx_stdcxx=cxx98
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4054 printf %s "checking for a sed that does not truncate output... " >&6; }
4055 if test ${ac_cv_path_SED+y}
4056 then :
4057 printf %s "(cached) " >&6
4058 else $as_nop
4059 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4060 for ac_i in 1 2 3 4 5 6 7; do
4061 ac_script="$ac_script$as_nl$ac_script"
4062 done
4063 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4064 { ac_script=; unset ac_script;}
4065 if test -z "$SED"; then
4066 ac_path_SED_found=false
4067 # Loop through the user's path and test for each of PROGNAME-LIST
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4071 IFS=$as_save_IFS
4072 case $as_dir in #(((
4073 '') as_dir=./ ;;
4074 */) ;;
4075 *) as_dir=$as_dir/ ;;
4076 esac
4077 for ac_prog in sed gsed
4079 for ac_exec_ext in '' $ac_executable_extensions; do
4080 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4081 as_fn_executable_p "$ac_path_SED" || continue
4082 # Check for GNU ac_path_SED and select it if it is found.
4083 # Check for GNU $ac_path_SED
4084 case `"$ac_path_SED" --version 2>&1` in
4085 *GNU*)
4086 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4088 ac_count=0
4089 printf %s 0123456789 >"conftest.in"
4090 while :
4092 cat "conftest.in" "conftest.in" >"conftest.tmp"
4093 mv "conftest.tmp" "conftest.in"
4094 cp "conftest.in" "conftest.nl"
4095 printf "%s\n" '' >> "conftest.nl"
4096 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4098 as_fn_arith $ac_count + 1 && ac_count=$as_val
4099 if test $ac_count -gt ${ac_path_SED_max-0}; then
4100 # Best one so far, save it but keep looking for a better one
4101 ac_cv_path_SED="$ac_path_SED"
4102 ac_path_SED_max=$ac_count
4104 # 10*(2^10) chars as input seems more than enough
4105 test $ac_count -gt 10 && break
4106 done
4107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4108 esac
4110 $ac_path_SED_found && break 3
4111 done
4112 done
4113 done
4114 IFS=$as_save_IFS
4115 if test -z "$ac_cv_path_SED"; then
4116 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4118 else
4119 ac_cv_path_SED=$SED
4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4124 printf "%s\n" "$ac_cv_path_SED" >&6; }
4125 SED="$ac_cv_path_SED"
4126 rm -f conftest.sed
4128 ac_ext=cpp
4129 ac_cpp='$CXXCPP $CPPFLAGS'
4130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4136 # Make sure we can run config.sub.
4137 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4138 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4141 printf %s "checking build system type... " >&6; }
4142 if test ${ac_cv_build+y}
4143 then :
4144 printf %s "(cached) " >&6
4145 else $as_nop
4146 ac_build_alias=$build_alias
4147 test "x$ac_build_alias" = x &&
4148 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4149 test "x$ac_build_alias" = x &&
4150 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4151 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4152 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4156 printf "%s\n" "$ac_cv_build" >&6; }
4157 case $ac_cv_build in
4158 *-*-*) ;;
4159 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4160 esac
4161 build=$ac_cv_build
4162 ac_save_IFS=$IFS; IFS='-'
4163 set x $ac_cv_build
4164 shift
4165 build_cpu=$1
4166 build_vendor=$2
4167 shift; shift
4168 # Remember, the first character of IFS is used to create $*,
4169 # except with old shells:
4170 build_os=$*
4171 IFS=$ac_save_IFS
4172 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4176 printf %s "checking host system type... " >&6; }
4177 if test ${ac_cv_host+y}
4178 then :
4179 printf %s "(cached) " >&6
4180 else $as_nop
4181 if test "x$host_alias" = x; then
4182 ac_cv_host=$ac_cv_build
4183 else
4184 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4185 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4190 printf "%s\n" "$ac_cv_host" >&6; }
4191 case $ac_cv_host in
4192 *-*-*) ;;
4193 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4194 esac
4195 host=$ac_cv_host
4196 ac_save_IFS=$IFS; IFS='-'
4197 set x $ac_cv_host
4198 shift
4199 host_cpu=$1
4200 host_vendor=$2
4201 shift; shift
4202 # Remember, the first character of IFS is used to create $*,
4203 # except with old shells:
4204 host_os=$*
4205 IFS=$ac_save_IFS
4206 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4209 am__api_version='1.16'
4212 # Find a good install program. We prefer a C program (faster),
4213 # so one script is as good as another. But avoid the broken or
4214 # incompatible versions:
4215 # SysV /etc/install, /usr/sbin/install
4216 # SunOS /usr/etc/install
4217 # IRIX /sbin/install
4218 # AIX /bin/install
4219 # AmigaOS /C/install, which installs bootblocks on floppy discs
4220 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4221 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4222 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4223 # OS/2's system install, which has a completely different semantic
4224 # ./install, which can be erroneously created by make from ./install.sh.
4225 # Reject install programs that cannot install multiple files.
4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4227 printf %s "checking for a BSD-compatible install... " >&6; }
4228 if test -z "$INSTALL"; then
4229 if test ${ac_cv_path_install+y}
4230 then :
4231 printf %s "(cached) " >&6
4232 else $as_nop
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4236 IFS=$as_save_IFS
4237 case $as_dir in #(((
4238 '') as_dir=./ ;;
4239 */) ;;
4240 *) as_dir=$as_dir/ ;;
4241 esac
4242 # Account for fact that we put trailing slashes in our PATH walk.
4243 case $as_dir in #((
4244 ./ | /[cC]/* | \
4245 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4246 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4247 /usr/ucb/* ) ;;
4249 # OSF1 and SCO ODT 3.0 have their own names for install.
4250 # Don't use installbsd from OSF since it installs stuff as root
4251 # by default.
4252 for ac_prog in ginstall scoinst install; do
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4255 if test $ac_prog = install &&
4256 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4257 # AIX install. It has an incompatible calling convention.
4259 elif test $ac_prog = install &&
4260 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4261 # program-specific install script used by HP pwplus--don't use.
4263 else
4264 rm -rf conftest.one conftest.two conftest.dir
4265 echo one > conftest.one
4266 echo two > conftest.two
4267 mkdir conftest.dir
4268 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4269 test -s conftest.one && test -s conftest.two &&
4270 test -s conftest.dir/conftest.one &&
4271 test -s conftest.dir/conftest.two
4272 then
4273 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4274 break 3
4278 done
4279 done
4281 esac
4283 done
4284 IFS=$as_save_IFS
4286 rm -rf conftest.one conftest.two conftest.dir
4289 if test ${ac_cv_path_install+y}; then
4290 INSTALL=$ac_cv_path_install
4291 else
4292 # As a last resort, use the slow shell script. Don't cache a
4293 # value for INSTALL within a source directory, because that will
4294 # break other packages using the cache if that directory is
4295 # removed, or if the value is a relative name.
4296 INSTALL=$ac_install_sh
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4300 printf "%s\n" "$INSTALL" >&6; }
4302 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4303 # It thinks the first close brace ends the variable substitution.
4304 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4306 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4308 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4311 printf %s "checking whether build environment is sane... " >&6; }
4312 # Reject unsafe characters in $srcdir or the absolute working directory
4313 # name. Accept space and tab only in the latter.
4314 am_lf='
4316 case `pwd` in
4317 *[\\\"\#\$\&\'\`$am_lf]*)
4318 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4319 esac
4320 case $srcdir in
4321 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4322 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4323 esac
4325 # Do 'set' in a subshell so we don't clobber the current shell's
4326 # arguments. Must try -L first in case configure is actually a
4327 # symlink; some systems play weird games with the mod time of symlinks
4328 # (eg FreeBSD returns the mod time of the symlink's containing
4329 # directory).
4330 if (
4331 am_has_slept=no
4332 for am_try in 1 2; do
4333 echo "timestamp, slept: $am_has_slept" > conftest.file
4334 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4335 if test "$*" = "X"; then
4336 # -L didn't work.
4337 set X `ls -t "$srcdir/configure" conftest.file`
4339 if test "$*" != "X $srcdir/configure conftest.file" \
4340 && test "$*" != "X conftest.file $srcdir/configure"; then
4342 # If neither matched, then we have a broken ls. This can happen
4343 # if, for instance, CONFIG_SHELL is bash and it inherits a
4344 # broken ls alias from the environment. This has actually
4345 # happened. Such a system could not be considered "sane".
4346 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4347 alias in your environment" "$LINENO" 5
4349 if test "$2" = conftest.file || test $am_try -eq 2; then
4350 break
4352 # Just in case.
4353 sleep 1
4354 am_has_slept=yes
4355 done
4356 test "$2" = conftest.file
4358 then
4359 # Ok.
4361 else
4362 as_fn_error $? "newly created file is older than distributed files!
4363 Check your system clock" "$LINENO" 5
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4366 printf "%s\n" "yes" >&6; }
4367 # If we didn't sleep, we still need to ensure time stamps of config.status and
4368 # generated files are strictly newer.
4369 am_sleep_pid=
4370 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4371 ( sleep 1 ) &
4372 am_sleep_pid=$!
4375 rm -f conftest.file
4377 test "$program_prefix" != NONE &&
4378 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4379 # Use a double $ so make ignores it.
4380 test "$program_suffix" != NONE &&
4381 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4382 # Double any \ or $.
4383 # By default was `s,x,x', remove it if useless.
4384 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4385 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4388 if test x"${MISSING+set}" != xset; then
4389 MISSING="\${SHELL} '$am_aux_dir/missing'"
4391 # Use eval to expand $SHELL
4392 if eval "$MISSING --is-lightweight"; then
4393 am_missing_run="$MISSING "
4394 else
4395 am_missing_run=
4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4397 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4400 if test x"${install_sh+set}" != xset; then
4401 case $am_aux_dir in
4402 *\ * | *\ *)
4403 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4405 install_sh="\${SHELL} $am_aux_dir/install-sh"
4406 esac
4409 # Installed binaries are usually stripped using 'strip' when the user
4410 # run "make install-strip". However 'strip' might not be the right
4411 # tool to use in cross-compilation environments, therefore Automake
4412 # will honor the 'STRIP' environment variable to overrule this program.
4413 if test "$cross_compiling" != no; then
4414 if test -n "$ac_tool_prefix"; then
4415 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4416 set dummy ${ac_tool_prefix}strip; ac_word=$2
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418 printf %s "checking for $ac_word... " >&6; }
4419 if test ${ac_cv_prog_STRIP+y}
4420 then :
4421 printf %s "(cached) " >&6
4422 else $as_nop
4423 if test -n "$STRIP"; then
4424 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4429 IFS=$as_save_IFS
4430 case $as_dir in #(((
4431 '') as_dir=./ ;;
4432 */) ;;
4433 *) as_dir=$as_dir/ ;;
4434 esac
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4437 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4439 break 2
4441 done
4442 done
4443 IFS=$as_save_IFS
4447 STRIP=$ac_cv_prog_STRIP
4448 if test -n "$STRIP"; then
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4450 printf "%s\n" "$STRIP" >&6; }
4451 else
4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 printf "%s\n" "no" >&6; }
4458 if test -z "$ac_cv_prog_STRIP"; then
4459 ac_ct_STRIP=$STRIP
4460 # Extract the first word of "strip", so it can be a program name with args.
4461 set dummy strip; ac_word=$2
4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463 printf %s "checking for $ac_word... " >&6; }
4464 if test ${ac_cv_prog_ac_ct_STRIP+y}
4465 then :
4466 printf %s "(cached) " >&6
4467 else $as_nop
4468 if test -n "$ac_ct_STRIP"; then
4469 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4474 IFS=$as_save_IFS
4475 case $as_dir in #(((
4476 '') as_dir=./ ;;
4477 */) ;;
4478 *) as_dir=$as_dir/ ;;
4479 esac
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4482 ac_cv_prog_ac_ct_STRIP="strip"
4483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4484 break 2
4486 done
4487 done
4488 IFS=$as_save_IFS
4492 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4493 if test -n "$ac_ct_STRIP"; then
4494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4495 printf "%s\n" "$ac_ct_STRIP" >&6; }
4496 else
4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 printf "%s\n" "no" >&6; }
4501 if test "x$ac_ct_STRIP" = x; then
4502 STRIP=":"
4503 else
4504 case $cross_compiling:$ac_tool_warned in
4505 yes:)
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4507 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4508 ac_tool_warned=yes ;;
4509 esac
4510 STRIP=$ac_ct_STRIP
4512 else
4513 STRIP="$ac_cv_prog_STRIP"
4517 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4521 printf %s "checking for a race-free mkdir -p... " >&6; }
4522 if test -z "$MKDIR_P"; then
4523 if test ${ac_cv_path_mkdir+y}
4524 then :
4525 printf %s "(cached) " >&6
4526 else $as_nop
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4530 IFS=$as_save_IFS
4531 case $as_dir in #(((
4532 '') as_dir=./ ;;
4533 */) ;;
4534 *) as_dir=$as_dir/ ;;
4535 esac
4536 for ac_prog in mkdir gmkdir; do
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4539 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4540 'mkdir ('*'coreutils) '* | \
4541 'BusyBox '* | \
4542 'mkdir (fileutils) '4.1*)
4543 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4544 break 3;;
4545 esac
4546 done
4547 done
4548 done
4549 IFS=$as_save_IFS
4553 test -d ./--version && rmdir ./--version
4554 if test ${ac_cv_path_mkdir+y}; then
4555 MKDIR_P="$ac_cv_path_mkdir -p"
4556 else
4557 # As a last resort, use the slow shell script. Don't cache a
4558 # value for MKDIR_P within a source directory, because that will
4559 # break other packages using the cache if that directory is
4560 # removed, or if the value is a relative name.
4561 MKDIR_P="$ac_install_sh -d"
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4565 printf "%s\n" "$MKDIR_P" >&6; }
4567 for ac_prog in gawk mawk nawk awk
4569 # Extract the first word of "$ac_prog", so it can be a program name with args.
4570 set dummy $ac_prog; ac_word=$2
4571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 printf %s "checking for $ac_word... " >&6; }
4573 if test ${ac_cv_prog_AWK+y}
4574 then :
4575 printf %s "(cached) " >&6
4576 else $as_nop
4577 if test -n "$AWK"; then
4578 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4583 IFS=$as_save_IFS
4584 case $as_dir in #(((
4585 '') as_dir=./ ;;
4586 */) ;;
4587 *) as_dir=$as_dir/ ;;
4588 esac
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4591 ac_cv_prog_AWK="$ac_prog"
4592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4593 break 2
4595 done
4596 done
4597 IFS=$as_save_IFS
4601 AWK=$ac_cv_prog_AWK
4602 if test -n "$AWK"; then
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4604 printf "%s\n" "$AWK" >&6; }
4605 else
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 printf "%s\n" "no" >&6; }
4611 test -n "$AWK" && break
4612 done
4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4615 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4616 set x ${MAKE-make}
4617 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4618 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4619 then :
4620 printf %s "(cached) " >&6
4621 else $as_nop
4622 cat >conftest.make <<\_ACEOF
4623 SHELL = /bin/sh
4624 all:
4625 @echo '@@@%%%=$(MAKE)=@@@%%%'
4626 _ACEOF
4627 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4628 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4629 *@@@%%%=?*=@@@%%%*)
4630 eval ac_cv_prog_make_${ac_make}_set=yes;;
4632 eval ac_cv_prog_make_${ac_make}_set=no;;
4633 esac
4634 rm -f conftest.make
4636 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4638 printf "%s\n" "yes" >&6; }
4639 SET_MAKE=
4640 else
4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 printf "%s\n" "no" >&6; }
4643 SET_MAKE="MAKE=${MAKE-make}"
4646 rm -rf .tst 2>/dev/null
4647 mkdir .tst 2>/dev/null
4648 if test -d .tst; then
4649 am__leading_dot=.
4650 else
4651 am__leading_dot=_
4653 rmdir .tst 2>/dev/null
4655 DEPDIR="${am__leading_dot}deps"
4657 ac_config_commands="$ac_config_commands depfiles"
4659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4660 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4661 cat > confinc.mk << 'END'
4662 am__doit:
4663 @echo this is the am__doit target >confinc.out
4664 .PHONY: am__doit
4666 am__include="#"
4667 am__quote=
4668 # BSD make does it like this.
4669 echo '.include "confinc.mk" # ignored' > confmf.BSD
4670 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4671 echo 'include confinc.mk # ignored' > confmf.GNU
4672 _am_result=no
4673 for s in GNU BSD; do
4674 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4675 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }
4679 case $?:`cat confinc.out 2>/dev/null` in #(
4680 '0:this is the am__doit target') :
4681 case $s in #(
4682 BSD) :
4683 am__include='.include' am__quote='"' ;; #(
4684 *) :
4685 am__include='include' am__quote='' ;;
4686 esac ;; #(
4687 *) :
4689 esac
4690 if test "$am__include" != "#"; then
4691 _am_result="yes ($s style)"
4692 break
4694 done
4695 rm -f confinc.* confmf.*
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4697 printf "%s\n" "${_am_result}" >&6; }
4699 # Check whether --enable-dependency-tracking was given.
4700 if test ${enable_dependency_tracking+y}
4701 then :
4702 enableval=$enable_dependency_tracking;
4705 if test "x$enable_dependency_tracking" != xno; then
4706 am_depcomp="$ac_aux_dir/depcomp"
4707 AMDEPBACKSLASH='\'
4708 am__nodep='_no'
4710 if test "x$enable_dependency_tracking" != xno; then
4711 AMDEP_TRUE=
4712 AMDEP_FALSE='#'
4713 else
4714 AMDEP_TRUE='#'
4715 AMDEP_FALSE=
4719 # Check whether --enable-silent-rules was given.
4720 if test ${enable_silent_rules+y}
4721 then :
4722 enableval=$enable_silent_rules;
4725 case $enable_silent_rules in # (((
4726 yes) AM_DEFAULT_VERBOSITY=0;;
4727 no) AM_DEFAULT_VERBOSITY=1;;
4728 *) AM_DEFAULT_VERBOSITY=1;;
4729 esac
4730 am_make=${MAKE-make}
4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4732 printf %s "checking whether $am_make supports nested variables... " >&6; }
4733 if test ${am_cv_make_support_nested_variables+y}
4734 then :
4735 printf %s "(cached) " >&6
4736 else $as_nop
4737 if printf "%s\n" 'TRUE=$(BAR$(V))
4738 BAR0=false
4739 BAR1=true
4741 am__doit:
4742 @$(TRUE)
4743 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4744 am_cv_make_support_nested_variables=yes
4745 else
4746 am_cv_make_support_nested_variables=no
4749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4750 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4751 if test $am_cv_make_support_nested_variables = yes; then
4752 AM_V='$(V)'
4753 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4754 else
4755 AM_V=$AM_DEFAULT_VERBOSITY
4756 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4758 AM_BACKSLASH='\'
4760 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4761 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4762 # is not polluted with repeated "-I."
4763 am__isrc=' -I$(srcdir)'
4764 # test to see if srcdir already configured
4765 if test -f $srcdir/config.status; then
4766 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4770 # test whether we have cygpath
4771 if test -z "$CYGPATH_W"; then
4772 if (cygpath --version) >/dev/null 2>/dev/null; then
4773 CYGPATH_W='cygpath -w'
4774 else
4775 CYGPATH_W=echo
4780 # Define the identity of the package.
4781 PACKAGE='qbittorrent'
4782 VERSION='v4.4.0alpha'
4785 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4788 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4790 # Some tools Automake needs.
4792 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4795 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4798 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4801 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4804 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4806 # For better backward compatibility. To be removed once Automake 1.9.x
4807 # dies out for good. For more background, see:
4808 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4809 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4810 mkdir_p='$(MKDIR_P)'
4812 # We need awk for the "check" target (and possibly the TAP driver). The
4813 # system "awk" is bad on some platforms.
4814 # Always define AMTAR for backward compatibility. Yes, it's still used
4815 # in the wild :-( We should find a proper way to deprecate it ...
4816 AMTAR='$${TAR-tar}'
4819 # We'll loop over all known methods to create a tar archive until one works.
4820 _am_tools='gnutar pax cpio none'
4822 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4828 depcc="$CC" am_compiler_list=
4830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4831 printf %s "checking dependency style of $depcc... " >&6; }
4832 if test ${am_cv_CC_dependencies_compiler_type+y}
4833 then :
4834 printf %s "(cached) " >&6
4835 else $as_nop
4836 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4837 # We make a subdir and do the tests there. Otherwise we can end up
4838 # making bogus files that we don't know about and never remove. For
4839 # instance it was reported that on HP-UX the gcc test will end up
4840 # making a dummy file named 'D' -- because '-MD' means "put the output
4841 # in D".
4842 rm -rf conftest.dir
4843 mkdir conftest.dir
4844 # Copy depcomp to subdir because otherwise we won't find it if we're
4845 # using a relative directory.
4846 cp "$am_depcomp" conftest.dir
4847 cd conftest.dir
4848 # We will build objects and dependencies in a subdirectory because
4849 # it helps to detect inapplicable dependency modes. For instance
4850 # both Tru64's cc and ICC support -MD to output dependencies as a
4851 # side effect of compilation, but ICC will put the dependencies in
4852 # the current directory while Tru64 will put them in the object
4853 # directory.
4854 mkdir sub
4856 am_cv_CC_dependencies_compiler_type=none
4857 if test "$am_compiler_list" = ""; then
4858 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4860 am__universal=false
4861 case " $depcc " in #(
4862 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4863 esac
4865 for depmode in $am_compiler_list; do
4866 # Setup a source with many dependencies, because some compilers
4867 # like to wrap large dependency lists on column 80 (with \), and
4868 # we should not choose a depcomp mode which is confused by this.
4870 # We need to recreate these files for each test, as the compiler may
4871 # overwrite some of them when testing with obscure command lines.
4872 # This happens at least with the AIX C compiler.
4873 : > sub/conftest.c
4874 for i in 1 2 3 4 5 6; do
4875 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4876 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4877 # Solaris 10 /bin/sh.
4878 echo '/* dummy */' > sub/conftst$i.h
4879 done
4880 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4882 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4883 # mode. It turns out that the SunPro C++ compiler does not properly
4884 # handle '-M -o', and we need to detect this. Also, some Intel
4885 # versions had trouble with output in subdirs.
4886 am__obj=sub/conftest.${OBJEXT-o}
4887 am__minus_obj="-o $am__obj"
4888 case $depmode in
4889 gcc)
4890 # This depmode causes a compiler race in universal mode.
4891 test "$am__universal" = false || continue
4893 nosideeffect)
4894 # After this tag, mechanisms are not by side-effect, so they'll
4895 # only be used when explicitly requested.
4896 if test "x$enable_dependency_tracking" = xyes; then
4897 continue
4898 else
4899 break
4902 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4903 # This compiler won't grok '-c -o', but also, the minuso test has
4904 # not run yet. These depmodes are late enough in the game, and
4905 # so weak that their functioning should not be impacted.
4906 am__obj=conftest.${OBJEXT-o}
4907 am__minus_obj=
4909 none) break ;;
4910 esac
4911 if depmode=$depmode \
4912 source=sub/conftest.c object=$am__obj \
4913 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4914 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4915 >/dev/null 2>conftest.err &&
4916 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4917 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4918 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4919 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4920 # icc doesn't choke on unknown options, it will just issue warnings
4921 # or remarks (even with -Werror). So we grep stderr for any message
4922 # that says an option was ignored or not supported.
4923 # When given -MP, icc 7.0 and 7.1 complain thusly:
4924 # icc: Command line warning: ignoring option '-M'; no argument required
4925 # The diagnosis changed in icc 8.0:
4926 # icc: Command line remark: option '-MP' not supported
4927 if (grep 'ignoring option' conftest.err ||
4928 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4929 am_cv_CC_dependencies_compiler_type=$depmode
4930 break
4933 done
4935 cd ..
4936 rm -rf conftest.dir
4937 else
4938 am_cv_CC_dependencies_compiler_type=none
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4943 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4944 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4947 test "x$enable_dependency_tracking" != xno \
4948 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4949 am__fastdepCC_TRUE=
4950 am__fastdepCC_FALSE='#'
4951 else
4952 am__fastdepCC_TRUE='#'
4953 am__fastdepCC_FALSE=
4957 depcc="$CXX" am_compiler_list=
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4960 printf %s "checking dependency style of $depcc... " >&6; }
4961 if test ${am_cv_CXX_dependencies_compiler_type+y}
4962 then :
4963 printf %s "(cached) " >&6
4964 else $as_nop
4965 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4966 # We make a subdir and do the tests there. Otherwise we can end up
4967 # making bogus files that we don't know about and never remove. For
4968 # instance it was reported that on HP-UX the gcc test will end up
4969 # making a dummy file named 'D' -- because '-MD' means "put the output
4970 # in D".
4971 rm -rf conftest.dir
4972 mkdir conftest.dir
4973 # Copy depcomp to subdir because otherwise we won't find it if we're
4974 # using a relative directory.
4975 cp "$am_depcomp" conftest.dir
4976 cd conftest.dir
4977 # We will build objects and dependencies in a subdirectory because
4978 # it helps to detect inapplicable dependency modes. For instance
4979 # both Tru64's cc and ICC support -MD to output dependencies as a
4980 # side effect of compilation, but ICC will put the dependencies in
4981 # the current directory while Tru64 will put them in the object
4982 # directory.
4983 mkdir sub
4985 am_cv_CXX_dependencies_compiler_type=none
4986 if test "$am_compiler_list" = ""; then
4987 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4989 am__universal=false
4990 case " $depcc " in #(
4991 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4992 esac
4994 for depmode in $am_compiler_list; do
4995 # Setup a source with many dependencies, because some compilers
4996 # like to wrap large dependency lists on column 80 (with \), and
4997 # we should not choose a depcomp mode which is confused by this.
4999 # We need to recreate these files for each test, as the compiler may
5000 # overwrite some of them when testing with obscure command lines.
5001 # This happens at least with the AIX C compiler.
5002 : > sub/conftest.c
5003 for i in 1 2 3 4 5 6; do
5004 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5005 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5006 # Solaris 10 /bin/sh.
5007 echo '/* dummy */' > sub/conftst$i.h
5008 done
5009 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5011 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5012 # mode. It turns out that the SunPro C++ compiler does not properly
5013 # handle '-M -o', and we need to detect this. Also, some Intel
5014 # versions had trouble with output in subdirs.
5015 am__obj=sub/conftest.${OBJEXT-o}
5016 am__minus_obj="-o $am__obj"
5017 case $depmode in
5018 gcc)
5019 # This depmode causes a compiler race in universal mode.
5020 test "$am__universal" = false || continue
5022 nosideeffect)
5023 # After this tag, mechanisms are not by side-effect, so they'll
5024 # only be used when explicitly requested.
5025 if test "x$enable_dependency_tracking" = xyes; then
5026 continue
5027 else
5028 break
5031 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5032 # This compiler won't grok '-c -o', but also, the minuso test has
5033 # not run yet. These depmodes are late enough in the game, and
5034 # so weak that their functioning should not be impacted.
5035 am__obj=conftest.${OBJEXT-o}
5036 am__minus_obj=
5038 none) break ;;
5039 esac
5040 if depmode=$depmode \
5041 source=sub/conftest.c object=$am__obj \
5042 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5043 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5044 >/dev/null 2>conftest.err &&
5045 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5046 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5047 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5048 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5049 # icc doesn't choke on unknown options, it will just issue warnings
5050 # or remarks (even with -Werror). So we grep stderr for any message
5051 # that says an option was ignored or not supported.
5052 # When given -MP, icc 7.0 and 7.1 complain thusly:
5053 # icc: Command line warning: ignoring option '-M'; no argument required
5054 # The diagnosis changed in icc 8.0:
5055 # icc: Command line remark: option '-MP' not supported
5056 if (grep 'ignoring option' conftest.err ||
5057 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5058 am_cv_CXX_dependencies_compiler_type=$depmode
5059 break
5062 done
5064 cd ..
5065 rm -rf conftest.dir
5066 else
5067 am_cv_CXX_dependencies_compiler_type=none
5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5072 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5073 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5076 test "x$enable_dependency_tracking" != xno \
5077 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5078 am__fastdepCXX_TRUE=
5079 am__fastdepCXX_FALSE='#'
5080 else
5081 am__fastdepCXX_TRUE='#'
5082 am__fastdepCXX_FALSE=
5087 # POSIX will say in a future version that running "rm -f" with no argument
5088 # is OK; and we want to be able to make that assumption in our Makefile
5089 # recipes. So use an aggressive probe to check that the usage we want is
5090 # actually supported "in the wild" to an acceptable degree.
5091 # See automake bug#10828.
5092 # To make any issue more visible, cause the running configure to be aborted
5093 # by default if the 'rm' program in use doesn't match our expectations; the
5094 # user can still override this though.
5095 if rm -f && rm -fr && rm -rf; then : OK; else
5096 cat >&2 <<'END'
5097 Oops!
5099 Your 'rm' program seems unable to run without file operands specified
5100 on the command line, even when the '-f' option is present. This is contrary
5101 to the behaviour of most rm programs out there, and not conforming with
5102 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5104 Please tell bug-automake@gnu.org about your system, including the value
5105 of your $PATH and any error possibly output before this message. This
5106 can help us improve future automake versions.
5109 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5110 echo 'Configuration will proceed anyway, since you have set the' >&2
5111 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5112 echo >&2
5113 else
5114 cat >&2 <<'END'
5115 Aborting the configuration process, to ensure you take notice of the issue.
5117 You can download and install GNU coreutils to get an 'rm' implementation
5118 that behaves properly: <https://www.gnu.org/software/coreutils/>.
5120 If you want to complete the configuration process using your problematic
5121 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5122 to "yes", and re-run configure.
5125 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5130 # use compiler from env variables if available
5131 QBT_CC="$CC"
5132 QBT_CXX="$CXX"
5134 # Define --wth-* and --enable-* arguments
5136 # Check whether --enable-debug was given.
5137 if test ${enable_debug+y}
5138 then :
5139 enableval=$enable_debug;
5140 else $as_nop
5141 enable_debug=no
5145 # Check whether --enable-stacktrace was given.
5146 if test ${enable_stacktrace+y}
5147 then :
5148 enableval=$enable_stacktrace;
5149 else $as_nop
5150 enable_stacktrace=auto
5154 # Check whether --enable-gui was given.
5155 if test ${enable_gui+y}
5156 then :
5157 enableval=$enable_gui;
5158 else $as_nop
5159 enable_gui=yes
5163 # Check whether --enable-systemd was given.
5164 if test ${enable_systemd+y}
5165 then :
5166 enableval=$enable_systemd;
5167 else $as_nop
5168 enable_systemd=no
5172 # Check whether --enable-webui was given.
5173 if test ${enable_webui+y}
5174 then :
5175 enableval=$enable_webui;
5176 else $as_nop
5177 enable_webui=yes
5181 # Check whether --enable-qt-dbus was given.
5182 if test ${enable_qt_dbus+y}
5183 then :
5184 enableval=$enable_qt_dbus;
5185 else $as_nop
5186 enable_qt_dbus=yes
5190 # Detect OS
5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OS is FreeBSD" >&5
5192 printf %s "checking whether OS is FreeBSD... " >&6; }
5193 if expr "$host_os" : ".*freebsd.*" > /dev/null
5194 then :
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5196 printf "%s\n" "yes" >&6; }
5197 LIBS="-lexecinfo $LIBS"
5198 else $as_nop
5199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 printf "%s\n" "no" >&6; }
5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OS is macOS" >&5
5204 printf %s "checking whether OS is macOS... " >&6; }
5205 if expr "$host_os" : ".*darwin.*" > /dev/null
5206 then :
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5208 printf "%s\n" "yes" >&6; }
5209 enable_qt_dbus=no
5210 else $as_nop
5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 printf "%s\n" "no" >&6; }
5215 # Require 0.23 pkg-config
5223 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5224 if test -n "$ac_tool_prefix"; then
5225 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5226 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228 printf %s "checking for $ac_word... " >&6; }
5229 if test ${ac_cv_path_PKG_CONFIG+y}
5230 then :
5231 printf %s "(cached) " >&6
5232 else $as_nop
5233 case $PKG_CONFIG in
5234 [\\/]* | ?:[\\/]*)
5235 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5241 IFS=$as_save_IFS
5242 case $as_dir in #(((
5243 '') as_dir=./ ;;
5244 */) ;;
5245 *) as_dir=$as_dir/ ;;
5246 esac
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5249 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5251 break 2
5253 done
5254 done
5255 IFS=$as_save_IFS
5258 esac
5260 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5261 if test -n "$PKG_CONFIG"; then
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5263 printf "%s\n" "$PKG_CONFIG" >&6; }
5264 else
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266 printf "%s\n" "no" >&6; }
5271 if test -z "$ac_cv_path_PKG_CONFIG"; then
5272 ac_pt_PKG_CONFIG=$PKG_CONFIG
5273 # Extract the first word of "pkg-config", so it can be a program name with args.
5274 set dummy pkg-config; ac_word=$2
5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 printf %s "checking for $ac_word... " >&6; }
5277 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5278 then :
5279 printf %s "(cached) " >&6
5280 else $as_nop
5281 case $ac_pt_PKG_CONFIG in
5282 [\\/]* | ?:[\\/]*)
5283 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5289 IFS=$as_save_IFS
5290 case $as_dir in #(((
5291 '') as_dir=./ ;;
5292 */) ;;
5293 *) as_dir=$as_dir/ ;;
5294 esac
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5297 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5299 break 2
5301 done
5302 done
5303 IFS=$as_save_IFS
5306 esac
5308 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5309 if test -n "$ac_pt_PKG_CONFIG"; then
5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5311 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5312 else
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 printf "%s\n" "no" >&6; }
5317 if test "x$ac_pt_PKG_CONFIG" = x; then
5318 PKG_CONFIG=""
5319 else
5320 case $cross_compiling:$ac_tool_warned in
5321 yes:)
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5323 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5324 ac_tool_warned=yes ;;
5325 esac
5326 PKG_CONFIG=$ac_pt_PKG_CONFIG
5328 else
5329 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5333 if test -n "$PKG_CONFIG"; then
5334 _pkg_min_version=0.23
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5336 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5337 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5339 printf "%s\n" "yes" >&6; }
5340 else
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 printf "%s\n" "no" >&6; }
5343 PKG_CONFIG=""
5346 if test "x$PKG_CONFIG" = "x"
5347 then :
5348 as_fn_error $? "Could not find pkg-config" "$LINENO" 5
5351 # Check which arguments were set and act accordingly
5352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the Debug build" >&5
5353 printf %s "checking whether to enable the Debug build... " >&6; }
5354 case "x$enable_debug" in #(
5355 "xno") :
5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 printf "%s\n" "no" >&6; }
5358 QBT_ADD_CONFIG="$QBT_ADD_CONFIG release"
5359 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG debug" ;; #(
5360 "xyes") :
5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5362 printf "%s\n" "yes" >&6; }
5363 QBT_ADD_CONFIG="$QBT_ADD_CONFIG debug"
5364 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG release" ;; #(
5365 *) :
5366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
5367 printf "%s\n" "$enable_debug" >&6; }
5368 as_fn_error $? "Unknown option \"$enable_debug\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5369 esac
5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the stacktrace feature" >&5
5372 printf %s "checking whether to enable the stacktrace feature... " >&6; }
5374 case "x$enable_stacktrace" in #(
5375 "xno") :
5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 printf "%s\n" "no" >&6; }
5378 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG stacktrace" ;; #(
5379 "xyes") :
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5381 printf "%s\n" "yes" >&6; }
5382 QBT_ADD_CONFIG="$QBT_ADD_CONFIG stacktrace" ;; #(
5383 "xauto") :
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386 #include <execinfo.h>
5387 _ACEOF
5388 if ac_fn_cxx_try_compile "$LINENO"
5389 then :
5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5391 printf "%s\n" "yes" >&6; }
5392 QBT_ADD_CONFIG="$QBT_ADD_CONFIG stacktrace"
5393 else $as_nop
5394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 printf "%s\n" "no" >&6; }
5396 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG stacktrace"
5398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; #(
5399 *) :
5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_stacktrace" >&5
5401 printf "%s\n" "$enable_stacktrace" >&6; }
5402 as_fn_error $? "Unknown option \"$enable_stacktrace\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5403 esac
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the GUI" >&5
5406 printf %s "checking whether to enable the GUI... " >&6; }
5407 case "x$enable_gui" in #(
5408 "xyes") :
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5410 printf "%s\n" "yes" >&6; }
5411 enable_systemd=no
5412 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG nogui" ;; #(
5413 "xno") :
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 printf "%s\n" "no" >&6; }
5416 enable_qt_dbus=no
5417 QBT_ADD_CONFIG="$QBT_ADD_CONFIG nogui" ;; #(
5418 *) :
5419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gui" >&5
5420 printf "%s\n" "$enable_gui" >&6; }
5421 as_fn_error $? "Unknown option \"$enable_gui\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5422 esac
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install the systemd service file" >&5
5425 printf %s "checking whether to install the systemd service file... " >&6; }
5426 case "x$enable_systemd" in #(
5427 "xyes") :
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5429 printf "%s\n" "yes" >&6; }
5430 QBT_ADD_CONFIG="$QBT_ADD_CONFIG systemd" ;; #(
5431 "xno") :
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433 printf "%s\n" "no" >&6; }
5434 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG systemd" ;; #(
5435 *) :
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_systemd" >&5
5437 printf "%s\n" "$enable_systemd" >&6; }
5438 as_fn_error $? "Unknown option \"$enable_systemd\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5439 esac
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the WebUI" >&5
5442 printf %s "checking whether to enable the WebUI... " >&6; }
5443 case "x$enable_webui" in #(
5444 "xyes") :
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5446 printf "%s\n" "yes" >&6; }
5447 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG nowebui" ;; #(
5448 "xno") :
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 printf "%s\n" "no" >&6; }
5451 QBT_ADD_CONFIG="$QBT_ADD_CONFIG nowebui" ;; #(
5452 *) :
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_webui" >&5
5454 printf "%s\n" "$enable_webui" >&6; }
5455 as_fn_error $? "Unknown option \"$enable_webui\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5456 esac
5458 if test -n "$PKG_CONFIG" && \
5459 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.15.2\""; } >&5
5460 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.15.2") 2>&5
5461 ac_status=$?
5462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5463 test $ac_status = 0; }; then
5465 if test -n "$QT_QMAKE"; then
5466 pkg_cv_QT_QMAKE="$QT_QMAKE"
5467 elif test -n "$PKG_CONFIG"; then
5468 if test -n "$PKG_CONFIG" && \
5469 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.15.2\""; } >&5
5470 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.15.2") 2>&5
5471 ac_status=$?
5472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5473 test $ac_status = 0; }; then
5474 pkg_cv_QT_QMAKE=`$PKG_CONFIG --variable="host_bins" "Qt5Core >= 5.15.2" 2>/dev/null`
5475 test "x$?" != "x0" && pkg_failed=yes
5476 else
5477 pkg_failed=yes
5479 else
5480 pkg_failed=untried
5482 QT_QMAKE=$pkg_cv_QT_QMAKE
5484 if test "x$QT_QMAKE" = x""
5485 then :
5491 if test -f "$QT_QMAKE/qmake"
5492 then :
5493 QT_QMAKE="$QT_QMAKE/qmake"
5494 else $as_nop
5495 if test -f "$QT_QMAKE/qmake-qt5"
5496 then :
5497 QT_QMAKE="$QT_QMAKE/qmake-qt5"
5498 else $as_nop
5499 QT_QMAKE=""
5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5 qmake >= 5.15.2" >&5
5505 printf %s "checking for Qt5 qmake >= 5.15.2... " >&6; }
5506 if test "x$QT_QMAKE" != "x"
5507 then :
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QT_QMAKE" >&5
5509 printf "%s\n" "$QT_QMAKE" >&6; }
5510 else $as_nop
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5512 printf "%s\n" "not found" >&6; }
5516 if test "x$QT_QMAKE" = "x"
5517 then :
5518 as_fn_error $? "Could not find qmake" "$LINENO" 5
5521 if test "x$enable_gui" = "xyes"
5522 then :
5524 pkg_failed=no
5525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5Svg >= 5.15.2" >&5
5526 printf %s "checking for Qt5Svg >= 5.15.2... " >&6; }
5528 if test -n "$Qt5Svg_CFLAGS"; then
5529 pkg_cv_Qt5Svg_CFLAGS="$Qt5Svg_CFLAGS"
5530 elif test -n "$PKG_CONFIG"; then
5531 if test -n "$PKG_CONFIG" && \
5532 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Svg >= 5.15.2\""; } >&5
5533 ($PKG_CONFIG --exists --print-errors "Qt5Svg >= 5.15.2") 2>&5
5534 ac_status=$?
5535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5536 test $ac_status = 0; }; then
5537 pkg_cv_Qt5Svg_CFLAGS=`$PKG_CONFIG --cflags "Qt5Svg >= 5.15.2" 2>/dev/null`
5538 test "x$?" != "x0" && pkg_failed=yes
5539 else
5540 pkg_failed=yes
5542 else
5543 pkg_failed=untried
5545 if test -n "$Qt5Svg_LIBS"; then
5546 pkg_cv_Qt5Svg_LIBS="$Qt5Svg_LIBS"
5547 elif test -n "$PKG_CONFIG"; then
5548 if test -n "$PKG_CONFIG" && \
5549 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Svg >= 5.15.2\""; } >&5
5550 ($PKG_CONFIG --exists --print-errors "Qt5Svg >= 5.15.2") 2>&5
5551 ac_status=$?
5552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5553 test $ac_status = 0; }; then
5554 pkg_cv_Qt5Svg_LIBS=`$PKG_CONFIG --libs "Qt5Svg >= 5.15.2" 2>/dev/null`
5555 test "x$?" != "x0" && pkg_failed=yes
5556 else
5557 pkg_failed=yes
5559 else
5560 pkg_failed=untried
5565 if test $pkg_failed = yes; then
5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 printf "%s\n" "no" >&6; }
5569 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5570 _pkg_short_errors_supported=yes
5571 else
5572 _pkg_short_errors_supported=no
5574 if test $_pkg_short_errors_supported = yes; then
5575 Qt5Svg_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Qt5Svg >= 5.15.2" 2>&1`
5576 else
5577 Qt5Svg_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "Qt5Svg >= 5.15.2" 2>&1`
5579 # Put the nasty error message in config.log where it belongs
5580 echo "$Qt5Svg_PKG_ERRORS" >&5
5582 as_fn_error $? "Package requirements (Qt5Svg >= 5.15.2) were not met:
5584 $Qt5Svg_PKG_ERRORS
5586 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5587 installed software in a non-standard prefix.
5589 Alternatively, you may set the environment variables Qt5Svg_CFLAGS
5590 and Qt5Svg_LIBS to avoid the need to call pkg-config.
5591 See the pkg-config man page for more details." "$LINENO" 5
5592 elif test $pkg_failed = untried; then
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594 printf "%s\n" "no" >&6; }
5595 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5596 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5597 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5598 is in your PATH or set the PKG_CONFIG environment variable to the full
5599 path to pkg-config.
5601 Alternatively, you may set the environment variables Qt5Svg_CFLAGS
5602 and Qt5Svg_LIBS to avoid the need to call pkg-config.
5603 See the pkg-config man page for more details.
5605 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5606 See \`config.log' for more details" "$LINENO" 5; }
5607 else
5608 Qt5Svg_CFLAGS=$pkg_cv_Qt5Svg_CFLAGS
5609 Qt5Svg_LIBS=$pkg_cv_Qt5Svg_LIBS
5610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5611 printf "%s\n" "yes" >&6; }
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether QtDBus should be enabled" >&5
5617 printf %s "checking whether QtDBus should be enabled... " >&6; }
5618 case "x$enable_qt_dbus" in #(
5619 "xyes") :
5620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5621 printf "%s\n" "yes" >&6; }
5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5DBus >= 5.15.2" >&5
5623 printf %s "checking for Qt5DBus >= 5.15.2... " >&6; }
5624 if test -n "$PKG_CONFIG" && \
5625 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5DBus >= 5.15.2\""; } >&5
5626 ($PKG_CONFIG --exists --print-errors "Qt5DBus >= 5.15.2") 2>&5
5627 ac_status=$?
5628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5629 test $ac_status = 0; }; then
5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
5631 printf "%s\n" "found" >&6; }
5632 HAVE_QTDBUS=true
5633 else
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5635 printf "%s\n" "not found" >&6; }
5636 HAVE_QTDBUS=false
5639 if test "x$HAVE_QTDBUS" = "xfalse"
5640 then :
5641 as_fn_error $? "Could not find QtDBus" "$LINENO" 5
5642 else $as_nop
5643 QBT_ADD_CONFIG="$QBT_ADD_CONFIG dbus"
5645 fi ;; #(
5646 "xno") :
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 printf "%s\n" "no" >&6; }
5649 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG dbus" ;; #(
5650 *) :
5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_qt_dbus" >&5
5652 printf "%s\n" "$enable_qt_dbus" >&6; }
5653 as_fn_error $? "Unknown option \"$enable_qt_dbus\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5654 esac
5659 # Check whether --with-boost was given.
5660 if test ${with_boost+y}
5661 then :
5662 withval=$with_boost;
5663 case $withval in #(
5664 no) :
5665 want_boost="no";_AX_BOOST_BASE_boost_path="" ;; #(
5666 yes) :
5667 want_boost="yes";_AX_BOOST_BASE_boost_path="" ;; #(
5668 *) :
5669 want_boost="yes";_AX_BOOST_BASE_boost_path="$withval" ;;
5670 esac
5672 else $as_nop
5673 want_boost="yes"
5679 # Check whether --with-boost-libdir was given.
5680 if test ${with_boost_libdir+y}
5681 then :
5682 withval=$with_boost_libdir;
5683 if test -d "$withval"
5684 then :
5685 _AX_BOOST_BASE_boost_lib_path="$withval"
5686 else $as_nop
5687 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
5690 else $as_nop
5691 _AX_BOOST_BASE_boost_lib_path=""
5695 BOOST_LDFLAGS=""
5696 BOOST_CPPFLAGS=""
5697 if test "x$want_boost" = "xyes"
5698 then :
5701 if test "x1.65" = "x"
5702 then :
5703 _AX_BOOST_BASE_TONUMERICVERSION_req="1.20.0"
5704 else $as_nop
5705 _AX_BOOST_BASE_TONUMERICVERSION_req="1.65"
5707 _AX_BOOST_BASE_TONUMERICVERSION_req_shorten=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\.[0-9]*\)'`
5708 _AX_BOOST_BASE_TONUMERICVERSION_req_major=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\)'`
5709 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_major" = "x"
5710 then :
5711 as_fn_error $? "You should at least specify libboost major version" "$LINENO" 5
5713 _AX_BOOST_BASE_TONUMERICVERSION_req_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.\([0-9]*\)'`
5714 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_minor" = "x"
5715 then :
5716 _AX_BOOST_BASE_TONUMERICVERSION_req_minor="0"
5718 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
5719 if test "X$_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor" = "X"
5720 then :
5721 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor="0"
5723 _AX_BOOST_BASE_TONUMERICVERSION_RET=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req_major \* 100000 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_minor \* 100 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor`
5724 WANT_BOOST_VERSION=$_AX_BOOST_BASE_TONUMERICVERSION_RET
5726 succeeded=no
5730 case ${host_cpu} in #(
5731 x86_64) :
5732 libsubdirs="lib64 libx32 lib lib64" ;; #(
5733 mips*64*) :
5734 libsubdirs="lib64 lib32 lib lib64" ;; #(
5735 ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64) :
5736 libsubdirs="lib64 lib lib64" ;; #(
5737 *) :
5738 libsubdirs="lib"
5740 esac
5742 case ${host_cpu} in #(
5743 i?86) :
5744 multiarch_libsubdir="lib/i386-${host_os}" ;; #(
5745 *) :
5746 multiarch_libsubdir="lib/${host_cpu}-${host_os}"
5748 esac
5750 if test "x$_AX_BOOST_BASE_boost_path" != "x"
5751 then :
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.65 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"" >&5
5754 printf %s "checking for boostlib >= 1.65 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"... " >&6; }
5755 if test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"
5756 then :
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759 printf "%s\n" "yes" >&6; }
5760 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include"
5761 for _AX_BOOST_BASE_boost_path_tmp in $multiarch_libsubdir $libsubdirs; do
5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.65 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"" >&5
5763 printf %s "checking for boostlib >= 1.65 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"... " >&6; }
5764 if test -d "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" && test -r "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp"
5765 then :
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5768 printf "%s\n" "yes" >&6; }
5769 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp";
5770 break;
5772 else $as_nop
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 printf "%s\n" "no" >&6; }
5776 done
5777 else $as_nop
5779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 printf "%s\n" "no" >&6; }
5783 else $as_nop
5785 if test X"$cross_compiling" = Xyes; then
5786 search_libsubdirs=$multiarch_libsubdir
5787 else
5788 search_libsubdirs="$multiarch_libsubdir $libsubdirs"
5790 for _AX_BOOST_BASE_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
5791 if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then
5792 for libsubdir in $search_libsubdirs ; do
5793 if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5794 done
5795 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir"
5796 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path_tmp/include"
5797 break;
5799 done
5803 if test "x$_AX_BOOST_BASE_boost_lib_path" != "x"
5804 then :
5805 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path"
5808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.65 ($WANT_BOOST_VERSION)" >&5
5809 printf %s "checking for boostlib >= 1.65 ($WANT_BOOST_VERSION)... " >&6; }
5810 CPPFLAGS_SAVED="$CPPFLAGS"
5811 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
5812 export CPPFLAGS
5814 LDFLAGS_SAVED="$LDFLAGS"
5815 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
5816 export LDFLAGS
5819 ac_ext=cpp
5820 ac_cpp='$CXXCPP $CPPFLAGS'
5821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5828 #include <boost/version.hpp>
5831 main (void)
5834 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
5837 return 0;
5839 _ACEOF
5840 if ac_fn_cxx_try_compile "$LINENO"
5841 then :
5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5844 printf "%s\n" "yes" >&6; }
5845 succeeded=yes
5846 found_system=yes
5849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5850 ac_ext=cpp
5851 ac_cpp='$CXXCPP $CPPFLAGS'
5852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5859 if test "x$succeeded" != "xyes" ; then
5860 CPPFLAGS="$CPPFLAGS_SAVED"
5861 LDFLAGS="$LDFLAGS_SAVED"
5862 BOOST_CPPFLAGS=
5863 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5864 BOOST_LDFLAGS=
5866 _version=0
5867 if test -n "$_AX_BOOST_BASE_boost_path" ; then
5868 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then
5869 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
5870 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
5871 V_CHECK=`expr $_version_tmp \> $_version`
5872 if test "x$V_CHECK" = "x1" ; then
5873 _version=$_version_tmp
5875 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
5876 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include/boost-$VERSION_UNDERSCORE"
5877 done
5878 if test -z "$BOOST_CPPFLAGS"; then
5879 if test -d "$_AX_BOOST_BASE_boost_path/boost" && test -r "$_AX_BOOST_BASE_boost_path/boost"; then
5880 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path"
5883 if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then
5884 for libsubdir in $libsubdirs ; do
5885 if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5886 done
5887 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$libsubdir"
5890 else
5891 if test "x$cross_compiling" != "xyes" ; then
5892 for _AX_BOOST_BASE_boost_path in /usr /usr/local /opt /opt/local ; do
5893 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then
5894 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
5895 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
5896 V_CHECK=`expr $_version_tmp \> $_version`
5897 if test "x$V_CHECK" = "x1" ; then
5898 _version=$_version_tmp
5899 best_path=$_AX_BOOST_BASE_boost_path
5901 done
5903 done
5905 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
5906 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
5907 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5908 for libsubdir in $libsubdirs ; do
5909 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5910 done
5911 BOOST_LDFLAGS="-L$best_path/$libsubdir"
5915 if test -n "$BOOST_ROOT" ; then
5916 for libsubdir in $libsubdirs ; do
5917 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5918 done
5919 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
5920 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
5921 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
5922 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
5923 V_CHECK=`expr $stage_version_shorten \>\= $_version`
5924 if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
5926 printf "%s\n" "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
5927 BOOST_CPPFLAGS="-I$BOOST_ROOT"
5928 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
5934 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
5935 export CPPFLAGS
5936 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
5937 export LDFLAGS
5939 ac_ext=cpp
5940 ac_cpp='$CXXCPP $CPPFLAGS'
5941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946 /* end confdefs.h. */
5948 #include <boost/version.hpp>
5951 main (void)
5954 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
5957 return 0;
5959 _ACEOF
5960 if ac_fn_cxx_try_compile "$LINENO"
5961 then :
5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5964 printf "%s\n" "yes" >&6; }
5965 succeeded=yes
5966 found_system=yes
5969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5970 ac_ext=cpp
5971 ac_cpp='$CXXCPP $CPPFLAGS'
5972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5978 if test "x$succeeded" != "xyes" ; then
5979 if test "x$_version" = "x0" ; then
5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version 1.65 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
5981 printf "%s\n" "$as_me: We could not detect the boost libraries (version 1.65 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
5982 else
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
5984 printf "%s\n" "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
5986 # execute ACTION-IF-NOT-FOUND (if present):
5987 as_fn_error $? "Could not find Boost" "$LINENO" 5
5988 else
5990 printf "%s\n" "#define HAVE_BOOST /**/" >>confdefs.h
5992 # execute ACTION-IF-FOUND (if present):
5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost CXXFLAGS: \"$BOOST_CPPFLAGS\"" >&5
5994 printf "%s\n" "$as_me: Boost CXXFLAGS: \"$BOOST_CPPFLAGS\"" >&6;}
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost LDFLAGS: \"$BOOST_LDFLAGS\"" >&5
5996 printf "%s\n" "$as_me: Boost LDFLAGS: \"$BOOST_LDFLAGS\"" >&6;}
5999 CPPFLAGS="$CPPFLAGS_SAVED"
6000 LDFLAGS="$LDFLAGS_SAVED"
6007 CXXFLAGS="$BOOST_CPPFLAGS $CXXFLAGS"
6008 LDFLAGS="$BOOST_LDFLAGS $LDFLAGS"
6010 # add workaround for problematic boost version
6011 # taken from ax_boost_base.m4
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6016 #include <boost/version.hpp>
6018 main (void)
6020 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < (106000))]));
6022 return 0;
6024 _ACEOF
6025 if ac_fn_cxx_try_compile "$LINENO"
6026 then :
6028 else $as_nop
6029 QBT_ADD_DEFINES="$QBT_ADD_DEFINES BOOST_NO_CXX11_RVALUE_REFERENCES"
6031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6034 pkg_failed=no
6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtorrent-rasterbar >= 2.0.4" >&5
6036 printf %s "checking for libtorrent-rasterbar >= 2.0.4... " >&6; }
6038 if test -n "$libtorrent_CFLAGS"; then
6039 pkg_cv_libtorrent_CFLAGS="$libtorrent_CFLAGS"
6040 elif test -n "$PKG_CONFIG"; then
6041 if test -n "$PKG_CONFIG" && \
6042 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 2.0.4\""; } >&5
6043 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 2.0.4") 2>&5
6044 ac_status=$?
6045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6046 test $ac_status = 0; }; then
6047 pkg_cv_libtorrent_CFLAGS=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 2.0.4" 2>/dev/null`
6048 test "x$?" != "x0" && pkg_failed=yes
6049 else
6050 pkg_failed=yes
6052 else
6053 pkg_failed=untried
6055 if test -n "$libtorrent_LIBS"; then
6056 pkg_cv_libtorrent_LIBS="$libtorrent_LIBS"
6057 elif test -n "$PKG_CONFIG"; then
6058 if test -n "$PKG_CONFIG" && \
6059 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 2.0.4\""; } >&5
6060 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 2.0.4") 2>&5
6061 ac_status=$?
6062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6063 test $ac_status = 0; }; then
6064 pkg_cv_libtorrent_LIBS=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 2.0.4" 2>/dev/null`
6065 test "x$?" != "x0" && pkg_failed=yes
6066 else
6067 pkg_failed=yes
6069 else
6070 pkg_failed=untried
6075 if test $pkg_failed = yes; then
6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 printf "%s\n" "no" >&6; }
6079 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6080 _pkg_short_errors_supported=yes
6081 else
6082 _pkg_short_errors_supported=no
6084 if test $_pkg_short_errors_supported = yes; then
6085 libtorrent_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 2.0.4" 2>&1`
6086 else
6087 libtorrent_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 2.0.4" 2>&1`
6089 # Put the nasty error message in config.log where it belongs
6090 echo "$libtorrent_PKG_ERRORS" >&5
6093 pkg_failed=no
6094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" >&5
6095 printf %s "checking for libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2... " >&6; }
6097 if test -n "$libtorrent_CFLAGS"; then
6098 pkg_cv_libtorrent_CFLAGS="$libtorrent_CFLAGS"
6099 elif test -n "$PKG_CONFIG"; then
6100 if test -n "$PKG_CONFIG" && \
6101 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2\""; } >&5
6102 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2") 2>&5
6103 ac_status=$?
6104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6105 test $ac_status = 0; }; then
6106 pkg_cv_libtorrent_CFLAGS=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>/dev/null`
6107 test "x$?" != "x0" && pkg_failed=yes
6108 else
6109 pkg_failed=yes
6111 else
6112 pkg_failed=untried
6114 if test -n "$libtorrent_LIBS"; then
6115 pkg_cv_libtorrent_LIBS="$libtorrent_LIBS"
6116 elif test -n "$PKG_CONFIG"; then
6117 if test -n "$PKG_CONFIG" && \
6118 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2\""; } >&5
6119 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2") 2>&5
6120 ac_status=$?
6121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6122 test $ac_status = 0; }; then
6123 pkg_cv_libtorrent_LIBS=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>/dev/null`
6124 test "x$?" != "x0" && pkg_failed=yes
6125 else
6126 pkg_failed=yes
6128 else
6129 pkg_failed=untried
6134 if test $pkg_failed = yes; then
6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 printf "%s\n" "no" >&6; }
6138 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6139 _pkg_short_errors_supported=yes
6140 else
6141 _pkg_short_errors_supported=no
6143 if test $_pkg_short_errors_supported = yes; then
6144 libtorrent_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>&1`
6145 else
6146 libtorrent_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>&1`
6148 # Put the nasty error message in config.log where it belongs
6149 echo "$libtorrent_PKG_ERRORS" >&5
6151 as_fn_error $? "Package requirements (libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2) were not met:
6153 $libtorrent_PKG_ERRORS
6155 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6156 installed software in a non-standard prefix.
6158 Alternatively, you may set the environment variables libtorrent_CFLAGS
6159 and libtorrent_LIBS to avoid the need to call pkg-config.
6160 See the pkg-config man page for more details." "$LINENO" 5
6161 elif test $pkg_failed = untried; then
6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 printf "%s\n" "no" >&6; }
6164 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6165 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6166 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6167 is in your PATH or set the PKG_CONFIG environment variable to the full
6168 path to pkg-config.
6170 Alternatively, you may set the environment variables libtorrent_CFLAGS
6171 and libtorrent_LIBS to avoid the need to call pkg-config.
6172 See the pkg-config man page for more details.
6174 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6175 See \`config.log' for more details" "$LINENO" 5; }
6176 else
6177 libtorrent_CFLAGS=$pkg_cv_libtorrent_CFLAGS
6178 libtorrent_LIBS=$pkg_cv_libtorrent_LIBS
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6180 printf "%s\n" "yes" >&6; }
6181 CXXFLAGS="$libtorrent_CFLAGS $CXXFLAGS" LIBS="$libtorrent_LIBS $LIBS"
6183 elif test $pkg_failed = untried; then
6184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185 printf "%s\n" "no" >&6; }
6187 pkg_failed=no
6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" >&5
6189 printf %s "checking for libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2... " >&6; }
6191 if test -n "$libtorrent_CFLAGS"; then
6192 pkg_cv_libtorrent_CFLAGS="$libtorrent_CFLAGS"
6193 elif test -n "$PKG_CONFIG"; then
6194 if test -n "$PKG_CONFIG" && \
6195 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2\""; } >&5
6196 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2") 2>&5
6197 ac_status=$?
6198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6199 test $ac_status = 0; }; then
6200 pkg_cv_libtorrent_CFLAGS=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>/dev/null`
6201 test "x$?" != "x0" && pkg_failed=yes
6202 else
6203 pkg_failed=yes
6205 else
6206 pkg_failed=untried
6208 if test -n "$libtorrent_LIBS"; then
6209 pkg_cv_libtorrent_LIBS="$libtorrent_LIBS"
6210 elif test -n "$PKG_CONFIG"; then
6211 if test -n "$PKG_CONFIG" && \
6212 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2\""; } >&5
6213 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2") 2>&5
6214 ac_status=$?
6215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6216 test $ac_status = 0; }; then
6217 pkg_cv_libtorrent_LIBS=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>/dev/null`
6218 test "x$?" != "x0" && pkg_failed=yes
6219 else
6220 pkg_failed=yes
6222 else
6223 pkg_failed=untried
6228 if test $pkg_failed = yes; then
6229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6230 printf "%s\n" "no" >&6; }
6232 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6233 _pkg_short_errors_supported=yes
6234 else
6235 _pkg_short_errors_supported=no
6237 if test $_pkg_short_errors_supported = yes; then
6238 libtorrent_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>&1`
6239 else
6240 libtorrent_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>&1`
6242 # Put the nasty error message in config.log where it belongs
6243 echo "$libtorrent_PKG_ERRORS" >&5
6245 as_fn_error $? "Package requirements (libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2) were not met:
6247 $libtorrent_PKG_ERRORS
6249 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6250 installed software in a non-standard prefix.
6252 Alternatively, you may set the environment variables libtorrent_CFLAGS
6253 and libtorrent_LIBS to avoid the need to call pkg-config.
6254 See the pkg-config man page for more details." "$LINENO" 5
6255 elif test $pkg_failed = untried; then
6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 printf "%s\n" "no" >&6; }
6258 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6259 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6260 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6261 is in your PATH or set the PKG_CONFIG environment variable to the full
6262 path to pkg-config.
6264 Alternatively, you may set the environment variables libtorrent_CFLAGS
6265 and libtorrent_LIBS to avoid the need to call pkg-config.
6266 See the pkg-config man page for more details.
6268 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6269 See \`config.log' for more details" "$LINENO" 5; }
6270 else
6271 libtorrent_CFLAGS=$pkg_cv_libtorrent_CFLAGS
6272 libtorrent_LIBS=$pkg_cv_libtorrent_LIBS
6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6274 printf "%s\n" "yes" >&6; }
6275 CXXFLAGS="$libtorrent_CFLAGS $CXXFLAGS" LIBS="$libtorrent_LIBS $LIBS"
6277 else
6278 libtorrent_CFLAGS=$pkg_cv_libtorrent_CFLAGS
6279 libtorrent_LIBS=$pkg_cv_libtorrent_LIBS
6280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6281 printf "%s\n" "yes" >&6; }
6282 CXXFLAGS="$libtorrent_CFLAGS $CXXFLAGS" LIBS="$libtorrent_LIBS $LIBS"
6286 pkg_failed=no
6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.1.1" >&5
6288 printf %s "checking for openssl >= 1.1.1... " >&6; }
6290 if test -n "$openssl_CFLAGS"; then
6291 pkg_cv_openssl_CFLAGS="$openssl_CFLAGS"
6292 elif test -n "$PKG_CONFIG"; then
6293 if test -n "$PKG_CONFIG" && \
6294 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.1\""; } >&5
6295 ($PKG_CONFIG --exists --print-errors "openssl >= 1.1.1") 2>&5
6296 ac_status=$?
6297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6298 test $ac_status = 0; }; then
6299 pkg_cv_openssl_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.1.1" 2>/dev/null`
6300 test "x$?" != "x0" && pkg_failed=yes
6301 else
6302 pkg_failed=yes
6304 else
6305 pkg_failed=untried
6307 if test -n "$openssl_LIBS"; then
6308 pkg_cv_openssl_LIBS="$openssl_LIBS"
6309 elif test -n "$PKG_CONFIG"; then
6310 if test -n "$PKG_CONFIG" && \
6311 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.1\""; } >&5
6312 ($PKG_CONFIG --exists --print-errors "openssl >= 1.1.1") 2>&5
6313 ac_status=$?
6314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6315 test $ac_status = 0; }; then
6316 pkg_cv_openssl_LIBS=`$PKG_CONFIG --libs "openssl >= 1.1.1" 2>/dev/null`
6317 test "x$?" != "x0" && pkg_failed=yes
6318 else
6319 pkg_failed=yes
6321 else
6322 pkg_failed=untried
6327 if test $pkg_failed = yes; then
6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 printf "%s\n" "no" >&6; }
6331 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6332 _pkg_short_errors_supported=yes
6333 else
6334 _pkg_short_errors_supported=no
6336 if test $_pkg_short_errors_supported = yes; then
6337 openssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.1.1" 2>&1`
6338 else
6339 openssl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.1.1" 2>&1`
6341 # Put the nasty error message in config.log where it belongs
6342 echo "$openssl_PKG_ERRORS" >&5
6344 as_fn_error $? "Package requirements (openssl >= 1.1.1) were not met:
6346 $openssl_PKG_ERRORS
6348 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6349 installed software in a non-standard prefix.
6351 Alternatively, you may set the environment variables openssl_CFLAGS
6352 and openssl_LIBS to avoid the need to call pkg-config.
6353 See the pkg-config man page for more details." "$LINENO" 5
6354 elif test $pkg_failed = untried; then
6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356 printf "%s\n" "no" >&6; }
6357 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6358 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6359 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6360 is in your PATH or set the PKG_CONFIG environment variable to the full
6361 path to pkg-config.
6363 Alternatively, you may set the environment variables openssl_CFLAGS
6364 and openssl_LIBS to avoid the need to call pkg-config.
6365 See the pkg-config man page for more details.
6367 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6368 See \`config.log' for more details" "$LINENO" 5; }
6369 else
6370 openssl_CFLAGS=$pkg_cv_openssl_CFLAGS
6371 openssl_LIBS=$pkg_cv_openssl_LIBS
6372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6373 printf "%s\n" "yes" >&6; }
6374 CXXFLAGS="$openssl_CFLAGS $CXXFLAGS"
6375 LIBS="$openssl_LIBS $LIBS"
6379 pkg_failed=no
6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.2.11" >&5
6381 printf %s "checking for zlib >= 1.2.11... " >&6; }
6383 if test -n "$zlib_CFLAGS"; then
6384 pkg_cv_zlib_CFLAGS="$zlib_CFLAGS"
6385 elif test -n "$PKG_CONFIG"; then
6386 if test -n "$PKG_CONFIG" && \
6387 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.11\""; } >&5
6388 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.11") 2>&5
6389 ac_status=$?
6390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391 test $ac_status = 0; }; then
6392 pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.11" 2>/dev/null`
6393 test "x$?" != "x0" && pkg_failed=yes
6394 else
6395 pkg_failed=yes
6397 else
6398 pkg_failed=untried
6400 if test -n "$zlib_LIBS"; then
6401 pkg_cv_zlib_LIBS="$zlib_LIBS"
6402 elif test -n "$PKG_CONFIG"; then
6403 if test -n "$PKG_CONFIG" && \
6404 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.11\""; } >&5
6405 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.11") 2>&5
6406 ac_status=$?
6407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6408 test $ac_status = 0; }; then
6409 pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.11" 2>/dev/null`
6410 test "x$?" != "x0" && pkg_failed=yes
6411 else
6412 pkg_failed=yes
6414 else
6415 pkg_failed=untried
6420 if test $pkg_failed = yes; then
6421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 printf "%s\n" "no" >&6; }
6424 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6425 _pkg_short_errors_supported=yes
6426 else
6427 _pkg_short_errors_supported=no
6429 if test $_pkg_short_errors_supported = yes; then
6430 zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.11" 2>&1`
6431 else
6432 zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.11" 2>&1`
6434 # Put the nasty error message in config.log where it belongs
6435 echo "$zlib_PKG_ERRORS" >&5
6437 as_fn_error $? "Package requirements (zlib >= 1.2.11) were not met:
6439 $zlib_PKG_ERRORS
6441 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6442 installed software in a non-standard prefix.
6444 Alternatively, you may set the environment variables zlib_CFLAGS
6445 and zlib_LIBS to avoid the need to call pkg-config.
6446 See the pkg-config man page for more details." "$LINENO" 5
6447 elif test $pkg_failed = untried; then
6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 printf "%s\n" "no" >&6; }
6450 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6451 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6452 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6453 is in your PATH or set the PKG_CONFIG environment variable to the full
6454 path to pkg-config.
6456 Alternatively, you may set the environment variables zlib_CFLAGS
6457 and zlib_LIBS to avoid the need to call pkg-config.
6458 See the pkg-config man page for more details.
6460 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6461 See \`config.log' for more details" "$LINENO" 5; }
6462 else
6463 zlib_CFLAGS=$pkg_cv_zlib_CFLAGS
6464 zlib_LIBS=$pkg_cv_zlib_LIBS
6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6466 printf "%s\n" "yes" >&6; }
6467 CXXFLAGS="$zlib_CFLAGS $CXXFLAGS"
6468 LIBS="$zlib_LIBS $LIBS"
6471 # Check if already in >= C++17 mode because of the flags returned by one of the above packages
6472 TMP_CXXFLAGS="$CXXFLAGS"
6473 CXXFLAGS=""
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler defaults to C++17 or later mode" >&5
6475 printf %s "checking if compiler defaults to C++17 or later mode... " >&6; }
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6479 #ifndef __cplusplus
6480 #error "This is not a C++ compiler"
6481 #elif __cplusplus < 201703L
6482 #error "This is not a C++17 compiler"
6483 #endif
6485 main (void)
6489 return 0;
6492 _ACEOF
6493 if ac_fn_cxx_try_compile "$LINENO"
6494 then :
6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6496 printf "%s\n" "yes" >&6; }
6497 QBT_CXX17_FOUND="yes"
6498 else $as_nop
6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 printf "%s\n" "no" >&6; }
6501 QBT_CXX17_FOUND="no"
6503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6505 # In case of no, check if the compiler can support at least C++17
6506 # and if yes, enable it leaving a warning to the user
6507 if test "x$QBT_CXX17_FOUND" = "xno"
6508 then :
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports C++17" >&5
6510 printf %s "checking if compiler supports C++17... " >&6; }
6511 CXXFLAGS="-std=c++17"
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6515 #ifndef __cplusplus
6516 #error "This is not a C++ compiler"
6517 #elif __cplusplus < 201703L
6518 #error "This is not a C++17 compiler"
6519 #endif
6521 main (void)
6525 return 0;
6528 _ACEOF
6529 if ac_fn_cxx_try_compile "$LINENO"
6530 then :
6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6532 printf "%s\n" "yes" >&6; }
6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C++17 is disabled by the set compiler flags" >&5
6534 printf %s "checking if C++17 is disabled by the set compiler flags... " >&6; }
6535 # prepend the flag so it won't override conflicting user defined flags
6536 CXXFLAGS="-std=c++17 $TMP_CXXFLAGS"
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6540 #ifndef __cplusplus
6541 #error "This is not a C++ compiler"
6542 #elif __cplusplus < 201703L
6543 #error "This is not a C++17 compiler"
6544 #endif
6546 main (void)
6550 return 0;
6553 _ACEOF
6554 if ac_fn_cxx_try_compile "$LINENO"
6555 then :
6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 printf "%s\n" "no" >&6; }
6558 QBT_ADD_CONFIG="$QBT_ADD_CONFIG c++17"
6559 { 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
6560 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;}
6561 else $as_nop
6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6563 printf "%s\n" "yes" >&6; }
6564 as_fn_error $? "The compiler supports C++17 but the user or a dependency has explicitly enabled a lower mode." "$LINENO" 5
6566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6567 else $as_nop
6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 printf "%s\n" "no" >&6; }
6570 as_fn_error $? "A compiler supporting C++17 is required." "$LINENO" 5
6572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6575 CXXFLAGS="$TMP_CXXFLAGS"
6577 # These are required because autoconf doesn't expand these **particular**
6578 # vars automatically. And qmake cannot autoexpand them.
6580 prefix_NONE=
6581 exec_prefix_NONE=
6582 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
6583 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
6584 eval ax_define_dir="\"$prefix\""
6585 eval ax_define_dir="\"$ax_define_dir\""
6586 EXPAND_PREFIX="$ax_define_dir"
6588 printf "%s\n" "#define EXPAND_PREFIX \"$ax_define_dir\"" >>confdefs.h
6590 test "$prefix_NONE" && prefix=NONE
6591 test "$exec_prefix_NONE" && exec_prefix=NONE
6594 prefix_NONE=
6595 exec_prefix_NONE=
6596 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
6597 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
6598 eval ax_define_dir="\"$bindir\""
6599 eval ax_define_dir="\"$ax_define_dir\""
6600 EXPAND_BINDIR="$ax_define_dir"
6602 printf "%s\n" "#define EXPAND_BINDIR \"$ax_define_dir\"" >>confdefs.h
6604 test "$prefix_NONE" && prefix=NONE
6605 test "$exec_prefix_NONE" && exec_prefix=NONE
6608 prefix_NONE=
6609 exec_prefix_NONE=
6610 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
6611 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
6612 eval ax_define_dir="\"$datadir\""
6613 eval ax_define_dir="\"$ax_define_dir\""
6614 EXPAND_DATADIR="$ax_define_dir"
6616 printf "%s\n" "#define EXPAND_DATADIR \"$ax_define_dir\"" >>confdefs.h
6618 test "$prefix_NONE" && prefix=NONE
6619 test "$exec_prefix_NONE" && exec_prefix=NONE
6622 prefix_NONE=
6623 exec_prefix_NONE=
6624 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
6625 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
6626 eval ax_define_dir="\"$mandir\""
6627 eval ax_define_dir="\"$ax_define_dir\""
6628 EXPAND_MANDIR="$ax_define_dir"
6630 printf "%s\n" "#define EXPAND_MANDIR \"$ax_define_dir\"" >>confdefs.h
6632 test "$prefix_NONE" && prefix=NONE
6633 test "$exec_prefix_NONE" && exec_prefix=NONE
6636 # Original extract() function contributed by pmzqla
6637 # $*: Strings to parse
6638 # Set $QBT_CONF_DEFINES, $QBT_CONF_INCLUDES, $QBT_CONF_EXTRA_CFLAGS
6639 extract() {
6640 if [ -z "$*" ]; then
6641 echo "Input string required"
6642 return 1
6645 # BSD sed needs an actual newline character in the substitute command
6646 new_line='
6648 # Convert " -" to "\n" if not between quotes and remove possible leading white spaces
6649 string=$(echo " $*" | $SED -e "s: -:\\${new_line}:g" -e 's:"\(.*\)\n\(.*\)":\"\1 -\2":g' -e "s:'\(.*\)\n\(.*\)':\'\1 -\2':g" -e 's/^[[:space:]]*//')
6650 SAVEIFS=$IFS
6651 IFS=$(printf "\n\b")
6652 for i in $string; do
6653 case "$(echo "$i" | cut -c1)" in
6654 '') ;;
6655 D) QBT_CONF_DEFINES="$QBT_CONF_DEFINES $(echo $i | cut -c2-)";;
6656 I) QBT_CONF_INCLUDES="$QBT_CONF_INCLUDES $(echo $i | cut -c2-)";;
6657 *) QBT_CONF_EXTRA_CFLAGS="$QBT_CONF_EXTRA_CFLAGS -$i";;
6658 esac
6659 done
6660 IFS=$SAVEIFS
6663 extract "$CFLAGS $CXXFLAGS"
6664 QBT_ADD_DEFINES="$QBT_ADD_DEFINES $QBT_CONF_DEFINES"
6666 # Substitute the values of these vars in conf.pri.in
6676 QBT_CONFIG_FILES="conf.pri"
6678 if test "x$enable_systemd" = "xyes"
6679 then :
6680 QBT_CONFIG_FILES="$QBT_CONFIG_FILES dist/unix/systemd/qbittorrent-nox@.service"
6683 ac_config_files="$ac_config_files "$QBT_CONFIG_FILES""
6685 cat >confcache <<\_ACEOF
6686 # This file is a shell script that caches the results of configure
6687 # tests run on this system so they can be shared between configure
6688 # scripts and configure runs, see configure's option --config-cache.
6689 # It is not useful on other systems. If it contains results you don't
6690 # want to keep, you may remove or edit it.
6692 # config.status only pays attention to the cache file if you give it
6693 # the --recheck option to rerun configure.
6695 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6696 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6697 # following values.
6699 _ACEOF
6701 # The following way of writing the cache mishandles newlines in values,
6702 # but we know of no workaround that is simple, portable, and efficient.
6703 # So, we kill variables containing newlines.
6704 # Ultrix sh set writes to stderr and can't be redirected directly,
6705 # and sets the high bit in the cache file unless we assign to the vars.
6707 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6708 eval ac_val=\$$ac_var
6709 case $ac_val in #(
6710 *${as_nl}*)
6711 case $ac_var in #(
6712 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6713 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6714 esac
6715 case $ac_var in #(
6716 _ | IFS | as_nl) ;; #(
6717 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6718 *) { eval $ac_var=; unset $ac_var;} ;;
6719 esac ;;
6720 esac
6721 done
6723 (set) 2>&1 |
6724 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6725 *${as_nl}ac_space=\ *)
6726 # `set' does not quote correctly, so add quotes: double-quote
6727 # substitution turns \\\\ into \\, and sed turns \\ into \.
6728 sed -n \
6729 "s/'/'\\\\''/g;
6730 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6731 ;; #(
6733 # `set' quotes correctly as required by POSIX, so do not add quotes.
6734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6736 esac |
6737 sort
6739 sed '
6740 /^ac_cv_env_/b end
6741 t clear
6742 :clear
6743 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6744 t end
6745 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6746 :end' >>confcache
6747 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6748 if test -w "$cache_file"; then
6749 if test "x$cache_file" != "x/dev/null"; then
6750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6751 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6752 if test ! -f "$cache_file" || test -h "$cache_file"; then
6753 cat confcache >"$cache_file"
6754 else
6755 case $cache_file in #(
6756 */* | ?:*)
6757 mv -f confcache "$cache_file"$$ &&
6758 mv -f "$cache_file"$$ "$cache_file" ;; #(
6760 mv -f confcache "$cache_file" ;;
6761 esac
6764 else
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6766 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6769 rm -f confcache
6771 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6772 # Let make expand exec_prefix.
6773 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6775 # Transform confdefs.h into DEFS.
6776 # Protect against shell expansion while executing Makefile rules.
6777 # Protect against Makefile macro expansion.
6779 # If the first sed substitution is executed (which looks for macros that
6780 # take arguments), then branch to the quote section. Otherwise,
6781 # look for a macro that doesn't take arguments.
6782 ac_script='
6783 :mline
6784 /\\$/{
6786 s,\\\n,,
6787 b mline
6789 t clear
6790 :clear
6791 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
6792 t quote
6793 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
6794 t quote
6795 b any
6796 :quote
6797 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6798 s/\[/\\&/g
6799 s/\]/\\&/g
6800 s/\$/$$/g
6802 :any
6805 s/^\n//
6806 s/\n/ /g
6810 DEFS=`sed -n "$ac_script" confdefs.h`
6813 ac_libobjs=
6814 ac_ltlibobjs=
6816 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6817 # 1. Remove the extension, and $U if already installed.
6818 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6819 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6820 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6821 # will be set to the directory where LIBOBJS objects are built.
6822 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6823 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6824 done
6825 LIBOBJS=$ac_libobjs
6827 LTLIBOBJS=$ac_ltlibobjs
6830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6831 printf %s "checking that generated files are newer than configure... " >&6; }
6832 if test -n "$am_sleep_pid"; then
6833 # Hide warnings about reused PIDs.
6834 wait $am_sleep_pid 2>/dev/null
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
6837 printf "%s\n" "done" >&6; }
6838 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6839 as_fn_error $? "conditional \"AMDEP\" was never defined.
6840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6842 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6843 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6846 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6847 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
6848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6850 if test -n "$EXEEXT"; then
6851 am__EXEEXT_TRUE=
6852 am__EXEEXT_FALSE='#'
6853 else
6854 am__EXEEXT_TRUE='#'
6855 am__EXEEXT_FALSE=
6859 : "${CONFIG_STATUS=./config.status}"
6860 ac_write_fail=0
6861 ac_clean_files_save=$ac_clean_files
6862 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6864 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6865 as_write_fail=0
6866 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6867 #! $SHELL
6868 # Generated by $as_me.
6869 # Run this file to recreate the current configuration.
6870 # Compiler output produced by configure, useful for debugging
6871 # configure, is in config.log if it exists.
6873 debug=false
6874 ac_cs_recheck=false
6875 ac_cs_silent=false
6877 SHELL=\${CONFIG_SHELL-$SHELL}
6878 export SHELL
6879 _ASEOF
6880 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6881 ## -------------------- ##
6882 ## M4sh Initialization. ##
6883 ## -------------------- ##
6885 # Be more Bourne compatible
6886 DUALCASE=1; export DUALCASE # for MKS sh
6887 as_nop=:
6888 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6889 then :
6890 emulate sh
6891 NULLCMD=:
6892 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6893 # is contrary to our usage. Disable this feature.
6894 alias -g '${1+"$@"}'='"$@"'
6895 setopt NO_GLOB_SUBST
6896 else $as_nop
6897 case `(set -o) 2>/dev/null` in #(
6898 *posix*) :
6899 set -o posix ;; #(
6900 *) :
6902 esac
6907 # Reset variables that may have inherited troublesome values from
6908 # the environment.
6910 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6911 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6912 # side effect of setting IFS to empty, thus disabling word splitting.)
6913 # Quoting is to prevent editors from complaining about space-tab.
6914 as_nl='
6916 export as_nl
6917 IFS=" "" $as_nl"
6919 PS1='$ '
6920 PS2='> '
6921 PS4='+ '
6923 # Ensure predictable behavior from utilities with locale-dependent output.
6924 LC_ALL=C
6925 export LC_ALL
6926 LANGUAGE=C
6927 export LANGUAGE
6929 # We cannot yet rely on "unset" to work, but we need these variables
6930 # to be unset--not just set to an empty or harmless value--now, to
6931 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6932 # also avoids known problems related to "unset" and subshell syntax
6933 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6934 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6935 do eval test \${$as_var+y} \
6936 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6937 done
6939 # Ensure that fds 0, 1, and 2 are open.
6940 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
6941 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
6942 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
6944 # The user is always right.
6945 if ${PATH_SEPARATOR+false} :; then
6946 PATH_SEPARATOR=:
6947 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6948 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6949 PATH_SEPARATOR=';'
6954 # Find who we are. Look in the path if we contain no directory separator.
6955 as_myself=
6956 case $0 in #((
6957 *[\\/]* ) as_myself=$0 ;;
6958 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6961 IFS=$as_save_IFS
6962 case $as_dir in #(((
6963 '') as_dir=./ ;;
6964 */) ;;
6965 *) as_dir=$as_dir/ ;;
6966 esac
6967 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
6968 done
6969 IFS=$as_save_IFS
6972 esac
6973 # We did not find ourselves, most probably we were run as `sh COMMAND'
6974 # in which case we are not to be found in the path.
6975 if test "x$as_myself" = x; then
6976 as_myself=$0
6978 if test ! -f "$as_myself"; then
6979 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6980 exit 1
6985 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6986 # ----------------------------------------
6987 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6988 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6989 # script with STATUS, using 1 if that was 0.
6990 as_fn_error ()
6992 as_status=$1; test $as_status -eq 0 && as_status=1
6993 if test "$4"; then
6994 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6997 printf "%s\n" "$as_me: error: $2" >&2
6998 as_fn_exit $as_status
6999 } # as_fn_error
7003 # as_fn_set_status STATUS
7004 # -----------------------
7005 # Set $? to STATUS, without forking.
7006 as_fn_set_status ()
7008 return $1
7009 } # as_fn_set_status
7011 # as_fn_exit STATUS
7012 # -----------------
7013 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7014 as_fn_exit ()
7016 set +e
7017 as_fn_set_status $1
7018 exit $1
7019 } # as_fn_exit
7021 # as_fn_unset VAR
7022 # ---------------
7023 # Portably unset VAR.
7024 as_fn_unset ()
7026 { eval $1=; unset $1;}
7028 as_unset=as_fn_unset
7030 # as_fn_append VAR VALUE
7031 # ----------------------
7032 # Append the text in VALUE to the end of the definition contained in VAR. Take
7033 # advantage of any shell optimizations that allow amortized linear growth over
7034 # repeated appends, instead of the typical quadratic growth present in naive
7035 # implementations.
7036 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
7037 then :
7038 eval 'as_fn_append ()
7040 eval $1+=\$2
7042 else $as_nop
7043 as_fn_append ()
7045 eval $1=\$$1\$2
7047 fi # as_fn_append
7049 # as_fn_arith ARG...
7050 # ------------------
7051 # Perform arithmetic evaluation on the ARGs, and store the result in the
7052 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7053 # must be portable across $(()) and expr.
7054 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
7055 then :
7056 eval 'as_fn_arith ()
7058 as_val=$(( $* ))
7060 else $as_nop
7061 as_fn_arith ()
7063 as_val=`expr "$@" || test $? -eq 1`
7065 fi # as_fn_arith
7068 if expr a : '\(a\)' >/dev/null 2>&1 &&
7069 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7070 as_expr=expr
7071 else
7072 as_expr=false
7075 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7076 as_basename=basename
7077 else
7078 as_basename=false
7081 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7082 as_dirname=dirname
7083 else
7084 as_dirname=false
7087 as_me=`$as_basename -- "$0" ||
7088 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7089 X"$0" : 'X\(//\)$' \| \
7090 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7091 printf "%s\n" X/"$0" |
7092 sed '/^.*\/\([^/][^/]*\)\/*$/{
7093 s//\1/
7096 /^X\/\(\/\/\)$/{
7097 s//\1/
7100 /^X\/\(\/\).*/{
7101 s//\1/
7104 s/.*/./; q'`
7106 # Avoid depending upon Character Ranges.
7107 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7108 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7109 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7110 as_cr_digits='0123456789'
7111 as_cr_alnum=$as_cr_Letters$as_cr_digits
7114 # Determine whether it's possible to make 'echo' print without a newline.
7115 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
7116 # for compatibility with existing Makefiles.
7117 ECHO_C= ECHO_N= ECHO_T=
7118 case `echo -n x` in #(((((
7119 -n*)
7120 case `echo 'xy\c'` in
7121 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7122 xy) ECHO_C='\c';;
7123 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7124 ECHO_T=' ';;
7125 esac;;
7127 ECHO_N='-n';;
7128 esac
7130 # For backward compatibility with old third-party macros, we provide
7131 # the shell variables $as_echo and $as_echo_n. New code should use
7132 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
7133 as_echo='printf %s\n'
7134 as_echo_n='printf %s'
7136 rm -f conf$$ conf$$.exe conf$$.file
7137 if test -d conf$$.dir; then
7138 rm -f conf$$.dir/conf$$.file
7139 else
7140 rm -f conf$$.dir
7141 mkdir conf$$.dir 2>/dev/null
7143 if (echo >conf$$.file) 2>/dev/null; then
7144 if ln -s conf$$.file conf$$ 2>/dev/null; then
7145 as_ln_s='ln -s'
7146 # ... but there are two gotchas:
7147 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7148 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7149 # In both cases, we have to default to `cp -pR'.
7150 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7151 as_ln_s='cp -pR'
7152 elif ln conf$$.file conf$$ 2>/dev/null; then
7153 as_ln_s=ln
7154 else
7155 as_ln_s='cp -pR'
7157 else
7158 as_ln_s='cp -pR'
7160 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7161 rmdir conf$$.dir 2>/dev/null
7164 # as_fn_mkdir_p
7165 # -------------
7166 # Create "$as_dir" as a directory, including parents if necessary.
7167 as_fn_mkdir_p ()
7170 case $as_dir in #(
7171 -*) as_dir=./$as_dir;;
7172 esac
7173 test -d "$as_dir" || eval $as_mkdir_p || {
7174 as_dirs=
7175 while :; do
7176 case $as_dir in #(
7177 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7178 *) as_qdir=$as_dir;;
7179 esac
7180 as_dirs="'$as_qdir' $as_dirs"
7181 as_dir=`$as_dirname -- "$as_dir" ||
7182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7183 X"$as_dir" : 'X\(//\)[^/]' \| \
7184 X"$as_dir" : 'X\(//\)$' \| \
7185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7186 printf "%s\n" X"$as_dir" |
7187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7188 s//\1/
7191 /^X\(\/\/\)[^/].*/{
7192 s//\1/
7195 /^X\(\/\/\)$/{
7196 s//\1/
7199 /^X\(\/\).*/{
7200 s//\1/
7203 s/.*/./; q'`
7204 test -d "$as_dir" && break
7205 done
7206 test -z "$as_dirs" || eval "mkdir $as_dirs"
7207 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7210 } # as_fn_mkdir_p
7211 if mkdir -p . 2>/dev/null; then
7212 as_mkdir_p='mkdir -p "$as_dir"'
7213 else
7214 test -d ./-p && rmdir ./-p
7215 as_mkdir_p=false
7219 # as_fn_executable_p FILE
7220 # -----------------------
7221 # Test if FILE is an executable regular file.
7222 as_fn_executable_p ()
7224 test -f "$1" && test -x "$1"
7225 } # as_fn_executable_p
7226 as_test_x='test -x'
7227 as_executable_p=as_fn_executable_p
7229 # Sed expression to map a string onto a valid CPP name.
7230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7232 # Sed expression to map a string onto a valid variable name.
7233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7236 exec 6>&1
7237 ## ----------------------------------- ##
7238 ## Main body of $CONFIG_STATUS script. ##
7239 ## ----------------------------------- ##
7240 _ASEOF
7241 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7244 # Save the log message, to keep $0 and so on meaningful, and to
7245 # report actual input values of CONFIG_FILES etc. instead of their
7246 # values after options handling.
7247 ac_log="
7248 This file was extended by qbittorrent $as_me v4.4.0alpha, which was
7249 generated by GNU Autoconf 2.71. Invocation command line was
7251 CONFIG_FILES = $CONFIG_FILES
7252 CONFIG_HEADERS = $CONFIG_HEADERS
7253 CONFIG_LINKS = $CONFIG_LINKS
7254 CONFIG_COMMANDS = $CONFIG_COMMANDS
7255 $ $0 $@
7257 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7260 _ACEOF
7262 case $ac_config_files in *"
7263 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7264 esac
7268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7269 # Files that config.status was made for.
7270 config_files="$ac_config_files"
7271 config_commands="$ac_config_commands"
7273 _ACEOF
7275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7276 ac_cs_usage="\
7277 \`$as_me' instantiates files and other configuration actions
7278 from templates according to the current configuration. Unless the files
7279 and actions are specified as TAGs, all are instantiated by default.
7281 Usage: $0 [OPTION]... [TAG]...
7283 -h, --help print this help, then exit
7284 -V, --version print version number and configuration settings, then exit
7285 --config print configuration, then exit
7286 -q, --quiet, --silent
7287 do not print progress messages
7288 -d, --debug don't remove temporary files
7289 --recheck update $as_me by reconfiguring in the same conditions
7290 --file=FILE[:TEMPLATE]
7291 instantiate the configuration file FILE
7293 Configuration files:
7294 $config_files
7296 Configuration commands:
7297 $config_commands
7299 Report bugs to <bugs.qbittorrent.org>.
7300 qbittorrent home page: <https://www.qbittorrent.org/>."
7302 _ACEOF
7303 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7304 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7306 ac_cs_config='$ac_cs_config_escaped'
7307 ac_cs_version="\\
7308 qbittorrent config.status v4.4.0alpha
7309 configured by $0, generated by GNU Autoconf 2.71,
7310 with options \\"\$ac_cs_config\\"
7312 Copyright (C) 2021 Free Software Foundation, Inc.
7313 This config.status script is free software; the Free Software Foundation
7314 gives unlimited permission to copy, distribute and modify it."
7316 ac_pwd='$ac_pwd'
7317 srcdir='$srcdir'
7318 INSTALL='$INSTALL'
7319 MKDIR_P='$MKDIR_P'
7320 AWK='$AWK'
7321 test -n "\$AWK" || AWK=awk
7322 _ACEOF
7324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7325 # The default lists apply if the user does not specify any file.
7326 ac_need_defaults=:
7327 while test $# != 0
7329 case $1 in
7330 --*=?*)
7331 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7332 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7333 ac_shift=:
7335 --*=)
7336 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7337 ac_optarg=
7338 ac_shift=:
7341 ac_option=$1
7342 ac_optarg=$2
7343 ac_shift=shift
7345 esac
7347 case $ac_option in
7348 # Handling of the options.
7349 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7350 ac_cs_recheck=: ;;
7351 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7352 printf "%s\n" "$ac_cs_version"; exit ;;
7353 --config | --confi | --conf | --con | --co | --c )
7354 printf "%s\n" "$ac_cs_config"; exit ;;
7355 --debug | --debu | --deb | --de | --d | -d )
7356 debug=: ;;
7357 --file | --fil | --fi | --f )
7358 $ac_shift
7359 case $ac_optarg in
7360 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7361 '') as_fn_error $? "missing file argument" ;;
7362 esac
7363 as_fn_append CONFIG_FILES " '$ac_optarg'"
7364 ac_need_defaults=false;;
7365 --he | --h | --help | --hel | -h )
7366 printf "%s\n" "$ac_cs_usage"; exit ;;
7367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7368 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7369 ac_cs_silent=: ;;
7371 # This is an error.
7372 -*) as_fn_error $? "unrecognized option: \`$1'
7373 Try \`$0 --help' for more information." ;;
7375 *) as_fn_append ac_config_targets " $1"
7376 ac_need_defaults=false ;;
7378 esac
7379 shift
7380 done
7382 ac_configure_extra_args=
7384 if $ac_cs_silent; then
7385 exec 6>/dev/null
7386 ac_configure_extra_args="$ac_configure_extra_args --silent"
7389 _ACEOF
7390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7391 if \$ac_cs_recheck; then
7392 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7393 shift
7394 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7395 CONFIG_SHELL='$SHELL'
7396 export CONFIG_SHELL
7397 exec "\$@"
7400 _ACEOF
7401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7402 exec 5>>config.log
7404 echo
7405 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7406 ## Running $as_me. ##
7407 _ASBOX
7408 printf "%s\n" "$ac_log"
7409 } >&5
7411 _ACEOF
7412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7414 # INIT-COMMANDS
7416 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
7418 _ACEOF
7420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7422 # Handling of arguments.
7423 for ac_config_target in $ac_config_targets
7425 case $ac_config_target in
7426 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7427 ""$QBT_CONFIG_FILES"") CONFIG_FILES="$CONFIG_FILES "$QBT_CONFIG_FILES"" ;;
7429 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7430 esac
7431 done
7434 # If the user did not use the arguments to specify the items to instantiate,
7435 # then the envvar interface is used. Set only those that are not.
7436 # We use the long form for the default assignment because of an extremely
7437 # bizarre bug on SunOS 4.1.3.
7438 if $ac_need_defaults; then
7439 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
7440 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
7443 # Have a temporary directory for convenience. Make it in the build tree
7444 # simply because there is no reason against having it here, and in addition,
7445 # creating and moving files from /tmp can sometimes cause problems.
7446 # Hook for its removal unless debugging.
7447 # Note that there is a small window in which the directory will not be cleaned:
7448 # after its creation but before its name has been assigned to `$tmp'.
7449 $debug ||
7451 tmp= ac_tmp=
7452 trap 'exit_status=$?
7453 : "${ac_tmp:=$tmp}"
7454 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7456 trap 'as_fn_exit 1' 1 2 13 15
7458 # Create a (secure) tmp directory for tmp files.
7461 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7462 test -d "$tmp"
7463 } ||
7465 tmp=./conf$$-$RANDOM
7466 (umask 077 && mkdir "$tmp")
7467 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7468 ac_tmp=$tmp
7470 # Set up the scripts for CONFIG_FILES section.
7471 # No need to generate them if there are no CONFIG_FILES.
7472 # This happens for instance with `./config.status config.h'.
7473 if test -n "$CONFIG_FILES"; then
7476 ac_cr=`echo X | tr X '\015'`
7477 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7478 # But we know of no other shell where ac_cr would be empty at this
7479 # point, so we can use a bashism as a fallback.
7480 if test "x$ac_cr" = x; then
7481 eval ac_cr=\$\'\\r\'
7483 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7484 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7485 ac_cs_awk_cr='\\r'
7486 else
7487 ac_cs_awk_cr=$ac_cr
7490 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7491 _ACEOF
7495 echo "cat >conf$$subs.awk <<_ACEOF" &&
7496 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7497 echo "_ACEOF"
7498 } >conf$$subs.sh ||
7499 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7500 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7501 ac_delim='%!_!# '
7502 for ac_last_try in false false false false false :; do
7503 . ./conf$$subs.sh ||
7504 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7506 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7507 if test $ac_delim_n = $ac_delim_num; then
7508 break
7509 elif $ac_last_try; then
7510 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7511 else
7512 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7514 done
7515 rm -f conf$$subs.sh
7517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7518 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7519 _ACEOF
7520 sed -n '
7522 s/^/S["/; s/!.*/"]=/
7525 s/^[^!]*!//
7526 :repl
7527 t repl
7528 s/'"$ac_delim"'$//
7529 t delim
7532 s/\(.\{148\}\)..*/\1/
7533 t more1
7534 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7537 b repl
7538 :more1
7539 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7542 s/.\{148\}//
7543 t nl
7544 :delim
7546 s/\(.\{148\}\)..*/\1/
7547 t more2
7548 s/["\\]/\\&/g; s/^/"/; s/$/"/
7551 :more2
7552 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7555 s/.\{148\}//
7556 t delim
7557 ' <conf$$subs.awk | sed '
7558 /^[^""]/{
7560 s/\n//
7562 ' >>$CONFIG_STATUS || ac_write_fail=1
7563 rm -f conf$$subs.awk
7564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7565 _ACAWK
7566 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7567 for (key in S) S_is_set[key] = 1
7568 FS = "\a"
7572 line = $ 0
7573 nfields = split(line, field, "@")
7574 substed = 0
7575 len = length(field[1])
7576 for (i = 2; i < nfields; i++) {
7577 key = field[i]
7578 keylen = length(key)
7579 if (S_is_set[key]) {
7580 value = S[key]
7581 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7582 len += length(value) + length(field[++i])
7583 substed = 1
7584 } else
7585 len += 1 + keylen
7588 print line
7591 _ACAWK
7592 _ACEOF
7593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7594 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7595 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7596 else
7598 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7599 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7600 _ACEOF
7602 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7603 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7604 # trailing colons and then remove the whole line if VPATH becomes empty
7605 # (actually we leave an empty line to preserve line numbers).
7606 if test "x$srcdir" = x.; then
7607 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7609 s///
7610 s/^/:/
7611 s/[ ]*$/:/
7612 s/:\$(srcdir):/:/g
7613 s/:\${srcdir}:/:/g
7614 s/:@srcdir@:/:/g
7615 s/^:*//
7616 s/:*$//
7618 s/\(=[ ]*\).*/\1/
7620 s/\n//
7621 s/^[^=]*=[ ]*$//
7625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7626 fi # test -n "$CONFIG_FILES"
7629 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
7630 shift
7631 for ac_tag
7633 case $ac_tag in
7634 :[FHLC]) ac_mode=$ac_tag; continue;;
7635 esac
7636 case $ac_mode$ac_tag in
7637 :[FHL]*:*);;
7638 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7639 :[FH]-) ac_tag=-:-;;
7640 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7641 esac
7642 ac_save_IFS=$IFS
7643 IFS=:
7644 set x $ac_tag
7645 IFS=$ac_save_IFS
7646 shift
7647 ac_file=$1
7648 shift
7650 case $ac_mode in
7651 :L) ac_source=$1;;
7652 :[FH])
7653 ac_file_inputs=
7654 for ac_f
7656 case $ac_f in
7657 -) ac_f="$ac_tmp/stdin";;
7658 *) # Look for the file first in the build tree, then in the source tree
7659 # (if the path is not absolute). The absolute path cannot be DOS-style,
7660 # because $ac_f cannot contain `:'.
7661 test -f "$ac_f" ||
7662 case $ac_f in
7663 [\\/$]*) false;;
7664 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7665 esac ||
7666 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7667 esac
7668 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7669 as_fn_append ac_file_inputs " '$ac_f'"
7670 done
7672 # Let's still pretend it is `configure' which instantiates (i.e., don't
7673 # use $as_me), people would be surprised to read:
7674 # /* config.h. Generated by config.status. */
7675 configure_input='Generated from '`
7676 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7677 `' by configure.'
7678 if test x"$ac_file" != x-; then
7679 configure_input="$ac_file. $configure_input"
7680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7681 printf "%s\n" "$as_me: creating $ac_file" >&6;}
7683 # Neutralize special characters interpreted by sed in replacement strings.
7684 case $configure_input in #(
7685 *\&* | *\|* | *\\* )
7686 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
7687 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7688 *) ac_sed_conf_input=$configure_input;;
7689 esac
7691 case $ac_tag in
7692 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7693 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7694 esac
7696 esac
7698 ac_dir=`$as_dirname -- "$ac_file" ||
7699 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7700 X"$ac_file" : 'X\(//\)[^/]' \| \
7701 X"$ac_file" : 'X\(//\)$' \| \
7702 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7703 printf "%s\n" X"$ac_file" |
7704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7705 s//\1/
7708 /^X\(\/\/\)[^/].*/{
7709 s//\1/
7712 /^X\(\/\/\)$/{
7713 s//\1/
7716 /^X\(\/\).*/{
7717 s//\1/
7720 s/.*/./; q'`
7721 as_dir="$ac_dir"; as_fn_mkdir_p
7722 ac_builddir=.
7724 case "$ac_dir" in
7725 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7727 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7728 # A ".." for each directory in $ac_dir_suffix.
7729 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7730 case $ac_top_builddir_sub in
7731 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7732 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7733 esac ;;
7734 esac
7735 ac_abs_top_builddir=$ac_pwd
7736 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7737 # for backward compatibility:
7738 ac_top_builddir=$ac_top_build_prefix
7740 case $srcdir in
7741 .) # We are building in place.
7742 ac_srcdir=.
7743 ac_top_srcdir=$ac_top_builddir_sub
7744 ac_abs_top_srcdir=$ac_pwd ;;
7745 [\\/]* | ?:[\\/]* ) # Absolute name.
7746 ac_srcdir=$srcdir$ac_dir_suffix;
7747 ac_top_srcdir=$srcdir
7748 ac_abs_top_srcdir=$srcdir ;;
7749 *) # Relative name.
7750 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7751 ac_top_srcdir=$ac_top_build_prefix$srcdir
7752 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7753 esac
7754 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7757 case $ac_mode in
7760 # CONFIG_FILE
7763 case $INSTALL in
7764 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7765 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7766 esac
7767 ac_MKDIR_P=$MKDIR_P
7768 case $MKDIR_P in
7769 [\\/$]* | ?:[\\/]* ) ;;
7770 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7771 esac
7772 _ACEOF
7774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7775 # If the template does not know about datarootdir, expand it.
7776 # FIXME: This hack should be removed a few years after 2.60.
7777 ac_datarootdir_hack=; ac_datarootdir_seen=
7778 ac_sed_dataroot='
7779 /datarootdir/ {
7783 /@datadir@/p
7784 /@docdir@/p
7785 /@infodir@/p
7786 /@localedir@/p
7787 /@mandir@/p'
7788 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7789 *datarootdir*) ac_datarootdir_seen=yes;;
7790 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7792 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7793 _ACEOF
7794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7795 ac_datarootdir_hack='
7796 s&@datadir@&$datadir&g
7797 s&@docdir@&$docdir&g
7798 s&@infodir@&$infodir&g
7799 s&@localedir@&$localedir&g
7800 s&@mandir@&$mandir&g
7801 s&\\\${datarootdir}&$datarootdir&g' ;;
7802 esac
7803 _ACEOF
7805 # Neutralize VPATH when `$srcdir' = `.'.
7806 # Shell code in configure.ac might set extrasub.
7807 # FIXME: do we really want to maintain this feature?
7808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7809 ac_sed_extra="$ac_vpsub
7810 $extrasub
7811 _ACEOF
7812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7814 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7815 s|@configure_input@|$ac_sed_conf_input|;t t
7816 s&@top_builddir@&$ac_top_builddir_sub&;t t
7817 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7818 s&@srcdir@&$ac_srcdir&;t t
7819 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7820 s&@top_srcdir@&$ac_top_srcdir&;t t
7821 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7822 s&@builddir@&$ac_builddir&;t t
7823 s&@abs_builddir@&$ac_abs_builddir&;t t
7824 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7825 s&@INSTALL@&$ac_INSTALL&;t t
7826 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7827 $ac_datarootdir_hack
7829 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7830 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7832 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7833 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7834 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7835 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7837 which seems to be undefined. Please make sure it is defined" >&5
7838 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7839 which seems to be undefined. Please make sure it is defined" >&2;}
7841 rm -f "$ac_tmp/stdin"
7842 case $ac_file in
7843 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7844 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7845 esac \
7846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7850 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7851 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
7853 esac
7856 case $ac_file$ac_mode in
7857 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7858 # Older Autoconf quotes --file arguments for eval, but not when files
7859 # are listed without --file. Let's play safe and only enable the eval
7860 # if we detect the quoting.
7861 # TODO: see whether this extra hack can be removed once we start
7862 # requiring Autoconf 2.70 or later.
7863 case $CONFIG_FILES in #(
7864 *\'*) :
7865 eval set x "$CONFIG_FILES" ;; #(
7866 *) :
7867 set x $CONFIG_FILES ;; #(
7868 *) :
7870 esac
7871 shift
7872 # Used to flag and report bootstrapping failures.
7873 am_rc=0
7874 for am_mf
7876 # Strip MF so we end up with the name of the file.
7877 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
7878 # Check whether this is an Automake generated Makefile which includes
7879 # dependency-tracking related rules and includes.
7880 # Grep'ing the whole file directly is not great: AIX grep has a line
7881 # limit of 2048, but all sed's we know have understand at least 4000.
7882 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
7883 || continue
7884 am_dirpart=`$as_dirname -- "$am_mf" ||
7885 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7886 X"$am_mf" : 'X\(//\)[^/]' \| \
7887 X"$am_mf" : 'X\(//\)$' \| \
7888 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7889 printf "%s\n" X"$am_mf" |
7890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7891 s//\1/
7894 /^X\(\/\/\)[^/].*/{
7895 s//\1/
7898 /^X\(\/\/\)$/{
7899 s//\1/
7902 /^X\(\/\).*/{
7903 s//\1/
7906 s/.*/./; q'`
7907 am_filepart=`$as_basename -- "$am_mf" ||
7908 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
7909 X"$am_mf" : 'X\(//\)$' \| \
7910 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7911 printf "%s\n" X/"$am_mf" |
7912 sed '/^.*\/\([^/][^/]*\)\/*$/{
7913 s//\1/
7916 /^X\/\(\/\/\)$/{
7917 s//\1/
7920 /^X\/\(\/\).*/{
7921 s//\1/
7924 s/.*/./; q'`
7925 { echo "$as_me:$LINENO: cd "$am_dirpart" \
7926 && sed -e '/# am--include-marker/d' "$am_filepart" \
7927 | $MAKE -f - am--depfiles" >&5
7928 (cd "$am_dirpart" \
7929 && sed -e '/# am--include-marker/d' "$am_filepart" \
7930 | $MAKE -f - am--depfiles) >&5 2>&5
7931 ac_status=$?
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } || am_rc=$?
7934 done
7935 if test $am_rc -ne 0; then
7936 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7937 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7938 as_fn_error $? "Something went wrong bootstrapping makefile fragments
7939 for automatic dependency tracking. If GNU make was not used, consider
7940 re-running the configure script with MAKE=\"gmake\" (or whatever is
7941 necessary). You can also try re-running configure with the
7942 '--disable-dependency-tracking' option to at least be able to build
7943 the package (albeit without support for automatic dependency tracking).
7944 See \`config.log' for more details" "$LINENO" 5; }
7946 { am_dirpart=; unset am_dirpart;}
7947 { am_filepart=; unset am_filepart;}
7948 { am_mf=; unset am_mf;}
7949 { am_rc=; unset am_rc;}
7950 rm -f conftest-deps.mk
7954 esac
7955 done # for ac_tag
7958 as_fn_exit 0
7959 _ACEOF
7960 ac_clean_files=$ac_clean_files_save
7962 test $ac_write_fail = 0 ||
7963 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7966 # configure is writing to config.log, and then calls config.status.
7967 # config.status does its own redirection, appending to config.log.
7968 # Unfortunately, on DOS this fails, as config.log is still kept open
7969 # by configure, so config.status won't be able to write to it; its
7970 # output is simply discarded. So we exec the FD to /dev/null,
7971 # effectively closing config.log, so it can be properly (re)opened and
7972 # appended to by config.status. When coming back to configure, we
7973 # need to make the FD available again.
7974 if test "$no_create" != yes; then
7975 ac_cs_success=:
7976 ac_config_status_args=
7977 test "$silent" = yes &&
7978 ac_config_status_args="$ac_config_status_args --quiet"
7979 exec 5>/dev/null
7980 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7981 exec 5>>config.log
7982 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7983 # would make configure fail if this is the last instruction.
7984 $ac_cs_success || as_fn_exit 1
7986 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7988 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Running qmake to generate the makefile..." >&5
7993 printf "%s\n" "$as_me: Running qmake to generate the makefile..." >&6;}
7994 TOPDIR="$(cd "$(dirname "$0")" && pwd)"
7995 $QT_QMAKE -r "$TOPDIR/qbittorrent.pro" "QMAKE_LRELEASE=$QMAKE_LRELEASE"
7996 qmake_ret="$?"
7998 printf "%s\n"
7999 if test "x$qmake_ret" != "x0"
8000 then :
8001 as_fn_error $? "$QT_QMAKE failed to generate the makefile" "$LINENO" 5
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Good, the configure finished." >&5
8005 printf "%s\n" "$as_me: Good, the configure finished." >&6;}
8006 printf "%s\n"