2608
2609
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2611
# Find a good install program. We prefer a C program (faster),
2612
# so one script is as good as another. But avoid the broken or
2613
# incompatible versions:
2614
# SysV /etc/install, /usr/sbin/install
2615
# SunOS /usr/etc/install
2616
# IRIX /sbin/install
2618
# AmigaOS /C/install, which installs bootblocks on floppy discs
2619
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2620
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2621
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2622
# OS/2's system install, which has a completely different semantic
2623
# ./install, which can be erroneously created by make from ./install.sh.
2624
# Reject install programs that cannot install multiple files.
2625
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2626
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2627
if test -z "$INSTALL"; then
2628
if test "${ac_cv_path_install+set}" = set; then :
2629
$as_echo_n "(cached) " >&6
2631
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635
test -z "$as_dir" && as_dir=.
2636
# Account for people who put trailing slashes in PATH elements.
2637
case $as_dir/ in #((
2638
./ | .// | /[cC]/* | \
2639
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2640
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2643
# OSF1 and SCO ODT 3.0 have their own names for install.
2644
# Don't use installbsd from OSF since it installs stuff as root
2646
for ac_prog in ginstall scoinst install; do
2647
for ac_exec_ext in '' $ac_executable_extensions; do
2648
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2649
if test $ac_prog = install &&
2650
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2651
# AIX install. It has an incompatible calling convention.
2653
elif test $ac_prog = install &&
2654
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2655
# program-specific install script used by HP pwplus--don't use.
2658
rm -rf conftest.one conftest.two conftest.dir
2659
echo one > conftest.one
2660
echo two > conftest.two
2662
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2663
test -s conftest.one && test -s conftest.two &&
2664
test -s conftest.dir/conftest.one &&
2665
test -s conftest.dir/conftest.two
2667
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2680
rm -rf conftest.one conftest.two conftest.dir
2683
if test "${ac_cv_path_install+set}" = set; then
2684
INSTALL=$ac_cv_path_install
2686
# As a last resort, use the slow shell script. Don't cache a
2687
# value for INSTALL within a source directory, because that will
2688
# break other packages using the cache if that directory is
2689
# removed, or if the value is a relative name.
2690
INSTALL=$ac_install_sh
2693
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2694
$as_echo "$INSTALL" >&6; }
2696
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2697
# It thinks the first close brace ends the variable substitution.
2698
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2700
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2702
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2704
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2705
$as_echo_n "checking whether build environment is sane... " >&6; }
2708
echo timestamp > conftest.file
2709
# Reject unsafe characters in $srcdir or the absolute working directory
2710
# name. Accept space and tab only in the latter.
2714
*[\\\"\#\$\&\'\`$am_lf]*)
2715
as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2718
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2719
as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2722
# Do `set' in a subshell so we don't clobber the current shell's
2723
# arguments. Must try -L first in case configure is actually a
2724
# symlink; some systems play weird games with the mod time of symlinks
2725
# (eg FreeBSD returns the mod time of the symlink's containing
2728
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2729
if test "$*" = "X"; then
2731
set X `ls -t "$srcdir/configure" conftest.file`
2734
if test "$*" != "X $srcdir/configure conftest.file" \
2735
&& test "$*" != "X conftest.file $srcdir/configure"; then
2737
# If neither matched, then we have a broken ls. This can happen
2738
# if, for instance, CONFIG_SHELL is bash and it inherits a
2739
# broken ls alias from the environment. This has actually
2740
# happened. Such a system could not be considered "sane".
2741
as_fn_error "ls -t appears to fail. Make sure there is not a broken
2742
alias in your environment" "$LINENO" 5
2745
test "$2" = conftest.file
2751
as_fn_error "newly created file is older than distributed files!
2752
Check your system clock" "$LINENO" 5
2754
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2755
$as_echo "yes" >&6; }
2756
test "$program_prefix" != NONE &&
2757
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2758
# Use a double $ so make ignores it.
2759
test "$program_suffix" != NONE &&
2760
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2761
# Double any \ or $.
2762
# By default was `s,x,x', remove it if useless.
2763
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2764
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2766
# expand $ac_aux_dir to an absolute path
2767
am_aux_dir=`cd $ac_aux_dir && pwd`
2769
if test x"${MISSING+set}" != xset; then
2772
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2774
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2777
# Use eval to expand $SHELL
2778
if eval "$MISSING --run true"; then
2779
am_missing_run="$MISSING --run "
2782
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2783
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2786
if test x"${install_sh}" != xset; then
2789
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2791
install_sh="\${SHELL} $am_aux_dir/install-sh"
2795
# Installed binaries are usually stripped using `strip' when the user
2796
# run `make install-strip'. However `strip' might not be the right
2797
# tool to use in cross-compilation environments, therefore Automake
2798
# will honor the `STRIP' environment variable to overrule this program.
2799
if test "$cross_compiling" != no; then
2800
if test -n "$ac_tool_prefix"; then
2801
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2802
set dummy ${ac_tool_prefix}strip; ac_word=$2
2803
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804
$as_echo_n "checking for $ac_word... " >&6; }
2805
if test "${ac_cv_prog_STRIP+set}" = set; then :
2806
$as_echo_n "(cached) " >&6
2808
if test -n "$STRIP"; then
2809
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2811
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815
test -z "$as_dir" && as_dir=.
2816
for ac_exec_ext in '' $ac_executable_extensions; do
2817
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2819
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828
STRIP=$ac_cv_prog_STRIP
2829
if test -n "$STRIP"; then
2830
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2831
$as_echo "$STRIP" >&6; }
2833
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834
$as_echo "no" >&6; }
2839
if test -z "$ac_cv_prog_STRIP"; then
2841
# Extract the first word of "strip", so it can be a program name with args.
2842
set dummy strip; ac_word=$2
2843
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844
$as_echo_n "checking for $ac_word... " >&6; }
2845
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2846
$as_echo_n "(cached) " >&6
2848
if test -n "$ac_ct_STRIP"; then
2849
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2851
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855
test -z "$as_dir" && as_dir=.
2856
for ac_exec_ext in '' $ac_executable_extensions; do
2857
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858
ac_cv_prog_ac_ct_STRIP="strip"
2859
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2869
if test -n "$ac_ct_STRIP"; then
2870
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2871
$as_echo "$ac_ct_STRIP" >&6; }
2873
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874
$as_echo "no" >&6; }
2877
if test "x$ac_ct_STRIP" = x; then
2880
case $cross_compiling:$ac_tool_warned in
2882
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2883
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2884
ac_tool_warned=yes ;;
2889
STRIP="$ac_cv_prog_STRIP"
2893
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2895
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2896
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2897
if test -z "$MKDIR_P"; then
2898
if test "${ac_cv_path_mkdir+set}" = set; then :
2899
$as_echo_n "(cached) " >&6
2901
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2905
test -z "$as_dir" && as_dir=.
2906
for ac_prog in mkdir gmkdir; do
2907
for ac_exec_ext in '' $ac_executable_extensions; do
2908
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2909
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2910
'mkdir (GNU coreutils) '* | \
2911
'mkdir (coreutils) '* | \
2912
'mkdir (fileutils) '4.1*)
2913
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2923
test -d ./--version && rmdir ./--version
2924
if test "${ac_cv_path_mkdir+set}" = set; then
2925
MKDIR_P="$ac_cv_path_mkdir -p"
2927
# As a last resort, use the slow shell script. Don't cache a
2928
# value for MKDIR_P within a source directory, because that will
2929
# break other packages using the cache if that directory is
2930
# removed, or if the value is a relative name.
2931
MKDIR_P="$ac_install_sh -d"
2934
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2935
$as_echo "$MKDIR_P" >&6; }
2939
[\\/$]* | ?:[\\/]*) ;;
2940
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2943
for ac_prog in gawk mawk nawk awk
2945
# Extract the first word of "$ac_prog", so it can be a program name with args.
2946
set dummy $ac_prog; ac_word=$2
2947
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948
$as_echo_n "checking for $ac_word... " >&6; }
2949
if test "${ac_cv_prog_AWK+set}" = set; then :
2950
$as_echo_n "(cached) " >&6
2952
if test -n "$AWK"; then
2953
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2955
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959
test -z "$as_dir" && as_dir=.
2960
for ac_exec_ext in '' $ac_executable_extensions; do
2961
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962
ac_cv_prog_AWK="$ac_prog"
2963
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973
if test -n "$AWK"; then
2974
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2975
$as_echo "$AWK" >&6; }
2977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978
$as_echo "no" >&6; }
2982
test -n "$AWK" && break
2985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2986
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2988
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2989
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2990
$as_echo_n "(cached) " >&6
2992
cat >conftest.make <<\_ACEOF
2995
@echo '@@@%%%=$(MAKE)=@@@%%%'
2997
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2998
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3000
eval ac_cv_prog_make_${ac_make}_set=yes;;
3002
eval ac_cv_prog_make_${ac_make}_set=no;;
3006
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3008
$as_echo "yes" >&6; }
3011
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012
$as_echo "no" >&6; }
3013
SET_MAKE="MAKE=${MAKE-make}"
3016
rm -rf .tst 2>/dev/null
3017
mkdir .tst 2>/dev/null
3018
if test -d .tst; then
3023
rmdir .tst 2>/dev/null
3025
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3026
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3027
# is not polluted with repeated "-I."
3028
am__isrc=' -I$(srcdir)'
3029
# test to see if srcdir already configured
3030
if test -f $srcdir/config.status; then
3031
as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3035
# test whether we have cygpath
3036
if test -z "$CYGPATH_W"; then
3037
if (cygpath --version) >/dev/null 2>/dev/null; then
3038
CYGPATH_W='cygpath -w'
3045
# Define the identity of the package.
3046
PACKAGE='libtorrent-rasterbar'
3050
cat >>confdefs.h <<_ACEOF
3051
#define PACKAGE "$PACKAGE"
3055
cat >>confdefs.h <<_ACEOF
3056
#define VERSION "$VERSION"
3059
# Some tools Automake needs.
3061
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3064
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3067
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3070
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3073
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3075
# We need awk for the "check" target. The system "awk" is bad on
3077
# Always define AMTAR for backward compatibility.
3079
AMTAR=${AMTAR-"${am_missing_run}tar"}
3081
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3090
VERSION_INFO_CURRENT=5
3091
VERSION_INFO_REVISION=0
3093
INTERFACE_VERSION_INFO=$VERSION_INFO_CURRENT:$VERSION_INFO_REVISION:$VERSION_INFO_AGE
2614
# Silencing build output (automake-1.11)
2615
# Check whether --enable-silent-rules was given.
2616
if test "${enable_silent_rules+set}" = set; then :
2617
enableval=$enable_silent_rules;
2620
case $enable_silent_rules in
2621
yes) AM_DEFAULT_VERBOSITY=0;;
2622
no) AM_DEFAULT_VERBOSITY=1;;
2623
*) AM_DEFAULT_VERBOSITY=0;;
2629
###############################################################################
2634
INTERFACE_VERSION_INFO=6:0:0
2636
###############################################################################
2639
###############################################################################
2641
###############################################################################
2644
$as_echo "Building $PACKAGE_STRING"
2647
###############################################################################
2648
# Performing some basic checks and initializing the build system
2649
###############################################################################
2652
$as_echo "Checking for a C/C++ compiler to use:"
3099
2654
ac_cpp='$CPP $CPPFLAGS'
3100
2655
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885
3440
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886
3441
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887
3442
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3445
ac_cpp='$CPP $CPPFLAGS'
3446
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3447
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3448
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3449
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3450
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3451
# On Suns, sometimes $CPP names a directory.
3452
if test -n "$CPP" && test -d "$CPP"; then
3455
if test -z "$CPP"; then
3456
if test "${ac_cv_prog_CPP+set}" = set; then :
3457
$as_echo_n "(cached) " >&6
3459
# Double quotes because CPP needs to be expanded
3460
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3463
for ac_c_preproc_warn_flag in '' yes
3465
# Use a header file that comes with gcc, so configuring glibc
3466
# with a fresh cross-compiler works.
3467
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3468
# <limits.h> exists even on freestanding compilers.
3469
# On the NeXT, cc -E runs the code through the compiler's parser,
3470
# not just through cpp. "Syntax error" is here to catch this case.
3471
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472
/* end confdefs.h. */
3474
# include <limits.h>
3476
# include <assert.h>
3480
if ac_fn_c_try_cpp "$LINENO"; then :
3483
# Broken: fails on valid input.
3486
rm -f conftest.err conftest.$ac_ext
3488
# OK, works on sane cases. Now check whether nonexistent headers
3489
# can be detected and how.
3490
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491
/* end confdefs.h. */
3492
#include <ac_nonexistent.h>
3494
if ac_fn_c_try_cpp "$LINENO"; then :
3495
# Broken: success on invalid input.
3498
# Passes both tests.
3502
rm -f conftest.err conftest.$ac_ext
3505
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3506
rm -f conftest.err conftest.$ac_ext
3507
if $ac_preproc_ok; then :
3519
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3520
$as_echo "$CPP" >&6; }
3522
for ac_c_preproc_warn_flag in '' yes
3524
# Use a header file that comes with gcc, so configuring glibc
3525
# with a fresh cross-compiler works.
3526
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3527
# <limits.h> exists even on freestanding compilers.
3528
# On the NeXT, cc -E runs the code through the compiler's parser,
3529
# not just through cpp. "Syntax error" is here to catch this case.
3530
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531
/* end confdefs.h. */
3533
# include <limits.h>
3535
# include <assert.h>
3539
if ac_fn_c_try_cpp "$LINENO"; then :
3542
# Broken: fails on valid input.
3545
rm -f conftest.err conftest.$ac_ext
3547
# OK, works on sane cases. Now check whether nonexistent headers
3548
# can be detected and how.
3549
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550
/* end confdefs.h. */
3551
#include <ac_nonexistent.h>
3553
if ac_fn_c_try_cpp "$LINENO"; then :
3554
# Broken: success on invalid input.
3557
# Passes both tests.
3561
rm -f conftest.err conftest.$ac_ext
3564
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3565
rm -f conftest.err conftest.$ac_ext
3566
if $ac_preproc_ok; then :
3569
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3572
See \`config.log' for more details." "$LINENO" 5; }
3576
ac_cpp='$CPP $CPPFLAGS'
3577
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581
if test "x$CC" != xcc; then
3582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3583
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3585
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3586
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3588
set dummy $CC; ac_cc=`$as_echo "$2" |
3589
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3590
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
3591
$as_echo_n "(cached) " >&6
3593
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594
/* end confdefs.h. */
3604
# Make sure it works both with $CC and with simple cc.
3605
# We do the test twice because some compilers refuse to overwrite an
3606
# existing .o file with -o, though they will create one.
3607
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3609
if { { case "(($ac_try" in
3610
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611
*) ac_try_echo=$ac_try;;
3613
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614
$as_echo "$ac_try_echo"; } >&5
3615
(eval "$ac_try") 2>&5
3617
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618
test $ac_status = 0; } &&
3619
test -f conftest2.$ac_objext && { { case "(($ac_try" in
3620
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621
*) ac_try_echo=$ac_try;;
3623
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624
$as_echo "$ac_try_echo"; } >&5
3625
(eval "$ac_try") 2>&5
3627
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628
test $ac_status = 0; };
3630
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3631
if test "x$CC" != xcc; then
3632
# Test first that cc exists at all.
3633
if { ac_try='cc -c conftest.$ac_ext >&5'
3634
{ { case "(($ac_try" in
3635
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636
*) ac_try_echo=$ac_try;;
3638
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639
$as_echo "$ac_try_echo"; } >&5
3640
(eval "$ac_try") 2>&5
3642
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643
test $ac_status = 0; }; }; then
3644
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3646
if { { case "(($ac_try" in
3647
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648
*) ac_try_echo=$ac_try;;
3650
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651
$as_echo "$ac_try_echo"; } >&5
3652
(eval "$ac_try") 2>&5
3654
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655
test $ac_status = 0; } &&
3656
test -f conftest2.$ac_objext && { { case "(($ac_try" in
3657
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658
*) ac_try_echo=$ac_try;;
3660
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3661
$as_echo "$ac_try_echo"; } >&5
3662
(eval "$ac_try") 2>&5
3664
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3665
test $ac_status = 0; };
3670
# cc exists but doesn't like -o.
3671
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3676
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3678
rm -f core conftest*
3681
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3683
$as_echo "yes" >&6; }
3685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686
$as_echo "no" >&6; }
3688
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3693
ac_cpp='$CXXCPP $CPPFLAGS'
3694
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3695
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3696
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3697
if test -z "$CXX"; then
3698
if test -n "$CCC"; then
3701
if test -n "$ac_tool_prefix"; then
3702
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3704
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3705
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3707
$as_echo_n "checking for $ac_word... " >&6; }
3708
if test "${ac_cv_prog_CXX+set}" = set; then :
3709
$as_echo_n "(cached) " >&6
3711
if test -n "$CXX"; then
3712
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718
test -z "$as_dir" && as_dir=.
3719
for ac_exec_ext in '' $ac_executable_extensions; do
3720
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3722
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732
if test -n "$CXX"; then
3733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3734
$as_echo "$CXX" >&6; }
3736
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737
$as_echo "no" >&6; }
3741
test -n "$CXX" && break
3744
if test -z "$CXX"; then
3746
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3748
# Extract the first word of "$ac_prog", so it can be a program name with args.
3749
set dummy $ac_prog; ac_word=$2
3750
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3751
$as_echo_n "checking for $ac_word... " >&6; }
3752
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3753
$as_echo_n "(cached) " >&6
3755
if test -n "$ac_ct_CXX"; then
3756
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762
test -z "$as_dir" && as_dir=.
3763
for ac_exec_ext in '' $ac_executable_extensions; do
3764
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3765
ac_cv_prog_ac_ct_CXX="$ac_prog"
3766
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3775
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3776
if test -n "$ac_ct_CXX"; then
3777
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3778
$as_echo "$ac_ct_CXX" >&6; }
3780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781
$as_echo "no" >&6; }
3785
test -n "$ac_ct_CXX" && break
3788
if test "x$ac_ct_CXX" = x; then
3791
case $cross_compiling:$ac_tool_warned in
3793
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3794
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3795
ac_tool_warned=yes ;;
3803
# Provide some information about the compiler.
3804
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3807
for ac_option in --version -v -V -qversion; do
3808
{ { ac_try="$ac_compiler $ac_option >&5"
3810
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811
*) ac_try_echo=$ac_try;;
3813
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814
$as_echo "$ac_try_echo"; } >&5
3815
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3817
if test -s conftest.err; then
3819
... rest of stderr output deleted ...
3820
10q' conftest.err >conftest.er1
3821
cat conftest.er1 >&5
3823
rm -f conftest.er1 conftest.err
3824
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825
test $ac_status = 0; }
3828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3829
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3830
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3831
$as_echo_n "(cached) " >&6
3833
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834
/* end confdefs.h. */
3847
if ac_fn_cxx_try_compile "$LINENO"; then :
3852
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3857
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3858
if test $ac_compiler_gnu = yes; then
3863
ac_test_CXXFLAGS=${CXXFLAGS+set}
3864
ac_save_CXXFLAGS=$CXXFLAGS
3865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3866
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3867
if test "${ac_cv_prog_cxx_g+set}" = set; then :
3868
$as_echo_n "(cached) " >&6
3870
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3871
ac_cxx_werror_flag=yes
3874
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875
/* end confdefs.h. */
3885
if ac_fn_cxx_try_compile "$LINENO"; then :
3886
ac_cv_prog_cxx_g=yes
3889
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890
/* end confdefs.h. */
3900
if ac_fn_cxx_try_compile "$LINENO"; then :
3903
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3905
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906
/* end confdefs.h. */
3916
if ac_fn_cxx_try_compile "$LINENO"; then :
3917
ac_cv_prog_cxx_g=yes
3919
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3927
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3928
if test "$ac_test_CXXFLAGS" = set; then
3929
CXXFLAGS=$ac_save_CXXFLAGS
3930
elif test $ac_cv_prog_cxx_g = yes; then
3931
if test "$GXX" = yes; then
3937
if test "$GXX" = yes; then
3944
ac_cpp='$CPP $CPPFLAGS'
3945
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950
ac_cpp='$CXXCPP $CPPFLAGS'
3951
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3954
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3955
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3956
if test -z "$CXXCPP"; then
3957
if test "${ac_cv_prog_CXXCPP+set}" = set; then :
3958
$as_echo_n "(cached) " >&6
3960
# Double quotes because CXXCPP needs to be expanded
3961
for CXXCPP in "$CXX -E" "/lib/cpp"
3964
for ac_cxx_preproc_warn_flag in '' yes
3966
# Use a header file that comes with gcc, so configuring glibc
3967
# with a fresh cross-compiler works.
3968
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3969
# <limits.h> exists even on freestanding compilers.
3970
# On the NeXT, cc -E runs the code through the compiler's parser,
3971
# not just through cpp. "Syntax error" is here to catch this case.
3972
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973
/* end confdefs.h. */
3975
# include <limits.h>
3977
# include <assert.h>
3981
if ac_fn_cxx_try_cpp "$LINENO"; then :
3984
# Broken: fails on valid input.
3987
rm -f conftest.err conftest.$ac_ext
3989
# OK, works on sane cases. Now check whether nonexistent headers
3990
# can be detected and how.
3991
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992
/* end confdefs.h. */
3993
#include <ac_nonexistent.h>
3995
if ac_fn_cxx_try_cpp "$LINENO"; then :
3996
# Broken: success on invalid input.
3999
# Passes both tests.
4003
rm -f conftest.err conftest.$ac_ext
4006
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4007
rm -f conftest.err conftest.$ac_ext
4008
if $ac_preproc_ok; then :
4013
ac_cv_prog_CXXCPP=$CXXCPP
4016
CXXCPP=$ac_cv_prog_CXXCPP
4018
ac_cv_prog_CXXCPP=$CXXCPP
4020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4021
$as_echo "$CXXCPP" >&6; }
4023
for ac_cxx_preproc_warn_flag in '' yes
4025
# Use a header file that comes with gcc, so configuring glibc
4026
# with a fresh cross-compiler works.
4027
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4028
# <limits.h> exists even on freestanding compilers.
4029
# On the NeXT, cc -E runs the code through the compiler's parser,
4030
# not just through cpp. "Syntax error" is here to catch this case.
4031
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032
/* end confdefs.h. */
4034
# include <limits.h>
4036
# include <assert.h>
4040
if ac_fn_cxx_try_cpp "$LINENO"; then :
4043
# Broken: fails on valid input.
4046
rm -f conftest.err conftest.$ac_ext
4048
# OK, works on sane cases. Now check whether nonexistent headers
4049
# can be detected and how.
4050
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051
/* end confdefs.h. */
4052
#include <ac_nonexistent.h>
4054
if ac_fn_cxx_try_cpp "$LINENO"; then :
4055
# Broken: success on invalid input.
4058
# Passes both tests.
4062
rm -f conftest.err conftest.$ac_ext
4065
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4066
rm -f conftest.err conftest.$ac_ext
4067
if $ac_preproc_ok; then :
4070
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072
as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4073
See \`config.log' for more details." "$LINENO" 5; }
4077
ac_cpp='$CPP $CPPFLAGS'
4078
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083
ac_cpp='$CXXCPP $CPPFLAGS'
4084
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX understands -c and -o together" >&5
4088
$as_echo_n "checking whether $CXX understands -c and -o together... " >&6; }
4089
if test "${ac_cv_prog_cxx_c_o+set}" = set; then :
4090
$as_echo_n "(cached) " >&6
4092
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093
/* end confdefs.h. */
4103
# We test twice because some compilers refuse to overwrite an existing
4104
# `.o' file with `-o', although they will create one.
4105
ac_try='$CXX $CXXFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4107
if { { case "(($ac_try" in
4108
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109
*) ac_try_echo=$ac_try;;
4111
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4112
$as_echo "$ac_try_echo"; } >&5
4113
(eval "$ac_try") 2>&5
4115
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4116
test $ac_status = 0; } &&
4117
test -f conftest2.$ac_objext &&
4118
{ { case "(($ac_try" in
4119
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120
*) ac_try_echo=$ac_try;;
4122
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4123
$as_echo "$ac_try_echo"; } >&5
4124
(eval "$ac_try") 2>&5
4126
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4127
test $ac_status = 0; }; then
4128
ac_cv_prog_cxx_c_o=yes
4130
ac_cv_prog_cxx_c_o=no
4134
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_c_o" >&5
4135
$as_echo "$ac_cv_prog_cxx_c_o" >&6; }
4136
if test $ac_cv_prog_cxx_c_o = no; then
4138
$as_echo "#define CXX_NO_MINUS_C_MINUS_O 1" >>confdefs.h
4142
ac_cpp='$CPP $CPPFLAGS'
4143
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149
$as_echo "Checking system type:"
4150
# Make sure we can run config.sub.
4151
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4152
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4154
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4155
$as_echo_n "checking build system type... " >&6; }
4156
if test "${ac_cv_build+set}" = set; then :
4157
$as_echo_n "(cached) " >&6
4159
ac_build_alias=$build_alias
4160
test "x$ac_build_alias" = x &&
4161
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4162
test "x$ac_build_alias" = x &&
4163
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4164
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4165
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4168
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4169
$as_echo "$ac_cv_build" >&6; }
4170
case $ac_cv_build in
4172
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4175
ac_save_IFS=$IFS; IFS='-'
4181
# Remember, the first character of IFS is used to create $*,
4182
# except with old shells:
4185
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4188
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4189
$as_echo_n "checking host system type... " >&6; }
4190
if test "${ac_cv_host+set}" = set; then :
4191
$as_echo_n "(cached) " >&6
4193
if test "x$host_alias" = x; then
4194
ac_cv_host=$ac_cv_build
4196
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4197
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4201
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4202
$as_echo "$ac_cv_host" >&6; }
4205
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4208
ac_save_IFS=$IFS; IFS='-'
4214
# Remember, the first character of IFS is used to create $*,
4215
# except with old shells:
4218
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4221
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4222
$as_echo_n "checking target system type... " >&6; }
4223
if test "${ac_cv_target+set}" = set; then :
4224
$as_echo_n "(cached) " >&6
4226
if test "x$target_alias" = x; then
4227
ac_cv_target=$ac_cv_host
4229
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4230
as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4234
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4235
$as_echo "$ac_cv_target" >&6; }
4236
case $ac_cv_target in
4238
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4240
target=$ac_cv_target
4241
ac_save_IFS=$IFS; IFS='-'
4247
# Remember, the first character of IFS is used to create $*,
4248
# except with old shells:
4251
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4254
# The aliases save the names the user supplied, while $host etc.
4255
# will get canonicalized.
4256
test -n "$target_alias" &&
4257
test "$program_prefix$program_suffix$program_transform_name" = \
4259
program_prefix=${target_alias}-
4262
$as_echo "Initializing Automake:"
4263
am__api_version='1.11'
4265
# Find a good install program. We prefer a C program (faster),
4266
# so one script is as good as another. But avoid the broken or
4267
# incompatible versions:
4268
# SysV /etc/install, /usr/sbin/install
4269
# SunOS /usr/etc/install
4270
# IRIX /sbin/install
4272
# AmigaOS /C/install, which installs bootblocks on floppy discs
4273
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4274
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4275
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4276
# OS/2's system install, which has a completely different semantic
4277
# ./install, which can be erroneously created by make from ./install.sh.
4278
# Reject install programs that cannot install multiple files.
4279
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4280
$as_echo_n "checking for a BSD-compatible install... " >&6; }
4281
if test -z "$INSTALL"; then
4282
if test "${ac_cv_path_install+set}" = set; then :
4283
$as_echo_n "(cached) " >&6
4285
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289
test -z "$as_dir" && as_dir=.
4290
# Account for people who put trailing slashes in PATH elements.
4291
case $as_dir/ in #((
4292
./ | .// | /[cC]/* | \
4293
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4294
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4297
# OSF1 and SCO ODT 3.0 have their own names for install.
4298
# Don't use installbsd from OSF since it installs stuff as root
4300
for ac_prog in ginstall scoinst install; do
4301
for ac_exec_ext in '' $ac_executable_extensions; do
4302
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4303
if test $ac_prog = install &&
4304
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4305
# AIX install. It has an incompatible calling convention.
4307
elif test $ac_prog = install &&
4308
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4309
# program-specific install script used by HP pwplus--don't use.
4312
rm -rf conftest.one conftest.two conftest.dir
4313
echo one > conftest.one
4314
echo two > conftest.two
4316
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4317
test -s conftest.one && test -s conftest.two &&
4318
test -s conftest.dir/conftest.one &&
4319
test -s conftest.dir/conftest.two
4321
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4334
rm -rf conftest.one conftest.two conftest.dir
4337
if test "${ac_cv_path_install+set}" = set; then
4338
INSTALL=$ac_cv_path_install
4340
# As a last resort, use the slow shell script. Don't cache a
4341
# value for INSTALL within a source directory, because that will
4342
# break other packages using the cache if that directory is
4343
# removed, or if the value is a relative name.
4344
INSTALL=$ac_install_sh
4347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4348
$as_echo "$INSTALL" >&6; }
4350
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4351
# It thinks the first close brace ends the variable substitution.
4352
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4354
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4356
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4358
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4359
$as_echo_n "checking whether build environment is sane... " >&6; }
4362
echo timestamp > conftest.file
4363
# Reject unsafe characters in $srcdir or the absolute working directory
4364
# name. Accept space and tab only in the latter.
4368
*[\\\"\#\$\&\'\`$am_lf]*)
4369
as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4372
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4373
as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4376
# Do `set' in a subshell so we don't clobber the current shell's
4377
# arguments. Must try -L first in case configure is actually a
4378
# symlink; some systems play weird games with the mod time of symlinks
4379
# (eg FreeBSD returns the mod time of the symlink's containing
4382
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4383
if test "$*" = "X"; then
4385
set X `ls -t "$srcdir/configure" conftest.file`
4388
if test "$*" != "X $srcdir/configure conftest.file" \
4389
&& test "$*" != "X conftest.file $srcdir/configure"; then
4391
# If neither matched, then we have a broken ls. This can happen
4392
# if, for instance, CONFIG_SHELL is bash and it inherits a
4393
# broken ls alias from the environment. This has actually
4394
# happened. Such a system could not be considered "sane".
4395
as_fn_error "ls -t appears to fail. Make sure there is not a broken
4396
alias in your environment" "$LINENO" 5
4399
test "$2" = conftest.file
4405
as_fn_error "newly created file is older than distributed files!
4406
Check your system clock" "$LINENO" 5
4408
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4409
$as_echo "yes" >&6; }
4410
test "$program_prefix" != NONE &&
4411
program_transform_name="s&^&$program_prefix&;$program_transform_name"
4412
# Use a double $ so make ignores it.
4413
test "$program_suffix" != NONE &&
4414
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4415
# Double any \ or $.
4416
# By default was `s,x,x', remove it if useless.
4417
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4418
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4420
# expand $ac_aux_dir to an absolute path
4421
am_aux_dir=`cd $ac_aux_dir && pwd`
4423
if test x"${MISSING+set}" != xset; then
4426
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4428
MISSING="\${SHELL} $am_aux_dir/missing" ;;
4431
# Use eval to expand $SHELL
4432
if eval "$MISSING --run true"; then
4433
am_missing_run="$MISSING --run "
4436
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4437
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4440
if test x"${install_sh}" != xset; then
4443
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4445
install_sh="\${SHELL} $am_aux_dir/install-sh"
4449
# Installed binaries are usually stripped using `strip' when the user
4450
# run `make install-strip'. However `strip' might not be the right
4451
# tool to use in cross-compilation environments, therefore Automake
4452
# will honor the `STRIP' environment variable to overrule this program.
4453
if test "$cross_compiling" != no; then
4454
if test -n "$ac_tool_prefix"; then
4455
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4456
set dummy ${ac_tool_prefix}strip; ac_word=$2
4457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458
$as_echo_n "checking for $ac_word... " >&6; }
4459
if test "${ac_cv_prog_STRIP+set}" = set; then :
4460
$as_echo_n "(cached) " >&6
4462
if test -n "$STRIP"; then
4463
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4465
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469
test -z "$as_dir" && as_dir=.
4470
for ac_exec_ext in '' $ac_executable_extensions; do
4471
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4473
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4482
STRIP=$ac_cv_prog_STRIP
4483
if test -n "$STRIP"; then
4484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4485
$as_echo "$STRIP" >&6; }
4487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488
$as_echo "no" >&6; }
4493
if test -z "$ac_cv_prog_STRIP"; then
4495
# Extract the first word of "strip", so it can be a program name with args.
4496
set dummy strip; ac_word=$2
4497
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498
$as_echo_n "checking for $ac_word... " >&6; }
4499
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4500
$as_echo_n "(cached) " >&6
4502
if test -n "$ac_ct_STRIP"; then
4503
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4505
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509
test -z "$as_dir" && as_dir=.
4510
for ac_exec_ext in '' $ac_executable_extensions; do
4511
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512
ac_cv_prog_ac_ct_STRIP="strip"
4513
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4523
if test -n "$ac_ct_STRIP"; then
4524
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4525
$as_echo "$ac_ct_STRIP" >&6; }
4527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528
$as_echo "no" >&6; }
4531
if test "x$ac_ct_STRIP" = x; then
4534
case $cross_compiling:$ac_tool_warned in
4536
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4537
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4538
ac_tool_warned=yes ;;
4543
STRIP="$ac_cv_prog_STRIP"
4547
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4550
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4551
if test -z "$MKDIR_P"; then
4552
if test "${ac_cv_path_mkdir+set}" = set; then :
4553
$as_echo_n "(cached) " >&6
4555
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4559
test -z "$as_dir" && as_dir=.
4560
for ac_prog in mkdir gmkdir; do
4561
for ac_exec_ext in '' $ac_executable_extensions; do
4562
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4563
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4564
'mkdir (GNU coreutils) '* | \
4565
'mkdir (coreutils) '* | \
4566
'mkdir (fileutils) '4.1*)
4567
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4577
test -d ./--version && rmdir ./--version
4578
if test "${ac_cv_path_mkdir+set}" = set; then
4579
MKDIR_P="$ac_cv_path_mkdir -p"
4581
# As a last resort, use the slow shell script. Don't cache a
4582
# value for MKDIR_P within a source directory, because that will
4583
# break other packages using the cache if that directory is
4584
# removed, or if the value is a relative name.
4585
MKDIR_P="$ac_install_sh -d"
4588
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4589
$as_echo "$MKDIR_P" >&6; }
4593
[\\/$]* | ?:[\\/]*) ;;
4594
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4597
for ac_prog in gawk mawk nawk awk
4599
# Extract the first word of "$ac_prog", so it can be a program name with args.
4600
set dummy $ac_prog; ac_word=$2
4601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602
$as_echo_n "checking for $ac_word... " >&6; }
4603
if test "${ac_cv_prog_AWK+set}" = set; then :
4604
$as_echo_n "(cached) " >&6
4606
if test -n "$AWK"; then
4607
ac_cv_prog_AWK="$AWK" # Let the user override the test.
4609
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613
test -z "$as_dir" && as_dir=.
4614
for ac_exec_ext in '' $ac_executable_extensions; do
4615
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4616
ac_cv_prog_AWK="$ac_prog"
4617
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627
if test -n "$AWK"; then
4628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4629
$as_echo "$AWK" >&6; }
4631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632
$as_echo "no" >&6; }
4636
test -n "$AWK" && break
4639
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4640
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4642
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4643
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4644
$as_echo_n "(cached) " >&6
4646
cat >conftest.make <<\_ACEOF
4649
@echo '@@@%%%=$(MAKE)=@@@%%%'
4651
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4652
case `${MAKE-make} -f conftest.make 2>/dev/null` in
4654
eval ac_cv_prog_make_${ac_make}_set=yes;;
4656
eval ac_cv_prog_make_${ac_make}_set=no;;
4660
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4662
$as_echo "yes" >&6; }
4665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666
$as_echo "no" >&6; }
4667
SET_MAKE="MAKE=${MAKE-make}"
4670
rm -rf .tst 2>/dev/null
4671
mkdir .tst 2>/dev/null
4672
if test -d .tst; then
4677
rmdir .tst 2>/dev/null
3888
4679
DEPDIR="${am__leading_dot}deps"
3890
4681
ac_config_commands="$ac_config_commands depfiles"
4079
if test -z "$(which $CC)"; then
4080
as_fn_error "Unable to find a working C compiler, giving up." "$LINENO" 5
4084
ac_cpp='$CPP $CPPFLAGS'
4085
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4089
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4090
# On Suns, sometimes $CPP names a directory.
4091
if test -n "$CPP" && test -d "$CPP"; then
4094
if test -z "$CPP"; then
4095
if test "${ac_cv_prog_CPP+set}" = set; then :
4096
$as_echo_n "(cached) " >&6
4098
# Double quotes because CPP needs to be expanded
4099
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4102
for ac_c_preproc_warn_flag in '' yes
4104
# Use a header file that comes with gcc, so configuring glibc
4105
# with a fresh cross-compiler works.
4106
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4107
# <limits.h> exists even on freestanding compilers.
4108
# On the NeXT, cc -E runs the code through the compiler's parser,
4109
# not just through cpp. "Syntax error" is here to catch this case.
4110
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111
/* end confdefs.h. */
4113
# include <limits.h>
4115
# include <assert.h>
4119
if ac_fn_c_try_cpp "$LINENO"; then :
4122
# Broken: fails on valid input.
4125
rm -f conftest.err conftest.$ac_ext
4127
# OK, works on sane cases. Now check whether nonexistent headers
4128
# can be detected and how.
4129
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130
/* end confdefs.h. */
4131
#include <ac_nonexistent.h>
4133
if ac_fn_c_try_cpp "$LINENO"; then :
4134
# Broken: success on invalid input.
4137
# Passes both tests.
4141
rm -f conftest.err conftest.$ac_ext
4144
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4145
rm -f conftest.err conftest.$ac_ext
4146
if $ac_preproc_ok; then :
4158
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4159
$as_echo "$CPP" >&6; }
4161
for ac_c_preproc_warn_flag in '' yes
4163
# Use a header file that comes with gcc, so configuring glibc
4164
# with a fresh cross-compiler works.
4165
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4166
# <limits.h> exists even on freestanding compilers.
4167
# On the NeXT, cc -E runs the code through the compiler's parser,
4168
# not just through cpp. "Syntax error" is here to catch this case.
4169
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170
/* end confdefs.h. */
4172
# include <limits.h>
4174
# include <assert.h>
4178
if ac_fn_c_try_cpp "$LINENO"; then :
4181
# Broken: fails on valid input.
4184
rm -f conftest.err conftest.$ac_ext
4186
# OK, works on sane cases. Now check whether nonexistent headers
4187
# can be detected and how.
4188
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189
/* end confdefs.h. */
4190
#include <ac_nonexistent.h>
4192
if ac_fn_c_try_cpp "$LINENO"; then :
4193
# Broken: success on invalid input.
4196
# Passes both tests.
4200
rm -f conftest.err conftest.$ac_ext
4203
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4204
rm -f conftest.err conftest.$ac_ext
4205
if $ac_preproc_ok; then :
4208
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4209
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4210
as_fn_error "C preprocessor \"$CPP\" fails sanity check
4211
See \`config.log' for more details." "$LINENO" 5; }
4215
ac_cpp='$CPP $CPPFLAGS'
4216
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4217
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4218
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221
ac_cpp='$CXXCPP $CPPFLAGS'
4222
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4223
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4225
if test -z "$CXX"; then
4226
if test -n "$CCC"; then
4229
if test -n "$ac_tool_prefix"; then
4230
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4232
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4233
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235
$as_echo_n "checking for $ac_word... " >&6; }
4236
if test "${ac_cv_prog_CXX+set}" = set; then :
4237
$as_echo_n "(cached) " >&6
4239
if test -n "$CXX"; then
4240
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4242
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246
test -z "$as_dir" && as_dir=.
4247
for ac_exec_ext in '' $ac_executable_extensions; do
4248
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4250
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4260
if test -n "$CXX"; then
4261
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4262
$as_echo "$CXX" >&6; }
4264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265
$as_echo "no" >&6; }
4269
test -n "$CXX" && break
4272
if test -z "$CXX"; then
4274
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4276
# Extract the first word of "$ac_prog", so it can be a program name with args.
4277
set dummy $ac_prog; ac_word=$2
4278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4279
$as_echo_n "checking for $ac_word... " >&6; }
4280
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4281
$as_echo_n "(cached) " >&6
4283
if test -n "$ac_ct_CXX"; then
4284
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4286
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290
test -z "$as_dir" && as_dir=.
4291
for ac_exec_ext in '' $ac_executable_extensions; do
4292
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293
ac_cv_prog_ac_ct_CXX="$ac_prog"
4294
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4304
if test -n "$ac_ct_CXX"; then
4305
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4306
$as_echo "$ac_ct_CXX" >&6; }
4308
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309
$as_echo "no" >&6; }
4313
test -n "$ac_ct_CXX" && break
4316
if test "x$ac_ct_CXX" = x; then
4319
case $cross_compiling:$ac_tool_warned in
4321
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4322
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4323
ac_tool_warned=yes ;;
4331
# Provide some information about the compiler.
4332
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4335
for ac_option in --version -v -V -qversion; do
4336
{ { ac_try="$ac_compiler $ac_option >&5"
4338
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339
*) ac_try_echo=$ac_try;;
4341
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4342
$as_echo "$ac_try_echo"; } >&5
4343
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4345
if test -s conftest.err; then
4347
... rest of stderr output deleted ...
4348
10q' conftest.err >conftest.er1
4349
cat conftest.er1 >&5
4351
rm -f conftest.er1 conftest.err
4352
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4353
test $ac_status = 0; }
4356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4357
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4358
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4359
$as_echo_n "(cached) " >&6
4361
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362
/* end confdefs.h. */
4375
if ac_fn_cxx_try_compile "$LINENO"; then :
4380
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4385
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4386
if test $ac_compiler_gnu = yes; then
4391
ac_test_CXXFLAGS=${CXXFLAGS+set}
4392
ac_save_CXXFLAGS=$CXXFLAGS
4393
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4394
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4395
if test "${ac_cv_prog_cxx_g+set}" = set; then :
4396
$as_echo_n "(cached) " >&6
4398
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4399
ac_cxx_werror_flag=yes
4402
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403
/* end confdefs.h. */
4413
if ac_fn_cxx_try_compile "$LINENO"; then :
4414
ac_cv_prog_cxx_g=yes
4417
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418
/* end confdefs.h. */
4428
if ac_fn_cxx_try_compile "$LINENO"; then :
4431
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4433
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434
/* end confdefs.h. */
4444
if ac_fn_cxx_try_compile "$LINENO"; then :
4445
ac_cv_prog_cxx_g=yes
4447
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4451
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4452
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4455
$as_echo "$ac_cv_prog_cxx_g" >&6; }
4456
if test "$ac_test_CXXFLAGS" = set; then
4457
CXXFLAGS=$ac_save_CXXFLAGS
4458
elif test $ac_cv_prog_cxx_g = yes; then
4459
if test "$GXX" = yes; then
4465
if test "$GXX" = yes; then
4472
ac_cpp='$CPP $CPPFLAGS'
4473
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4474
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4475
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4477
4929
depcc="$CXX" am_compiler_list=
4479
4931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15108
COMPILETIME_OPTIONS=""
15111
ENABLE_SHIPPED_ASIO_TRUE=
15112
ENABLE_SHIPPED_ASIO_FALSE='#'
15114
ENABLE_SHIPPED_ASIO_TRUE='#'
15115
ENABLE_SHIPPED_ASIO_FALSE=
15121
# Check whether --with-boost was given.
15122
if test "${with_boost+set}" = set; then :
15123
withval=$with_boost;
15124
if test "$withval" = "no"; then
15126
elif test "$withval" = "yes"; then
15131
ac_boost_path="$withval"
15141
# Check whether --with-boost-libdir was given.
15142
if test "${with_boost_libdir+set}" = set; then :
15143
withval=$with_boost_libdir;
15144
if test -d $withval
15146
ac_boost_lib_path="$withval"
15148
as_fn_error "--with-boost-libdir expected directory name" "$LINENO" 5
15152
ac_boost_lib_path=""
15157
if test "x$want_boost" = "xyes"; then
15158
boost_lib_version_req=1.35
15159
boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
15160
boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
15161
boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
15162
boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
15163
if test "x$boost_lib_version_req_sub_minor" = "x" ; then
15164
boost_lib_version_req_sub_minor="0"
15166
WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
15167
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
15168
$as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
15171
if test "$ac_boost_path" != ""; then
15172
BOOST_LDFLAGS="-L$ac_boost_path/lib"
15173
BOOST_CPPFLAGS="-I$ac_boost_path/include"
15175
for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
15176
if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
15177
BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
15178
BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
15184
if test "$ac_boost_lib_path" != ""; then
15185
BOOST_LDFLAGS="-L$ac_boost_lib_path"
15188
CPPFLAGS_SAVED="$CPPFLAGS"
15189
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
15192
LDFLAGS_SAVED="$LDFLAGS"
15193
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
15197
ac_cpp='$CXXCPP $CPPFLAGS'
15198
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15199
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15200
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15202
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203
/* end confdefs.h. */
15205
#include <boost/version.hpp>
15211
#if BOOST_VERSION >= $WANT_BOOST_VERSION
15212
// Everything is okay
15214
# error Boost version is too old
15221
if ac_fn_cxx_try_compile "$LINENO"; then :
15223
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15224
$as_echo "yes" >&6; }
15229
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15231
ac_cpp='$CPP $CPPFLAGS'
15232
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15233
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15234
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15239
if test "x$succeeded" != "xyes"; then
15241
if test "$ac_boost_path" != ""; then
15242
if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
15243
for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
15244
_version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
15245
V_CHECK=`expr $_version_tmp \> $_version`
15246
if test "$V_CHECK" = "1" ; then
15247
_version=$_version_tmp
15249
VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
15250
BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
15254
for ac_boost_path in /usr /usr/local /opt /opt/local ; do
15255
if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
15256
for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
15257
_version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
15258
V_CHECK=`expr $_version_tmp \> $_version`
15259
if test "$V_CHECK" = "1" ; then
15260
_version=$_version_tmp
15261
best_path=$ac_boost_path
15267
VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
15268
BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
15269
if test "$ac_boost_lib_path" = ""
15271
BOOST_LDFLAGS="-L$best_path/lib"
15274
if test "x$BOOST_ROOT" != "x"; then
15275
if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
15276
version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
15277
stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
15278
stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
15279
V_CHECK=`expr $stage_version_shorten \>\= $_version`
15280
if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
15281
{ $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
15282
$as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
15283
BOOST_CPPFLAGS="-I$BOOST_ROOT"
15284
BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
15290
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
15292
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
15296
ac_cpp='$CXXCPP $CPPFLAGS'
15297
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15298
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15299
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15301
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302
/* end confdefs.h. */
15304
#include <boost/version.hpp>
15310
#if BOOST_VERSION >= $WANT_BOOST_VERSION
15311
// Everything is okay
15313
# error Boost version is too old
15320
if ac_fn_cxx_try_compile "$LINENO"; then :
15322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15323
$as_echo "yes" >&6; }
15328
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15330
ac_cpp='$CPP $CPPFLAGS'
15331
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15332
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15333
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15337
CPPFLAGS="$CPPFLAGS_SAVED"
15338
LDFLAGS="$LDFLAGS_SAVED"
15339
unset ac_boost_path # re-enterability
15341
if test "$succeeded" != "yes" ; then
15343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15344
$as_echo "no" >&6; }
15348
# Check whether --with-boost was given.
15349
if test "${with_boost+set}" = set; then :
15350
withval=$with_boost;
15351
if test "$withval" = "no"; then
15353
elif test "$withval" = "yes"; then
15358
ac_boost_path="$withval"
15368
# Check whether --with-boost-libdir was given.
15369
if test "${with_boost_libdir+set}" = set; then :
15370
withval=$with_boost_libdir;
15371
if test -d $withval
15373
ac_boost_lib_path="$withval"
15375
as_fn_error "--with-boost-libdir expected directory name" "$LINENO" 5
15379
ac_boost_lib_path=""
15384
if test "x$want_boost" = "xyes"; then
15385
boost_lib_version_req=1.34
15386
boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
15387
boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
15388
boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
15389
boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
15390
if test "x$boost_lib_version_req_sub_minor" = "x" ; then
15391
boost_lib_version_req_sub_minor="0"
15393
WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
15394
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
15395
$as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
15398
if test "$ac_boost_path" != ""; then
15399
BOOST_LDFLAGS="-L$ac_boost_path/lib"
15400
BOOST_CPPFLAGS="-I$ac_boost_path/include"
15402
for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
15403
if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
15404
BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
15405
BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
15411
if test "$ac_boost_lib_path" != ""; then
15412
BOOST_LDFLAGS="-L$ac_boost_lib_path"
15415
CPPFLAGS_SAVED="$CPPFLAGS"
15416
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
15419
LDFLAGS_SAVED="$LDFLAGS"
15420
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
15424
ac_cpp='$CXXCPP $CPPFLAGS'
15425
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15426
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15427
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15429
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430
/* end confdefs.h. */
15432
#include <boost/version.hpp>
15438
#if BOOST_VERSION >= $WANT_BOOST_VERSION
15439
// Everything is okay
15441
# error Boost version is too old
15448
if ac_fn_cxx_try_compile "$LINENO"; then :
15450
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15451
$as_echo "yes" >&6; }
15456
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15458
ac_cpp='$CPP $CPPFLAGS'
15459
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15460
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15461
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15466
if test "x$succeeded" != "xyes"; then
15468
if test "$ac_boost_path" != ""; then
15469
if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
15470
for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
15471
_version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
15472
V_CHECK=`expr $_version_tmp \> $_version`
15473
if test "$V_CHECK" = "1" ; then
15474
_version=$_version_tmp
15476
VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
15477
BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
15481
for ac_boost_path in /usr /usr/local /opt /opt/local ; do
15482
if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
15483
for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
15484
_version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
15485
V_CHECK=`expr $_version_tmp \> $_version`
15486
if test "$V_CHECK" = "1" ; then
15487
_version=$_version_tmp
15488
best_path=$ac_boost_path
15494
VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
15495
BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
15496
if test "$ac_boost_lib_path" = ""
15498
BOOST_LDFLAGS="-L$best_path/lib"
15501
if test "x$BOOST_ROOT" != "x"; then
15502
if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
15503
version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
15504
stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
15505
stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
15506
V_CHECK=`expr $stage_version_shorten \>\= $_version`
15507
if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
15508
{ $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
15509
$as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
15510
BOOST_CPPFLAGS="-I$BOOST_ROOT"
15511
BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
15517
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
15519
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
15523
ac_cpp='$CXXCPP $CPPFLAGS'
15524
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15525
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15526
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15528
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15529
/* end confdefs.h. */
15531
#include <boost/version.hpp>
15537
#if BOOST_VERSION >= $WANT_BOOST_VERSION
15538
// Everything is okay
15540
# error Boost version is too old
15547
if ac_fn_cxx_try_compile "$LINENO"; then :
15549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15550
$as_echo "yes" >&6; }
15555
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15557
ac_cpp='$CPP $CPPFLAGS'
15558
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15559
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15560
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15564
CPPFLAGS="$CPPFLAGS_SAVED"
15565
LDFLAGS="$LDFLAGS_SAVED"
15566
unset ac_boost_path # re-enterability
15568
if test "$succeeded" != "yes" ; then
15570
if test "$_version" = "0" ; then
15571
as_fn_error "We could not detect the boost libraries (version $boost_lib_version_req_shorten 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." "$LINENO" 5
15573
{ $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
15053
LIBS="$PTHREAD_LIBS $LIBS"
15054
CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
15058
$as_echo "Checking for boost libraries:"
15062
# Check whether --with-boost was given.
15063
if test "${with_boost+set}" = set; then :
15064
withval=$with_boost;
15065
if test "x$withval" = "xno"; then
15067
elif test "x$withval" = "xyes"; then
15072
ac_boost_path="$withval"
15082
# Check whether --with-boost-libdir was given.
15083
if test "${with_boost_libdir+set}" = set; then :
15084
withval=$with_boost_libdir;
15085
if test -d $withval
15087
ac_boost_lib_path="$withval"
15089
as_fn_error "--with-boost-libdir expected directory name" "$LINENO" 5
15093
ac_boost_lib_path=""
15098
if test "x$want_boost" = "xyes"; then
15099
boost_lib_version_req=1.36
15100
boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
15101
boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
15102
boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
15103
boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
15104
if test "x$boost_lib_version_req_sub_minor" = "x" ; then
15105
boost_lib_version_req_sub_minor="0"
15107
WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
15108
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
15109
$as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
15112
if test "x$ac_boost_path" != "x"; then
15113
BOOST_LDFLAGS="-L$ac_boost_path/lib"
15114
BOOST_CPPFLAGS="-I$ac_boost_path/include"
15116
for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
15117
if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
15118
BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
15119
BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
15120
BOOST_VERSION=`grep "define BOOST_LIB_VERSION" $ac_boost_path_tmp/include/boost/version.hpp | sed 's,^.*\"\([0-9][_0-9]*\)\"$,\1, ; s,_0$,, ; s,_,.,'`
15126
if test "x$ac_boost_lib_path" != "x"; then
15127
BOOST_LDFLAGS="-L$ac_boost_lib_path"
15130
CPPFLAGS_SAVED="$CPPFLAGS"
15131
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
15134
LDFLAGS_SAVED="$LDFLAGS"
15135
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
15139
ac_cpp='$CXXCPP $CPPFLAGS'
15140
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15141
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15142
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15144
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145
/* end confdefs.h. */
15147
#include <boost/version.hpp>
15153
#if BOOST_VERSION >= $WANT_BOOST_VERSION
15154
// Everything is okay
15156
# error Boost version is too old
15163
if ac_fn_cxx_try_compile "$LINENO"; then :
15165
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15166
$as_echo "yes" >&6; }
15171
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15173
ac_cpp='$CPP $CPPFLAGS'
15174
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15175
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15176
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15181
if test "x$succeeded" != "xyes"; then
15183
if test "x$ac_boost_path" != "x"; then
15184
if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
15185
for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
15186
_version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
15187
V_CHECK=`expr $_version_tmp \> $_version`
15188
if test "$V_CHECK" = "1" ; then
15189
_version=$_version_tmp
15191
VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
15192
BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
15196
for ac_boost_path in /usr /usr/local /opt /opt/local ; do
15197
if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
15198
for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
15199
_version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
15200
V_CHECK=`expr $_version_tmp \> $_version`
15201
if test "$V_CHECK" = "1" ; then
15202
_version=$_version_tmp
15203
best_path=$ac_boost_path
15209
VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
15210
BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
15211
if test "x$ac_boost_lib_path" = "x"
15213
BOOST_LDFLAGS="-L$best_path/lib"
15216
if test "x$BOOST_ROOT" != "x"; then
15217
if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
15218
version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
15219
stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
15220
stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
15221
V_CHECK=`expr $stage_version_shorten \>\= $_version`
15222
if test "$V_CHECK" = "1" -a "x$ac_boost_lib_path" = "x" ; then
15223
{ $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
15224
$as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
15225
BOOST_CPPFLAGS="-I$BOOST_ROOT"
15226
BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
15232
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
15234
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
15238
ac_cpp='$CXXCPP $CPPFLAGS'
15239
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15240
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15241
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15243
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244
/* end confdefs.h. */
15246
#include <boost/version.hpp>
15252
#if BOOST_VERSION >= $WANT_BOOST_VERSION
15253
// Everything is okay
15255
# error Boost version is too old
15262
if ac_fn_cxx_try_compile "$LINENO"; then :
15264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15265
$as_echo "yes" >&6; }
15270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15272
ac_cpp='$CPP $CPPFLAGS'
15273
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15274
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15275
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15279
if test "x$succeeded" != "xyes" ; then
15280
if test "$_version" = "0" ; then
15281
as_fn_error "We could not detect the boost libraries (version $boost_lib_version_req_shorten 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." "$LINENO" 5
15283
{ $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
15574
15284
$as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
15581
# Check whether --with-asio was given.
15582
if test "${with_asio+set}" = set; then :
15583
withval=$with_asio; asio=$withval
15590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which Asio implementation to use" >&5
15591
$as_echo_n "checking which Asio implementation to use... " >&6; }
15594
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: shipped" >&5
15595
$as_echo "shipped" >&6; }
15596
ASIO_HPP=`dirname $0`/include/libtorrent/asio.hpp
15597
ASIO_DIR=`dirname $0`/include/libtorrent/asio
15598
as_ac_File=`$as_echo "ac_cv_file_$ASIO_HPP" | $as_tr_sh`
15599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ASIO_HPP" >&5
15600
$as_echo_n "checking for $ASIO_HPP... " >&6; }
15601
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
15602
$as_echo_n "(cached) " >&6
15604
test "$cross_compiling" = yes &&
15605
as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
15606
if test -r "$ASIO_HPP"; then
15607
eval "$as_ac_File=yes"
15609
eval "$as_ac_File=no"
15612
eval ac_res=\$$as_ac_File
15613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15614
$as_echo "$ac_res" >&6; }
15615
eval as_val=\$$as_ac_File
15616
if test "x$as_val" = x""yes; then :
15618
cat >>confdefs.h <<_ACEOF
15619
#define `$as_echo "HAVE_$ASIO_HPP" | $as_tr_cpp` 1
15621
enable_shipped_asio=yes
15623
as_fn_error "libtorrent-rasterbar depends on Asio library but it was not found." "$LINENO" 5
15626
as_ac_File=`$as_echo "ac_cv_file_$ASIO_DIR/ssl/stream.hpp" | $as_tr_sh`
15627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ASIO_DIR/ssl/stream.hpp" >&5
15628
$as_echo_n "checking for $ASIO_DIR/ssl/stream.hpp... " >&6; }
15629
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
15630
$as_echo_n "(cached) " >&6
15632
test "$cross_compiling" = yes &&
15633
as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
15634
if test -r "$ASIO_DIR/ssl/stream.hpp"; then
15635
eval "$as_ac_File=yes"
15637
eval "$as_ac_File=no"
15640
eval ac_res=\$$as_ac_File
15641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15642
$as_echo "$ac_res" >&6; }
15643
eval as_val=\$$as_ac_File
15644
if test "x$as_val" = x""yes; then :
15646
cat >>confdefs.h <<_ACEOF
15647
#define `$as_echo "HAVE_$ASIO_DIR/ssl/stream.hpp" | $as_tr_cpp` 1
15649
enable_shipped_asio=yes
15651
as_fn_error "libtorrent-rasterbar depends on Asio library but it was not found." "$LINENO" 5
15654
as_ac_File=`$as_echo "ac_cv_file_$ASIO_DIR/ip/tcp.hpp" | $as_tr_sh`
15655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ASIO_DIR/ip/tcp.hpp" >&5
15656
$as_echo_n "checking for $ASIO_DIR/ip/tcp.hpp... " >&6; }
15657
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
15658
$as_echo_n "(cached) " >&6
15660
test "$cross_compiling" = yes &&
15661
as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
15662
if test -r "$ASIO_DIR/ip/tcp.hpp"; then
15663
eval "$as_ac_File=yes"
15665
eval "$as_ac_File=no"
15668
eval ac_res=\$$as_ac_File
15669
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15670
$as_echo "$ac_res" >&6; }
15671
eval as_val=\$$as_ac_File
15672
if test "x$as_val" = x""yes; then :
15674
cat >>confdefs.h <<_ACEOF
15675
#define `$as_echo "HAVE_$ASIO_DIR/ip/tcp.hpp" | $as_tr_cpp` 1
15677
enable_shipped_asio=yes
15679
as_fn_error "libtorrent-rasterbar depends on Asio library but it was not found." "$LINENO" 5
15685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
15686
$as_echo "system" >&6; }
15687
ASIO_HPP=/usr/include/asio.hpp
15688
ASIO_DIR=/usr/include/asio
15689
as_ac_File=`$as_echo "ac_cv_file_$ASIO_HPP" | $as_tr_sh`
15690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ASIO_HPP" >&5
15691
$as_echo_n "checking for $ASIO_HPP... " >&6; }
15692
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
15693
$as_echo_n "(cached) " >&6
15695
test "$cross_compiling" = yes &&
15696
as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
15697
if test -r "$ASIO_HPP"; then
15698
eval "$as_ac_File=yes"
15700
eval "$as_ac_File=no"
15703
eval ac_res=\$$as_ac_File
15704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15705
$as_echo "$ac_res" >&6; }
15706
eval as_val=\$$as_ac_File
15707
if test "x$as_val" = x""yes; then :
15709
cat >>confdefs.h <<_ACEOF
15710
#define `$as_echo "HAVE_$ASIO_HPP" | $as_tr_cpp` 1
15712
enable_shipped_asio=no
15714
as_fn_error "libtorrent-rasterbar depends on Asio library but it was not found on your system." "$LINENO" 5
15717
as_ac_File=`$as_echo "ac_cv_file_$ASIO_DIR/ssl/stream.hpp" | $as_tr_sh`
15718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ASIO_DIR/ssl/stream.hpp" >&5
15719
$as_echo_n "checking for $ASIO_DIR/ssl/stream.hpp... " >&6; }
15720
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
15721
$as_echo_n "(cached) " >&6
15723
test "$cross_compiling" = yes &&
15724
as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
15725
if test -r "$ASIO_DIR/ssl/stream.hpp"; then
15726
eval "$as_ac_File=yes"
15728
eval "$as_ac_File=no"
15731
eval ac_res=\$$as_ac_File
15732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15733
$as_echo "$ac_res" >&6; }
15734
eval as_val=\$$as_ac_File
15735
if test "x$as_val" = x""yes; then :
15737
cat >>confdefs.h <<_ACEOF
15738
#define `$as_echo "HAVE_$ASIO_DIR/ssl/stream.hpp" | $as_tr_cpp` 1
15740
enable_shipped_asio=no
15742
as_fn_error "libtorrent-rasterbar depends on Asio library but it was not found on your system." "$LINENO" 5
15745
as_ac_File=`$as_echo "ac_cv_file_$ASIO_DIR/ip/tcp.hpp" | $as_tr_sh`
15746
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ASIO_DIR/ip/tcp.hpp" >&5
15747
$as_echo_n "checking for $ASIO_DIR/ip/tcp.hpp... " >&6; }
15748
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
15749
$as_echo_n "(cached) " >&6
15751
test "$cross_compiling" = yes &&
15752
as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
15753
if test -r "$ASIO_DIR/ip/tcp.hpp"; then
15754
eval "$as_ac_File=yes"
15756
eval "$as_ac_File=no"
15759
eval ac_res=\$$as_ac_File
15760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15761
$as_echo "$ac_res" >&6; }
15762
eval as_val=\$$as_ac_File
15763
if test "x$as_val" = x""yes; then :
15765
cat >>confdefs.h <<_ACEOF
15766
#define `$as_echo "HAVE_$ASIO_DIR/ip/tcp.hpp" | $as_tr_cpp` 1
15768
enable_shipped_asio=no
15770
as_fn_error "libtorrent-rasterbar depends on Asio library but it was not found on your system." "$LINENO" 5
15776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: detect" >&5
15777
$as_echo "detect" >&6; }
15778
ASIO_HPP=$asio/../asio.hpp
15780
as_ac_File=`$as_echo "ac_cv_file_$ASIO_HPP" | $as_tr_sh`
15781
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ASIO_HPP" >&5
15782
$as_echo_n "checking for $ASIO_HPP... " >&6; }
15783
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
15784
$as_echo_n "(cached) " >&6
15786
test "$cross_compiling" = yes &&
15787
as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
15788
if test -r "$ASIO_HPP"; then
15789
eval "$as_ac_File=yes"
15791
eval "$as_ac_File=no"
15794
eval ac_res=\$$as_ac_File
15795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15796
$as_echo "$ac_res" >&6; }
15797
eval as_val=\$$as_ac_File
15798
if test "x$as_val" = x""yes; then :
15800
cat >>confdefs.h <<_ACEOF
15801
#define `$as_echo "HAVE_$ASIO_HPP" | $as_tr_cpp` 1
15803
enable_shipped_asio=no
15805
as_fn_error "libtorrent-rasterbar depends on Asio library but it was not found in the path you specified." "$LINENO" 5
15808
as_ac_File=`$as_echo "ac_cv_file_$ASIO_DIR/ssl/stream.hpp" | $as_tr_sh`
15809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ASIO_DIR/ssl/stream.hpp" >&5
15810
$as_echo_n "checking for $ASIO_DIR/ssl/stream.hpp... " >&6; }
15811
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
15812
$as_echo_n "(cached) " >&6
15814
test "$cross_compiling" = yes &&
15815
as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
15816
if test -r "$ASIO_DIR/ssl/stream.hpp"; then
15817
eval "$as_ac_File=yes"
15819
eval "$as_ac_File=no"
15822
eval ac_res=\$$as_ac_File
15823
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15824
$as_echo "$ac_res" >&6; }
15825
eval as_val=\$$as_ac_File
15826
if test "x$as_val" = x""yes; then :
15828
cat >>confdefs.h <<_ACEOF
15829
#define `$as_echo "HAVE_$ASIO_DIR/ssl/stream.hpp" | $as_tr_cpp` 1
15831
enable_shipped_asio=no
15833
as_fn_error "libtorrent-rasterbar depends on Asio library but it was not found in the path you specified." "$LINENO" 5
15836
as_ac_File=`$as_echo "ac_cv_file_$ASIO_DIR/ip/tcp.hpp" | $as_tr_sh`
15837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ASIO_DIR/ip/tcp.hpp" >&5
15838
$as_echo_n "checking for $ASIO_DIR/ip/tcp.hpp... " >&6; }
15839
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
15840
$as_echo_n "(cached) " >&6
15842
test "$cross_compiling" = yes &&
15843
as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
15844
if test -r "$ASIO_DIR/ip/tcp.hpp"; then
15845
eval "$as_ac_File=yes"
15847
eval "$as_ac_File=no"
15850
eval ac_res=\$$as_ac_File
15851
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15852
$as_echo "$ac_res" >&6; }
15853
eval as_val=\$$as_ac_File
15854
if test "x$as_val" = x""yes; then :
15856
cat >>confdefs.h <<_ACEOF
15857
#define `$as_echo "HAVE_$ASIO_DIR/ip/tcp.hpp" | $as_tr_cpp` 1
15859
enable_shipped_asio=no
15861
as_fn_error "libtorrent-rasterbar depends on Asio library but it was not found in the path you specified." "$LINENO" 5
15867
if test x$enable_shipped_asio = "xyes"; then
15868
ENABLE_SHIPPED_ASIO_TRUE=
15869
ENABLE_SHIPPED_ASIO_FALSE='#'
15871
ENABLE_SHIPPED_ASIO_TRUE='#'
15872
ENABLE_SHIPPED_ASIO_FALSE=
15879
$as_echo "#define HAVE_BOOST /**/" >>confdefs.h
15291
$as_echo "#define HAVE_BOOST 1" >>confdefs.h
15295
CPPFLAGS="$CPPFLAGS_SAVED"
15296
LDFLAGS="$LDFLAGS_SAVED"
15891
15303
# Check whether --with-boost-system was given.
15892
15304
if test "${with_boost_system+set}" = set; then :
15893
15305
withval=$with_boost_system;
15894
if test "$withval" = "no"; then
15306
if test "x$withval" = "xno"; then
15895
15307
want_boost="no"
15896
elif test "$withval" = "yes"; then
15308
elif test "x$withval" = "xyes"; then
15897
15309
want_boost="yes"
15898
15310
ax_boost_user_system_lib=""
16845
16043
LDFLAGS="$LDFLAGS_SAVED"
16848
if test -z "$BOOST_THREAD_LIB"; then
16849
as_fn_error "Unable to find Boost.Thread library, currently this is required." "$LINENO" 5
16854
# Check whether --with-boost-regex was given.
16855
if test "${with_boost_regex+set}" = set; then :
16856
withval=$with_boost_regex;
16857
if test "$withval" = "no"; then
16859
elif test "$withval" = "yes"; then
16861
ax_boost_user_regex_lib=""
16864
ax_boost_user_regex_lib="$withval"
16873
if test "x$want_boost" = "xyes"; then
16875
CPPFLAGS_SAVED="$CPPFLAGS"
16876
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16879
LDFLAGS_SAVED="$LDFLAGS"
16880
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
16883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Regex library is available" >&5
16884
$as_echo_n "checking whether the Boost::Regex library is available... " >&6; }
16885
if test "${ax_cv_boost_regex+set}" = set; then :
16886
$as_echo_n "(cached) " >&6
16889
ac_cpp='$CXXCPP $CPPFLAGS'
16890
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16891
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16892
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16894
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895
/* end confdefs.h. */
16896
#include <boost/regex.hpp>
16901
boost::regex r(); return 0;
16906
if ac_fn_cxx_try_compile "$LINENO"; then :
16907
ax_cv_boost_regex=yes
16909
ax_cv_boost_regex=no
16911
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16913
ac_cpp='$CPP $CPPFLAGS'
16914
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16915
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16916
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_regex" >&5
16921
$as_echo "$ax_cv_boost_regex" >&6; }
16922
if test "x$ax_cv_boost_regex" = "xyes"; then
16924
$as_echo "#define HAVE_BOOST_REGEX /**/" >>confdefs.h
16926
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
16927
if test "x$ax_boost_user_regex_lib" = "x"; then
16928
for libextension in `ls $BOOSTLIBDIR/libboost_regex*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.a*$;\1;'` ; do
16929
ax_lib=${libextension}
16930
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
16931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
16932
$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
16933
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
16934
$as_echo_n "(cached) " >&6
16936
ac_check_lib_save_LIBS=$LIBS
16937
LIBS="-l$ax_lib $LIBS"
16938
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16939
/* end confdefs.h. */
16941
/* Override any GCC internal prototype to avoid an error.
16942
Use char because int might match the return type of a GCC
16943
builtin and then its argument prototype would still apply. */
16956
if ac_fn_c_try_link "$LINENO"; then :
16957
eval "$as_ac_Lib=yes"
16959
eval "$as_ac_Lib=no"
16961
rm -f core conftest.err conftest.$ac_objext \
16962
conftest$ac_exeext conftest.$ac_ext
16963
LIBS=$ac_check_lib_save_LIBS
16965
eval ac_res=\$$as_ac_Lib
16966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16967
$as_echo "$ac_res" >&6; }
16968
eval as_val=\$$as_ac_Lib
16969
if test "x$as_val" = x""yes; then :
16970
BOOST_REGEX_LIB="-l$ax_lib"; link_regex="yes"; break
16976
if test "x$link_regex" != "xyes"; then
16977
for libextension in `ls $BOOSTLIBDIR/boost_regex*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_regex.*\)\.dll.*$;\1;' -e 's;^\(boost_regex.*\)\.a*$;\1;'` ; do
16978
ax_lib=${libextension}
16979
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
16980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
16981
$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
16982
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
16983
$as_echo_n "(cached) " >&6
16985
ac_check_lib_save_LIBS=$LIBS
16986
LIBS="-l$ax_lib $LIBS"
16987
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16988
/* end confdefs.h. */
16990
/* Override any GCC internal prototype to avoid an error.
16991
Use char because int might match the return type of a GCC
16992
builtin and then its argument prototype would still apply. */
17005
if ac_fn_c_try_link "$LINENO"; then :
17006
eval "$as_ac_Lib=yes"
17008
eval "$as_ac_Lib=no"
17010
rm -f core conftest.err conftest.$ac_objext \
17011
conftest$ac_exeext conftest.$ac_ext
17012
LIBS=$ac_check_lib_save_LIBS
17014
eval ac_res=\$$as_ac_Lib
17015
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17016
$as_echo "$ac_res" >&6; }
17017
eval as_val=\$$as_ac_Lib
17018
if test "x$as_val" = x""yes; then :
17019
BOOST_REGEX_LIB="-l$ax_lib"; link_regex="yes"; break
17028
for ax_lib in $ax_boost_user_regex_lib boost_regex-$ax_boost_user_regex_lib; do
17029
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
17030
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
17031
$as_echo_n "checking for main in -l$ax_lib... " >&6; }
17032
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17033
$as_echo_n "(cached) " >&6
17035
ac_check_lib_save_LIBS=$LIBS
17036
LIBS="-l$ax_lib $LIBS"
17037
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17038
/* end confdefs.h. */
17049
if ac_fn_c_try_link "$LINENO"; then :
17050
eval "$as_ac_Lib=yes"
17052
eval "$as_ac_Lib=no"
17054
rm -f core conftest.err conftest.$ac_objext \
17055
conftest$ac_exeext conftest.$ac_ext
17056
LIBS=$ac_check_lib_save_LIBS
17058
eval ac_res=\$$as_ac_Lib
17059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17060
$as_echo "$ac_res" >&6; }
17061
eval as_val=\$$as_ac_Lib
17062
if test "x$as_val" = x""yes; then :
17063
BOOST_REGEX_LIB="-l$ax_lib"; link_regex="yes"; break
17070
if test "x$link_regex" != "xyes"; then
17071
as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
17075
CPPFLAGS="$CPPFLAGS_SAVED"
17076
LDFLAGS="$LDFLAGS_SAVED"
17079
if test -z "$BOOST_REGEX_LIB"; then
17080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Unable to find Boost.Regex library, example test_client will not be build." >&5
17081
$as_echo "Unable to find Boost.Regex library, example test_client will not be build." >&6; }
17082
BUILD_TESTCLIENT=no;
17087
# Check whether --with-boost-program-options was given.
17088
if test "${with_boost_program_options+set}" = set; then :
17089
withval=$with_boost_program_options;
17090
if test "$withval" = "no"; then
17092
elif test "$withval" = "yes"; then
17094
ax_boost_user_program_options_lib=""
17097
ax_boost_user_program_options_lib="$withval"
17106
if test "x$want_boost" = "xyes"; then
17109
CPPFLAGS_SAVED="$CPPFLAGS"
17110
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17112
LDFLAGS_SAVED="$LDFLAGS"
17113
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
17115
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Program_Options library is available" >&5
17116
$as_echo_n "checking whether the Boost::Program_Options library is available... " >&6; }
17117
if test "${ax_cv_boost_program_options+set}" = set; then :
17118
$as_echo_n "(cached) " >&6
17121
ac_cpp='$CXXCPP $CPPFLAGS'
17122
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17123
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17124
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17126
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17127
/* end confdefs.h. */
17128
#include <boost/program_options.hpp>
17133
boost::program_options::options_description generic("Generic options");
17139
if ac_fn_cxx_try_compile "$LINENO"; then :
17140
ax_cv_boost_program_options=yes
17142
ax_cv_boost_program_options=no
17144
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17146
ac_cpp='$CPP $CPPFLAGS'
17147
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17148
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17149
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17153
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_program_options" >&5
17154
$as_echo "$ax_cv_boost_program_options" >&6; }
17155
if test "$ax_cv_boost_program_options" = yes; then
17157
$as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS /**/" >>confdefs.h
17159
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
17160
if test "x$ax_boost_user_program_options_lib" = "x"; then
17161
for libextension in `ls $BOOSTLIBDIR/libboost_program_options*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.so.*$;\1;' -e 's;^lib\(boost_program_options.*\)\.a*$;\1;'` ; do
17162
ax_lib=${libextension}
17163
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
17164
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
17165
$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
17166
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17167
$as_echo_n "(cached) " >&6
17169
ac_check_lib_save_LIBS=$LIBS
17170
LIBS="-l$ax_lib $LIBS"
17171
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172
/* end confdefs.h. */
17174
/* Override any GCC internal prototype to avoid an error.
17175
Use char because int might match the return type of a GCC
17176
builtin and then its argument prototype would still apply. */
17189
if ac_fn_c_try_link "$LINENO"; then :
17190
eval "$as_ac_Lib=yes"
17192
eval "$as_ac_Lib=no"
17194
rm -f core conftest.err conftest.$ac_objext \
17195
conftest$ac_exeext conftest.$ac_ext
17196
LIBS=$ac_check_lib_save_LIBS
17198
eval ac_res=\$$as_ac_Lib
17199
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17200
$as_echo "$ac_res" >&6; }
17201
eval as_val=\$$as_ac_Lib
17202
if test "x$as_val" = x""yes; then :
17203
BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
17205
link_program_options="no"
17209
if test "x$link_program_options" != "xyes"; then
17210
for libextension in `ls $BOOSTLIBDIR/boost_program_options*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.dll.*$;\1;' -e 's;^\(boost_program_options.*\)\.a*$;\1;'` ; do
17211
ax_lib=${libextension}
17212
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
17213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
17214
$as_echo_n "checking for exit in -l$ax_lib... " >&6; }
17215
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17216
$as_echo_n "(cached) " >&6
17218
ac_check_lib_save_LIBS=$LIBS
17219
LIBS="-l$ax_lib $LIBS"
17220
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17221
/* end confdefs.h. */
17223
/* Override any GCC internal prototype to avoid an error.
17224
Use char because int might match the return type of a GCC
17225
builtin and then its argument prototype would still apply. */
17238
if ac_fn_c_try_link "$LINENO"; then :
17239
eval "$as_ac_Lib=yes"
17241
eval "$as_ac_Lib=no"
17243
rm -f core conftest.err conftest.$ac_objext \
17244
conftest$ac_exeext conftest.$ac_ext
17245
LIBS=$ac_check_lib_save_LIBS
17247
eval ac_res=\$$as_ac_Lib
17248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17249
$as_echo "$ac_res" >&6; }
17250
eval as_val=\$$as_ac_Lib
17251
if test "x$as_val" = x""yes; then :
17252
BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
17254
link_program_options="no"
17260
for ax_lib in $ax_boost_user_program_options_lib boost_program_options-$ax_boost_user_program_options_lib; do
17261
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
17262
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
17263
$as_echo_n "checking for main in -l$ax_lib... " >&6; }
17264
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17265
$as_echo_n "(cached) " >&6
17267
ac_check_lib_save_LIBS=$LIBS
17268
LIBS="-l$ax_lib $LIBS"
17269
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17270
/* end confdefs.h. */
17281
if ac_fn_c_try_link "$LINENO"; then :
17282
eval "$as_ac_Lib=yes"
17284
eval "$as_ac_Lib=no"
17286
rm -f core conftest.err conftest.$ac_objext \
17287
conftest$ac_exeext conftest.$ac_ext
17288
LIBS=$ac_check_lib_save_LIBS
17290
eval ac_res=\$$as_ac_Lib
17291
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17292
$as_echo "$ac_res" >&6; }
17293
eval as_val=\$$as_ac_Lib
17294
if test "x$as_val" = x""yes; then :
17295
BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
17297
link_program_options="no"
17302
if test "x$link_program_options" != "xyes"; then
17303
as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
17306
CPPFLAGS="$CPPFLAGS_SAVED"
17307
LDFLAGS="$LDFLAGS_SAVED"
17310
if test -z "$BOOST_PROGRAM_OPTIONS_LIB"; then
17311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Unable to find Boost.Program_options library, example test_client will not be build." >&5
17312
$as_echo "Unable to find Boost.Program_options library, example test_client will not be build." >&6; }
17313
BUILD_TESTCLIENT=no;
17316
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17317
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
17319
if [ "x$BUILD_TESTCLIENT" != "xno" ]; then
17320
CLIENT_TEST_BIN=client_test;
17324
ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
16046
if test -z "$BOOST_THREAD_LIB"; then :
16047
as_fn_error "Boost.Thread library not found. Try using --with-boost-thread=lib" "$LINENO" 5
16050
CPPFLAGS="$BOOST_CPPFLAGS $CPPFLAGS"
16051
LDFLAGS="$BOOST_LDFLAGS $LDFLAGS"
16054
###############################################################################
16055
# Checking for functions and other stuffs
16056
###############################################################################
16060
$as_echo "Checking for pkg-config:"
16064
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16065
if test -n "$ac_tool_prefix"; then
16066
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16067
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16068
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16069
$as_echo_n "checking for $ac_word... " >&6; }
16070
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
16071
$as_echo_n "(cached) " >&6
16073
case $PKG_CONFIG in
16075
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16078
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16079
for as_dir in $PATH
16082
test -z "$as_dir" && as_dir=.
16083
for ac_exec_ext in '' $ac_executable_extensions; do
16084
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16085
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16086
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16096
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16097
if test -n "$PKG_CONFIG"; then
16098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16099
$as_echo "$PKG_CONFIG" >&6; }
16101
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16102
$as_echo "no" >&6; }
16107
if test -z "$ac_cv_path_PKG_CONFIG"; then
16108
ac_pt_PKG_CONFIG=$PKG_CONFIG
16109
# Extract the first word of "pkg-config", so it can be a program name with args.
16110
set dummy pkg-config; ac_word=$2
16111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16112
$as_echo_n "checking for $ac_word... " >&6; }
16113
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
16114
$as_echo_n "(cached) " >&6
16116
case $ac_pt_PKG_CONFIG in
16118
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16121
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16122
for as_dir in $PATH
16125
test -z "$as_dir" && as_dir=.
16126
for ac_exec_ext in '' $ac_executable_extensions; do
16127
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16128
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16129
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16139
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16140
if test -n "$ac_pt_PKG_CONFIG"; then
16141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16142
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16145
$as_echo "no" >&6; }
16148
if test "x$ac_pt_PKG_CONFIG" = x; then
16151
case $cross_compiling:$ac_tool_warned in
16153
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16154
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16155
ac_tool_warned=yes ;;
16157
PKG_CONFIG=$ac_pt_PKG_CONFIG
16160
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16164
if test -n "$PKG_CONFIG"; then
16165
_pkg_min_version=0.20
16166
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16167
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16168
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16170
$as_echo "yes" >&6; }
16172
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16173
$as_echo "no" >&6; }
16180
$as_echo "Checking for functions and headers:"
16182
# Check whether --enable-largefile was given.
16183
if test "${enable_largefile+set}" = set; then :
16184
enableval=$enable_largefile;
16187
if test "$enable_largefile" != no; then
16189
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16190
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16191
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
16192
$as_echo_n "(cached) " >&6
16194
ac_cv_sys_largefile_CC=no
16195
if test "$GCC" != yes; then
16198
# IRIX 6.2 and later do not support large files by default,
16199
# so use the C compiler's -n32 option if that helps.
16200
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16201
/* end confdefs.h. */
16202
#include <sys/types.h>
16203
/* Check that off_t can represent 2**63 - 1 correctly.
16204
We can't simply define LARGE_OFF_T to be 9223372036854775807,
16205
since some C++ compilers masquerading as C compilers
16206
incorrectly reject 9223372036854775807. */
16207
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16208
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16209
&& LARGE_OFF_T % 2147483647 == 1)
16219
if ac_fn_c_try_compile "$LINENO"; then :
16222
rm -f core conftest.err conftest.$ac_objext
16224
if ac_fn_c_try_compile "$LINENO"; then :
16225
ac_cv_sys_largefile_CC=' -n32'; break
16227
rm -f core conftest.err conftest.$ac_objext
16231
rm -f conftest.$ac_ext
16234
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16235
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
16236
if test "$ac_cv_sys_largefile_CC" != no; then
16237
CC=$CC$ac_cv_sys_largefile_CC
16240
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16241
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16242
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
16243
$as_echo_n "(cached) " >&6
16246
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16247
/* end confdefs.h. */
16248
#include <sys/types.h>
16249
/* Check that off_t can represent 2**63 - 1 correctly.
16250
We can't simply define LARGE_OFF_T to be 9223372036854775807,
16251
since some C++ compilers masquerading as C compilers
16252
incorrectly reject 9223372036854775807. */
16253
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16254
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16255
&& LARGE_OFF_T % 2147483647 == 1)
16265
if ac_fn_c_try_compile "$LINENO"; then :
16266
ac_cv_sys_file_offset_bits=no; break
16268
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16269
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16270
/* end confdefs.h. */
16271
#define _FILE_OFFSET_BITS 64
16272
#include <sys/types.h>
16273
/* Check that off_t can represent 2**63 - 1 correctly.
16274
We can't simply define LARGE_OFF_T to be 9223372036854775807,
16275
since some C++ compilers masquerading as C compilers
16276
incorrectly reject 9223372036854775807. */
16277
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16278
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16279
&& LARGE_OFF_T % 2147483647 == 1)
16289
if ac_fn_c_try_compile "$LINENO"; then :
16290
ac_cv_sys_file_offset_bits=64; break
16292
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16293
ac_cv_sys_file_offset_bits=unknown
16297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16298
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16299
case $ac_cv_sys_file_offset_bits in #(
16302
cat >>confdefs.h <<_ACEOF
16303
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16308
if test $ac_cv_sys_file_offset_bits = unknown; then
16309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16310
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
16311
if test "${ac_cv_sys_large_files+set}" = set; then :
16312
$as_echo_n "(cached) " >&6
16315
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16316
/* end confdefs.h. */
16317
#include <sys/types.h>
16318
/* Check that off_t can represent 2**63 - 1 correctly.
16319
We can't simply define LARGE_OFF_T to be 9223372036854775807,
16320
since some C++ compilers masquerading as C compilers
16321
incorrectly reject 9223372036854775807. */
16322
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16323
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16324
&& LARGE_OFF_T % 2147483647 == 1)
16334
if ac_fn_c_try_compile "$LINENO"; then :
16335
ac_cv_sys_large_files=no; break
16337
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16338
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16339
/* end confdefs.h. */
16340
#define _LARGE_FILES 1
16341
#include <sys/types.h>
16342
/* Check that off_t can represent 2**63 - 1 correctly.
16343
We can't simply define LARGE_OFF_T to be 9223372036854775807,
16344
since some C++ compilers masquerading as C compilers
16345
incorrectly reject 9223372036854775807. */
16346
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16347
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16348
&& LARGE_OFF_T % 2147483647 == 1)
16358
if ac_fn_c_try_compile "$LINENO"; then :
16359
ac_cv_sys_large_files=1; break
16361
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16362
ac_cv_sys_large_files=unknown
16366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16367
$as_echo "$ac_cv_sys_large_files" >&6; }
16368
case $ac_cv_sys_large_files in #(
16371
cat >>confdefs.h <<_ACEOF
16372
#define _LARGE_FILES $ac_cv_sys_large_files
16381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16382
$as_echo_n "checking whether ln -s works... " >&6; }
16384
if test "$LN_S" = "ln -s"; then
16385
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16386
$as_echo "yes" >&6; }
16388
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16389
$as_echo "no, using $LN_S" >&6; }
16392
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16393
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16395
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16396
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
16397
$as_echo_n "(cached) " >&6
16399
cat >conftest.make <<\_ACEOF
16402
@echo '@@@%%%=$(MAKE)=@@@%%%'
16404
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16405
case `${MAKE-make} -f conftest.make 2>/dev/null` in
16406
*@@@%%%=?*=@@@%%%*)
16407
eval ac_cv_prog_make_${ac_make}_set=yes;;
16409
eval ac_cv_prog_make_${ac_make}_set=no;;
16411
rm -f conftest.make
16413
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16415
$as_echo "yes" >&6; }
16418
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16419
$as_echo "no" >&6; }
16420
SET_MAKE="MAKE=${MAKE-make}"
16424
# check for gethostbyname and gethostbyname_r (used in src/GeoIP.c)
16425
for ac_func in gethostbyname
16427
ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
17325
16428
if test "x$ac_cv_func_gethostbyname" = x""yes; then :
16429
cat >>confdefs.h <<_ACEOF
16430
#define HAVE_GETHOSTBYNAME 1
16434
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
16435
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
16436
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
16437
$as_echo_n "(cached) " >&6
16439
ac_check_lib_save_LIBS=$LIBS
16441
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442
/* end confdefs.h. */
16444
/* Override any GCC internal prototype to avoid an error.
16445
Use char because int might match the return type of a GCC
16446
builtin and then its argument prototype would still apply. */
16450
char gethostbyname ();
16454
return gethostbyname ();
16459
if ac_fn_c_try_link "$LINENO"; then :
16460
ac_cv_lib_nsl_gethostbyname=yes
16462
ac_cv_lib_nsl_gethostbyname=no
16464
rm -f core conftest.err conftest.$ac_objext \
16465
conftest$ac_exeext conftest.$ac_ext
16466
LIBS=$ac_check_lib_save_LIBS
16468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
16469
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
16470
if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
16471
cat >>confdefs.h <<_ACEOF
16472
#define HAVE_LIBNSL 1
17328
16478
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
17475
16625
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_main" >&5
17476
16626
$as_echo "$ac_cv_lib_wsock32_main" >&6; }
17477
16627
if test "x$ac_cv_lib_wsock32_main" = x""yes; then :
17478
LIBS="$LIBS -lws2_32 -lwsock32";
17480
as_fn_error "wsock32 not found. Stopped." "$LINENO" 5
17484
as_fn_error "gethostbyname not found. Stopped." "$LINENO" 5
17496
# Check whether --with-logging was given.
17497
if test "${with_logging+set}" = set; then :
17498
withval=$with_logging; logging=$withval
17505
# this works around a bug in asio in boost-1.39
17506
# see: https://svn.boost.org/trac/boost/ticket/3095
17507
$as_echo "#define BOOST_ASIO_HASH_MAP_BUCKETS 1021" >>confdefs.h
17509
COMPILETIME_OPTIONS+="-DBOOST_ASIO_HASH_MAP_BUCKETS=1021 "
17511
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what form of logging to use" >&5
17512
$as_echo_n "checking what form of logging to use... " >&6; }
17515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
17516
$as_echo "none" >&6; }
17519
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
17520
$as_echo "default" >&6; }
17522
$as_echo "#define TORRENT_LOGGING /**/" >>confdefs.h
17524
COMPILETIME_OPTIONS+="-DTORRENT_LOGGING "
17527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: verbose" >&5
17528
$as_echo "verbose" >&6; }
17530
$as_echo "#define TORRENT_VERBOSE_LOGGING /**/" >>confdefs.h
17532
COMPILETIME_OPTIONS+="-DTORRENT_VERBOSE_LOGGING "
17535
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
17537
as_fn_error "Unknown logging option \"$logging\". Use either \"none\", \"default\" or \"verbose\"." "$LINENO" 5
17542
# Check whether --with-dht was given.
17543
if test "${with_dht+set}" = set; then :
17544
withval=$with_dht; dht=$withval
17550
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use DHT" >&5
17551
$as_echo_n "checking how to use DHT... " >&6; }
17554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: on" >&5
17555
$as_echo "on" >&6; }
17558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: off" >&5
17559
$as_echo "off" >&6; }
17561
$as_echo "#define TORRENT_DISABLE_DHT /**/" >>confdefs.h
17563
COMPILETIME_OPTIONS+="-DTORRENT_DISABLE_DHT "
17566
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: logging" >&5
17567
$as_echo "logging" >&6; }
17569
$as_echo "#define TORRENT_DHT_VERBOSE_LOGGING /**/" >>confdefs.h
17571
COMPILETIME_OPTIONS+="-DTORRENT_DHT_VERBOSE_LOGGING "
17574
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
17576
as_fn_error "Unknown dht option \"$dht\". Use either \"on\", \"off\" or \"logging\"." "$LINENO" 5
17579
if test "x$dht" != "xoff"; then
17589
# Check whether --with-encryption was given.
17590
if test "${with_encryption+set}" = set; then :
17591
withval=$with_encryption; encryption=$withval
17598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use encryption" >&5
17599
$as_echo_n "checking how to use encryption... " >&6; }
17600
case "$encryption" in
17602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: on" >&5
17603
$as_echo "on" >&6; }
17606
# Check whether --with-ssl was given.
17607
if test "${with_ssl+set}" = set; then :
17611
for dir in $withval /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do
17613
if test -f "$dir/include/openssl/ssl.h"; then
17615
SSL_CFLAGS="-I$ssldir/include/openssl -DHAVE_SSL";
17616
SSL_CXXFLAGS="-I$ssldir/include/openssl -DHAVE_SSL";
17619
if test -f "$dir/include/ssl.h"; then
17621
SSL_CFLAGS="-I$ssldir/include/ -DHAVE_SSL";
17622
SSL_CXXFLAGS="-I$ssldir/include/ -DHAVE_SSL";
17626
if test x_$found_ssl != x_yes; then
17627
as_fn_error "Cannot find ssl libraries" "$LINENO" 5
17629
printf "OpenSSL found in $ssldir\n";
17630
SSL_LIBS="-lssl -lcrypto";
17631
SSL_LDFLAGS="-L$ssldir/lib";
17641
$as_echo "#define TORRENT_USE_OPENSSL /**/" >>confdefs.h
17643
COMPILETIME_OPTIONS+="-DTORRENT_USE_OPENSSL "
17647
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: off" >&5
17648
$as_echo "off" >&6; }
17650
$as_echo "#define TORRENT_DISABLE_ENCRYPTION /**/" >>confdefs.h
17652
COMPILETIME_OPTIONS+="-DTORRENT_DISABLE_ENCRYPTION "
17655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
17657
as_fn_error "Unknown encryption option \"$encryption\". Use either \"on\" or \"off\"." "$LINENO" 5
17660
if test "x$encryption" != "xoff"; then
17661
USE_ENCRYPTION_TRUE=
17662
USE_ENCRYPTION_FALSE='#'
17664
USE_ENCRYPTION_TRUE='#'
17665
USE_ENCRYPTION_FALSE=
17670
# Check whether --with-zlib was given.
17671
if test "${with_zlib+set}" = set; then :
17672
withval=$with_zlib; zlib=$withval
17678
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which zlib implementation to use" >&5
17679
$as_echo_n "checking which zlib implementation to use... " >&6; }
17682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetect" >&5
17683
$as_echo "autodetect" >&6; }
17684
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
17685
$as_echo_n "checking for main in -lz... " >&6; }
17686
if test "${ac_cv_lib_z_main+set}" = set; then :
17687
$as_echo_n "(cached) " >&6
17689
ac_check_lib_save_LIBS=$LIBS
17691
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692
/* end confdefs.h. */
17703
if ac_fn_c_try_link "$LINENO"; then :
17704
ac_cv_lib_z_main=yes
17706
ac_cv_lib_z_main=no
17708
rm -f core conftest.err conftest.$ac_objext \
17709
conftest$ac_exeext conftest.$ac_ext
17710
LIBS=$ac_check_lib_save_LIBS
17712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
17713
$as_echo "$ac_cv_lib_z_main" >&6; }
17714
if test "x$ac_cv_lib_z_main" = x""yes; then :
17715
cat >>confdefs.h <<_ACEOF
17716
#define HAVE_LIBZ 1
17728
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: shipped" >&5
17729
$as_echo "shipped" >&6; }
17732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
17733
$as_echo "system" >&6; }
17734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
17735
$as_echo_n "checking for main in -lz... " >&6; }
17736
if test "${ac_cv_lib_z_main+set}" = set; then :
17737
$as_echo_n "(cached) " >&6
17739
ac_check_lib_save_LIBS=$LIBS
17741
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17742
/* end confdefs.h. */
17753
if ac_fn_c_try_link "$LINENO"; then :
17754
ac_cv_lib_z_main=yes
17756
ac_cv_lib_z_main=no
17758
rm -f core conftest.err conftest.$ac_objext \
17759
conftest$ac_exeext conftest.$ac_ext
17760
LIBS=$ac_check_lib_save_LIBS
17762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
17763
$as_echo "$ac_cv_lib_z_main" >&6; }
17764
if test "x$ac_cv_lib_z_main" = x""yes; then :
17765
cat >>confdefs.h <<_ACEOF
17766
#define HAVE_LIBZ 1
17772
as_fn_error "libtorrent-rasterbar depends on zlib but zlib was not found on your system." "$LINENO" 5
17778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
17780
as_fn_error "libtorrent-rasterbar depends on zlib, you must specify either \"system\" or \"shipped\"." "$LINENO" 5
17783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
17785
as_fn_error "Unknown zlib option \"$zlib\". Use either \"system\" or \"shipped\"." "$LINENO" 5
17788
if [ "$zlib" = "shipped" ]; then
17789
ZLIB="\$(top_builddir)/zlib/libzlib.la"
17791
ENABLE_SHIPPED_ZLIB_TRUE=
17792
ENABLE_SHIPPED_ZLIB_FALSE='#'
17794
ENABLE_SHIPPED_ZLIB_TRUE='#'
17795
ENABLE_SHIPPED_ZLIB_FALSE=
17798
ZLIBINCL="-I\$(top_srcdir)/zlib"
17799
elif [ "$zlib" = "system" ] || [ "$zlib" = "detect" ]; then
17800
ZLIB="" # AC_CHECK_LIB will add -lz to @LIBS@ automatically
17802
ENABLE_SHIPPED_ZLIB_TRUE=
17803
ENABLE_SHIPPED_ZLIB_FALSE='#'
17805
ENABLE_SHIPPED_ZLIB_TRUE='#'
17806
ENABLE_SHIPPED_ZLIB_FALSE=
16628
LIBS="-lws2_32 -lwsock32 $LIBS"
16630
as_fn_error "wsock32 function not found." "$LINENO" 5
16634
as_fn_error "gethostbyname function not found." "$LINENO" 5
16648
for ac_func in gethostbyname_r
16650
ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
16651
if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
16652
cat >>confdefs.h <<_ACEOF
16653
#define HAVE_GETHOSTBYNAME_R 1
16656
# We look for the one that returns `int'.
16657
# Hopefully this check is robust enough.
16658
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16659
/* end confdefs.h. */
16663
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16664
$EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
16666
$as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
16676
for ac_func in clock_gettime
16678
ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
16679
if test "x$ac_cv_func_clock_gettime" = x""yes; then :
16680
cat >>confdefs.h <<_ACEOF
16681
#define HAVE_CLOCK_GETTIME 1
16685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
16686
$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
16687
if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
16688
$as_echo_n "(cached) " >&6
16690
ac_check_lib_save_LIBS=$LIBS
16692
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16693
/* end confdefs.h. */
16695
/* Override any GCC internal prototype to avoid an error.
16696
Use char because int might match the return type of a GCC
16697
builtin and then its argument prototype would still apply. */
16701
char clock_gettime ();
16705
return clock_gettime ();
16710
if ac_fn_c_try_link "$LINENO"; then :
16711
ac_cv_lib_rt_clock_gettime=yes
16713
ac_cv_lib_rt_clock_gettime=no
16715
rm -f core conftest.err conftest.$ac_objext \
16716
conftest$ac_exeext conftest.$ac_ext
16717
LIBS=$ac_check_lib_save_LIBS
16719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16720
$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16721
if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
16722
cat >>confdefs.h <<_ACEOF
16723
#define HAVE_LIBRT 1
16729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lposix4" >&5
16730
$as_echo_n "checking for clock_gettime in -lposix4... " >&6; }
16731
if test "${ac_cv_lib_posix4_clock_gettime+set}" = set; then :
16732
$as_echo_n "(cached) " >&6
16734
ac_check_lib_save_LIBS=$LIBS
16735
LIBS="-lposix4 $LIBS"
16736
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737
/* end confdefs.h. */
16739
/* Override any GCC internal prototype to avoid an error.
16740
Use char because int might match the return type of a GCC
16741
builtin and then its argument prototype would still apply. */
16745
char clock_gettime ();
16749
return clock_gettime ();
16754
if ac_fn_c_try_link "$LINENO"; then :
16755
ac_cv_lib_posix4_clock_gettime=yes
16757
ac_cv_lib_posix4_clock_gettime=no
16759
rm -f core conftest.err conftest.$ac_objext \
16760
conftest$ac_exeext conftest.$ac_ext
16761
LIBS=$ac_check_lib_save_LIBS
16763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_clock_gettime" >&5
16764
$as_echo "$ac_cv_lib_posix4_clock_gettime" >&6; }
16765
if test "x$ac_cv_lib_posix4_clock_gettime" = x""yes; then :
16766
cat >>confdefs.h <<_ACEOF
16767
#define HAVE_LIBPOSIX4 1
16770
LIBS="-lposix4 $LIBS"
16773
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: clock_gettime function not found." >&5
16774
$as_echo "$as_me: WARNING: clock_gettime function not found." >&2;}
16785
COMPILETIME_OPTIONS=""
16788
###############################################################################
16789
# Setting configure options
16790
###############################################################################
16792
# Check whether --enable-logging was given.
16793
if test "${enable_logging+set}" = set; then :
16794
enableval=$enable_logging; ARG_ENABLE_LOGGING=$enableval
16796
ARG_ENABLE_LOGGING=no
16801
# Check whether --enable-debug was given.
16802
if test "${enable_debug+set}" = set; then :
16803
enableval=$enable_debug;
16804
ARG_ENABLE_DEBUG=$enableval
16805
ac_arg_enable_debug=$enableval
16809
ARG_ENABLE_DEBUG=no
16810
ac_arg_enable_debug=no
16816
# Check whether --enable-dht was given.
16817
if test "${enable_dht+set}" = set; then :
16818
enableval=$enable_dht; ARG_ENABLE_DHT=$enableval
16825
# Check whether --enable-encryption was given.
16826
if test "${enable_encryption+set}" = set; then :
16827
enableval=$enable_encryption; ARG_ENABLE_ENCRYPTION=$enableval
16829
ARG_ENABLE_ENCRYPTION=yes
16834
# Check whether --enable-pool-allocators was given.
16835
if test "${enable_pool_allocators+set}" = set; then :
16836
enableval=$enable_pool_allocators; ARG_ENABLE_POOL_ALLOC=$enableval
16838
ARG_ENABLE_POOL_ALLOC=yes
16843
# Check whether --enable-invariant-checks was given.
16844
if test "${enable_invariant_checks+set}" = set; then :
16845
enableval=$enable_invariant_checks; ARG_ENABLE_INVARIANT=$enableval
16848
if test "x$ac_arg_enable_debug" = "xyes"; then :
16849
ARG_ENABLE_INVARIANT=yes
16851
ARG_ENABLE_INVARIANT=no
16858
# Check whether --enable-deprecated-functions was given.
16859
if test "${enable_deprecated_functions+set}" = set; then :
16860
enableval=$enable_deprecated_functions; ARG_ENABLE_DEPRECATED=$enableval
16862
ARG_ENABLE_DEPRECATED=yes
16867
# Check whether --enable-statistics was given.
16868
if test "${enable_statistics+set}" = set; then :
16869
enableval=$enable_statistics; ARG_ENABLE_STATS=$enableval
16871
ARG_ENABLE_STATS=no
16876
# Check whether --enable-disk-stats was given.
16877
if test "${enable_disk_stats+set}" = set; then :
16878
enableval=$enable_disk_stats; ARG_ENABLE_DISK_STATS=$enableval
16880
ARG_ENABLE_DISK_STATS=no
17815
16885
# Check whether --enable-geoip was given.
17840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to link against system libgeoip" >&5
17841
$as_echo_n "checking whether to link against system libgeoip... " >&6; } #depends: $ac_arg_enable_geoip
17842
case "$ARG_WITH_LIBGEOIP" in #(
17845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17846
$as_echo "yes" >&6; }
17848
if test "x$ac_arg_enable_geoip" = "xno"; then :
17849
as_fn_error "GeoIP support is disabled with this build configuration. Try using --enable-geoip." "$LINENO" 5
17854
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17855
if test -n "$ac_tool_prefix"; then
17856
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17857
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17858
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17859
$as_echo_n "checking for $ac_word... " >&6; }
17860
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17861
$as_echo_n "(cached) " >&6
17863
case $PKG_CONFIG in
17865
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17868
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17869
for as_dir in $PATH
17872
test -z "$as_dir" && as_dir=.
17873
for ac_exec_ext in '' $ac_executable_extensions; do
17874
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17875
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17876
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17886
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17887
if test -n "$PKG_CONFIG"; then
17888
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17889
$as_echo "$PKG_CONFIG" >&6; }
17891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17892
$as_echo "no" >&6; }
17897
if test -z "$ac_cv_path_PKG_CONFIG"; then
17898
ac_pt_PKG_CONFIG=$PKG_CONFIG
17899
# Extract the first word of "pkg-config", so it can be a program name with args.
17900
set dummy pkg-config; ac_word=$2
17901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17902
$as_echo_n "checking for $ac_word... " >&6; }
17903
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
17904
$as_echo_n "(cached) " >&6
17906
case $ac_pt_PKG_CONFIG in
17908
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17912
for as_dir in $PATH
17915
test -z "$as_dir" && as_dir=.
17916
for ac_exec_ext in '' $ac_executable_extensions; do
17917
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17918
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17919
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17929
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17930
if test -n "$ac_pt_PKG_CONFIG"; then
17931
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17932
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
17934
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17935
$as_echo "no" >&6; }
17938
if test "x$ac_pt_PKG_CONFIG" = x; then
17941
case $cross_compiling:$ac_tool_warned in
17943
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17944
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17945
ac_tool_warned=yes ;;
17947
PKG_CONFIG=$ac_pt_PKG_CONFIG
17950
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17954
if test -n "$PKG_CONFIG"; then
17955
_pkg_min_version=0.20
17956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17957
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17958
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17960
$as_echo "yes" >&6; }
17962
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17963
$as_echo "no" >&6; }
17969
{ $as_echo "$as_me:${as_lineno-$LINENO}: libgeoip: now checking for the libgeoip library..." >&5
17970
$as_echo "$as_me: libgeoip: now checking for the libgeoip library..." >&6;}
17973
ac_geoip_found="no"
17975
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgeoip with pkg-config" >&5
17976
$as_echo_n "checking for libgeoip with pkg-config... " >&6; }
17977
if test -n "$PKG_CONFIG" && \
17978
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"geoip\""; } >&5
17979
($PKG_CONFIG --exists --print-errors "geoip") 2>&5
17981
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17982
test $ac_status = 0; }; then
17984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17985
$as_echo "yes" >&6; }
17988
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEOIP" >&5
17989
$as_echo_n "checking for GEOIP... " >&6; }
17991
if test -n "$GEOIP_CFLAGS"; then
17992
pkg_cv_GEOIP_CFLAGS="$GEOIP_CFLAGS"
17993
elif test -n "$PKG_CONFIG"; then
17994
if test -n "$PKG_CONFIG" && \
17995
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"geoip\""; } >&5
17996
($PKG_CONFIG --exists --print-errors "geoip") 2>&5
17998
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17999
test $ac_status = 0; }; then
18000
pkg_cv_GEOIP_CFLAGS=`$PKG_CONFIG --cflags "geoip" 2>/dev/null`
18007
if test -n "$GEOIP_LIBS"; then
18008
pkg_cv_GEOIP_LIBS="$GEOIP_LIBS"
18009
elif test -n "$PKG_CONFIG"; then
18010
if test -n "$PKG_CONFIG" && \
18011
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"geoip\""; } >&5
18012
($PKG_CONFIG --exists --print-errors "geoip") 2>&5
18014
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18015
test $ac_status = 0; }; then
18016
pkg_cv_GEOIP_LIBS=`$PKG_CONFIG --libs "geoip" 2>/dev/null`
18026
if test $pkg_failed = yes; then
18028
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18029
_pkg_short_errors_supported=yes
18031
_pkg_short_errors_supported=no
18033
if test $_pkg_short_errors_supported = yes; then
18034
GEOIP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "geoip" 2>&1`
18036
GEOIP_PKG_ERRORS=`$PKG_CONFIG --print-errors "geoip" 2>&1`
18038
# Put the nasty error message in config.log where it belongs
18039
echo "$GEOIP_PKG_ERRORS" >&5
18041
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18042
$as_echo "no" >&6; }
18044
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config: geoip module not found" >&5
18045
$as_echo "$as_me: WARNING: pkg-config: geoip module not found" >&2;}
18047
elif test $pkg_failed = untried; then
18049
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config: geoip module not found" >&5
18050
$as_echo "$as_me: WARNING: pkg-config: geoip module not found" >&2;}
18053
GEOIP_CFLAGS=$pkg_cv_GEOIP_CFLAGS
18054
GEOIP_LIBS=$pkg_cv_GEOIP_LIBS
18055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18056
$as_echo "yes" >&6; }
18058
ac_geoip_found="yes"
18064
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18065
$as_echo "no" >&6; }
18067
CPPFLAGS_SAVED="$CPPFLAGS"
18068
LDFLAGS_SAVED="$LDFLAGS"
18069
CFLAGS_SAVED="$CFLAGS"
18072
ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
18073
if test "x$ac_cv_header_GeoIP_h" = x""yes; then :
18075
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_new in -lGeoIP" >&5
18076
$as_echo_n "checking for GeoIP_new in -lGeoIP... " >&6; }
18077
if test "${ac_cv_lib_GeoIP_GeoIP_new+set}" = set; then :
18078
$as_echo_n "(cached) " >&6
18080
ac_check_lib_save_LIBS=$LIBS
18081
LIBS="-lGeoIP $LIBS"
18082
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18083
/* end confdefs.h. */
18085
/* Override any GCC internal prototype to avoid an error.
18086
Use char because int might match the return type of a GCC
18087
builtin and then its argument prototype would still apply. */
18095
return GeoIP_new ();
18100
if ac_fn_c_try_link "$LINENO"; then :
18101
ac_cv_lib_GeoIP_GeoIP_new=yes
18103
ac_cv_lib_GeoIP_GeoIP_new=no
18105
rm -f core conftest.err conftest.$ac_objext \
18106
conftest$ac_exeext conftest.$ac_ext
18107
LIBS=$ac_check_lib_save_LIBS
18109
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_new" >&5
18110
$as_echo "$ac_cv_lib_GeoIP_GeoIP_new" >&6; }
18111
if test "x$ac_cv_lib_GeoIP_GeoIP_new" = x""yes; then :
18114
GEOIP_LIBS="-lGeoIP"
18115
ac_geoip_found="yes"
18119
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libgeoip library not found" >&5
18120
$as_echo "$as_me: WARNING: libgeoip library not found" >&2;}
18127
for ac_geoip_path in /usr /usr/local /opt /opt/local; do
18128
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP.h in $ac_geoip_path" >&5
18129
$as_echo_n "checking for GeoIP.h in $ac_geoip_path... " >&6; }
18130
if test -d "$ac_geoip_path/include/" -a -r "$ac_geoip_path/include/GeoIP.h"; then
18131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18132
$as_echo "yes" >&6; }
18133
GEOIP_CFLAGS="-I$ac_geoip_path/include"
18134
GEOIP_LIBS="-lGeoIP"
18137
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18138
$as_echo "no" >&6; }
18142
CFLAGS="$GEOIP_CFLAGS $CFLAGS"
18144
LIBS="$GEOIP_LIBS $LIBS"
18147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_new in -lGeoIP" >&5
18148
$as_echo_n "checking for GeoIP_new in -lGeoIP... " >&6; }
18149
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18150
/* end confdefs.h. */
18156
GeoIP *g = GeoIP_new(GEOIP_STANDARD);
18162
if ac_fn_c_try_link "$LINENO"; then :
18164
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18165
$as_echo "yes" >&6; }
18166
ac_geoip_found="yes"
18170
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18171
$as_echo "no" >&6; }
18174
rm -f core conftest.err conftest.$ac_objext \
18175
conftest$ac_exeext conftest.$ac_ext
18181
CPPFLAGS="$CPPFLAGS_SAVED"
18182
LDFLAGS="$LDFLAGS_SAVED"
18183
CFLAGS="$CFLAGS_SAVED"
18188
if test "x$ac_geoip_found" != xno ; then :
18190
LIBS="$GEOIP_LIBS $LIBS"
18191
CFLAGS="$GEOIP_CFLAGS $CFLAGS"
18195
as_fn_error "GeoIP library not found. Try using --without-libgeoip to link against the shipped copy." "$LINENO" 5
18205
if test "x$ac_arg_enable_geoip" = "xno"; then :
18207
# redundant check: session_impl.hpp just won't check for any
18208
# GeoIP.h, so any value would be ok (ie. this AS_IF could be
18210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
18211
$as_echo "disabled" >&6; }
18212
ARG_WITH_LIBGEOIP="disabled"
16948
###############################################################################
16949
# Checking configure options
16950
###############################################################################
16953
$as_echo "Checking build options:"
16955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deprecated functions should be enabled" >&5
16956
$as_echo_n "checking whether deprecated functions should be enabled... " >&6; }
16957
case "$ARG_ENABLE_DEPRECATED" in #(
16960
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16961
$as_echo "yes" >&6; }
16965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16966
$as_echo "no" >&6; }
16968
$as_echo "#define TORRENT_NO_DEPRECATE 1" >>confdefs.h
16972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARG_ENABLE_DEPRECATED" >&5
16973
$as_echo "$ARG_ENABLE_DEPRECATED" >&6; }
16974
as_fn_error "Unknown option \"$ARG_ENABLE_DEPRECATED\". Use either \"yes\" or \"no\"." "$LINENO" 5
16978
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debug build should be enabled" >&5
16979
$as_echo_n "checking whether debug build should be enabled... " >&6; }
16980
case "$ARG_ENABLE_DEBUG" in #(
16983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16984
$as_echo "yes" >&6; }
16986
$as_echo "#define TORRENT_DEBUG 1" >>confdefs.h
16988
COMPILETIME_OPTIONS+="-DTORRENT_DEBUG "
16993
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16994
$as_echo "no" >&6; }
16996
$as_echo "#define NDEBUG 1" >>confdefs.h
16998
#COMPILETIME_OPTIONS+="-DNDEBUG "
17002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARG_ENABLE_DEBUG" >&5
17003
$as_echo "$ARG_ENABLE_DEBUG" >&6; }
17004
as_fn_error "Unknown option \"$ARG_ENABLE_DEBUG\". Use either \"yes\" or \"no\"." "$LINENO" 5
17008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invariant check should be enabled" >&5
17009
$as_echo_n "checking whether invariant check should be enabled... " >&6; } #depends: $ac_arg_enable_debug
17010
case "$ARG_ENABLE_INVARIANT" in #(
17013
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17014
$as_echo "yes" >&6; }
17015
if test "x$ac_arg_enable_debug" = "xno"; then :
17016
as_fn_error "invariant-checks: this setting only affects debug build. Try using --enable-debug." "$LINENO" 5
17021
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17022
$as_echo "no" >&6; }
17023
if test "x$ac_arg_enable_debug" = "xyes"; then :
17025
$as_echo "#define TORRENT_DISABLE_INVARIANT_CHECKS 1" >>confdefs.h
17031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: full" >&5
17032
$as_echo "full" >&6; }
17033
if test "x$ac_arg_enable_debug" = "xyes"; then :
17035
$as_echo "#define TORRENT_EXPENSIVE_INVARIANT_CHECKS 1" >>confdefs.h
17038
as_fn_error "invariant-checks: this setting only affects debug build. Try using --enable-debug." "$LINENO" 5
17042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARG_ENABLE_INVARIANT" >&5
17043
$as_echo "$ARG_ENABLE_INVARIANT" >&6; }
17044
as_fn_error "Unknown option \"$ARG_ENABLE_INVARIANT\". Use either \"yes\", \"no\" or \"full\"." "$LINENO" 5
17048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether logging to disk should be enabled" >&5
17049
$as_echo_n "checking whether logging to disk should be enabled... " >&6; }
17050
case "$ARG_ENABLE_LOGGING" in #(
17053
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17054
$as_echo "yes" >&6; }
17056
$as_echo "#define TORRENT_LOGGING 1" >>confdefs.h
17058
COMPILETIME_OPTIONS+="-DTORRENT_LOGGING "
17062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17063
$as_echo "no" >&6; }
17067
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: verbose" >&5
17068
$as_echo "verbose" >&6; }
17070
$as_echo "#define TORRENT_VERBOSE_LOGGING 1" >>confdefs.h
17072
COMPILETIME_OPTIONS+="-DTORRENT_VERBOSE_LOGGING "
17076
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: errors" >&5
17077
$as_echo "errors" >&6; }
17079
$as_echo "#define TORRENT_ERROR_LOGGING 1" >>confdefs.h
17081
COMPILETIME_OPTIONS+="-DTORRENT_ERROR_LOGGING "
17084
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARG_ENABLE_LOGGING" >&5
17085
$as_echo "$ARG_ENABLE_LOGGING" >&6; }
17086
as_fn_error "Unknown option \"$ARG_ENABLE_LOGGING\". Use either \"yes\", \"no\", \"verbose\" or \"errors\"." "$LINENO" 5
17090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether statistics logging should be enabled" >&5
17091
$as_echo_n "checking whether statistics logging should be enabled... " >&6; }
17092
case "$ARG_ENABLE_STATS" in #(
17095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17096
$as_echo "yes" >&6; }
17098
$as_echo "#define TORRENT_STATS 1" >>confdefs.h
17103
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17104
$as_echo "no" >&6; }
17107
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARG_ENABLE_STATS" >&5
17108
$as_echo "$ARG_ENABLE_STATS" >&6; }
17109
as_fn_error "Unknown option \"$ARG_ENABLE_STATS\". Use either \"yes\" or \"no\"." "$LINENO" 5
17113
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether disk activity logging should be enabled" >&5
17114
$as_echo_n "checking whether disk activity logging should be enabled... " >&6; }
17115
case "$ARG_ENABLE_DISK_STATS" in #(
17118
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17119
$as_echo "yes" >&6; }
17121
$as_echo "#define TORRENT_DISK_STATS 1" >>confdefs.h
17126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17127
$as_echo "no" >&6; }
17130
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARG_ENABLE_DISK_STATS" >&5
17131
$as_echo "$ARG_ENABLE_DISK_STATS" >&6; }
17132
as_fn_error "Unknown option \"$ARG_ENABLE_DISK_STATS\". Use either \"yes\" or \"no\"." "$LINENO" 5
17137
$as_echo "Checking features to be enabled:"
17139
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether encryption support should be enabled" >&5
17140
$as_echo_n "checking whether encryption support should be enabled... " >&6; }
17141
case "$ARG_ENABLE_ENCRYPTION" in #(
17144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17145
$as_echo "yes" >&6; }
17146
{ $as_echo "$as_me:${as_lineno-$LINENO}: encryption support: now checking for the OpenSSL library..." >&5
17147
$as_echo "$as_me: encryption support: now checking for the OpenSSL library..." >&6;}
17152
# Check whether --with-openssl was given.
17153
if test "${with_openssl+set}" = set; then :
17154
withval=$with_openssl;
17156
"" | y | ye | yes | n | no)
17157
as_fn_error "Invalid --with-openssl value" "$LINENO" 5
17159
*) ssldirs="$withval"
17165
# if pkg-config is installed and openssl has installed a .pc file,
17166
# then use that information and don't search ssldirs
17167
# AC_PATH_PROG(PKG_CONFIG, pkg-config)
17168
if test "x$PKG_CONFIG" != "x"; then
17169
OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
17170
if test $? = 0; then
17171
OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
17172
OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
17177
# no such luck; use some default ssldirs
17179
ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
17187
# note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
17188
# an 'openssl' subdirectory
17192
for ssldir in $ssldirs; do
17193
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
17194
$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
17195
if test -f "$ssldir/include/openssl/ssl.h"; then
17196
OPENSSL_INCLUDES="-I$ssldir/include"
17197
OPENSSL_LDFLAGS="-L $ssldir/lib"
17198
OPENSSL_LIBS="-lssl -lcrypto"
17200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17201
$as_echo "yes" >&6; }
17204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17205
$as_echo "no" >&6; }
17209
# if the file wasn't found, well, go ahead and try the link anyway -- maybe
17210
# it will just work!
17213
# try the preprocessor and linker with our new flags,
17214
# being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
17216
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
17217
$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
17218
echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
17219
"OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
17222
save_LDFLAGS="$LDFLAGS"
17223
save_CPPFLAGS="$CPPFLAGS"
17224
LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
17225
LIBS="$OPENSSL_LIBS $LIBS"
17226
CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
17227
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17228
/* end confdefs.h. */
17229
#include <openssl/ssl.h>
17238
if ac_fn_c_try_link "$LINENO"; then :
17240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17241
$as_echo "yes" >&6; }
17244
$as_echo "#define TORRENT_USE_OPENSSL 1" >>confdefs.h
17246
COMPILETIME_OPTIONS+="-DTORRENT_USE_OPENSSL "
18216
17251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18217
17252
$as_echo "no" >&6; }
18218
ARG_WITH_LIBGEOIP="no"
18220
$as_echo "#define WITH_SHIPPED_GEOIP_H 1" >>confdefs.h
18222
COMPILETIME_OPTIONS+="-DWITH_SHIPPED_GEOIP_H "
18227
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARG_WITH_LIBGEOIP" >&5
18228
$as_echo "$ARG_WITH_LIBGEOIP" >&6; }
18229
as_fn_error "Unknown option \"$ARG_WITH_LIBGEOIP\". Use either \"yes\" or \"no\"." "$LINENO" 5
18233
if test "x$ARG_WITH_LIBGEOIP" = "xno" ; then
18234
WITH_SHIPPED_GEOIP_TRUE=
18235
WITH_SHIPPED_GEOIP_FALSE='#'
18237
WITH_SHIPPED_GEOIP_TRUE='#'
18238
WITH_SHIPPED_GEOIP_FALSE=
18242
# Check whether --enable-python-binding was given.
18243
if test "${enable_python_binding+set}" = set; then :
18244
enableval=$enable_python_binding; ac_python_binding=$enableval
18246
ac_python_binding=no
18251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if python bindings should be build" >&5
18252
$as_echo_n "checking if python bindings should be build... " >&6; }
18253
case "$ac_python_binding" in
18255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17254
as_fn_error "OpenSSL library not found. Try using --with-openssl=DIR or disabling encryption at all." "$LINENO" 5
17258
rm -f core conftest.err conftest.$ac_objext \
17259
conftest$ac_exeext conftest.$ac_ext
17260
CPPFLAGS="$save_CPPFLAGS"
17261
LDFLAGS="$save_LDFLAGS"
17271
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17272
$as_echo "no" >&6; }
17274
$as_echo "#define TORRENT_DISABLE_ENCRYPTION 1" >>confdefs.h
17276
COMPILETIME_OPTIONS+="-DTORRENT_DISABLE_ENCRYPTION "
17279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARG_ENABLE_ENCRYPTION" >&5
17280
$as_echo "$ARG_ENABLE_ENCRYPTION" >&6; }
17281
as_fn_error "Unknown option \"$ARG_ENABLE_ENCRYPTION\". Use either \"yes\" or \"no\"." "$LINENO" 5
17285
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether geoip support should be enabled" >&5
17286
$as_echo_n "checking whether geoip support should be enabled... " >&6; }
17287
case "$ARG_ENABLE_GEOIP" in #(
17290
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17291
$as_echo "yes" >&6; }
17295
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17296
$as_echo "no" >&6; }
17298
$as_echo "#define TORRENT_DISABLE_GEO_IP 1" >>confdefs.h
17300
COMPILETIME_OPTIONS+="-DTORRENT_DISABLE_GEO_IP "
17303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARG_ENABLE_GEOIP" >&5
17304
$as_echo "$ARG_ENABLE_GEOIP" >&6; }
17305
as_fn_error "Unknown option \"$ARG_ENABLE_GEOIP\". Use either \"yes\" or \"no\"." "$LINENO" 5
17309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dht support should be enabled" >&5
17310
$as_echo_n "checking whether dht support should be enabled... " >&6; }
17311
case "$ARG_ENABLE_DHT" in #(
17314
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17315
$as_echo "yes" >&6; }
17319
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17320
$as_echo "no" >&6; }
17322
$as_echo "#define TORRENT_DISABLE_DHT 1" >>confdefs.h
17324
COMPILETIME_OPTIONS+="-DTORRENT_DISABLE_DHT "
17328
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: logging" >&5
17329
$as_echo "logging" >&6; }
17331
$as_echo "#define TORRENT_DHT_VERBOSE_LOGGING 1" >>confdefs.h
17333
COMPILETIME_OPTIONS+="-DTORRENT_DHT_VERBOSE_LOGGING "
17336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARG_ENABLE_DHT" >&5
17337
$as_echo "$ARG_ENABLE_DHT" >&6; }
17338
as_fn_error "Unknown option \"$ARG_ENABLE_DHT\". Use either \"yes\", \"no\" or \"logging\"." "$LINENO" 5
17342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pool allocators should be enabled" >&5
17343
$as_echo_n "checking whether pool allocators should be enabled... " >&6; }
17344
case "$ARG_ENABLE_POOL_ALLOC" in #(
17347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17348
$as_echo "yes" >&6; }
17352
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17353
$as_echo "no" >&6; }
17355
$as_echo "#define TORRENT_DISABLE_POOL_ALLOCATOR 1" >>confdefs.h
17359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARG_ENABLE_POOL_ALLOC" >&5
17360
$as_echo "$ARG_ENABLE_POOL_ALLOC" >&6; }
17361
as_fn_error "Unknown option \"$ARG_ENABLE_POOL_ALLOC\". Use either \"yes\" or \"no\"." "$LINENO" 5
17366
$as_echo "Checking for extra build files:"
17368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether example files should be built" >&5
17369
$as_echo_n "checking whether example files should be built... " >&6; }
17370
case "$ARG_ENABLE_EXAMPLES" in #(
17372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17373
$as_echo "yes" >&6; } ;; #(
17375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17376
$as_echo "no" >&6; } ;; #(
17378
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARG_ENABLE_EXAMPLES" >&5
17379
$as_echo "$ARG_ENABLE_EXAMPLES" >&6; }
17380
as_fn_error "Unknown option \"$ARG_ENABLE_EXAMPLES\". Use either \"yes\" or \"no\"." "$LINENO" 5
17384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether test files should be built" >&5
17385
$as_echo_n "checking whether test files should be built... " >&6; }
17386
case "$ARG_ENABLE_TESTS" in #(
17388
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17389
$as_echo "yes" >&6; } ;; #(
17391
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17392
$as_echo "no" >&6; } ;; #(
17394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARG_ENABLE_TESTS" >&5
17395
$as_echo "$ARG_ENABLE_TESTS" >&6; }
17396
as_fn_error "Unknown option \"$ARG_ENABLE_TESTS\". Use either \"yes\" or \"no\"." "$LINENO" 5
17400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python bindings should be built" >&5
17401
$as_echo_n "checking whether python bindings should be built... " >&6; }
17402
case "$ARG_ENABLE_PYTHON_BINDING" in #(
17405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18256
17406
$as_echo "yes" >&6; }
18485
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python build information" >&5
18486
$as_echo_n "checking for python build information... " >&6; }
18487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
18489
for python in python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
18490
# AC_CHECK_PROGS(PYTHON_BIN, [$python])
18492
ax_python_bin=$PYTHON_BIN
18493
if test x$ax_python_bin != x; then
18494
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_python_bin''_main" | $as_tr_sh`
18495
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_python_bin" >&5
18496
$as_echo_n "checking for main in -l$ax_python_bin... " >&6; }
18497
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17636
# Allow the use of a (user set) custom python version
17640
# Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
17641
set dummy python$PYTHON_VERSION; ac_word=$2
17642
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17643
$as_echo_n "checking for $ac_word... " >&6; }
17644
if test "${ac_cv_path_PYTHON+set}" = set; then :
18498
17645
$as_echo_n "(cached) " >&6
18500
ac_check_lib_save_LIBS=$LIBS
18501
LIBS="-l$ax_python_bin $LIBS"
18502
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17649
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17652
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17653
for as_dir in $PATH
17656
test -z "$as_dir" && as_dir=.
17657
for ac_exec_ext in '' $ac_executable_extensions; do
17658
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17659
ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17660
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17670
PYTHON=$ac_cv_path_PYTHON
17671
if test -n "$PYTHON"; then
17672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17673
$as_echo "$PYTHON" >&6; }
17675
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17676
$as_echo "no" >&6; }
17680
if test -z "$PYTHON"; then
17681
as_fn_error "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
17686
# Check for a version of Python >= 2.1.0
17688
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
17689
$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
17690
ac_supports_python_ver=`$PYTHON -c "import sys; \
17691
ver = sys.version.split ()[0]; \
17692
print (ver >= '2.1.0')"`
17693
if test "$ac_supports_python_ver" != "True"; then
17694
if test -z "$PYTHON_NOVERSIONCHECK"; then
17695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17696
$as_echo "no" >&6; }
17697
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17698
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17700
This version of the AC_PYTHON_DEVEL macro
17701
doesn't work properly with versions of Python before
17702
2.1.0. You may need to re-run configure, setting the
17703
variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
17704
PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
17705
Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
17706
to something else than an empty string.
17708
See \`config.log' for more details." "$LINENO" 5; }
17710
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
17711
$as_echo "skip at user request" >&6; }
17714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17715
$as_echo "yes" >&6; }
17719
# if the macro parameter ``version'' is set, honour it
17721
if test -n ">= '2.4'"; then
17722
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.4'" >&5
17723
$as_echo_n "checking for a version of Python >= '2.4'... " >&6; }
17724
ac_supports_python_ver=`$PYTHON -c "import sys; \
17725
ver = sys.version.split ()[0]; \
17726
print (ver >= '2.4')"`
17727
if test "$ac_supports_python_ver" = "True"; then
17728
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17729
$as_echo "yes" >&6; }
17731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17732
$as_echo "no" >&6; }
17733
as_fn_error "this package requires Python >= '2.4'.
17734
If you have it installed, but it isn't the default Python
17735
interpreter in your system path, please pass the PYTHON_VERSION
17736
variable to configure. See \`\`configure --help'' for reference.
17743
# Check if you have distutils, else fail
17745
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
17746
$as_echo_n "checking for the distutils Python package... " >&6; }
17747
ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
17748
if test -z "$ac_distutils_result"; then
17749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17750
$as_echo "yes" >&6; }
17752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17753
$as_echo "no" >&6; }
17754
as_fn_error "cannot import Python module \"distutils\".
17755
Please check your Python installation. The error was:
17756
$ac_distutils_result" "$LINENO" 5
17761
# Check for Python include path
17763
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
17764
$as_echo_n "checking for Python include path... " >&6; }
17765
if test -z "$PYTHON_CPPFLAGS"; then
17766
python_path=`$PYTHON -c "import distutils.sysconfig; \
17767
print (distutils.sysconfig.get_python_inc ());"`
17768
if test -n "${python_path}"; then
17769
python_path="-I$python_path"
17771
PYTHON_CPPFLAGS=$python_path
17773
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
17774
$as_echo "$PYTHON_CPPFLAGS" >&6; }
17778
# Check for Python library path
17780
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
17781
$as_echo_n "checking for Python library path... " >&6; }
17782
if test -z "$PYTHON_LDFLAGS"; then
17783
# (makes two attempts to ensure we've got a version number
17784
# from the interpreter)
17785
ac_python_version=`cat<<EOD | $PYTHON -
17787
# join all versioning strings, on some systems
17788
# major/minor numbers could be in different list elements
17789
from distutils.sysconfig import *
17791
for e in get_config_vars ('VERSION'):
17797
if test -z "$ac_python_version"; then
17798
if test -n "$PYTHON_VERSION"; then
17799
ac_python_version=$PYTHON_VERSION
17801
ac_python_version=`$PYTHON -c "import sys; \
17802
print (sys.version[:3])"`
17806
# Make the versioning information available to the compiler
17808
cat >>confdefs.h <<_ACEOF
17809
#define HAVE_PYTHON "$ac_python_version"
17813
# First, the library directory:
17814
ac_python_libdir=`cat<<EOD | $PYTHON -
17816
# There should be only one
17817
import distutils.sysconfig
17818
for e in distutils.sysconfig.get_config_vars ('LIBDIR'):
17824
# Before checking for libpythonX.Y, we need to know
17825
# the extension the OS we're on uses for libraries
17826
# (we take the first one, if there's more than one fix me!):
17827
ac_python_soext=`$PYTHON -c \
17828
"import distutils.sysconfig; \
17829
print (distutils.sysconfig.get_config_vars('SO')[0])"`
17831
# Now, for the library:
17832
ac_python_soname=`$PYTHON -c \
17833
"import distutils.sysconfig; \
17834
print (distutils.sysconfig.get_config_vars('LDLIBRARY')[0])"`
17836
# Strip away extension from the end to canonicalize its name:
17837
ac_python_library=`echo "$ac_python_soname" | sed "s/${ac_python_soext}$//"`
17839
# This small piece shamelessly adapted from PostgreSQL python macro;
17840
# credits goes to momjian, I think. I'd like to put the right name
17841
# in the credits, if someone can point me in the right direction... ?
17843
if test -n "$ac_python_libdir" -a -n "$ac_python_library" \
17844
-a x"$ac_python_library" != x"$ac_python_soname"
17846
# use the official shared library
17847
ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
17848
PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
17850
# old way: use libpython from python_configdir
17851
ac_python_libdir=`$PYTHON -c \
17852
"from distutils.sysconfig import get_python_lib as f; \
17854
print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
17855
PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
17858
if test -z "PYTHON_LDFLAGS"; then
17860
Cannot determine location of your Python DSO. Please check it was installed with
17861
dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
17865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
17866
$as_echo "$PYTHON_LDFLAGS" >&6; }
17870
# Check for site packages
17872
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
17873
$as_echo_n "checking for Python site-packages path... " >&6; }
17874
if test -z "$PYTHON_SITE_PKG"; then
17875
PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
17876
print (distutils.sysconfig.get_python_lib(0,0));"`
17878
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
17879
$as_echo "$PYTHON_SITE_PKG" >&6; }
17883
# libraries which must be linked in when embedding
17885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
17886
$as_echo_n "checking python extra libraries... " >&6; }
17887
if test -z "$PYTHON_EXTRA_LIBS"; then
17888
PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
17889
conf = distutils.sysconfig.get_config_var; \
17890
print (conf('LOCALMODLIBS') + ' ' + conf('LIBS'))"`
17892
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
17893
$as_echo "$PYTHON_EXTRA_LIBS" >&6; }
17897
# linking flags needed when embedding
17899
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
17900
$as_echo_n "checking python extra linking flags... " >&6; }
17901
if test -z "$PYTHON_EXTRA_LDFLAGS"; then
17902
PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
17903
conf = distutils.sysconfig.get_config_var; \
17904
print (conf('LINKFORSHARED'))"`
17906
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
17907
$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
17911
# final check to see if everything compiles alright
17913
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
17914
$as_echo_n "checking consistency of all components of python development environment... " >&6; }
17915
# save current global flags
17916
ac_save_LIBS="$LIBS"
17917
ac_save_CPPFLAGS="$CPPFLAGS"
17918
LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
17919
CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
17921
ac_cpp='$CPP $CPPFLAGS'
17922
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17923
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17924
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17926
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18503
17927
/* end confdefs.h. */
17929
#include <Python.h>
18514
17939
if ac_fn_c_try_link "$LINENO"; then :
18515
eval "$as_ac_Lib=yes"
18517
eval "$as_ac_Lib=no"
18519
17944
rm -f core conftest.err conftest.$ac_objext \
18520
17945
conftest$ac_exeext conftest.$ac_ext
18521
LIBS=$ac_check_lib_save_LIBS
18523
eval ac_res=\$$as_ac_Lib
18524
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18525
$as_echo "$ac_res" >&6; }
18526
eval as_val=\$$as_ac_Lib
18527
if test "x$as_val" = x""yes; then :
18528
ax_python_lib=$ax_python_bin
18533
as_ac_Header=`$as_echo "ac_cv_header_$ax_python_bin/Python.h" | $as_tr_sh`
18534
ac_fn_c_check_header_mongrel "$LINENO" "$ax_python_bin/Python.h" "$as_ac_Header" "$ac_includes_default"
18535
eval as_val=\$$as_ac_Header
18536
if test "x$as_val" = x""yes; then :
18537
ax_python_header=/usr/include/$ax_python_bin
18539
ax_python_header=no
18543
if test $ax_python_lib != no; then
18544
if test $ax_python_header != no; then
18548
as_ac_Header=`$as_echo "ac_cv_header_$ax_python_bin/Python.h" | $as_tr_sh`
18549
ac_fn_c_check_header_mongrel "$LINENO" "$ax_python_bin/Python.h" "$as_ac_Header" "$ac_includes_default"
18550
eval as_val=\$$as_ac_Header
18551
if test "x$as_val" = x""yes; then :
18552
ax_python_header=/opt/local/include/$ax_python_bin
18554
ax_python_header=no
18558
if test $ax_python_lib != no; then
18559
if test $ax_python_header != no; then
18565
if test x$ax_python_bin = x; then
18568
if test x$ax_python_header = x; then
18569
ax_python_header=no
18571
if test x$ax_python_lib = x; then
18575
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: results of the Python check:" >&5
18576
$as_echo " results of the Python check:" >&6; }
18577
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Binary: $ax_python_bin" >&5
18578
$as_echo " Binary: $ax_python_bin" >&6; }
18579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Library: $ax_python_lib" >&5
18580
$as_echo " Library: $ax_python_lib" >&6; }
18581
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Include Dir: $ax_python_header" >&5
18582
$as_echo " Include Dir: $ax_python_header" >&6; }
18584
if test x$ax_python_header != xno; then
18585
PYTHON_INCLUDE_DIR=$ax_python_header
18588
if test x$ax_python_lib != xno; then
18589
PYTHON_LIB=$ax_python_lib
18593
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Python library is available" >&5
17947
ac_cpp='$CPP $CPPFLAGS'
17948
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17949
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17950
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17952
# turn back to default flags
17953
CPPFLAGS="$ac_save_CPPFLAGS"
17954
LIBS="$ac_save_LIBS"
17956
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
17957
$as_echo "$pythonexists" >&6; }
17959
if test ! "x$pythonexists" = "xyes"; then
17960
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17961
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17963
Could not link test program to Python. Maybe the main Python library has been
17964
installed in some non-standard library path. If so, pass it to configure,
17965
via the LDFLAGS environment variable.
17966
Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
17967
============================================================================
17969
You probably have to install the development version of the Python package
17970
for your distribution. The exact name of this package varies among them.
17971
============================================================================
17973
See \`config.log' for more details." "$LINENO" 5; }
17981
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Python library is available" >&5
18594
17982
$as_echo_n "checking whether the Boost::Python library is available... " >&6; }
18595
17983
if test "${ac_cv_boost_python+set}" = set; then :
18596
17984
$as_echo_n "(cached) " >&6
18701
if test -z "$BOOST_PYTHON_LIB"; then
18702
as_fn_error "Unable to find Boost.Python library, this is required to build python bindings." "$LINENO" 5
18706
ENABLE_PYTHON_BINDING_TRUE=
18707
ENABLE_PYTHON_BINDING_FALSE='#'
18709
ENABLE_PYTHON_BINDING_TRUE='#'
18710
ENABLE_PYTHON_BINDING_FALSE=
18716
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18717
$as_echo "no" >&6; }
18719
ENABLE_PYTHON_BINDING_TRUE=
18720
ENABLE_PYTHON_BINDING_FALSE='#'
18722
ENABLE_PYTHON_BINDING_TRUE='#'
18723
ENABLE_PYTHON_BINDING_FALSE=
18728
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18729
$as_echo "no" >&6; }
18731
ENABLE_PYTHON_BINDING_TRUE=
18732
ENABLE_PYTHON_BINDING_FALSE='#'
18734
ENABLE_PYTHON_BINDING_TRUE='#'
18735
ENABLE_PYTHON_BINDING_FALSE=
18740
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
18742
as_fn_error "Unknown --enable-python option \"$python\". Use either \"yes\" or \"no\"." "$LINENO" 5
18746
if [ "x$PYTHON_INSTALL_PARAMS" == "x" ]; then
18747
PYTHON_INSTALL_PARAMS='--prefix=$(DESTDIR)$(prefix)'
18751
# Check whether --enable-examples was given.
18752
if test "${enable_examples+set}" = set; then :
18753
enableval=$enable_examples; examples=$enableval
18759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the examples should be build" >&5
18760
$as_echo_n "checking if the examples should be build... " >&6; }
18761
case "$examples" in
18763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18764
$as_echo "yes" >&6; }
18766
ENABLE_EXAMPLES_TRUE=
18767
ENABLE_EXAMPLES_FALSE='#'
18769
ENABLE_EXAMPLES_TRUE='#'
18770
ENABLE_EXAMPLES_FALSE=
18775
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18776
$as_echo "no" >&6; }
18778
ENABLE_EXAMPLES_TRUE=
18779
ENABLE_EXAMPLES_FALSE='#'
18781
ENABLE_EXAMPLES_TRUE='#'
18782
ENABLE_EXAMPLES_FALSE=
18787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
18788
$as_echo "yes (default)" >&6; }
18790
ENABLE_EXAMPLES_TRUE=
18791
ENABLE_EXAMPLES_FALSE='#'
18793
ENABLE_EXAMPLES_TRUE='#'
18794
ENABLE_EXAMPLES_FALSE=
18799
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
18801
as_fn_error "Unknown --enable-examples option \"$examples\". Use either \"yes\" or \"no\"." "$LINENO" 5
18805
# Check whether --enable-tests was given.
18806
if test "${enable_tests+set}" = set; then :
18807
enableval=$enable_tests; tests=$enableval
18813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if test files should be build" >&5
18814
$as_echo_n "checking if test files should be build... " >&6; }
18817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18818
$as_echo "yes" >&6; }
18821
ENABLE_TESTS_FALSE='#'
18823
ENABLE_TESTS_TRUE='#'
18824
ENABLE_TESTS_FALSE=
18829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18830
$as_echo "no" >&6; }
18833
ENABLE_TESTS_FALSE='#'
18835
ENABLE_TESTS_TRUE='#'
18836
ENABLE_TESTS_FALSE=
18841
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
18842
$as_echo "yes (default)" >&6; }
18845
ENABLE_TESTS_FALSE='#'
18847
ENABLE_TESTS_TRUE='#'
18848
ENABLE_TESTS_FALSE=
18853
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
18855
as_fn_error "Unknown --enable-tests option \"$tests\". Use either \"yes\" or \"no\"." "$LINENO" 5
18859
if [ "x$enable_shared" == "xyes" ]; then
18861
$as_echo "#define TORRENT_BUILDING_SHARED /**/" >>confdefs.h
18863
COMPILETIME_OPTIONS+="-DTORRENT_LINKING_SHARED "
18867
$as_echo "#define BOOST_EXCEPTION_DISABLE /**/" >>confdefs.h
18090
if test -z "$BOOST_PYTHON_LIB"; then :
18091
as_fn_error "Boost.Python library not found. Try using --with-boost-python=lib." "$LINENO" 5
18096
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18097
$as_echo "no" >&6; }
18100
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARG_ENABLE_PYTHON_BINDING" >&5
18101
$as_echo "$ARG_ENABLE_PYTHON_BINDING" >&6; }
18102
as_fn_error "Unknown option \"$ARG_ENABLE_PYTHON_BINDING\". Use either \"yes\" or \"no\"." "$LINENO" 5
18107
$as_echo "Checking for external libraries:"
18109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to link against system zlib" >&5
18110
$as_echo_n "checking whether to link against system zlib... " >&6; }
18111
case "$ARG_WITH_ZLIB" in #(
18114
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18115
$as_echo "yes" >&6; }
18116
ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18117
if test "x$ac_cv_header_zlib_h" = x""yes; then :
18119
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
18120
$as_echo_n "checking for main in -lz... " >&6; }
18121
if test "${ac_cv_lib_z_main+set}" = set; then :
18122
$as_echo_n "(cached) " >&6
18124
ac_check_lib_save_LIBS=$LIBS
18126
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18127
/* end confdefs.h. */
18138
if ac_fn_c_try_link "$LINENO"; then :
18139
ac_cv_lib_z_main=yes
18141
ac_cv_lib_z_main=no
18143
rm -f core conftest.err conftest.$ac_objext \
18144
conftest$ac_exeext conftest.$ac_ext
18145
LIBS=$ac_check_lib_save_LIBS
18147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
18148
$as_echo "$ac_cv_lib_z_main" >&6; }
18149
if test "x$ac_cv_lib_z_main" = x""yes; then :
18150
cat >>confdefs.h <<_ACEOF
18151
#define HAVE_LIBZ 1
18157
as_fn_error "zlib library not found. Try using --without-zlib to link against the shipped copy." "$LINENO" 5
18161
as_fn_error "zlib header not found. Try using --without-zlib to link against the shipped copy." "$LINENO" 5
18168
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18169
$as_echo "no" >&6; }
18170
{ $as_echo "$as_me:${as_lineno-$LINENO}: zlib: linking against shipped zlib." >&5
18171
$as_echo "$as_me: zlib: linking against shipped zlib." >&6;}
18172
#AC_SUBST([ZLIB], ["\$(top_builddir)/zlib/libzlib.la"])
18173
#AC_SUBST([ZLIBINCL], ["-I\$(top_srcdir)/zlib"])
18174
#AC_MSG_NOTICE([zlib= $ZLIB zlibincl= $ZLIBINCL])
18178
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARG_WITH_ZLIB" >&5
18179
$as_echo "$ARG_WITH_ZLIB" >&6; }
18180
as_fn_error "Unknown option \"$ARG_WITH_ZLIB\". Use either \"yes\" or \"no\"." "$LINENO" 5
18184
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIEMAP support" >&5
18185
$as_echo_n "checking for FIEMAP support... " >&6; }
18186
for ac_header in linux/fiemap.h
18188
ac_fn_c_check_header_mongrel "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default"
18189
if test "x$ac_cv_header_linux_fiemap_h" = x""yes; then :
18190
cat >>confdefs.h <<_ACEOF
18191
#define HAVE_LINUX_FIEMAP_H 1
18199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to link against system libgeoip" >&5
18200
$as_echo_n "checking whether to link against system libgeoip... " >&6; } #depends: $ac_arg_enable_geoip
18201
case "$ARG_WITH_LIBGEOIP" in #(
18204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18205
$as_echo "yes" >&6; }
18207
if test "x$ac_arg_enable_geoip" = "xno"; then :
18208
as_fn_error "GeoIP support is disabled with this build configuration. Try using --enable-geoip." "$LINENO" 5
18211
{ $as_echo "$as_me:${as_lineno-$LINENO}: libgeoip: now checking for the libgeoip library..." >&5
18212
$as_echo "$as_me: libgeoip: now checking for the libgeoip library..." >&6;}
18215
ac_geoip_found="no"
18217
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgeoip with pkg-config" >&5
18218
$as_echo_n "checking for libgeoip with pkg-config... " >&6; }
18219
if test -n "$PKG_CONFIG" && \
18220
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"geoip\""; } >&5
18221
($PKG_CONFIG --exists --print-errors "geoip") 2>&5
18223
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18224
test $ac_status = 0; }; then
18226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18227
$as_echo "yes" >&6; }
18230
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEOIP" >&5
18231
$as_echo_n "checking for GEOIP... " >&6; }
18233
if test -n "$GEOIP_CFLAGS"; then
18234
pkg_cv_GEOIP_CFLAGS="$GEOIP_CFLAGS"
18235
elif test -n "$PKG_CONFIG"; then
18236
if test -n "$PKG_CONFIG" && \
18237
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"geoip\""; } >&5
18238
($PKG_CONFIG --exists --print-errors "geoip") 2>&5
18240
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18241
test $ac_status = 0; }; then
18242
pkg_cv_GEOIP_CFLAGS=`$PKG_CONFIG --cflags "geoip" 2>/dev/null`
18249
if test -n "$GEOIP_LIBS"; then
18250
pkg_cv_GEOIP_LIBS="$GEOIP_LIBS"
18251
elif test -n "$PKG_CONFIG"; then
18252
if test -n "$PKG_CONFIG" && \
18253
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"geoip\""; } >&5
18254
($PKG_CONFIG --exists --print-errors "geoip") 2>&5
18256
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18257
test $ac_status = 0; }; then
18258
pkg_cv_GEOIP_LIBS=`$PKG_CONFIG --libs "geoip" 2>/dev/null`
18268
if test $pkg_failed = yes; then
18270
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18271
_pkg_short_errors_supported=yes
18273
_pkg_short_errors_supported=no
18275
if test $_pkg_short_errors_supported = yes; then
18276
GEOIP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "geoip" 2>&1`
18278
GEOIP_PKG_ERRORS=`$PKG_CONFIG --print-errors "geoip" 2>&1`
18280
# Put the nasty error message in config.log where it belongs
18281
echo "$GEOIP_PKG_ERRORS" >&5
18283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18284
$as_echo "no" >&6; }
18286
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config: geoip module not found" >&5
18287
$as_echo "$as_me: WARNING: pkg-config: geoip module not found" >&2;}
18289
elif test $pkg_failed = untried; then
18291
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config: geoip module not found" >&5
18292
$as_echo "$as_me: WARNING: pkg-config: geoip module not found" >&2;}
18295
GEOIP_CFLAGS=$pkg_cv_GEOIP_CFLAGS
18296
GEOIP_LIBS=$pkg_cv_GEOIP_LIBS
18297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18298
$as_echo "yes" >&6; }
18300
ac_geoip_found="yes"
18306
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18307
$as_echo "no" >&6; }
18309
CPPFLAGS_SAVED="$CPPFLAGS"
18310
LDFLAGS_SAVED="$LDFLAGS"
18311
CFLAGS_SAVED="$CFLAGS"
18314
ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
18315
if test "x$ac_cv_header_GeoIP_h" = x""yes; then :
18317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_new in -lGeoIP" >&5
18318
$as_echo_n "checking for GeoIP_new in -lGeoIP... " >&6; }
18319
if test "${ac_cv_lib_GeoIP_GeoIP_new+set}" = set; then :
18320
$as_echo_n "(cached) " >&6
18322
ac_check_lib_save_LIBS=$LIBS
18323
LIBS="-lGeoIP $LIBS"
18324
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325
/* end confdefs.h. */
18327
/* Override any GCC internal prototype to avoid an error.
18328
Use char because int might match the return type of a GCC
18329
builtin and then its argument prototype would still apply. */
18337
return GeoIP_new ();
18342
if ac_fn_c_try_link "$LINENO"; then :
18343
ac_cv_lib_GeoIP_GeoIP_new=yes
18345
ac_cv_lib_GeoIP_GeoIP_new=no
18347
rm -f core conftest.err conftest.$ac_objext \
18348
conftest$ac_exeext conftest.$ac_ext
18349
LIBS=$ac_check_lib_save_LIBS
18351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_new" >&5
18352
$as_echo "$ac_cv_lib_GeoIP_GeoIP_new" >&6; }
18353
if test "x$ac_cv_lib_GeoIP_GeoIP_new" = x""yes; then :
18356
GEOIP_LIBS="-lGeoIP"
18357
ac_geoip_found="yes"
18361
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libgeoip library not found" >&5
18362
$as_echo "$as_me: WARNING: libgeoip library not found" >&2;}
18369
for ac_geoip_path in /usr /usr/local /opt /opt/local; do
18370
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP.h in $ac_geoip_path" >&5
18371
$as_echo_n "checking for GeoIP.h in $ac_geoip_path... " >&6; }
18372
if test -d "$ac_geoip_path/include/" -a -r "$ac_geoip_path/include/GeoIP.h"; then
18373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18374
$as_echo "yes" >&6; }
18375
GEOIP_CFLAGS="-I$ac_geoip_path/include"
18376
GEOIP_LIBS="-lGeoIP"
18379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18380
$as_echo "no" >&6; }
18384
CFLAGS="$GEOIP_CFLAGS $CFLAGS"
18386
LIBS="$GEOIP_LIBS $LIBS"
18389
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_new in -lGeoIP" >&5
18390
$as_echo_n "checking for GeoIP_new in -lGeoIP... " >&6; }
18391
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18392
/* end confdefs.h. */
18398
GeoIP *g = GeoIP_new(GEOIP_STANDARD);
18404
if ac_fn_c_try_link "$LINENO"; then :
18406
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18407
$as_echo "yes" >&6; }
18408
ac_geoip_found="yes"
18412
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18413
$as_echo "no" >&6; }
18416
rm -f core conftest.err conftest.$ac_objext \
18417
conftest$ac_exeext conftest.$ac_ext
18423
CPPFLAGS="$CPPFLAGS_SAVED"
18424
LDFLAGS="$LDFLAGS_SAVED"
18425
CFLAGS="$CFLAGS_SAVED"
18430
if test "x$ac_geoip_found" != xno ; then :
18432
LIBS="$GEOIP_LIBS $LIBS"
18433
CFLAGS="$GEOIP_CFLAGS $CFLAGS"
18437
as_fn_error "GeoIP library not found. Try using --without-libgeoip to link against the shipped copy." "$LINENO" 5
18447
if test "x$ac_arg_enable_geoip" = "xno"; then :
18449
# redundant check: session_impl.hpp just won't check for any
18450
# GeoIP.h, so any value would be ok (ie. this AS_IF could be
18452
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
18453
$as_echo "disabled" >&6; }
18454
ARG_WITH_LIBGEOIP="disabled"
18458
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18459
$as_echo "no" >&6; }
18460
ARG_WITH_LIBGEOIP="no"
18462
$as_echo "#define WITH_SHIPPED_GEOIP_H 1" >>confdefs.h
18464
COMPILETIME_OPTIONS+="-DWITH_SHIPPED_GEOIP_H "
18469
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARG_WITH_LIBGEOIP" >&5
18470
$as_echo "$ARG_WITH_LIBGEOIP" >&6; }
18471
as_fn_error "Unknown option \"$ARG_WITH_LIBGEOIP\". Use either \"yes\" or \"no\"." "$LINENO" 5
18476
###############################################################################
18477
# Setting conditional variables for Makefiles
18478
###############################################################################
18480
if test "x$ARG_ENABLE_DHT" = "xyes" -o "x$ARG_ENABLE_DHT" = "xlogging" ; then
18482
ENABLE_DHT_FALSE='#'
18484
ENABLE_DHT_TRUE='#'
18488
if test "x$ARG_ENABLE_EXAMPLES" = "xyes"; then
18489
ENABLE_EXAMPLES_TRUE=
18490
ENABLE_EXAMPLES_FALSE='#'
18492
ENABLE_EXAMPLES_TRUE='#'
18493
ENABLE_EXAMPLES_FALSE=
18496
if test "x$ARG_ENABLE_TESTS" = "xyes"; then
18498
ENABLE_TESTS_FALSE='#'
18500
ENABLE_TESTS_TRUE='#'
18501
ENABLE_TESTS_FALSE=
18504
if test "x$ARG_ENABLE_PYTHON_BINDING" = "xyes"; then
18505
ENABLE_PYTHON_BINDING_TRUE=
18506
ENABLE_PYTHON_BINDING_FALSE='#'
18508
ENABLE_PYTHON_BINDING_TRUE='#'
18509
ENABLE_PYTHON_BINDING_FALSE=
18513
if test "x$ARG_WITH_ZLIB" = "xno" ; then
18514
WITH_SHIPPED_ZLIB_TRUE=
18515
WITH_SHIPPED_ZLIB_FALSE='#'
18517
WITH_SHIPPED_ZLIB_TRUE='#'
18518
WITH_SHIPPED_ZLIB_FALSE=
18521
if test "x$ARG_WITH_LIBGEOIP" = "xno" ; then
18522
WITH_SHIPPED_GEOIP_TRUE=
18523
WITH_SHIPPED_GEOIP_FALSE='#'
18525
WITH_SHIPPED_GEOIP_TRUE='#'
18526
WITH_SHIPPED_GEOIP_FALSE=
18531
###############################################################################
18532
# Other useful stuff
18533
###############################################################################
18535
# this works around a bug in asio in boost-1.39
18536
# see: https://svn.boost.org/trac/boost/ticket/3095
18538
$as_echo "#define BOOST_ASIO_HASH_MAP_BUCKETS 1021" >>confdefs.h
18540
COMPILETIME_OPTIONS+="-DBOOST_ASIO_HASH_MAP_BUCKETS=1021 "
18543
$as_echo "#define BOOST_EXCEPTION_DISABLE 1" >>confdefs.h
18869
18545
COMPILETIME_OPTIONS+="-DBOOST_EXCEPTION_DISABLE "
18871
# Check whether --enable-debug was given.
18872
if test "${enable_debug+set}" = set; then :
18873
enableval=$enable_debug; case "$enableval" in
18876
$as_echo "#define NDEBUG /**/" >>confdefs.h
18879
# COMPILETIME_OPTIONS+="-DNDEBUG "
18883
COMPILETIME_OPTIONS+="-DTORRENT_DEBUG "
18885
$as_echo "#define TORRENT_DEBUG /**/" >>confdefs.h
18889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
18891
as_fn_error "Unknown --enable-debug option \"$enableval\". Use either \"yes\" or \"no\"." "$LINENO" 5
18897
$as_echo "#define NDEBUG /**/" >>confdefs.h
18899
# COMPILETIME_OPTIONS+="-DNDEBUG "
18908
ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile zlib/Makefile examples/Makefile test/Makefile bindings/python/Makefile bindings/python/setup.py libtorrent-rasterbar.pc"
18548
if test "x$PYTHON_INSTALL_PARAMS" = "x"; then :
18549
PYTHON_INSTALL_PARAMS='--prefix=$(DESTDIR)$(prefix)'
18552
if test "x$enable_shared" = "xyes"; then :
18554
$as_echo "#define TORRENT_BUILDING_SHARED 1" >>confdefs.h
18556
COMPILETIME_OPTIONS+="-DTORRENT_LINKING_SHARED "
18564
# Try to guess real svn revision if any, fallback to hardcoded otherwise
18565
SVN_REVISION=`svn info 2>/dev/null | sed -n -e '/^URL\:.*libtorrent.svn.sourceforge.net/,$!d;s,^Revision\: \([0-9]*\)$,\1,p'`
18566
if test -z "$SVN_REVISION"; then :
18567
SVN_REVISION=`sed -n -e 's/^#define LIBTORRENT_REVISION \"\$Rev\: \([0-9]*\) \$\" $/\1/p' include/libtorrent/version.hpp`
18571
###############################################################################
18572
# Generating Makefiles
18573
###############################################################################
18576
$as_echo "Generating Makefiles:"
18578
ac_config_files="$ac_config_files Makefile src/Makefile include/libtorrent/Makefile examples/Makefile test/Makefile zlib/Makefile bindings/Makefile bindings/python/Makefile bindings/python/setup.py libtorrent-rasterbar.pc libtorrent-rasterbar-cmake.pc"
18910
18581
cat >confcache <<\_ACEOF
18911
18582
# This file is a shell script that caches the results of configure