~ubuntu-branches/ubuntu/maverick/libtorrent-rasterbar/maverick

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Sauthier
  • Date: 2010-08-10 12:59:37 UTC
  • mfrom: (1.3.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100810125937-jbcmmf17y8yo9hgz
Tags: 0.15.0-0ubuntu1
* New upstream version.
* debian/patches/100_fix_html_docs.patch: refreshed.
* debian/control: bump up standards-version to 3.9.1 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.65 for libtorrent-rasterbar 0.14.10.
 
3
# Generated by GNU Autoconf 2.65 for libtorrent-rasterbar 0.15.0.
4
4
#
5
5
# Report bugs to <arvid@cs.umu.se>.
6
6
#
701
701
# Identity of this package.
702
702
PACKAGE_NAME='libtorrent-rasterbar'
703
703
PACKAGE_TARNAME='libtorrent-rasterbar'
704
 
PACKAGE_VERSION='0.14.10'
705
 
PACKAGE_STRING='libtorrent-rasterbar 0.14.10'
 
704
PACKAGE_VERSION='0.15.0'
 
705
PACKAGE_STRING='libtorrent-rasterbar 0.15.0'
706
706
PACKAGE_BUGREPORT='arvid@cs.umu.se'
707
 
PACKAGE_URL=''
 
707
PACKAGE_URL='http://www.libtorrent.org'
708
708
 
709
709
ac_unique_file="src/torrent.cpp"
710
710
# Factoring default headers for most tests.
749
749
LIBOBJS
750
750
COMPILETIME_OPTIONS
751
751
DEBUGFLAGS
 
752
PYTHON_INSTALL_PARAMS
 
753
WITH_SHIPPED_GEOIP_FALSE
 
754
WITH_SHIPPED_GEOIP_TRUE
 
755
WITH_SHIPPED_ZLIB_FALSE
 
756
WITH_SHIPPED_ZLIB_TRUE
 
757
ENABLE_PYTHON_BINDING_FALSE
 
758
ENABLE_PYTHON_BINDING_TRUE
752
759
ENABLE_TESTS_FALSE
753
760
ENABLE_TESTS_TRUE
754
761
ENABLE_EXAMPLES_FALSE
755
762
ENABLE_EXAMPLES_TRUE
756
 
PYTHON_INSTALL_PARAMS
757
 
ENABLE_PYTHON_BINDING_FALSE
758
 
ENABLE_PYTHON_BINDING_TRUE
 
763
ENABLE_DHT_FALSE
 
764
ENABLE_DHT_TRUE
 
765
GEOIP_LIBS
 
766
GEOIP_CFLAGS
759
767
BOOST_PYTHON_LIB
760
 
PYTHON_LIB
761
 
PYTHON_INCLUDE_DIR
 
768
PYTHON_EXTRA_LDFLAGS
 
769
PYTHON_EXTRA_LIBS
 
770
PYTHON_SITE_PKG
 
771
PYTHON_LDFLAGS
 
772
PYTHON_CPPFLAGS
762
773
pkgpyexecdir
763
774
pyexecdir
764
775
pkgpythondir
768
779
PYTHON_PREFIX
769
780
PYTHON_VERSION
770
781
PYTHON
771
 
WITH_SHIPPED_GEOIP_FALSE
772
 
WITH_SHIPPED_GEOIP_TRUE
773
 
GEOIP_LIBS
774
 
GEOIP_CFLAGS
 
782
OPENSSL_LDFLAGS
 
783
OPENSSL_LIBS
 
784
OPENSSL_INCLUDES
775
785
PKG_CONFIG
776
 
ZLIBINCL
777
 
ZLIB
778
 
ENABLE_SHIPPED_ZLIB_FALSE
779
 
ENABLE_SHIPPED_ZLIB_TRUE
780
 
USE_ENCRYPTION_FALSE
781
 
USE_ENCRYPTION_TRUE
782
 
HAVE_SSL
783
 
SSL_LDFLAGS
784
 
SSL_LIBS
785
 
SSL_CXXFLAGS
786
 
SSL_CFLAGS
787
 
USE_DHT_FALSE
788
 
USE_DHT_TRUE
789
 
CLIENT_TEST_BIN
790
 
BOOST_PROGRAM_OPTIONS_LIB
791
 
BOOST_REGEX_LIB
792
786
BOOST_THREAD_LIB
793
787
BOOST_FILESYSTEM_LIB
794
 
BOOST_ASIO_LIB
795
788
BOOST_SYSTEM_LIB
 
789
BOOST_VERSION
796
790
BOOST_LDFLAGS
797
791
BOOST_CPPFLAGS
798
 
ENABLE_SHIPPED_ASIO_FALSE
799
 
ENABLE_SHIPPED_ASIO_TRUE
800
792
PTHREAD_CFLAGS
801
793
PTHREAD_LIBS
802
794
PTHREAD_CC
803
 
acx_pthread_config
804
 
CXXCPP
 
795
ax_pthread_config
805
796
OTOOL64
806
797
OTOOL
807
798
LIPO
820
811
EGREP
821
812
GREP
822
813
SED
823
 
host_os
824
 
host_vendor
825
 
host_cpu
826
 
host
827
 
build_os
828
 
build_vendor
829
 
build_cpu
830
 
build
831
814
LIBTOOL
832
815
am__fastdepCXX_FALSE
833
816
am__fastdepCXX_TRUE
834
817
CXXDEPMODE
835
 
ac_ct_CXX
836
 
CXXFLAGS
837
 
CXX
838
 
CPP
839
818
am__fastdepCC_FALSE
840
819
am__fastdepCC_TRUE
841
820
CCDEPMODE
845
824
am__quote
846
825
am__include
847
826
DEPDIR
848
 
OBJEXT
849
 
EXEEXT
850
 
ac_ct_CC
851
 
CPPFLAGS
852
 
LDFLAGS
853
 
CFLAGS
854
 
CC
855
 
INTERFACE_VERSION_INFO
856
827
am__untar
857
828
am__tar
858
829
AMTAR
876
847
INSTALL_DATA
877
848
INSTALL_SCRIPT
878
849
INSTALL_PROGRAM
 
850
target_os
 
851
target_vendor
 
852
target_cpu
 
853
target
 
854
host_os
 
855
host_vendor
 
856
host_cpu
 
857
host
 
858
build_os
 
859
build_vendor
 
860
build_cpu
 
861
build
 
862
CXXCPP
 
863
ac_ct_CXX
 
864
CXXFLAGS
 
865
CXX
 
866
CPP
 
867
OBJEXT
 
868
EXEEXT
 
869
ac_ct_CC
 
870
CPPFLAGS
 
871
LDFLAGS
 
872
CFLAGS
 
873
CC
 
874
INTERFACE_VERSION_INFO
 
875
AM_BACKSLASH
 
876
AM_DEFAULT_VERBOSITY
879
877
target_alias
880
878
host_alias
881
879
build_alias
917
915
ac_subst_files=''
918
916
ac_user_opts='
919
917
enable_option_checking
 
918
enable_silent_rules
920
919
enable_dependency_tracking
921
920
enable_shared
922
921
enable_static
924
923
enable_fast_install
925
924
with_gnu_ld
926
925
enable_libtool_lock
927
 
enable_largefile
928
926
with_boost
929
927
with_boost_libdir
930
 
with_asio
931
928
with_boost_system
932
 
with_boost_asio
933
929
with_boost_filesystem
934
930
with_boost_thread
935
 
with_boost_regex
936
 
with_boost_program_options
937
 
with_logging
938
 
with_dht
939
 
with_encryption
940
 
with_ssl
 
931
enable_largefile
 
932
enable_logging
 
933
enable_debug
 
934
enable_dht
 
935
enable_encryption
 
936
enable_pool_allocators
 
937
enable_invariant_checks
 
938
enable_deprecated_functions
 
939
enable_statistics
 
940
enable_disk_stats
 
941
enable_geoip
 
942
enable_examples
 
943
enable_tests
 
944
enable_python_binding
941
945
with_zlib
942
 
enable_geoip
943
946
with_libgeoip
944
 
enable_python_binding
 
947
with_openssl
945
948
with_boost_python
946
 
enable_examples
947
 
enable_tests
948
 
enable_debug
949
949
'
950
950
      ac_precious_vars='build_alias
951
951
host_alias
961
961
CCC
962
962
CXXCPP
963
963
PKG_CONFIG
 
964
PYTHON_VERSION
964
965
GEOIP_CFLAGS
965
 
GEOIP_LIBS'
 
966
GEOIP_LIBS
 
967
PYTHON_INSTALL_PARAMS'
966
968
 
967
969
 
968
970
# Initialize some variables set by options.
1504
1506
  # Omit some internal or obsolete options to make the list less imposing.
1505
1507
  # This message is too long to be a string in the A/UX 3.1 sh.
1506
1508
  cat <<_ACEOF
1507
 
\`configure' configures libtorrent-rasterbar 0.14.10 to adapt to many kinds of systems.
 
1509
\`configure' configures libtorrent-rasterbar 0.15.0 to adapt to many kinds of systems.
1508
1510
 
1509
1511
Usage: $0 [OPTION]... [VAR=VALUE]...
1510
1512
 
1570
1572
System types:
1571
1573
  --build=BUILD     configure for building on BUILD [guessed]
1572
1574
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1575
  --target=TARGET   configure for building compilers for TARGET [HOST]
1573
1576
_ACEOF
1574
1577
fi
1575
1578
 
1576
1579
if test -n "$ac_init_help"; then
1577
1580
  case $ac_init_help in
1578
 
     short | recursive ) echo "Configuration of libtorrent-rasterbar 0.14.10:";;
 
1581
     short | recursive ) echo "Configuration of libtorrent-rasterbar 0.15.0:";;
1579
1582
   esac
1580
1583
  cat <<\_ACEOF
1581
1584
 
1583
1586
  --disable-option-checking  ignore unrecognized --enable/--with options
1584
1587
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1585
1588
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1589
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1590
  --disable-silent-rules         verbose build output (undo: `make V=0')
1586
1591
  --disable-dependency-tracking  speeds up one-time build
1587
1592
  --enable-dependency-tracking   do not reject slow dependency extractors
1588
1593
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1591
1596
                          optimize for fast installation [default=yes]
1592
1597
  --disable-libtool-lock  avoid locking (might break parallel builds)
1593
1598
  --disable-largefile     omit support for large files
 
1599
  --enable-logging        enable logging to disk (use value "verbose" to
 
1600
                          enable verbose peer wire logging or "errors" limit
 
1601
                          logging to errors ) [default=no]
 
1602
  --enable-debug          enable debug build [default=no]
 
1603
  --disable-dht           disable dht support (use value "logging" to add
 
1604
                          extra logging) [default=yes]
 
1605
  --disable-encryption    disable encryption support (requires OpenSSL to be
 
1606
                          installed on your system, you can use --with-openssl
 
1607
                          to set the path) [default=yes]
 
1608
  --disable-pool-allocators
 
1609
                          disable pool allocators for send buffers
 
1610
                          [default=yes]
 
1611
  --enable-invariant-checks
 
1612
                          enable invariant checks (use value "full" to turn on
 
1613
                          extra expensive invariant checks) [default=yes if
 
1614
                          debug is enabled, no otherwhise]
 
1615
  --disable-deprecated-functions
 
1616
                          disable deprecated functions from the API
 
1617
                          [default=yes]
 
1618
  --enable-statistics     enable statistics logging feature [default=no]
 
1619
  --enable-disk-stats     enable disk activity logging feature [default=no]
1594
1620
  --disable-geoip         disable geoip support (if enabled, you can use
1595
1621
                          --with-libgeoip to choose whether to link against
1596
1622
                          shipped or system library) [default=yes]
1597
 
  --enable-python-binding Build python binding. Default is to not build them.
1598
 
  --enable-examples       Build the examples. Default is not to build them.
1599
 
  --enable-tests          Build test files. Default is not to build them.
1600
 
  --enable-debug          Set compiler flags for debug symbols, default is no
1601
 
                          debugging.
 
1623
  --enable-examples       build example files [default=no]
 
1624
  --enable-tests          build test files [default=no]
 
1625
  --enable-python-binding build python bindings [default=no]
1602
1626
 
1603
1627
Optional Packages:
1604
1628
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1614
1638
                          this parameter only if default library detection
1615
1639
                          fails and you know exactly where your boost
1616
1640
                          libraries are located.
1617
 
  --with-asio=shipped|system|your_path
1618
 
                          Specify the Asio library to use, shipped or system.
1619
 
                          Default is to use shipped library. You can also
1620
 
                          specify a path for your system.
1621
1641
  --with-boost-system[=special-lib]
1622
1642
                          use the System library from boost - it is possible
1623
1643
                          to specify a certain library for the linker e.g.
1624
1644
                          --with-boost-system=boost_system-gcc-mt
1625
 
  --with-boost-asio[=special-lib]
1626
 
                          use the ASIO library from boost - it is possible to
1627
 
                          specify a certain library for the linker e.g.
1628
 
                          --with-boost-asio=boost_system-gcc41-mt-1_34
1629
1645
  --with-boost-filesystem[=special-lib]
1630
1646
                          use the Filesystem library from boost - it is
1631
1647
                          possible to specify a certain library for the linker
1634
1650
                          use the Thread library from boost - it is possible
1635
1651
                          to specify a certain library for the linker e.g.
1636
1652
                          --with-boost-thread=boost_thread-gcc-mt
1637
 
  --with-boost-regex[=special-lib]
1638
 
                          use the Regex library from boost - it is possible to
1639
 
                          specify a certain library for the linker e.g.
1640
 
                          --with-boost-regex=boost_regex-gcc-mt-d-1_33_1
1641
 
  --with-boost-program-options[=special-lib]
1642
 
                          use the program options library from boost - it is
1643
 
                          possible to specify a certain library for the linker
1644
 
                          e.g.
1645
 
                          --with-boost-program-options=boost_program_options-gcc-mt-1_33_1
1646
 
  --with-logging=none|default|verbose
1647
 
                          Specify how much logging to use. Default is none.
1648
 
  --with-dht=on|off|logging
1649
 
                          Specify how to use DHT support. Option logging will
1650
 
                          add extra logging. Default is on.
1651
 
  --with-encryption=on|off
1652
 
                          Specify how to use encryption support. Default is
1653
 
                          on.
1654
 
  --with-ssl enable ssl will check /usr/local/ssl
1655
 
                            /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr
1656
 
 
1657
 
  --with-zlib=shipped|system
1658
 
                          Specify the zlib to use, shipped or system. Default
1659
 
                          is to autodetect system and fallback to shipped.
 
1653
  --without-zlib          disable linking against system zlib [default=system]
1660
1654
  --with-libgeoip         enable linking against system libgeoip
1661
1655
                          [default=shipped]
 
1656
  --with-openssl[=DIR]    specify root directory for OpenSSL library
1662
1657
  --with-boost-python     specify the boost python library or suffix to use
1663
1658
 
1664
1659
Some influential environment variables:
1674
1669
  CXXFLAGS    C++ compiler flags
1675
1670
  CXXCPP      C++ preprocessor
1676
1671
  PKG_CONFIG  path to pkg-config utility
 
1672
  PYTHON_VERSION
 
1673
              The installed Python version to use, for example '2.3'. This
 
1674
              string will be appended to the Python interpreter canonical
 
1675
              name.
1677
1676
  GEOIP_CFLAGS
1678
1677
              C compiler flags for GEOIP, overriding pkg-config
1679
1678
  GEOIP_LIBS  linker flags for GEOIP, overriding pkg-config
 
1679
  PYTHON_INSTALL_PARAMS
 
1680
              Set specific install parameters for python bindings.
1680
1681
 
1681
1682
Use these variables to override the choices made by `configure' or to help
1682
1683
it to find libraries and programs with nonstandard names/locations.
1683
1684
 
1684
1685
Report bugs to <arvid@cs.umu.se>.
 
1686
libtorrent-rasterbar home page: <http://www.libtorrent.org>.
1685
1687
_ACEOF
1686
1688
ac_status=$?
1687
1689
fi
1744
1746
test -n "$ac_init_help" && exit $ac_status
1745
1747
if $ac_init_version; then
1746
1748
  cat <<\_ACEOF
1747
 
libtorrent-rasterbar configure 0.14.10
 
1749
libtorrent-rasterbar configure 0.15.0
1748
1750
generated by GNU Autoconf 2.65
1749
1751
 
1750
1752
Copyright (C) 2009 Free Software Foundation, Inc.
1871
1873
 
1872
1874
} # ac_fn_cxx_try_compile
1873
1875
 
 
1876
# ac_fn_cxx_try_cpp LINENO
 
1877
# ------------------------
 
1878
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1879
ac_fn_cxx_try_cpp ()
 
1880
{
 
1881
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1882
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1883
case "(($ac_try" in
 
1884
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1885
  *) ac_try_echo=$ac_try;;
 
1886
esac
 
1887
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1888
$as_echo "$ac_try_echo"; } >&5
 
1889
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1890
  ac_status=$?
 
1891
  if test -s conftest.err; then
 
1892
    grep -v '^ *+' conftest.err >conftest.er1
 
1893
    cat conftest.er1 >&5
 
1894
    mv -f conftest.er1 conftest.err
 
1895
  fi
 
1896
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1897
  test $ac_status = 0; } >/dev/null && {
 
1898
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
1899
         test ! -s conftest.err
 
1900
       }; then :
 
1901
  ac_retval=0
 
1902
else
 
1903
  $as_echo "$as_me: failed program was:" >&5
 
1904
sed 's/^/| /' conftest.$ac_ext >&5
 
1905
 
 
1906
    ac_retval=1
 
1907
fi
 
1908
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1909
  as_fn_set_status $ac_retval
 
1910
 
 
1911
} # ac_fn_cxx_try_cpp
 
1912
 
1874
1913
# ac_fn_c_try_link LINENO
1875
1914
# -----------------------
1876
1915
# Try to link conftest.$ac_ext, and return whether this succeeded.
2057
2096
 
2058
2097
} # ac_fn_c_check_func
2059
2098
 
2060
 
# ac_fn_cxx_try_cpp LINENO
2061
 
# ------------------------
2062
 
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2063
 
ac_fn_cxx_try_cpp ()
2064
 
{
2065
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066
 
  if { { ac_try="$ac_cpp conftest.$ac_ext"
2067
 
case "(($ac_try" in
2068
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069
 
  *) ac_try_echo=$ac_try;;
2070
 
esac
2071
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072
 
$as_echo "$ac_try_echo"; } >&5
2073
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2074
 
  ac_status=$?
2075
 
  if test -s conftest.err; then
2076
 
    grep -v '^ *+' conftest.err >conftest.er1
2077
 
    cat conftest.er1 >&5
2078
 
    mv -f conftest.er1 conftest.err
2079
 
  fi
2080
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081
 
  test $ac_status = 0; } >/dev/null && {
2082
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2083
 
         test ! -s conftest.err
2084
 
       }; then :
2085
 
  ac_retval=0
2086
 
else
2087
 
  $as_echo "$as_me: failed program was:" >&5
2088
 
sed 's/^/| /' conftest.$ac_ext >&5
2089
 
 
2090
 
    ac_retval=1
2091
 
fi
2092
 
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2093
 
  as_fn_set_status $ac_retval
2094
 
 
2095
 
} # ac_fn_cxx_try_cpp
2096
 
 
2097
2099
# ac_fn_cxx_try_link LINENO
2098
2100
# -------------------------
2099
2101
# Try to link conftest.$ac_ext, and return whether this succeeded.
2236
2238
This file contains any messages produced by compilers while
2237
2239
running configure, to aid debugging if configure makes a mistake.
2238
2240
 
2239
 
It was created by libtorrent-rasterbar $as_me 0.14.10, which was
 
2241
It was created by libtorrent-rasterbar $as_me 0.15.0, which was
2240
2242
generated by GNU Autoconf 2.65.  Invocation command line was
2241
2243
 
2242
2244
  $ $0 $@
2583
2585
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2584
2586
 
2585
2587
 
2586
 
am__api_version='1.11'
2587
2588
 
2588
2589
ac_aux_dir=
2589
 
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2590
for ac_dir in build-aux "$srcdir"/build-aux; do
2590
2591
  for ac_t in install-sh install.sh shtool; do
2591
2592
    if test -f "$ac_dir/$ac_t"; then
2592
2593
      ac_aux_dir=$ac_dir
2596
2597
  done
2597
2598
done
2598
2599
if test -z "$ac_aux_dir"; then
2599
 
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 
2600
  as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2600
2601
fi
2601
2602
 
2602
2603
# These three variables are undocumented and unsupported,
2608
2609
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2609
2610
 
2610
2611
 
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
2617
 
# AIX /bin/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
2630
 
else
2631
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632
 
for as_dir in $PATH
2633
 
do
2634
 
  IFS=$as_save_IFS
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[\\/]* | \
2641
 
  /usr/ucb/* ) ;;
2642
 
  *)
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
2645
 
    # by default.
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.
2652
 
            :
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.
2656
 
            :
2657
 
          else
2658
 
            rm -rf conftest.one conftest.two conftest.dir
2659
 
            echo one > conftest.one
2660
 
            echo two > conftest.two
2661
 
            mkdir conftest.dir
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
2666
 
            then
2667
 
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2668
 
              break 3
2669
 
            fi
2670
 
          fi
2671
 
        fi
2672
 
      done
2673
 
    done
2674
 
    ;;
2675
 
esac
2676
 
 
2677
 
  done
2678
 
IFS=$as_save_IFS
2679
 
 
2680
 
rm -rf conftest.one conftest.two conftest.dir
2681
 
 
2682
 
fi
2683
 
  if test "${ac_cv_path_install+set}" = set; then
2684
 
    INSTALL=$ac_cv_path_install
2685
 
  else
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
2691
 
  fi
2692
 
fi
2693
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2694
 
$as_echo "$INSTALL" >&6; }
2695
 
 
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}'
2699
 
 
2700
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2701
 
 
2702
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2703
 
 
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; }
2706
 
# Just in case
2707
 
sleep 1
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.
2711
 
am_lf='
2712
 
'
2713
 
case `pwd` in
2714
 
  *[\\\"\#\$\&\'\`$am_lf]*)
2715
 
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2716
 
esac
2717
 
case $srcdir in
2718
 
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2719
 
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2720
 
esac
2721
 
 
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
2726
 
# directory).
2727
 
if (
2728
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2729
 
   if test "$*" = "X"; then
2730
 
      # -L didn't work.
2731
 
      set X `ls -t "$srcdir/configure" conftest.file`
2732
 
   fi
2733
 
   rm -f conftest.file
2734
 
   if test "$*" != "X $srcdir/configure conftest.file" \
2735
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
2736
 
 
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
2743
 
   fi
2744
 
 
2745
 
   test "$2" = conftest.file
2746
 
   )
2747
 
then
2748
 
   # Ok.
2749
 
   :
2750
 
else
2751
 
   as_fn_error "newly created file is older than distributed files!
2752
 
Check your system clock" "$LINENO" 5
2753
 
fi
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"`
2765
 
 
2766
 
# expand $ac_aux_dir to an absolute path
2767
 
am_aux_dir=`cd $ac_aux_dir && pwd`
2768
 
 
2769
 
if test x"${MISSING+set}" != xset; then
2770
 
  case $am_aux_dir in
2771
 
  *\ * | *\     *)
2772
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2773
 
  *)
2774
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2775
 
  esac
2776
 
fi
2777
 
# Use eval to expand $SHELL
2778
 
if eval "$MISSING --run true"; then
2779
 
  am_missing_run="$MISSING --run "
2780
 
else
2781
 
  am_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;}
2784
 
fi
2785
 
 
2786
 
if test x"${install_sh}" != xset; then
2787
 
  case $am_aux_dir in
2788
 
  *\ * | *\     *)
2789
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2790
 
  *)
2791
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2792
 
  esac
2793
 
fi
2794
 
 
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
2807
 
else
2808
 
  if test -n "$STRIP"; then
2809
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2810
 
else
2811
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812
 
for as_dir in $PATH
2813
 
do
2814
 
  IFS=$as_save_IFS
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
2820
 
    break 2
2821
 
  fi
2822
 
done
2823
 
  done
2824
 
IFS=$as_save_IFS
2825
 
 
2826
 
fi
2827
 
fi
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; }
2832
 
else
2833
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834
 
$as_echo "no" >&6; }
2835
 
fi
2836
 
 
2837
 
 
2838
 
fi
2839
 
if test -z "$ac_cv_prog_STRIP"; then
2840
 
  ac_ct_STRIP=$STRIP
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
2847
 
else
2848
 
  if test -n "$ac_ct_STRIP"; then
2849
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2850
 
else
2851
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852
 
for as_dir in $PATH
2853
 
do
2854
 
  IFS=$as_save_IFS
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
2860
 
    break 2
2861
 
  fi
2862
 
done
2863
 
  done
2864
 
IFS=$as_save_IFS
2865
 
 
2866
 
fi
2867
 
fi
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; }
2872
 
else
2873
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874
 
$as_echo "no" >&6; }
2875
 
fi
2876
 
 
2877
 
  if test "x$ac_ct_STRIP" = x; then
2878
 
    STRIP=":"
2879
 
  else
2880
 
    case $cross_compiling:$ac_tool_warned in
2881
 
yes:)
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 ;;
2885
 
esac
2886
 
    STRIP=$ac_ct_STRIP
2887
 
  fi
2888
 
else
2889
 
  STRIP="$ac_cv_prog_STRIP"
2890
 
fi
2891
 
 
2892
 
fi
2893
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2894
 
 
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
2900
 
else
2901
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902
 
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2903
 
do
2904
 
  IFS=$as_save_IFS
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
2914
 
               break 3;;
2915
 
           esac
2916
 
         done
2917
 
       done
2918
 
  done
2919
 
IFS=$as_save_IFS
2920
 
 
2921
 
fi
2922
 
 
2923
 
  test -d ./--version && rmdir ./--version
2924
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2925
 
    MKDIR_P="$ac_cv_path_mkdir -p"
2926
 
  else
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"
2932
 
  fi
2933
 
fi
2934
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2935
 
$as_echo "$MKDIR_P" >&6; }
2936
 
 
2937
 
mkdir_p="$MKDIR_P"
2938
 
case $mkdir_p in
2939
 
  [\\/$]* | ?:[\\/]*) ;;
2940
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2941
 
esac
2942
 
 
2943
 
for ac_prog in gawk mawk nawk awk
2944
 
do
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
2951
 
else
2952
 
  if test -n "$AWK"; then
2953
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2954
 
else
2955
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956
 
for as_dir in $PATH
2957
 
do
2958
 
  IFS=$as_save_IFS
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
2964
 
    break 2
2965
 
  fi
2966
 
done
2967
 
  done
2968
 
IFS=$as_save_IFS
2969
 
 
2970
 
fi
2971
 
fi
2972
 
AWK=$ac_cv_prog_AWK
2973
 
if test -n "$AWK"; then
2974
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2975
 
$as_echo "$AWK" >&6; }
2976
 
else
2977
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978
 
$as_echo "no" >&6; }
2979
 
fi
2980
 
 
2981
 
 
2982
 
  test -n "$AWK" && break
2983
 
done
2984
 
 
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; }
2987
 
set x ${MAKE-make}
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
2991
 
else
2992
 
  cat >conftest.make <<\_ACEOF
2993
 
SHELL = /bin/sh
2994
 
all:
2995
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2996
 
_ACEOF
2997
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2998
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2999
 
  *@@@%%%=?*=@@@%%%*)
3000
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3001
 
  *)
3002
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
3003
 
esac
3004
 
rm -f conftest.make
3005
 
fi
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; }
3009
 
  SET_MAKE=
3010
 
else
3011
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012
 
$as_echo "no" >&6; }
3013
 
  SET_MAKE="MAKE=${MAKE-make}"
3014
 
fi
3015
 
 
3016
 
rm -rf .tst 2>/dev/null
3017
 
mkdir .tst 2>/dev/null
3018
 
if test -d .tst; then
3019
 
  am__leading_dot=.
3020
 
else
3021
 
  am__leading_dot=_
3022
 
fi
3023
 
rmdir .tst 2>/dev/null
3024
 
 
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
3032
 
  fi
3033
 
fi
3034
 
 
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'
3039
 
  else
3040
 
    CYGPATH_W=echo
3041
 
  fi
3042
 
fi
3043
 
 
3044
 
 
3045
 
# Define the identity of the package.
3046
 
 PACKAGE='libtorrent-rasterbar'
3047
 
 VERSION='0.14.10'
3048
 
 
3049
 
 
3050
 
cat >>confdefs.h <<_ACEOF
3051
 
#define PACKAGE "$PACKAGE"
3052
 
_ACEOF
3053
 
 
3054
 
 
3055
 
cat >>confdefs.h <<_ACEOF
3056
 
#define VERSION "$VERSION"
3057
 
_ACEOF
3058
 
 
3059
 
# Some tools Automake needs.
3060
 
 
3061
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3062
 
 
3063
 
 
3064
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3065
 
 
3066
 
 
3067
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3068
 
 
3069
 
 
3070
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3071
 
 
3072
 
 
3073
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3074
 
 
3075
 
# We need awk for the "check" target.  The system "awk" is bad on
3076
 
# some platforms.
3077
 
# Always define AMTAR for backward compatibility.
3078
 
 
3079
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
3080
 
 
3081
 
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3082
 
 
3083
 
 
3084
 
 
3085
 
 
3086
 
 
3087
 
 
3088
 
 
3089
 
 
3090
 
VERSION_INFO_CURRENT=5
3091
 
VERSION_INFO_REVISION=0
3092
 
VERSION_INFO_AGE=0
3093
 
INTERFACE_VERSION_INFO=$VERSION_INFO_CURRENT:$VERSION_INFO_REVISION:$VERSION_INFO_AGE
3094
 
 
3095
 
 
3096
 
 
3097
 
 
 
2612
 
 
2613
 
 
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;
 
2618
fi
 
2619
 
 
2620
case $enable_silent_rules in
 
2621
yes) AM_DEFAULT_VERBOSITY=0;;
 
2622
no)  AM_DEFAULT_VERBOSITY=1;;
 
2623
*)   AM_DEFAULT_VERBOSITY=0;;
 
2624
esac
 
2625
AM_BACKSLASH='\'
 
2626
 
 
2627
 
 
2628
 
 
2629
###############################################################################
 
2630
 
 
2631
 
 
2632
 
 
2633
 
 
2634
INTERFACE_VERSION_INFO=6:0:0
 
2635
 
 
2636
###############################################################################
 
2637
 
 
2638
 
 
2639
###############################################################################
 
2640
# Start
 
2641
###############################################################################
 
2642
 
 
2643
$as_echo
 
2644
$as_echo  "Building $PACKAGE_STRING"
 
2645
 
 
2646
 
 
2647
###############################################################################
 
2648
# Performing some basic checks and initializing the build system
 
2649
###############################################################################
 
2650
 
 
2651
$as_echo
 
2652
$as_echo  "Checking for a C/C++ compiler to use:"
3098
2653
ac_ext=c
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
 
3443
 
 
3444
ac_ext=c
 
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
 
3453
  CPP=
 
3454
fi
 
3455
if test -z "$CPP"; then
 
3456
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
3457
  $as_echo_n "(cached) " >&6
 
3458
else
 
3459
      # Double quotes because CPP needs to be expanded
 
3460
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3461
    do
 
3462
      ac_preproc_ok=false
 
3463
for ac_c_preproc_warn_flag in '' yes
 
3464
do
 
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.  */
 
3473
#ifdef __STDC__
 
3474
# include <limits.h>
 
3475
#else
 
3476
# include <assert.h>
 
3477
#endif
 
3478
                     Syntax error
 
3479
_ACEOF
 
3480
if ac_fn_c_try_cpp "$LINENO"; then :
 
3481
 
 
3482
else
 
3483
  # Broken: fails on valid input.
 
3484
continue
 
3485
fi
 
3486
rm -f conftest.err conftest.$ac_ext
 
3487
 
 
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>
 
3493
_ACEOF
 
3494
if ac_fn_c_try_cpp "$LINENO"; then :
 
3495
  # Broken: success on invalid input.
 
3496
continue
 
3497
else
 
3498
  # Passes both tests.
 
3499
ac_preproc_ok=:
 
3500
break
 
3501
fi
 
3502
rm -f conftest.err conftest.$ac_ext
 
3503
 
 
3504
done
 
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 :
 
3508
  break
 
3509
fi
 
3510
 
 
3511
    done
 
3512
    ac_cv_prog_CPP=$CPP
 
3513
 
 
3514
fi
 
3515
  CPP=$ac_cv_prog_CPP
 
3516
else
 
3517
  ac_cv_prog_CPP=$CPP
 
3518
fi
 
3519
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
3520
$as_echo "$CPP" >&6; }
 
3521
ac_preproc_ok=false
 
3522
for ac_c_preproc_warn_flag in '' yes
 
3523
do
 
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.  */
 
3532
#ifdef __STDC__
 
3533
# include <limits.h>
 
3534
#else
 
3535
# include <assert.h>
 
3536
#endif
 
3537
                     Syntax error
 
3538
_ACEOF
 
3539
if ac_fn_c_try_cpp "$LINENO"; then :
 
3540
 
 
3541
else
 
3542
  # Broken: fails on valid input.
 
3543
continue
 
3544
fi
 
3545
rm -f conftest.err conftest.$ac_ext
 
3546
 
 
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>
 
3552
_ACEOF
 
3553
if ac_fn_c_try_cpp "$LINENO"; then :
 
3554
  # Broken: success on invalid input.
 
3555
continue
 
3556
else
 
3557
  # Passes both tests.
 
3558
ac_preproc_ok=:
 
3559
break
 
3560
fi
 
3561
rm -f conftest.err conftest.$ac_ext
 
3562
 
 
3563
done
 
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 :
 
3567
 
 
3568
else
 
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; }
 
3573
fi
 
3574
 
 
3575
ac_ext=c
 
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
 
3580
 
 
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; }
 
3584
else
 
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; }
 
3587
fi
 
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
 
3592
else
 
3593
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3594
/* end confdefs.h.  */
 
3595
 
 
3596
int
 
3597
main ()
 
3598
{
 
3599
 
 
3600
  ;
 
3601
  return 0;
 
3602
}
 
3603
_ACEOF
 
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'
 
3608
rm -f conftest2.*
 
3609
if { { case "(($ac_try" in
 
3610
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3611
  *) ac_try_echo=$ac_try;;
 
3612
esac
 
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
 
3616
  ac_status=$?
 
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;;
 
3622
esac
 
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
 
3626
  ac_status=$?
 
3627
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3628
  test $ac_status = 0; };
 
3629
then
 
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;;
 
3637
esac
 
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
 
3641
  ac_status=$?
 
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'
 
3645
      rm -f conftest2.*
 
3646
      if { { case "(($ac_try" in
 
3647
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3648
  *) ac_try_echo=$ac_try;;
 
3649
esac
 
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
 
3653
  ac_status=$?
 
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;;
 
3659
esac
 
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
 
3663
  ac_status=$?
 
3664
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3665
  test $ac_status = 0; };
 
3666
      then
 
3667
        # cc works too.
 
3668
        :
 
3669
      else
 
3670
        # cc exists but doesn't like -o.
 
3671
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
3672
      fi
 
3673
    fi
 
3674
  fi
 
3675
else
 
3676
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
3677
fi
 
3678
rm -f core conftest*
 
3679
 
 
3680
fi
 
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; }
 
3684
else
 
3685
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3686
$as_echo "no" >&6; }
 
3687
 
 
3688
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
 
3689
 
 
3690
fi
 
3691
 
 
3692
ac_ext=cpp
 
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
 
3699
    CXX=$CCC
 
3700
  else
 
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
 
3703
  do
 
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
 
3710
else
 
3711
  if test -n "$CXX"; then
 
3712
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
3713
else
 
3714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3715
for as_dir in $PATH
 
3716
do
 
3717
  IFS=$as_save_IFS
 
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
 
3723
    break 2
 
3724
  fi
 
3725
done
 
3726
  done
 
3727
IFS=$as_save_IFS
 
3728
 
 
3729
fi
 
3730
fi
 
3731
CXX=$ac_cv_prog_CXX
 
3732
if test -n "$CXX"; then
 
3733
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
3734
$as_echo "$CXX" >&6; }
 
3735
else
 
3736
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3737
$as_echo "no" >&6; }
 
3738
fi
 
3739
 
 
3740
 
 
3741
    test -n "$CXX" && break
 
3742
  done
 
3743
fi
 
3744
if test -z "$CXX"; then
 
3745
  ac_ct_CXX=$CXX
 
3746
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
3747
do
 
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
 
3754
else
 
3755
  if test -n "$ac_ct_CXX"; then
 
3756
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
3757
else
 
3758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3759
for as_dir in $PATH
 
3760
do
 
3761
  IFS=$as_save_IFS
 
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
 
3767
    break 2
 
3768
  fi
 
3769
done
 
3770
  done
 
3771
IFS=$as_save_IFS
 
3772
 
 
3773
fi
 
3774
fi
 
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; }
 
3779
else
 
3780
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3781
$as_echo "no" >&6; }
 
3782
fi
 
3783
 
 
3784
 
 
3785
  test -n "$ac_ct_CXX" && break
 
3786
done
 
3787
 
 
3788
  if test "x$ac_ct_CXX" = x; then
 
3789
    CXX="g++"
 
3790
  else
 
3791
    case $cross_compiling:$ac_tool_warned in
 
3792
yes:)
 
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 ;;
 
3796
esac
 
3797
    CXX=$ac_ct_CXX
 
3798
  fi
 
3799
fi
 
3800
 
 
3801
  fi
 
3802
fi
 
3803
# Provide some information about the compiler.
 
3804
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
3805
set X $ac_compile
 
3806
ac_compiler=$2
 
3807
for ac_option in --version -v -V -qversion; do
 
3808
  { { ac_try="$ac_compiler $ac_option >&5"
 
3809
case "(($ac_try" in
 
3810
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3811
  *) ac_try_echo=$ac_try;;
 
3812
esac
 
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
 
3816
  ac_status=$?
 
3817
  if test -s conftest.err; then
 
3818
    sed '10a\
 
3819
... rest of stderr output deleted ...
 
3820
         10q' conftest.err >conftest.er1
 
3821
    cat conftest.er1 >&5
 
3822
  fi
 
3823
  rm -f conftest.er1 conftest.err
 
3824
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3825
  test $ac_status = 0; }
 
3826
done
 
3827
 
 
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
 
3832
else
 
3833
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3834
/* end confdefs.h.  */
 
3835
 
 
3836
int
 
3837
main ()
 
3838
{
 
3839
#ifndef __GNUC__
 
3840
       choke me
 
3841
#endif
 
3842
 
 
3843
  ;
 
3844
  return 0;
 
3845
}
 
3846
_ACEOF
 
3847
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3848
  ac_compiler_gnu=yes
 
3849
else
 
3850
  ac_compiler_gnu=no
 
3851
fi
 
3852
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3853
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3854
 
 
3855
fi
 
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
 
3859
  GXX=yes
 
3860
else
 
3861
  GXX=
 
3862
fi
 
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
 
3869
else
 
3870
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
3871
   ac_cxx_werror_flag=yes
 
3872
   ac_cv_prog_cxx_g=no
 
3873
   CXXFLAGS="-g"
 
3874
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3875
/* end confdefs.h.  */
 
3876
 
 
3877
int
 
3878
main ()
 
3879
{
 
3880
 
 
3881
  ;
 
3882
  return 0;
 
3883
}
 
3884
_ACEOF
 
3885
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3886
  ac_cv_prog_cxx_g=yes
 
3887
else
 
3888
  CXXFLAGS=""
 
3889
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3890
/* end confdefs.h.  */
 
3891
 
 
3892
int
 
3893
main ()
 
3894
{
 
3895
 
 
3896
  ;
 
3897
  return 0;
 
3898
}
 
3899
_ACEOF
 
3900
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3901
 
 
3902
else
 
3903
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3904
         CXXFLAGS="-g"
 
3905
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3906
/* end confdefs.h.  */
 
3907
 
 
3908
int
 
3909
main ()
 
3910
{
 
3911
 
 
3912
  ;
 
3913
  return 0;
 
3914
}
 
3915
_ACEOF
 
3916
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3917
  ac_cv_prog_cxx_g=yes
 
3918
fi
 
3919
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3920
fi
 
3921
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3922
fi
 
3923
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3924
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3925
fi
 
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
 
3932
    CXXFLAGS="-g -O2"
 
3933
  else
 
3934
    CXXFLAGS="-g"
 
3935
  fi
 
3936
else
 
3937
  if test "$GXX" = yes; then
 
3938
    CXXFLAGS="-O2"
 
3939
  else
 
3940
    CXXFLAGS=
 
3941
  fi
 
3942
fi
 
3943
ac_ext=c
 
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
 
3948
 
 
3949
ac_ext=cpp
 
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
 
3959
else
 
3960
      # Double quotes because CXXCPP needs to be expanded
 
3961
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
3962
    do
 
3963
      ac_preproc_ok=false
 
3964
for ac_cxx_preproc_warn_flag in '' yes
 
3965
do
 
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.  */
 
3974
#ifdef __STDC__
 
3975
# include <limits.h>
 
3976
#else
 
3977
# include <assert.h>
 
3978
#endif
 
3979
                     Syntax error
 
3980
_ACEOF
 
3981
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
3982
 
 
3983
else
 
3984
  # Broken: fails on valid input.
 
3985
continue
 
3986
fi
 
3987
rm -f conftest.err conftest.$ac_ext
 
3988
 
 
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>
 
3994
_ACEOF
 
3995
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
3996
  # Broken: success on invalid input.
 
3997
continue
 
3998
else
 
3999
  # Passes both tests.
 
4000
ac_preproc_ok=:
 
4001
break
 
4002
fi
 
4003
rm -f conftest.err conftest.$ac_ext
 
4004
 
 
4005
done
 
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 :
 
4009
  break
 
4010
fi
 
4011
 
 
4012
    done
 
4013
    ac_cv_prog_CXXCPP=$CXXCPP
 
4014
 
 
4015
fi
 
4016
  CXXCPP=$ac_cv_prog_CXXCPP
 
4017
else
 
4018
  ac_cv_prog_CXXCPP=$CXXCPP
 
4019
fi
 
4020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
4021
$as_echo "$CXXCPP" >&6; }
 
4022
ac_preproc_ok=false
 
4023
for ac_cxx_preproc_warn_flag in '' yes
 
4024
do
 
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.  */
 
4033
#ifdef __STDC__
 
4034
# include <limits.h>
 
4035
#else
 
4036
# include <assert.h>
 
4037
#endif
 
4038
                     Syntax error
 
4039
_ACEOF
 
4040
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
4041
 
 
4042
else
 
4043
  # Broken: fails on valid input.
 
4044
continue
 
4045
fi
 
4046
rm -f conftest.err conftest.$ac_ext
 
4047
 
 
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>
 
4053
_ACEOF
 
4054
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
4055
  # Broken: success on invalid input.
 
4056
continue
 
4057
else
 
4058
  # Passes both tests.
 
4059
ac_preproc_ok=:
 
4060
break
 
4061
fi
 
4062
rm -f conftest.err conftest.$ac_ext
 
4063
 
 
4064
done
 
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 :
 
4068
 
 
4069
else
 
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; }
 
4074
fi
 
4075
 
 
4076
ac_ext=c
 
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
 
4081
 
 
4082
ac_ext=cpp
 
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
 
4091
else
 
4092
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4093
/* end confdefs.h.  */
 
4094
 
 
4095
int
 
4096
main ()
 
4097
{
 
4098
 
 
4099
  ;
 
4100
  return 0;
 
4101
}
 
4102
_ACEOF
 
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'
 
4106
rm -f conftest2.*
 
4107
if { { case "(($ac_try" in
 
4108
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4109
  *) ac_try_echo=$ac_try;;
 
4110
esac
 
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
 
4114
  ac_status=$?
 
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;;
 
4121
esac
 
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
 
4125
  ac_status=$?
 
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
 
4129
else
 
4130
  ac_cv_prog_cxx_c_o=no
 
4131
fi
 
4132
rm -f conftest*
 
4133
fi
 
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
 
4137
 
 
4138
$as_echo "#define CXX_NO_MINUS_C_MINUS_O 1" >>confdefs.h
 
4139
 
 
4140
fi
 
4141
ac_ext=c
 
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
 
4146
 
 
4147
 
 
4148
$as_echo
 
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
 
4153
 
 
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
 
4158
else
 
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
 
4166
 
 
4167
fi
 
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
 
4171
*-*-*) ;;
 
4172
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
 
4173
esac
 
4174
build=$ac_cv_build
 
4175
ac_save_IFS=$IFS; IFS='-'
 
4176
set x $ac_cv_build
 
4177
shift
 
4178
build_cpu=$1
 
4179
build_vendor=$2
 
4180
shift; shift
 
4181
# Remember, the first character of IFS is used to create $*,
 
4182
# except with old shells:
 
4183
build_os=$*
 
4184
IFS=$ac_save_IFS
 
4185
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
4186
 
 
4187
 
 
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
 
4192
else
 
4193
  if test "x$host_alias" = x; then
 
4194
  ac_cv_host=$ac_cv_build
 
4195
else
 
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
 
4198
fi
 
4199
 
 
4200
fi
 
4201
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
4202
$as_echo "$ac_cv_host" >&6; }
 
4203
case $ac_cv_host in
 
4204
*-*-*) ;;
 
4205
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
 
4206
esac
 
4207
host=$ac_cv_host
 
4208
ac_save_IFS=$IFS; IFS='-'
 
4209
set x $ac_cv_host
 
4210
shift
 
4211
host_cpu=$1
 
4212
host_vendor=$2
 
4213
shift; shift
 
4214
# Remember, the first character of IFS is used to create $*,
 
4215
# except with old shells:
 
4216
host_os=$*
 
4217
IFS=$ac_save_IFS
 
4218
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4219
 
 
4220
 
 
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
 
4225
else
 
4226
  if test "x$target_alias" = x; then
 
4227
  ac_cv_target=$ac_cv_host
 
4228
else
 
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
 
4231
fi
 
4232
 
 
4233
fi
 
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
 
4237
*-*-*) ;;
 
4238
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
 
4239
esac
 
4240
target=$ac_cv_target
 
4241
ac_save_IFS=$IFS; IFS='-'
 
4242
set x $ac_cv_target
 
4243
shift
 
4244
target_cpu=$1
 
4245
target_vendor=$2
 
4246
shift; shift
 
4247
# Remember, the first character of IFS is used to create $*,
 
4248
# except with old shells:
 
4249
target_os=$*
 
4250
IFS=$ac_save_IFS
 
4251
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 
4252
 
 
4253
 
 
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" = \
 
4258
    NONENONEs,x,x, &&
 
4259
  program_prefix=${target_alias}-
 
4260
 
 
4261
$as_echo
 
4262
$as_echo  "Initializing Automake:"
 
4263
am__api_version='1.11'
 
4264
 
 
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
 
4271
# AIX /bin/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
 
4284
else
 
4285
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4286
for as_dir in $PATH
 
4287
do
 
4288
  IFS=$as_save_IFS
 
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[\\/]* | \
 
4295
  /usr/ucb/* ) ;;
 
4296
  *)
 
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
 
4299
    # by default.
 
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.
 
4306
            :
 
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.
 
4310
            :
 
4311
          else
 
4312
            rm -rf conftest.one conftest.two conftest.dir
 
4313
            echo one > conftest.one
 
4314
            echo two > conftest.two
 
4315
            mkdir conftest.dir
 
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
 
4320
            then
 
4321
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
4322
              break 3
 
4323
            fi
 
4324
          fi
 
4325
        fi
 
4326
      done
 
4327
    done
 
4328
    ;;
 
4329
esac
 
4330
 
 
4331
  done
 
4332
IFS=$as_save_IFS
 
4333
 
 
4334
rm -rf conftest.one conftest.two conftest.dir
 
4335
 
 
4336
fi
 
4337
  if test "${ac_cv_path_install+set}" = set; then
 
4338
    INSTALL=$ac_cv_path_install
 
4339
  else
 
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
 
4345
  fi
 
4346
fi
 
4347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
4348
$as_echo "$INSTALL" >&6; }
 
4349
 
 
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}'
 
4353
 
 
4354
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
4355
 
 
4356
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
4357
 
 
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; }
 
4360
# Just in case
 
4361
sleep 1
 
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.
 
4365
am_lf='
 
4366
'
 
4367
case `pwd` in
 
4368
  *[\\\"\#\$\&\'\`$am_lf]*)
 
4369
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
 
4370
esac
 
4371
case $srcdir in
 
4372
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
4373
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
4374
esac
 
4375
 
 
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
 
4380
# directory).
 
4381
if (
 
4382
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
4383
   if test "$*" = "X"; then
 
4384
      # -L didn't work.
 
4385
      set X `ls -t "$srcdir/configure" conftest.file`
 
4386
   fi
 
4387
   rm -f conftest.file
 
4388
   if test "$*" != "X $srcdir/configure conftest.file" \
 
4389
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
4390
 
 
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
 
4397
   fi
 
4398
 
 
4399
   test "$2" = conftest.file
 
4400
   )
 
4401
then
 
4402
   # Ok.
 
4403
   :
 
4404
else
 
4405
   as_fn_error "newly created file is older than distributed files!
 
4406
Check your system clock" "$LINENO" 5
 
4407
fi
 
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"`
 
4419
 
 
4420
# expand $ac_aux_dir to an absolute path
 
4421
am_aux_dir=`cd $ac_aux_dir && pwd`
 
4422
 
 
4423
if test x"${MISSING+set}" != xset; then
 
4424
  case $am_aux_dir in
 
4425
  *\ * | *\     *)
 
4426
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
4427
  *)
 
4428
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
4429
  esac
 
4430
fi
 
4431
# Use eval to expand $SHELL
 
4432
if eval "$MISSING --run true"; then
 
4433
  am_missing_run="$MISSING --run "
 
4434
else
 
4435
  am_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;}
 
4438
fi
 
4439
 
 
4440
if test x"${install_sh}" != xset; then
 
4441
  case $am_aux_dir in
 
4442
  *\ * | *\     *)
 
4443
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
4444
  *)
 
4445
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
4446
  esac
 
4447
fi
 
4448
 
 
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
 
4461
else
 
4462
  if test -n "$STRIP"; then
 
4463
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
4464
else
 
4465
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4466
for as_dir in $PATH
 
4467
do
 
4468
  IFS=$as_save_IFS
 
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
 
4474
    break 2
 
4475
  fi
 
4476
done
 
4477
  done
 
4478
IFS=$as_save_IFS
 
4479
 
 
4480
fi
 
4481
fi
 
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; }
 
4486
else
 
4487
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4488
$as_echo "no" >&6; }
 
4489
fi
 
4490
 
 
4491
 
 
4492
fi
 
4493
if test -z "$ac_cv_prog_STRIP"; then
 
4494
  ac_ct_STRIP=$STRIP
 
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
 
4501
else
 
4502
  if test -n "$ac_ct_STRIP"; then
 
4503
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
4504
else
 
4505
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4506
for as_dir in $PATH
 
4507
do
 
4508
  IFS=$as_save_IFS
 
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
 
4514
    break 2
 
4515
  fi
 
4516
done
 
4517
  done
 
4518
IFS=$as_save_IFS
 
4519
 
 
4520
fi
 
4521
fi
 
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; }
 
4526
else
 
4527
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4528
$as_echo "no" >&6; }
 
4529
fi
 
4530
 
 
4531
  if test "x$ac_ct_STRIP" = x; then
 
4532
    STRIP=":"
 
4533
  else
 
4534
    case $cross_compiling:$ac_tool_warned in
 
4535
yes:)
 
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 ;;
 
4539
esac
 
4540
    STRIP=$ac_ct_STRIP
 
4541
  fi
 
4542
else
 
4543
  STRIP="$ac_cv_prog_STRIP"
 
4544
fi
 
4545
 
 
4546
fi
 
4547
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
4548
 
 
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
 
4554
else
 
4555
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4556
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
4557
do
 
4558
  IFS=$as_save_IFS
 
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
 
4568
               break 3;;
 
4569
           esac
 
4570
         done
 
4571
       done
 
4572
  done
 
4573
IFS=$as_save_IFS
 
4574
 
 
4575
fi
 
4576
 
 
4577
  test -d ./--version && rmdir ./--version
 
4578
  if test "${ac_cv_path_mkdir+set}" = set; then
 
4579
    MKDIR_P="$ac_cv_path_mkdir -p"
 
4580
  else
 
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"
 
4586
  fi
 
4587
fi
 
4588
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
4589
$as_echo "$MKDIR_P" >&6; }
 
4590
 
 
4591
mkdir_p="$MKDIR_P"
 
4592
case $mkdir_p in
 
4593
  [\\/$]* | ?:[\\/]*) ;;
 
4594
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
4595
esac
 
4596
 
 
4597
for ac_prog in gawk mawk nawk awk
 
4598
do
 
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
 
4605
else
 
4606
  if test -n "$AWK"; then
 
4607
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
4608
else
 
4609
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4610
for as_dir in $PATH
 
4611
do
 
4612
  IFS=$as_save_IFS
 
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
 
4618
    break 2
 
4619
  fi
 
4620
done
 
4621
  done
 
4622
IFS=$as_save_IFS
 
4623
 
 
4624
fi
 
4625
fi
 
4626
AWK=$ac_cv_prog_AWK
 
4627
if test -n "$AWK"; then
 
4628
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
4629
$as_echo "$AWK" >&6; }
 
4630
else
 
4631
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4632
$as_echo "no" >&6; }
 
4633
fi
 
4634
 
 
4635
 
 
4636
  test -n "$AWK" && break
 
4637
done
 
4638
 
 
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; }
 
4641
set x ${MAKE-make}
 
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
 
4645
else
 
4646
  cat >conftest.make <<\_ACEOF
 
4647
SHELL = /bin/sh
 
4648
all:
 
4649
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
4650
_ACEOF
 
4651
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
4652
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
4653
  *@@@%%%=?*=@@@%%%*)
 
4654
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
4655
  *)
 
4656
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
4657
esac
 
4658
rm -f conftest.make
 
4659
fi
 
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; }
 
4663
  SET_MAKE=
 
4664
else
 
4665
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4666
$as_echo "no" >&6; }
 
4667
  SET_MAKE="MAKE=${MAKE-make}"
 
4668
fi
 
4669
 
 
4670
rm -rf .tst 2>/dev/null
 
4671
mkdir .tst 2>/dev/null
 
4672
if test -d .tst; then
 
4673
  am__leading_dot=.
 
4674
else
 
4675
  am__leading_dot=_
 
4676
fi
 
4677
rmdir .tst 2>/dev/null
 
4678
 
3888
4679
DEPDIR="${am__leading_dot}deps"
3889
4680
 
3890
4681
ac_config_commands="$ac_config_commands depfiles"
3947
4738
fi
3948
4739
 
3949
4740
 
 
4741
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
4742
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
4743
  # is not polluted with repeated "-I."
 
4744
  am__isrc=' -I$(srcdir)'
 
4745
  # test to see if srcdir already configured
 
4746
  if test -f $srcdir/config.status; then
 
4747
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
4748
  fi
 
4749
fi
 
4750
 
 
4751
# test whether we have cygpath
 
4752
if test -z "$CYGPATH_W"; then
 
4753
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
4754
    CYGPATH_W='cygpath -w'
 
4755
  else
 
4756
    CYGPATH_W=echo
 
4757
  fi
 
4758
fi
 
4759
 
 
4760
 
 
4761
# Define the identity of the package.
 
4762
 PACKAGE='libtorrent-rasterbar'
 
4763
 VERSION='0.15.0'
 
4764
 
 
4765
 
 
4766
cat >>confdefs.h <<_ACEOF
 
4767
#define PACKAGE "$PACKAGE"
 
4768
_ACEOF
 
4769
 
 
4770
 
 
4771
cat >>confdefs.h <<_ACEOF
 
4772
#define VERSION "$VERSION"
 
4773
_ACEOF
 
4774
 
 
4775
# Some tools Automake needs.
 
4776
 
 
4777
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
4778
 
 
4779
 
 
4780
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
4781
 
 
4782
 
 
4783
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
4784
 
 
4785
 
 
4786
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
4787
 
 
4788
 
 
4789
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
4790
 
 
4791
# We need awk for the "check" target.  The system "awk" is bad on
 
4792
# some platforms.
 
4793
# Always define AMTAR for backward compatibility.
 
4794
 
 
4795
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
4796
 
 
4797
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
4798
 
 
4799
 
 
4800
 
3950
4801
 
3951
4802
depcc="$CC"   am_compiler_list=
3952
4803
 
4075
4926
fi
4076
4927
 
4077
4928
 
4078
 
 
4079
 
if test -z "$(which $CC)"; then
4080
 
    as_fn_error "Unable to find a working C compiler, giving up." "$LINENO" 5
4081
 
fi
4082
 
 
4083
 
ac_ext=c
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
4092
 
  CPP=
4093
 
fi
4094
 
if test -z "$CPP"; then
4095
 
  if test "${ac_cv_prog_CPP+set}" = set; then :
4096
 
  $as_echo_n "(cached) " >&6
4097
 
else
4098
 
      # Double quotes because CPP needs to be expanded
4099
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4100
 
    do
4101
 
      ac_preproc_ok=false
4102
 
for ac_c_preproc_warn_flag in '' yes
4103
 
do
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.  */
4112
 
#ifdef __STDC__
4113
 
# include <limits.h>
4114
 
#else
4115
 
# include <assert.h>
4116
 
#endif
4117
 
                     Syntax error
4118
 
_ACEOF
4119
 
if ac_fn_c_try_cpp "$LINENO"; then :
4120
 
 
4121
 
else
4122
 
  # Broken: fails on valid input.
4123
 
continue
4124
 
fi
4125
 
rm -f conftest.err conftest.$ac_ext
4126
 
 
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>
4132
 
_ACEOF
4133
 
if ac_fn_c_try_cpp "$LINENO"; then :
4134
 
  # Broken: success on invalid input.
4135
 
continue
4136
 
else
4137
 
  # Passes both tests.
4138
 
ac_preproc_ok=:
4139
 
break
4140
 
fi
4141
 
rm -f conftest.err conftest.$ac_ext
4142
 
 
4143
 
done
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 :
4147
 
  break
4148
 
fi
4149
 
 
4150
 
    done
4151
 
    ac_cv_prog_CPP=$CPP
4152
 
 
4153
 
fi
4154
 
  CPP=$ac_cv_prog_CPP
4155
 
else
4156
 
  ac_cv_prog_CPP=$CPP
4157
 
fi
4158
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4159
 
$as_echo "$CPP" >&6; }
4160
 
ac_preproc_ok=false
4161
 
for ac_c_preproc_warn_flag in '' yes
4162
 
do
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.  */
4171
 
#ifdef __STDC__
4172
 
# include <limits.h>
4173
 
#else
4174
 
# include <assert.h>
4175
 
#endif
4176
 
                     Syntax error
4177
 
_ACEOF
4178
 
if ac_fn_c_try_cpp "$LINENO"; then :
4179
 
 
4180
 
else
4181
 
  # Broken: fails on valid input.
4182
 
continue
4183
 
fi
4184
 
rm -f conftest.err conftest.$ac_ext
4185
 
 
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>
4191
 
_ACEOF
4192
 
if ac_fn_c_try_cpp "$LINENO"; then :
4193
 
  # Broken: success on invalid input.
4194
 
continue
4195
 
else
4196
 
  # Passes both tests.
4197
 
ac_preproc_ok=:
4198
 
break
4199
 
fi
4200
 
rm -f conftest.err conftest.$ac_ext
4201
 
 
4202
 
done
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 :
4206
 
 
4207
 
else
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; }
4212
 
fi
4213
 
 
4214
 
ac_ext=c
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
4219
 
 
4220
 
ac_ext=cpp
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
4227
 
    CXX=$CCC
4228
 
  else
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
4231
 
  do
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
4238
 
else
4239
 
  if test -n "$CXX"; then
4240
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4241
 
else
4242
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243
 
for as_dir in $PATH
4244
 
do
4245
 
  IFS=$as_save_IFS
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
4251
 
    break 2
4252
 
  fi
4253
 
done
4254
 
  done
4255
 
IFS=$as_save_IFS
4256
 
 
4257
 
fi
4258
 
fi
4259
 
CXX=$ac_cv_prog_CXX
4260
 
if test -n "$CXX"; then
4261
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4262
 
$as_echo "$CXX" >&6; }
4263
 
else
4264
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265
 
$as_echo "no" >&6; }
4266
 
fi
4267
 
 
4268
 
 
4269
 
    test -n "$CXX" && break
4270
 
  done
4271
 
fi
4272
 
if test -z "$CXX"; then
4273
 
  ac_ct_CXX=$CXX
4274
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4275
 
do
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
4282
 
else
4283
 
  if test -n "$ac_ct_CXX"; then
4284
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4285
 
else
4286
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287
 
for as_dir in $PATH
4288
 
do
4289
 
  IFS=$as_save_IFS
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
4295
 
    break 2
4296
 
  fi
4297
 
done
4298
 
  done
4299
 
IFS=$as_save_IFS
4300
 
 
4301
 
fi
4302
 
fi
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; }
4307
 
else
4308
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309
 
$as_echo "no" >&6; }
4310
 
fi
4311
 
 
4312
 
 
4313
 
  test -n "$ac_ct_CXX" && break
4314
 
done
4315
 
 
4316
 
  if test "x$ac_ct_CXX" = x; then
4317
 
    CXX="g++"
4318
 
  else
4319
 
    case $cross_compiling:$ac_tool_warned in
4320
 
yes:)
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 ;;
4324
 
esac
4325
 
    CXX=$ac_ct_CXX
4326
 
  fi
4327
 
fi
4328
 
 
4329
 
  fi
4330
 
fi
4331
 
# Provide some information about the compiler.
4332
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4333
 
set X $ac_compile
4334
 
ac_compiler=$2
4335
 
for ac_option in --version -v -V -qversion; do
4336
 
  { { ac_try="$ac_compiler $ac_option >&5"
4337
 
case "(($ac_try" in
4338
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339
 
  *) ac_try_echo=$ac_try;;
4340
 
esac
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
4344
 
  ac_status=$?
4345
 
  if test -s conftest.err; then
4346
 
    sed '10a\
4347
 
... rest of stderr output deleted ...
4348
 
         10q' conftest.err >conftest.er1
4349
 
    cat conftest.er1 >&5
4350
 
  fi
4351
 
  rm -f conftest.er1 conftest.err
4352
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4353
 
  test $ac_status = 0; }
4354
 
done
4355
 
 
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
4360
 
else
4361
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362
 
/* end confdefs.h.  */
4363
 
 
4364
 
int
4365
 
main ()
4366
 
{
4367
 
#ifndef __GNUC__
4368
 
       choke me
4369
 
#endif
4370
 
 
4371
 
  ;
4372
 
  return 0;
4373
 
}
4374
 
_ACEOF
4375
 
if ac_fn_cxx_try_compile "$LINENO"; then :
4376
 
  ac_compiler_gnu=yes
4377
 
else
4378
 
  ac_compiler_gnu=no
4379
 
fi
4380
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4382
 
 
4383
 
fi
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
4387
 
  GXX=yes
4388
 
else
4389
 
  GXX=
4390
 
fi
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
4397
 
else
4398
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4399
 
   ac_cxx_werror_flag=yes
4400
 
   ac_cv_prog_cxx_g=no
4401
 
   CXXFLAGS="-g"
4402
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403
 
/* end confdefs.h.  */
4404
 
 
4405
 
int
4406
 
main ()
4407
 
{
4408
 
 
4409
 
  ;
4410
 
  return 0;
4411
 
}
4412
 
_ACEOF
4413
 
if ac_fn_cxx_try_compile "$LINENO"; then :
4414
 
  ac_cv_prog_cxx_g=yes
4415
 
else
4416
 
  CXXFLAGS=""
4417
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418
 
/* end confdefs.h.  */
4419
 
 
4420
 
int
4421
 
main ()
4422
 
{
4423
 
 
4424
 
  ;
4425
 
  return 0;
4426
 
}
4427
 
_ACEOF
4428
 
if ac_fn_cxx_try_compile "$LINENO"; then :
4429
 
 
4430
 
else
4431
 
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4432
 
         CXXFLAGS="-g"
4433
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434
 
/* end confdefs.h.  */
4435
 
 
4436
 
int
4437
 
main ()
4438
 
{
4439
 
 
4440
 
  ;
4441
 
  return 0;
4442
 
}
4443
 
_ACEOF
4444
 
if ac_fn_cxx_try_compile "$LINENO"; then :
4445
 
  ac_cv_prog_cxx_g=yes
4446
 
fi
4447
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448
 
fi
4449
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450
 
fi
4451
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4452
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4453
 
fi
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
4460
 
    CXXFLAGS="-g -O2"
4461
 
  else
4462
 
    CXXFLAGS="-g"
4463
 
  fi
4464
 
else
4465
 
  if test "$GXX" = yes; then
4466
 
    CXXFLAGS="-O2"
4467
 
  else
4468
 
    CXXFLAGS=
4469
 
  fi
4470
 
fi
4471
 
ac_ext=c
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
4476
 
 
4477
4929
depcc="$CXX"  am_compiler_list=
4478
4930
 
4479
4931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4602
5054
 
4603
5055
 
4604
5056
 
4605
 
if test -z "$(which $CXX)"; then
4606
 
    as_fn_error "Unable to find a working C++ compiler, giving up." "$LINENO" 5
4607
 
fi
4608
 
 
4609
 
cat >confcache <<\_ACEOF
4610
 
# This file is a shell script that caches the results of configure
4611
 
# tests run on this system so they can be shared between configure
4612
 
# scripts and configure runs, see configure's option --config-cache.
4613
 
# It is not useful on other systems.  If it contains results you don't
4614
 
# want to keep, you may remove or edit it.
4615
 
#
4616
 
# config.status only pays attention to the cache file if you give it
4617
 
# the --recheck option to rerun configure.
4618
 
#
4619
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4620
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4621
 
# following values.
4622
 
 
4623
 
_ACEOF
4624
 
 
4625
 
# The following way of writing the cache mishandles newlines in values,
4626
 
# but we know of no workaround that is simple, portable, and efficient.
4627
 
# So, we kill variables containing newlines.
4628
 
# Ultrix sh set writes to stderr and can't be redirected directly,
4629
 
# and sets the high bit in the cache file unless we assign to the vars.
4630
 
(
4631
 
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4632
 
    eval ac_val=\$$ac_var
4633
 
    case $ac_val in #(
4634
 
    *${as_nl}*)
4635
 
      case $ac_var in #(
4636
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4637
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4638
 
      esac
4639
 
      case $ac_var in #(
4640
 
      _ | IFS | as_nl) ;; #(
4641
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4642
 
      *) { eval $ac_var=; unset $ac_var;} ;;
4643
 
      esac ;;
4644
 
    esac
4645
 
  done
4646
 
 
4647
 
  (set) 2>&1 |
4648
 
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4649
 
    *${as_nl}ac_space=\ *)
4650
 
      # `set' does not quote correctly, so add quotes: double-quote
4651
 
      # substitution turns \\\\ into \\, and sed turns \\ into \.
4652
 
      sed -n \
4653
 
        "s/'/'\\\\''/g;
4654
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4655
 
      ;; #(
4656
 
    *)
4657
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
4658
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4659
 
      ;;
4660
 
    esac |
4661
 
    sort
4662
 
) |
4663
 
  sed '
4664
 
     /^ac_cv_env_/b end
4665
 
     t clear
4666
 
     :clear
4667
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4668
 
     t end
4669
 
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4670
 
     :end' >>confcache
4671
 
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4672
 
  if test -w "$cache_file"; then
4673
 
    test "x$cache_file" != "x/dev/null" &&
4674
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4675
 
$as_echo "$as_me: updating cache $cache_file" >&6;}
4676
 
    cat confcache >$cache_file
4677
 
  else
4678
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4679
 
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4680
 
  fi
4681
 
fi
4682
 
rm -f confcache
4683
 
 
4684
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4685
 
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4686
 
set x ${MAKE-make}
4687
 
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4688
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4689
 
  $as_echo_n "(cached) " >&6
4690
 
else
4691
 
  cat >conftest.make <<\_ACEOF
4692
 
SHELL = /bin/sh
4693
 
all:
4694
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
4695
 
_ACEOF
4696
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4697
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
4698
 
  *@@@%%%=?*=@@@%%%*)
4699
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
4700
 
  *)
4701
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
4702
 
esac
4703
 
rm -f conftest.make
4704
 
fi
4705
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4706
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4707
 
$as_echo "yes" >&6; }
4708
 
  SET_MAKE=
4709
 
else
4710
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711
 
$as_echo "no" >&6; }
4712
 
  SET_MAKE="MAKE=${MAKE-make}"
4713
 
fi
 
5057
 
 
5058
 
 
5059
$as_echo
 
5060
$as_echo  "Initializing Libtool:"
4714
5061
 
4715
5062
case `pwd` in
4716
5063
  *\ * | *\     *)
4737
5084
 
4738
5085
ltmain="$ac_aux_dir/ltmain.sh"
4739
5086
 
4740
 
# Make sure we can run config.sub.
4741
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4742
 
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4743
 
 
4744
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4745
 
$as_echo_n "checking build system type... " >&6; }
4746
 
if test "${ac_cv_build+set}" = set; then :
4747
 
  $as_echo_n "(cached) " >&6
4748
 
else
4749
 
  ac_build_alias=$build_alias
4750
 
test "x$ac_build_alias" = x &&
4751
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4752
 
test "x$ac_build_alias" = x &&
4753
 
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4754
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4755
 
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4756
 
 
4757
 
fi
4758
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4759
 
$as_echo "$ac_cv_build" >&6; }
4760
 
case $ac_cv_build in
4761
 
*-*-*) ;;
4762
 
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4763
 
esac
4764
 
build=$ac_cv_build
4765
 
ac_save_IFS=$IFS; IFS='-'
4766
 
set x $ac_cv_build
4767
 
shift
4768
 
build_cpu=$1
4769
 
build_vendor=$2
4770
 
shift; shift
4771
 
# Remember, the first character of IFS is used to create $*,
4772
 
# except with old shells:
4773
 
build_os=$*
4774
 
IFS=$ac_save_IFS
4775
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4776
 
 
4777
 
 
4778
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4779
 
$as_echo_n "checking host system type... " >&6; }
4780
 
if test "${ac_cv_host+set}" = set; then :
4781
 
  $as_echo_n "(cached) " >&6
4782
 
else
4783
 
  if test "x$host_alias" = x; then
4784
 
  ac_cv_host=$ac_cv_build
4785
 
else
4786
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4787
 
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4788
 
fi
4789
 
 
4790
 
fi
4791
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4792
 
$as_echo "$ac_cv_host" >&6; }
4793
 
case $ac_cv_host in
4794
 
*-*-*) ;;
4795
 
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4796
 
esac
4797
 
host=$ac_cv_host
4798
 
ac_save_IFS=$IFS; IFS='-'
4799
 
set x $ac_cv_host
4800
 
shift
4801
 
host_cpu=$1
4802
 
host_vendor=$2
4803
 
shift; shift
4804
 
# Remember, the first character of IFS is used to create $*,
4805
 
# except with old shells:
4806
 
host_os=$*
4807
 
IFS=$ac_save_IFS
4808
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4809
 
 
4810
 
 
4811
5087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4812
5088
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4813
5089
if test "${ac_cv_path_SED+set}" = set; then :
5392
5668
else
5393
5669
  lt_cv_nm_interface="BSD nm"
5394
5670
  echo "int some_variable = 0;" > conftest.$ac_ext
5395
 
  (eval echo "\"\$as_me:5395: $ac_compile\"" >&5)
 
5671
  (eval echo "\"\$as_me:5671: $ac_compile\"" >&5)
5396
5672
  (eval "$ac_compile" 2>conftest.err)
5397
5673
  cat conftest.err >&5
5398
 
  (eval echo "\"\$as_me:5398: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5674
  (eval echo "\"\$as_me:5674: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5399
5675
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5400
5676
  cat conftest.err >&5
5401
 
  (eval echo "\"\$as_me:5401: output\"" >&5)
 
5677
  (eval echo "\"\$as_me:5677: output\"" >&5)
5402
5678
  cat conftest.out >&5
5403
5679
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5404
5680
    lt_cv_nm_interface="MS dumpbin"
6604
6880
  ;;
6605
6881
*-*-irix6*)
6606
6882
  # Find out which ABI we are using.
6607
 
  echo '#line 6607 "configure"' > conftest.$ac_ext
 
6883
  echo '#line 6883 "configure"' > conftest.$ac_ext
6608
6884
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6609
6885
  (eval $ac_compile) 2>&5
6610
6886
  ac_status=$?
7754
8030
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7755
8031
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7756
8032
 
7757
 
depcc="$CXX"  am_compiler_list=
7758
 
 
7759
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7760
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
7761
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7762
 
  $as_echo_n "(cached) " >&6
7763
 
else
7764
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7765
 
  # We make a subdir and do the tests there.  Otherwise we can end up
7766
 
  # making bogus files that we don't know about and never remove.  For
7767
 
  # instance it was reported that on HP-UX the gcc test will end up
7768
 
  # making a dummy file named `D' -- because `-MD' means `put the output
7769
 
  # in D'.
7770
 
  mkdir conftest.dir
7771
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
7772
 
  # using a relative directory.
7773
 
  cp "$am_depcomp" conftest.dir
7774
 
  cd conftest.dir
7775
 
  # We will build objects and dependencies in a subdirectory because
7776
 
  # it helps to detect inapplicable dependency modes.  For instance
7777
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
7778
 
  # side effect of compilation, but ICC will put the dependencies in
7779
 
  # the current directory while Tru64 will put them in the object
7780
 
  # directory.
7781
 
  mkdir sub
7782
 
 
7783
 
  am_cv_CXX_dependencies_compiler_type=none
7784
 
  if test "$am_compiler_list" = ""; then
7785
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7786
 
  fi
7787
 
  am__universal=false
7788
 
  case " $depcc " in #(
7789
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7790
 
     esac
7791
 
 
7792
 
  for depmode in $am_compiler_list; do
7793
 
    # Setup a source with many dependencies, because some compilers
7794
 
    # like to wrap large dependency lists on column 80 (with \), and
7795
 
    # we should not choose a depcomp mode which is confused by this.
7796
 
    #
7797
 
    # We need to recreate these files for each test, as the compiler may
7798
 
    # overwrite some of them when testing with obscure command lines.
7799
 
    # This happens at least with the AIX C compiler.
7800
 
    : > sub/conftest.c
7801
 
    for i in 1 2 3 4 5 6; do
7802
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7803
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7804
 
      # Solaris 8's {/usr,}/bin/sh.
7805
 
      touch sub/conftst$i.h
7806
 
    done
7807
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7808
 
 
7809
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7810
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
7811
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
7812
 
    # versions had trouble with output in subdirs
7813
 
    am__obj=sub/conftest.${OBJEXT-o}
7814
 
    am__minus_obj="-o $am__obj"
7815
 
    case $depmode in
7816
 
    gcc)
7817
 
      # This depmode causes a compiler race in universal mode.
7818
 
      test "$am__universal" = false || continue
7819
 
      ;;
7820
 
    nosideeffect)
7821
 
      # after this tag, mechanisms are not by side-effect, so they'll
7822
 
      # only be used when explicitly requested
7823
 
      if test "x$enable_dependency_tracking" = xyes; then
7824
 
        continue
7825
 
      else
7826
 
        break
7827
 
      fi
7828
 
      ;;
7829
 
    msvisualcpp | msvcmsys)
7830
 
      # This compiler won't grok `-c -o', but also, the minuso test has
7831
 
      # not run yet.  These depmodes are late enough in the game, and
7832
 
      # so weak that their functioning should not be impacted.
7833
 
      am__obj=conftest.${OBJEXT-o}
7834
 
      am__minus_obj=
7835
 
      ;;
7836
 
    none) break ;;
7837
 
    esac
7838
 
    if depmode=$depmode \
7839
 
       source=sub/conftest.c object=$am__obj \
7840
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7841
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7842
 
         >/dev/null 2>conftest.err &&
7843
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7844
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7845
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7846
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7847
 
      # icc doesn't choke on unknown options, it will just issue warnings
7848
 
      # or remarks (even with -Werror).  So we grep stderr for any message
7849
 
      # that says an option was ignored or not supported.
7850
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
7851
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
7852
 
      # The diagnosis changed in icc 8.0:
7853
 
      #   icc: Command line remark: option '-MP' not supported
7854
 
      if (grep 'ignoring option' conftest.err ||
7855
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7856
 
        am_cv_CXX_dependencies_compiler_type=$depmode
7857
 
        break
7858
 
      fi
7859
 
    fi
7860
 
  done
7861
 
 
7862
 
  cd ..
7863
 
  rm -rf conftest.dir
7864
 
else
7865
 
  am_cv_CXX_dependencies_compiler_type=none
7866
 
fi
7867
 
 
7868
 
fi
7869
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7870
 
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7871
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7872
 
 
7873
 
 if
7874
 
  test "x$enable_dependency_tracking" != xno \
7875
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7876
 
  am__fastdepCXX_TRUE=
7877
 
  am__fastdepCXX_FALSE='#'
7878
 
else
7879
 
  am__fastdepCXX_TRUE='#'
7880
 
  am__fastdepCXX_FALSE=
7881
 
fi
7882
 
 
7883
 
 
7884
8033
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7885
8034
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7886
8035
    (test "X$CXX" != "Xg++"))) ; then
8524
8673
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8525
8674
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8526
8675
   -e 's:$: $lt_compiler_flag:'`
8527
 
   (eval echo "\"\$as_me:8527: $lt_compile\"" >&5)
 
8676
   (eval echo "\"\$as_me:8676: $lt_compile\"" >&5)
8528
8677
   (eval "$lt_compile" 2>conftest.err)
8529
8678
   ac_status=$?
8530
8679
   cat conftest.err >&5
8531
 
   echo "$as_me:8531: \$? = $ac_status" >&5
 
8680
   echo "$as_me:8680: \$? = $ac_status" >&5
8532
8681
   if (exit $ac_status) && test -s "$ac_outfile"; then
8533
8682
     # The compiler can only warn and ignore the option if not recognized
8534
8683
     # So say no if there are warnings other than the usual output.
8863
9012
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8864
9013
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8865
9014
   -e 's:$: $lt_compiler_flag:'`
8866
 
   (eval echo "\"\$as_me:8866: $lt_compile\"" >&5)
 
9015
   (eval echo "\"\$as_me:9015: $lt_compile\"" >&5)
8867
9016
   (eval "$lt_compile" 2>conftest.err)
8868
9017
   ac_status=$?
8869
9018
   cat conftest.err >&5
8870
 
   echo "$as_me:8870: \$? = $ac_status" >&5
 
9019
   echo "$as_me:9019: \$? = $ac_status" >&5
8871
9020
   if (exit $ac_status) && test -s "$ac_outfile"; then
8872
9021
     # The compiler can only warn and ignore the option if not recognized
8873
9022
     # So say no if there are warnings other than the usual output.
8968
9117
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8969
9118
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8970
9119
   -e 's:$: $lt_compiler_flag:'`
8971
 
   (eval echo "\"\$as_me:8971: $lt_compile\"" >&5)
 
9120
   (eval echo "\"\$as_me:9120: $lt_compile\"" >&5)
8972
9121
   (eval "$lt_compile" 2>out/conftest.err)
8973
9122
   ac_status=$?
8974
9123
   cat out/conftest.err >&5
8975
 
   echo "$as_me:8975: \$? = $ac_status" >&5
 
9124
   echo "$as_me:9124: \$? = $ac_status" >&5
8976
9125
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8977
9126
   then
8978
9127
     # The compiler can only warn and ignore the option if not recognized
9023
9172
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9024
9173
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9025
9174
   -e 's:$: $lt_compiler_flag:'`
9026
 
   (eval echo "\"\$as_me:9026: $lt_compile\"" >&5)
 
9175
   (eval echo "\"\$as_me:9175: $lt_compile\"" >&5)
9027
9176
   (eval "$lt_compile" 2>out/conftest.err)
9028
9177
   ac_status=$?
9029
9178
   cat out/conftest.err >&5
9030
 
   echo "$as_me:9030: \$? = $ac_status" >&5
 
9179
   echo "$as_me:9179: \$? = $ac_status" >&5
9031
9180
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9032
9181
   then
9033
9182
     # The compiler can only warn and ignore the option if not recognized
11390
11539
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11391
11540
  lt_status=$lt_dlunknown
11392
11541
  cat > conftest.$ac_ext <<_LT_EOF
11393
 
#line 11393 "configure"
 
11542
#line 11542 "configure"
11394
11543
#include "confdefs.h"
11395
11544
 
11396
11545
#if HAVE_DLFCN_H
11486
11635
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11487
11636
  lt_status=$lt_dlunknown
11488
11637
  cat > conftest.$ac_ext <<_LT_EOF
11489
 
#line 11489 "configure"
 
11638
#line 11638 "configure"
11490
11639
#include "confdefs.h"
11491
11640
 
11492
11641
#if HAVE_DLFCN_H
13442
13591
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13443
13592
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13444
13593
   -e 's:$: $lt_compiler_flag:'`
13445
 
   (eval echo "\"\$as_me:13445: $lt_compile\"" >&5)
 
13594
   (eval echo "\"\$as_me:13594: $lt_compile\"" >&5)
13446
13595
   (eval "$lt_compile" 2>conftest.err)
13447
13596
   ac_status=$?
13448
13597
   cat conftest.err >&5
13449
 
   echo "$as_me:13449: \$? = $ac_status" >&5
 
13598
   echo "$as_me:13598: \$? = $ac_status" >&5
13450
13599
   if (exit $ac_status) && test -s "$ac_outfile"; then
13451
13600
     # The compiler can only warn and ignore the option if not recognized
13452
13601
     # So say no if there are warnings other than the usual output.
13541
13690
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13542
13691
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13543
13692
   -e 's:$: $lt_compiler_flag:'`
13544
 
   (eval echo "\"\$as_me:13544: $lt_compile\"" >&5)
 
13693
   (eval echo "\"\$as_me:13693: $lt_compile\"" >&5)
13545
13694
   (eval "$lt_compile" 2>out/conftest.err)
13546
13695
   ac_status=$?
13547
13696
   cat out/conftest.err >&5
13548
 
   echo "$as_me:13548: \$? = $ac_status" >&5
 
13697
   echo "$as_me:13697: \$? = $ac_status" >&5
13549
13698
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13550
13699
   then
13551
13700
     # The compiler can only warn and ignore the option if not recognized
13593
13742
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13594
13743
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13595
13744
   -e 's:$: $lt_compiler_flag:'`
13596
 
   (eval echo "\"\$as_me:13596: $lt_compile\"" >&5)
 
13745
   (eval echo "\"\$as_me:13745: $lt_compile\"" >&5)
13597
13746
   (eval "$lt_compile" 2>out/conftest.err)
13598
13747
   ac_status=$?
13599
13748
   cat out/conftest.err >&5
13600
 
   echo "$as_me:13600: \$? = $ac_status" >&5
 
13749
   echo "$as_me:13749: \$? = $ac_status" >&5
13601
13750
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13602
13751
   then
13603
13752
     # The compiler can only warn and ignore the option if not recognized
14545
14694
# Only expand once:
14546
14695
 
14547
14696
 
14548
 
# AC_PROG_RANLIB is obsolete by AC_PROC_LIBTOOL
14549
 
 
14550
 
# Check whether --enable-largefile was given.
14551
 
if test "${enable_largefile+set}" = set; then :
14552
 
  enableval=$enable_largefile;
14553
 
fi
14554
 
 
14555
 
if test "$enable_largefile" != no; then
14556
 
 
14557
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14558
 
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14559
 
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
14560
 
  $as_echo_n "(cached) " >&6
14561
 
else
14562
 
  ac_cv_sys_largefile_CC=no
14563
 
     if test "$GCC" != yes; then
14564
 
       ac_save_CC=$CC
14565
 
       while :; do
14566
 
         # IRIX 6.2 and later do not support large files by default,
14567
 
         # so use the C compiler's -n32 option if that helps.
14568
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14569
 
/* end confdefs.h.  */
14570
 
#include <sys/types.h>
14571
 
 /* Check that off_t can represent 2**63 - 1 correctly.
14572
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14573
 
    since some C++ compilers masquerading as C compilers
14574
 
    incorrectly reject 9223372036854775807.  */
14575
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14576
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14577
 
                       && LARGE_OFF_T % 2147483647 == 1)
14578
 
                      ? 1 : -1];
14579
 
int
14580
 
main ()
14581
 
{
14582
 
 
14583
 
  ;
14584
 
  return 0;
14585
 
}
14586
 
_ACEOF
14587
 
         if ac_fn_c_try_compile "$LINENO"; then :
14588
 
  break
14589
 
fi
14590
 
rm -f core conftest.err conftest.$ac_objext
14591
 
         CC="$CC -n32"
14592
 
         if ac_fn_c_try_compile "$LINENO"; then :
14593
 
  ac_cv_sys_largefile_CC=' -n32'; break
14594
 
fi
14595
 
rm -f core conftest.err conftest.$ac_objext
14596
 
         break
14597
 
       done
14598
 
       CC=$ac_save_CC
14599
 
       rm -f conftest.$ac_ext
14600
 
    fi
14601
 
fi
14602
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14603
 
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
14604
 
  if test "$ac_cv_sys_largefile_CC" != no; then
14605
 
    CC=$CC$ac_cv_sys_largefile_CC
14606
 
  fi
14607
 
 
14608
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14609
 
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14610
 
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
14611
 
  $as_echo_n "(cached) " >&6
14612
 
else
14613
 
  while :; do
14614
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615
 
/* end confdefs.h.  */
14616
 
#include <sys/types.h>
14617
 
 /* Check that off_t can represent 2**63 - 1 correctly.
14618
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14619
 
    since some C++ compilers masquerading as C compilers
14620
 
    incorrectly reject 9223372036854775807.  */
14621
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14622
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14623
 
                       && LARGE_OFF_T % 2147483647 == 1)
14624
 
                      ? 1 : -1];
14625
 
int
14626
 
main ()
14627
 
{
14628
 
 
14629
 
  ;
14630
 
  return 0;
14631
 
}
14632
 
_ACEOF
14633
 
if ac_fn_c_try_compile "$LINENO"; then :
14634
 
  ac_cv_sys_file_offset_bits=no; break
14635
 
fi
14636
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14638
 
/* end confdefs.h.  */
14639
 
#define _FILE_OFFSET_BITS 64
14640
 
#include <sys/types.h>
14641
 
 /* Check that off_t can represent 2**63 - 1 correctly.
14642
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14643
 
    since some C++ compilers masquerading as C compilers
14644
 
    incorrectly reject 9223372036854775807.  */
14645
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14646
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14647
 
                       && LARGE_OFF_T % 2147483647 == 1)
14648
 
                      ? 1 : -1];
14649
 
int
14650
 
main ()
14651
 
{
14652
 
 
14653
 
  ;
14654
 
  return 0;
14655
 
}
14656
 
_ACEOF
14657
 
if ac_fn_c_try_compile "$LINENO"; then :
14658
 
  ac_cv_sys_file_offset_bits=64; break
14659
 
fi
14660
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14661
 
  ac_cv_sys_file_offset_bits=unknown
14662
 
  break
14663
 
done
14664
 
fi
14665
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14666
 
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14667
 
case $ac_cv_sys_file_offset_bits in #(
14668
 
  no | unknown) ;;
14669
 
  *)
14670
 
cat >>confdefs.h <<_ACEOF
14671
 
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14672
 
_ACEOF
14673
 
;;
14674
 
esac
14675
 
rm -rf conftest*
14676
 
  if test $ac_cv_sys_file_offset_bits = unknown; then
14677
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14678
 
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14679
 
if test "${ac_cv_sys_large_files+set}" = set; then :
14680
 
  $as_echo_n "(cached) " >&6
14681
 
else
14682
 
  while :; do
14683
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684
 
/* end confdefs.h.  */
14685
 
#include <sys/types.h>
14686
 
 /* Check that off_t can represent 2**63 - 1 correctly.
14687
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14688
 
    since some C++ compilers masquerading as C compilers
14689
 
    incorrectly reject 9223372036854775807.  */
14690
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14691
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14692
 
                       && LARGE_OFF_T % 2147483647 == 1)
14693
 
                      ? 1 : -1];
14694
 
int
14695
 
main ()
14696
 
{
14697
 
 
14698
 
  ;
14699
 
  return 0;
14700
 
}
14701
 
_ACEOF
14702
 
if ac_fn_c_try_compile "$LINENO"; then :
14703
 
  ac_cv_sys_large_files=no; break
14704
 
fi
14705
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14706
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14707
 
/* end confdefs.h.  */
14708
 
#define _LARGE_FILES 1
14709
 
#include <sys/types.h>
14710
 
 /* Check that off_t can represent 2**63 - 1 correctly.
14711
 
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14712
 
    since some C++ compilers masquerading as C compilers
14713
 
    incorrectly reject 9223372036854775807.  */
14714
 
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14715
 
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14716
 
                       && LARGE_OFF_T % 2147483647 == 1)
14717
 
                      ? 1 : -1];
14718
 
int
14719
 
main ()
14720
 
{
14721
 
 
14722
 
  ;
14723
 
  return 0;
14724
 
}
14725
 
_ACEOF
14726
 
if ac_fn_c_try_compile "$LINENO"; then :
14727
 
  ac_cv_sys_large_files=1; break
14728
 
fi
14729
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14730
 
  ac_cv_sys_large_files=unknown
14731
 
  break
14732
 
done
14733
 
fi
14734
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14735
 
$as_echo "$ac_cv_sys_large_files" >&6; }
14736
 
case $ac_cv_sys_large_files in #(
14737
 
  no | unknown) ;;
14738
 
  *)
14739
 
cat >>confdefs.h <<_ACEOF
14740
 
#define _LARGE_FILES $ac_cv_sys_large_files
14741
 
_ACEOF
14742
 
;;
14743
 
esac
14744
 
rm -rf conftest*
14745
 
  fi
14746
 
fi
14747
 
 
 
14697
 
 
14698
 
 
14699
###############################################################################
 
14700
# Checking for needed base libraries
 
14701
###############################################################################
 
14702
 
 
14703
$as_echo
 
14704
$as_echo  "Checking for posix thread support:"
14748
14705
 
14749
14706
 
14750
14707
 
14755
14712
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14756
14713
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14757
14714
 
14758
 
acx_pthread_ok=no
 
14715
ax_pthread_ok=no
14759
14716
 
14760
14717
# We used to check for pthread.h first, but this fails if pthread.h
14761
14718
# requires special compiler flags (e.g. on True64 or Sequent).
14764
14721
# First of all, check if the user has set any of the PTHREAD_LIBS,
14765
14722
# etcetera environment variables, and if threads linking works using
14766
14723
# them:
14767
 
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
 
14724
if test "x$PTHREAD_LIBS$PTHREAD_CFLAGS" != "x"; then
14768
14725
        save_CFLAGS="$CFLAGS"
14769
14726
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14770
14727
        save_LIBS="$LIBS"
14790
14747
}
14791
14748
_ACEOF
14792
14749
if ac_fn_c_try_link "$LINENO"; then :
14793
 
  acx_pthread_ok=yes
 
14750
  ax_pthread_ok=yes
14794
14751
fi
14795
14752
rm -f core conftest.err conftest.$ac_objext \
14796
14753
    conftest$ac_exeext conftest.$ac_ext
14797
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14798
 
$as_echo "$acx_pthread_ok" >&6; }
14799
 
        if test x"$acx_pthread_ok" = xno; then
 
14754
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
 
14755
$as_echo "$ax_pthread_ok" >&6; }
 
14756
        if test "x$ax_pthread_ok" = "xno"; then
14800
14757
                PTHREAD_LIBS=""
14801
14758
                PTHREAD_CFLAGS=""
14802
14759
        fi
14814
14771
# which indicates that we try without any flags at all, and "pthread-config"
14815
14772
# which is a program returning the flags for the Pth emulation library.
14816
14773
 
14817
 
acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
 
14774
ax_pthread_flags="pthreads none -Kthread -kthread lthread -lpthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14818
14775
 
14819
14776
# The ordering *is* (sometimes) important.  Some notes on the
14820
14777
# individual items follow:
14831
14788
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14832
14789
#      doesn't hurt to check since this sometimes defines pthreads too;
14833
14790
#      also defines -D_REENTRANT)
 
14791
#      ... -mt is also the pthreads flag for HP/aCC
14834
14792
# pthread: Linux, etcetera
14835
14793
# --thread-safe: KAI C++
14836
14794
# pthread-config: use pthread-config program (for GNU Pth library)
14840
14798
 
14841
14799
        # On Solaris (at least, for some versions), libc contains stubbed
14842
14800
        # (non-functional) versions of the pthreads routines, so link-based
14843
 
        # tests will erroneously succeed.  (We need to link with -pthread or
 
14801
        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
14844
14802
        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
14845
14803
        # a function called by this macro, so we could check for that, but
14846
14804
        # who knows whether they'll stub that too in a future libc.)  So,
14847
14805
        # we'll just look for -pthreads and -lpthread first:
14848
14806
 
14849
 
        acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
 
14807
        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
14850
14808
        ;;
14851
14809
esac
14852
14810
 
14853
 
if test x"$acx_pthread_ok" = xno; then
14854
 
for flag in $acx_pthread_flags; do
 
14811
if test "x$ax_pthread_ok" = "xno"; then
 
14812
for flag in $ax_pthread_flags; do
14855
14813
 
14856
14814
        case $flag in
14857
14815
                none)
14870
14828
set dummy pthread-config; ac_word=$2
14871
14829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14872
14830
$as_echo_n "checking for $ac_word... " >&6; }
14873
 
if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
 
14831
if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
14874
14832
  $as_echo_n "(cached) " >&6
14875
14833
else
14876
 
  if test -n "$acx_pthread_config"; then
14877
 
  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
 
14834
  if test -n "$ax_pthread_config"; then
 
14835
  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
14878
14836
else
14879
14837
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14880
14838
for as_dir in $PATH
14883
14841
  test -z "$as_dir" && as_dir=.
14884
14842
    for ac_exec_ext in '' $ac_executable_extensions; do
14885
14843
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14886
 
    ac_cv_prog_acx_pthread_config="yes"
 
14844
    ac_cv_prog_ax_pthread_config="yes"
14887
14845
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14888
14846
    break 2
14889
14847
  fi
14891
14849
  done
14892
14850
IFS=$as_save_IFS
14893
14851
 
14894
 
  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14895
 
fi
14896
 
fi
14897
 
acx_pthread_config=$ac_cv_prog_acx_pthread_config
14898
 
if test -n "$acx_pthread_config"; then
14899
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14900
 
$as_echo "$acx_pthread_config" >&6; }
 
14852
  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
 
14853
fi
 
14854
fi
 
14855
ax_pthread_config=$ac_cv_prog_ax_pthread_config
 
14856
if test -n "$ax_pthread_config"; then
 
14857
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
 
14858
$as_echo "$ax_pthread_config" >&6; }
14901
14859
else
14902
14860
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14903
14861
$as_echo "no" >&6; }
14904
14862
fi
14905
14863
 
14906
14864
 
14907
 
                if test x"$acx_pthread_config" = xno; then continue; fi
 
14865
                if test "x$ax_pthread_config" = "xno"; then continue; fi
14908
14866
                PTHREAD_CFLAGS="`pthread-config --cflags`"
14909
14867
                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14910
14868
                ;;
14944
14902
}
14945
14903
_ACEOF
14946
14904
if ac_fn_c_try_link "$LINENO"; then :
14947
 
  acx_pthread_ok=yes
 
14905
  ax_pthread_ok=yes
14948
14906
fi
14949
14907
rm -f core conftest.err conftest.$ac_objext \
14950
14908
    conftest$ac_exeext conftest.$ac_ext
14952
14910
        LIBS="$save_LIBS"
14953
14911
        CFLAGS="$save_CFLAGS"
14954
14912
 
14955
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14956
 
$as_echo "$acx_pthread_ok" >&6; }
14957
 
        if test "x$acx_pthread_ok" = xyes; then
 
14913
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
 
14914
$as_echo "$ax_pthread_ok" >&6; }
 
14915
        if test "x$ax_pthread_ok" = "xyes"; then
14958
14916
                break;
14959
14917
        fi
14960
14918
 
14964
14922
fi
14965
14923
 
14966
14924
# Various other checks:
14967
 
if test "x$acx_pthread_ok" = xyes; then
 
14925
if test "x$ax_pthread_ok" = "xyes"; then
14968
14926
        save_LIBS="$LIBS"
14969
14927
        LIBS="$PTHREAD_LIBS $LIBS"
14970
14928
        save_CFLAGS="$CFLAGS"
14971
14929
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14972
14930
 
14973
 
        # Detect AIX lossage: threads are created detached by default
14974
 
        # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
14975
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
 
14931
        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
 
14932
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14976
14933
$as_echo_n "checking for joinable pthread attribute... " >&6; }
14977
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978
 
/* end confdefs.h.  */
14979
 
#include <pthread.h>
14980
 
int
14981
 
main ()
14982
 
{
14983
 
int attr=PTHREAD_CREATE_JOINABLE;
14984
 
  ;
14985
 
  return 0;
14986
 
}
14987
 
_ACEOF
14988
 
if ac_fn_c_try_link "$LINENO"; then :
14989
 
  ok=PTHREAD_CREATE_JOINABLE
14990
 
else
14991
 
  ok=unknown
14992
 
fi
14993
 
rm -f core conftest.err conftest.$ac_objext \
14994
 
    conftest$ac_exeext conftest.$ac_ext
14995
 
        if test x"$ok" = xunknown; then
14996
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997
 
/* end confdefs.h.  */
14998
 
#include <pthread.h>
14999
 
int
15000
 
main ()
15001
 
{
15002
 
int attr=PTHREAD_CREATE_UNDETACHED;
15003
 
  ;
15004
 
  return 0;
15005
 
}
15006
 
_ACEOF
15007
 
if ac_fn_c_try_link "$LINENO"; then :
15008
 
  ok=PTHREAD_CREATE_UNDETACHED
15009
 
else
15010
 
  ok=unknown
15011
 
fi
15012
 
rm -f core conftest.err conftest.$ac_objext \
15013
 
    conftest$ac_exeext conftest.$ac_ext
15014
 
        fi
15015
 
        if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
15016
 
 
15017
 
$as_echo "#define PTHREAD_CREATE_JOINABLE \$ok" >>confdefs.h
15018
 
 
15019
 
        fi
15020
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
15021
 
$as_echo "${ok}" >&6; }
15022
 
        if test x"$ok" = xunknown; then
15023
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we do not know how to create joinable pthreads" >&5
15024
 
$as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
 
14934
        attr_name=unknown
 
14935
        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
 
14936
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14937
/* end confdefs.h.  */
 
14938
#include <pthread.h>
 
14939
int
 
14940
main ()
 
14941
{
 
14942
int attr=$attr; return attr;
 
14943
  ;
 
14944
  return 0;
 
14945
}
 
14946
_ACEOF
 
14947
if ac_fn_c_try_link "$LINENO"; then :
 
14948
  attr_name=$attr; break
 
14949
fi
 
14950
rm -f core conftest.err conftest.$ac_objext \
 
14951
    conftest$ac_exeext conftest.$ac_ext
 
14952
        done
 
14953
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
 
14954
$as_echo "$attr_name" >&6; }
 
14955
        if test "x$attr_name" != "xPTHREAD_CREATE_JOINABLE"; then
 
14956
 
 
14957
cat >>confdefs.h <<_ACEOF
 
14958
#define PTHREAD_CREATE_JOINABLE $attr_name
 
14959
_ACEOF
 
14960
 
15025
14961
        fi
15026
14962
 
15027
14963
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15028
14964
$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15029
14965
        flag=no
15030
14966
        case "${host_cpu}-${host_os}" in
15031
 
                *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15032
 
                *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
 
14967
            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
 
14968
            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15033
14969
        esac
15034
14970
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15035
14971
$as_echo "${flag}" >&6; }
15036
 
        if test "x$flag" != xno; then
15037
 
                PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
 
14972
        if test "x$flag" != "xno"; then
 
14973
            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15038
14974
        fi
15039
14975
 
15040
14976
        LIBS="$save_LIBS"
15041
14977
        CFLAGS="$save_CFLAGS"
15042
14978
 
15043
 
        # More AIX lossage: must compile with cc_r
15044
 
        # Extract the first word of "cc_r", so it can be a program name with args.
15045
 
set dummy cc_r; ac_word=$2
 
14979
        # More AIX lossage: must compile with xlc_r or cc_r
 
14980
        if test "x$GCC" != "xyes"; then
 
14981
          for ac_prog in xlc_r cc_r
 
14982
do
 
14983
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
14984
set dummy $ac_prog; ac_word=$2
15046
14985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15047
14986
$as_echo_n "checking for $ac_word... " >&6; }
15048
14987
if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
15058
14997
  test -z "$as_dir" && as_dir=.
15059
14998
    for ac_exec_ext in '' $ac_executable_extensions; do
15060
14999
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15061
 
    ac_cv_prog_PTHREAD_CC="cc_r"
 
15000
    ac_cv_prog_PTHREAD_CC="$ac_prog"
15062
15001
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15063
15002
    break 2
15064
15003
  fi
15066
15005
  done
15067
15006
IFS=$as_save_IFS
15068
15007
 
15069
 
  test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
15070
15008
fi
15071
15009
fi
15072
15010
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15079
15017
fi
15080
15018
 
15081
15019
 
 
15020
  test -n "$PTHREAD_CC" && break
 
15021
done
 
15022
test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
 
15023
 
 
15024
        else
 
15025
          PTHREAD_CC=$CC
 
15026
        fi
15082
15027
else
15083
15028
        PTHREAD_CC="$CC"
15084
15029
fi
15088
15033
 
15089
15034
 
15090
15035
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15091
 
if test x"$acx_pthread_ok" = xyes; then
 
15036
if test "x$ax_pthread_ok" = "xyes"; then
15092
15037
 
15093
15038
$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15094
15039
 
15095
15040
        :
15096
15041
else
15097
 
        acx_pthread_ok=no
 
15042
        ax_pthread_ok=no
15098
15043
 
15099
15044
fi
15100
15045
ac_ext=c
15105
15050
 
15106
15051
 
15107
15052
 
15108
 
COMPILETIME_OPTIONS=""
15109
 
 
15110
 
 if false; then
15111
 
  ENABLE_SHIPPED_ASIO_TRUE=
15112
 
  ENABLE_SHIPPED_ASIO_FALSE='#'
15113
 
else
15114
 
  ENABLE_SHIPPED_ASIO_TRUE='#'
15115
 
  ENABLE_SHIPPED_ASIO_FALSE=
15116
 
fi
15117
 
 
15118
 
 
15119
 
 
15120
 
 
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
15125
 
                want_boost="no"
15126
 
    elif test "$withval" = "yes"; then
15127
 
        want_boost="yes"
15128
 
        ac_boost_path=""
15129
 
    else
15130
 
            want_boost="yes"
15131
 
        ac_boost_path="$withval"
15132
 
        fi
15133
 
 
15134
 
else
15135
 
  want_boost="yes"
15136
 
fi
15137
 
 
15138
 
 
15139
 
 
15140
 
 
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
15145
 
        then
15146
 
                ac_boost_lib_path="$withval"
15147
 
        else
15148
 
                as_fn_error "--with-boost-libdir expected directory name" "$LINENO" 5
15149
 
        fi
15150
 
 
15151
 
else
15152
 
  ac_boost_lib_path=""
15153
 
 
15154
 
fi
15155
 
 
15156
 
 
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"
15165
 
        fi
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; }
15169
 
        succeeded=no
15170
 
 
15171
 
                                if test "$ac_boost_path" != ""; then
15172
 
                BOOST_LDFLAGS="-L$ac_boost_path/lib"
15173
 
                BOOST_CPPFLAGS="-I$ac_boost_path/include"
15174
 
        else
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"
15179
 
                                break;
15180
 
                        fi
15181
 
                done
15182
 
        fi
15183
 
 
15184
 
            if test "$ac_boost_lib_path" != ""; then
15185
 
       BOOST_LDFLAGS="-L$ac_boost_lib_path"
15186
 
    fi
15187
 
 
15188
 
        CPPFLAGS_SAVED="$CPPFLAGS"
15189
 
        CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
15190
 
        export CPPFLAGS
15191
 
 
15192
 
        LDFLAGS_SAVED="$LDFLAGS"
15193
 
        LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
15194
 
        export LDFLAGS
15195
 
 
15196
 
        ac_ext=cpp
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
15201
 
 
15202
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203
 
/* end confdefs.h.  */
15204
 
 
15205
 
        #include <boost/version.hpp>
15206
 
 
15207
 
int
15208
 
main ()
15209
 
{
15210
 
 
15211
 
        #if BOOST_VERSION >= $WANT_BOOST_VERSION
15212
 
        // Everything is okay
15213
 
        #else
15214
 
        #  error Boost version is too old
15215
 
        #endif
15216
 
 
15217
 
  ;
15218
 
  return 0;
15219
 
}
15220
 
_ACEOF
15221
 
if ac_fn_cxx_try_compile "$LINENO"; then :
15222
 
 
15223
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15224
 
$as_echo "yes" >&6; }
15225
 
        succeeded=yes
15226
 
        found_system=yes
15227
 
 
15228
 
fi
15229
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15230
 
        ac_ext=c
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
15235
 
 
15236
 
 
15237
 
 
15238
 
 
15239
 
                        if test "x$succeeded" != "xyes"; then
15240
 
                _version=0
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
15248
 
                                        fi
15249
 
                                        VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
15250
 
                                        BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
15251
 
                                done
15252
 
                        fi
15253
 
                else
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
15262
 
                                                fi
15263
 
                                        done
15264
 
                                fi
15265
 
                        done
15266
 
 
15267
 
                        VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
15268
 
                        BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
15269
 
            if test "$ac_boost_lib_path" = ""
15270
 
            then
15271
 
               BOOST_LDFLAGS="-L$best_path/lib"
15272
 
            fi
15273
 
 
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"
15285
 
                                        fi
15286
 
                                fi
15287
 
                        fi
15288
 
                fi
15289
 
 
15290
 
                CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
15291
 
                export CPPFLAGS
15292
 
                LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
15293
 
                export LDFLAGS
15294
 
 
15295
 
                ac_ext=cpp
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
15300
 
 
15301
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302
 
/* end confdefs.h.  */
15303
 
 
15304
 
                #include <boost/version.hpp>
15305
 
 
15306
 
int
15307
 
main ()
15308
 
{
15309
 
 
15310
 
                #if BOOST_VERSION >= $WANT_BOOST_VERSION
15311
 
                // Everything is okay
15312
 
                #else
15313
 
                #  error Boost version is too old
15314
 
                #endif
15315
 
 
15316
 
  ;
15317
 
  return 0;
15318
 
}
15319
 
_ACEOF
15320
 
if ac_fn_cxx_try_compile "$LINENO"; then :
15321
 
 
15322
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15323
 
$as_echo "yes" >&6; }
15324
 
                succeeded=yes
15325
 
                found_system=yes
15326
 
 
15327
 
fi
15328
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15329
 
                ac_ext=c
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
15334
 
 
15335
 
        fi
15336
 
 
15337
 
        CPPFLAGS="$CPPFLAGS_SAVED"
15338
 
        LDFLAGS="$LDFLAGS_SAVED"
15339
 
        unset ac_boost_path # re-enterability
15340
 
 
15341
 
        if test "$succeeded" != "yes" ; then
15342
 
 
15343
 
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15344
 
$as_echo "no" >&6; }
15345
 
 
15346
 
 
15347
 
 
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
15352
 
                want_boost="no"
15353
 
    elif test "$withval" = "yes"; then
15354
 
        want_boost="yes"
15355
 
        ac_boost_path=""
15356
 
    else
15357
 
            want_boost="yes"
15358
 
        ac_boost_path="$withval"
15359
 
        fi
15360
 
 
15361
 
else
15362
 
  want_boost="yes"
15363
 
fi
15364
 
 
15365
 
 
15366
 
 
15367
 
 
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
15372
 
        then
15373
 
                ac_boost_lib_path="$withval"
15374
 
        else
15375
 
                as_fn_error "--with-boost-libdir expected directory name" "$LINENO" 5
15376
 
        fi
15377
 
 
15378
 
else
15379
 
  ac_boost_lib_path=""
15380
 
 
15381
 
fi
15382
 
 
15383
 
 
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"
15392
 
        fi
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; }
15396
 
        succeeded=no
15397
 
 
15398
 
                                if test "$ac_boost_path" != ""; then
15399
 
                BOOST_LDFLAGS="-L$ac_boost_path/lib"
15400
 
                BOOST_CPPFLAGS="-I$ac_boost_path/include"
15401
 
        else
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"
15406
 
                                break;
15407
 
                        fi
15408
 
                done
15409
 
        fi
15410
 
 
15411
 
            if test "$ac_boost_lib_path" != ""; then
15412
 
       BOOST_LDFLAGS="-L$ac_boost_lib_path"
15413
 
    fi
15414
 
 
15415
 
        CPPFLAGS_SAVED="$CPPFLAGS"
15416
 
        CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
15417
 
        export CPPFLAGS
15418
 
 
15419
 
        LDFLAGS_SAVED="$LDFLAGS"
15420
 
        LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
15421
 
        export LDFLAGS
15422
 
 
15423
 
        ac_ext=cpp
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
15428
 
 
15429
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430
 
/* end confdefs.h.  */
15431
 
 
15432
 
        #include <boost/version.hpp>
15433
 
 
15434
 
int
15435
 
main ()
15436
 
{
15437
 
 
15438
 
        #if BOOST_VERSION >= $WANT_BOOST_VERSION
15439
 
        // Everything is okay
15440
 
        #else
15441
 
        #  error Boost version is too old
15442
 
        #endif
15443
 
 
15444
 
  ;
15445
 
  return 0;
15446
 
}
15447
 
_ACEOF
15448
 
if ac_fn_cxx_try_compile "$LINENO"; then :
15449
 
 
15450
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15451
 
$as_echo "yes" >&6; }
15452
 
        succeeded=yes
15453
 
        found_system=yes
15454
 
 
15455
 
fi
15456
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457
 
        ac_ext=c
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
15462
 
 
15463
 
 
15464
 
 
15465
 
 
15466
 
                        if test "x$succeeded" != "xyes"; then
15467
 
                _version=0
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
15475
 
                                        fi
15476
 
                                        VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
15477
 
                                        BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
15478
 
                                done
15479
 
                        fi
15480
 
                else
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
15489
 
                                                fi
15490
 
                                        done
15491
 
                                fi
15492
 
                        done
15493
 
 
15494
 
                        VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
15495
 
                        BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
15496
 
            if test "$ac_boost_lib_path" = ""
15497
 
            then
15498
 
               BOOST_LDFLAGS="-L$best_path/lib"
15499
 
            fi
15500
 
 
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"
15512
 
                                        fi
15513
 
                                fi
15514
 
                        fi
15515
 
                fi
15516
 
 
15517
 
                CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
15518
 
                export CPPFLAGS
15519
 
                LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
15520
 
                export LDFLAGS
15521
 
 
15522
 
                ac_ext=cpp
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
15527
 
 
15528
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15529
 
/* end confdefs.h.  */
15530
 
 
15531
 
                #include <boost/version.hpp>
15532
 
 
15533
 
int
15534
 
main ()
15535
 
{
15536
 
 
15537
 
                #if BOOST_VERSION >= $WANT_BOOST_VERSION
15538
 
                // Everything is okay
15539
 
                #else
15540
 
                #  error Boost version is too old
15541
 
                #endif
15542
 
 
15543
 
  ;
15544
 
  return 0;
15545
 
}
15546
 
_ACEOF
15547
 
if ac_fn_cxx_try_compile "$LINENO"; then :
15548
 
 
15549
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15550
 
$as_echo "yes" >&6; }
15551
 
                succeeded=yes
15552
 
                found_system=yes
15553
 
 
15554
 
fi
15555
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15556
 
                ac_ext=c
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
15561
 
 
15562
 
        fi
15563
 
 
15564
 
        CPPFLAGS="$CPPFLAGS_SAVED"
15565
 
        LDFLAGS="$LDFLAGS_SAVED"
15566
 
        unset ac_boost_path # re-enterability
15567
 
 
15568
 
        if test "$succeeded" != "yes" ; then
15569
 
 
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
15572
 
                        else
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"
 
15055
CC="$PTHREAD_CC"
 
15056
 
 
15057
$as_echo
 
15058
$as_echo  "Checking for boost libraries:"
 
15059
 
 
15060
 
 
15061
 
 
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
 
15066
                want_boost="no"
 
15067
    elif test "x$withval" = "xyes"; then
 
15068
        want_boost="yes"
 
15069
        ac_boost_path=""
 
15070
    else
 
15071
            want_boost="yes"
 
15072
        ac_boost_path="$withval"
 
15073
        fi
 
15074
 
 
15075
else
 
15076
  want_boost="yes"
 
15077
fi
 
15078
 
 
15079
 
 
15080
 
 
15081
 
 
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
 
15086
        then
 
15087
                ac_boost_lib_path="$withval"
 
15088
        else
 
15089
                as_fn_error "--with-boost-libdir expected directory name" "$LINENO" 5
 
15090
        fi
 
15091
 
 
15092
else
 
15093
  ac_boost_lib_path=""
 
15094
 
 
15095
fi
 
15096
 
 
15097
 
 
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"
 
15106
        fi
 
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; }
 
15110
        succeeded=no
 
15111
 
 
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"
 
15115
        else
 
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,_,.,'`
 
15121
                                break;
 
15122
                        fi
 
15123
                done
 
15124
        fi
 
15125
 
 
15126
            if test "x$ac_boost_lib_path" != "x"; then
 
15127
       BOOST_LDFLAGS="-L$ac_boost_lib_path"
 
15128
    fi
 
15129
 
 
15130
        CPPFLAGS_SAVED="$CPPFLAGS"
 
15131
        CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
 
15132
        export CPPFLAGS
 
15133
 
 
15134
        LDFLAGS_SAVED="$LDFLAGS"
 
15135
        LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
 
15136
        export LDFLAGS
 
15137
 
 
15138
        ac_ext=cpp
 
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
 
15143
 
 
15144
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15145
/* end confdefs.h.  */
 
15146
 
 
15147
        #include <boost/version.hpp>
 
15148
 
 
15149
int
 
15150
main ()
 
15151
{
 
15152
 
 
15153
        #if BOOST_VERSION >= $WANT_BOOST_VERSION
 
15154
        // Everything is okay
 
15155
        #else
 
15156
        #  error Boost version is too old
 
15157
        #endif
 
15158
 
 
15159
  ;
 
15160
  return 0;
 
15161
}
 
15162
_ACEOF
 
15163
if ac_fn_cxx_try_compile "$LINENO"; then :
 
15164
 
 
15165
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
15166
$as_echo "yes" >&6; }
 
15167
        succeeded=yes
 
15168
        found_system=yes
 
15169
 
 
15170
fi
 
15171
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15172
        ac_ext=c
 
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
 
15177
 
 
15178
 
 
15179
 
 
15180
 
 
15181
                        if test "x$succeeded" != "xyes"; then
 
15182
                _version=0
 
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
 
15190
                                        fi
 
15191
                                        VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
 
15192
                                        BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
 
15193
                                done
 
15194
                        fi
 
15195
                else
 
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
 
15204
                                                fi
 
15205
                                        done
 
15206
                                fi
 
15207
                        done
 
15208
 
 
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"
 
15212
            then
 
15213
               BOOST_LDFLAGS="-L$best_path/lib"
 
15214
            fi
 
15215
 
 
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"
 
15227
                                        fi
 
15228
                                fi
 
15229
                        fi
 
15230
                fi
 
15231
 
 
15232
                CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
 
15233
                export CPPFLAGS
 
15234
                LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
 
15235
                export LDFLAGS
 
15236
 
 
15237
                ac_ext=cpp
 
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
 
15242
 
 
15243
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15244
/* end confdefs.h.  */
 
15245
 
 
15246
                #include <boost/version.hpp>
 
15247
 
 
15248
int
 
15249
main ()
 
15250
{
 
15251
 
 
15252
                #if BOOST_VERSION >= $WANT_BOOST_VERSION
 
15253
                // Everything is okay
 
15254
                #else
 
15255
                #  error Boost version is too old
 
15256
                #endif
 
15257
 
 
15258
  ;
 
15259
  return 0;
 
15260
}
 
15261
_ACEOF
 
15262
if ac_fn_cxx_try_compile "$LINENO"; then :
 
15263
 
 
15264
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
15265
$as_echo "yes" >&6; }
 
15266
                succeeded=yes
 
15267
                found_system=yes
 
15268
 
 
15269
fi
 
15270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15271
                ac_ext=c
 
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
 
15276
 
 
15277
        fi
 
15278
 
 
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
 
15282
                else
 
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;}
15575
 
                        fi
15576
 
 
 
15285
                fi
15577
15286
        else
15578
15287
 
15579
15288
 
15580
15289
 
15581
 
# Check whether --with-asio was given.
15582
 
if test "${with_asio+set}" = set; then :
15583
 
  withval=$with_asio; asio=$withval
15584
 
else
15585
 
  asio=shipped
15586
 
 
15587
 
fi
15588
 
 
15589
 
 
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; }
15592
 
   case "$asio" in
15593
 
        "shipped")
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
15603
 
else
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"
15608
 
else
15609
 
  eval "$as_ac_File=no"
15610
 
fi
15611
 
fi
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 :
15617
 
 
15618
 
cat >>confdefs.h <<_ACEOF
15619
 
#define `$as_echo "HAVE_$ASIO_HPP" | $as_tr_cpp` 1
15620
 
_ACEOF
15621
 
enable_shipped_asio=yes
15622
 
else
15623
 
  as_fn_error "libtorrent-rasterbar depends on Asio library but it was not found." "$LINENO" 5
15624
 
 
15625
 
fi
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
15631
 
else
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"
15636
 
else
15637
 
  eval "$as_ac_File=no"
15638
 
fi
15639
 
fi
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 :
15645
 
 
15646
 
cat >>confdefs.h <<_ACEOF
15647
 
#define `$as_echo "HAVE_$ASIO_DIR/ssl/stream.hpp" | $as_tr_cpp` 1
15648
 
_ACEOF
15649
 
enable_shipped_asio=yes
15650
 
else
15651
 
  as_fn_error "libtorrent-rasterbar depends on Asio library but it was not found." "$LINENO" 5
15652
 
 
15653
 
fi
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
15659
 
else
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"
15664
 
else
15665
 
  eval "$as_ac_File=no"
15666
 
fi
15667
 
fi
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 :
15673
 
 
15674
 
cat >>confdefs.h <<_ACEOF
15675
 
#define `$as_echo "HAVE_$ASIO_DIR/ip/tcp.hpp" | $as_tr_cpp` 1
15676
 
_ACEOF
15677
 
enable_shipped_asio=yes
15678
 
else
15679
 
  as_fn_error "libtorrent-rasterbar depends on Asio library but it was not found." "$LINENO" 5
15680
 
 
15681
 
fi
15682
 
 
15683
 
                ;;
15684
 
        "system")
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
15694
 
else
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"
15699
 
else
15700
 
  eval "$as_ac_File=no"
15701
 
fi
15702
 
fi
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 :
15708
 
 
15709
 
cat >>confdefs.h <<_ACEOF
15710
 
#define `$as_echo "HAVE_$ASIO_HPP" | $as_tr_cpp` 1
15711
 
_ACEOF
15712
 
enable_shipped_asio=no
15713
 
else
15714
 
  as_fn_error "libtorrent-rasterbar depends on Asio library but it was not found on your system." "$LINENO" 5
15715
 
 
15716
 
fi
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
15722
 
else
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"
15727
 
else
15728
 
  eval "$as_ac_File=no"
15729
 
fi
15730
 
fi
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 :
15736
 
 
15737
 
cat >>confdefs.h <<_ACEOF
15738
 
#define `$as_echo "HAVE_$ASIO_DIR/ssl/stream.hpp" | $as_tr_cpp` 1
15739
 
_ACEOF
15740
 
enable_shipped_asio=no
15741
 
else
15742
 
  as_fn_error "libtorrent-rasterbar depends on Asio library but it was not found on your system." "$LINENO" 5
15743
 
 
15744
 
fi
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
15750
 
else
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"
15755
 
else
15756
 
  eval "$as_ac_File=no"
15757
 
fi
15758
 
fi
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 :
15764
 
 
15765
 
cat >>confdefs.h <<_ACEOF
15766
 
#define `$as_echo "HAVE_$ASIO_DIR/ip/tcp.hpp" | $as_tr_cpp` 1
15767
 
_ACEOF
15768
 
enable_shipped_asio=no
15769
 
else
15770
 
  as_fn_error "libtorrent-rasterbar depends on Asio library but it was not found on your system." "$LINENO" 5
15771
 
 
15772
 
fi
15773
 
 
15774
 
                ;;
15775
 
        *)
15776
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: detect" >&5
15777
 
$as_echo "detect" >&6; }
15778
 
                ASIO_HPP=$asio/../asio.hpp
15779
 
                ASIO_DIR=$asio
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
15785
 
else
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"
15790
 
else
15791
 
  eval "$as_ac_File=no"
15792
 
fi
15793
 
fi
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 :
15799
 
 
15800
 
cat >>confdefs.h <<_ACEOF
15801
 
#define `$as_echo "HAVE_$ASIO_HPP" | $as_tr_cpp` 1
15802
 
_ACEOF
15803
 
enable_shipped_asio=no
15804
 
else
15805
 
  as_fn_error "libtorrent-rasterbar depends on Asio library but it was not found in the path you specified." "$LINENO" 5
15806
 
 
15807
 
fi
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
15813
 
else
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"
15818
 
else
15819
 
  eval "$as_ac_File=no"
15820
 
fi
15821
 
fi
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 :
15827
 
 
15828
 
cat >>confdefs.h <<_ACEOF
15829
 
#define `$as_echo "HAVE_$ASIO_DIR/ssl/stream.hpp" | $as_tr_cpp` 1
15830
 
_ACEOF
15831
 
enable_shipped_asio=no
15832
 
else
15833
 
  as_fn_error "libtorrent-rasterbar depends on Asio library but it was not found in the path you specified." "$LINENO" 5
15834
 
 
15835
 
fi
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
15841
 
else
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"
15846
 
else
15847
 
  eval "$as_ac_File=no"
15848
 
fi
15849
 
fi
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 :
15855
 
 
15856
 
cat >>confdefs.h <<_ACEOF
15857
 
#define `$as_echo "HAVE_$ASIO_DIR/ip/tcp.hpp" | $as_tr_cpp` 1
15858
 
_ACEOF
15859
 
enable_shipped_asio=no
15860
 
else
15861
 
  as_fn_error "libtorrent-rasterbar depends on Asio library but it was not found in the path you specified." "$LINENO" 5
15862
 
 
15863
 
fi
15864
 
 
15865
 
                ;;
15866
 
    esac
15867
 
     if test x$enable_shipped_asio = "xyes"; then
15868
 
  ENABLE_SHIPPED_ASIO_TRUE=
15869
 
  ENABLE_SHIPPED_ASIO_FALSE='#'
15870
 
else
15871
 
  ENABLE_SHIPPED_ASIO_TRUE='#'
15872
 
  ENABLE_SHIPPED_ASIO_FALSE=
15873
 
fi
15874
 
 
15875
 
 
15876
 
 
15877
 
 
15878
 
 
15879
 
$as_echo "#define HAVE_BOOST /**/" >>confdefs.h
 
15290
 
 
15291
$as_echo "#define HAVE_BOOST 1" >>confdefs.h
15880
15292
 
15881
15293
        fi
 
15294
 
 
15295
        CPPFLAGS="$CPPFLAGS_SAVED"
 
15296
        LDFLAGS="$LDFLAGS_SAVED"
15882
15297
fi
15883
15298
 
15884
15299
 
15885
15300
 
15886
15301
 
15887
 
        else
15888
 
 
15889
 
 
15890
15302
 
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=""
15899
15311
        else
15963
15375
 
15964
15376
 
15965
15377
 
15966
 
$as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
 
15378
$as_echo "#define HAVE_BOOST_SYSTEM 1" >>confdefs.h
15967
15379
 
15968
15380
            BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
15969
15381
 
15970
15382
                        LDFLAGS_SAVE=$LDFLAGS
15971
15383
            if test "x$ax_boost_user_system_lib" = "x"; then
15972
 
                for libextension in `ls $BOOSTLIBDIR/libboost_system*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do
 
15384
                for libextension in `ls $BOOSTLIBDIR/libboost_system*.{so,dylib,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;' -e 's;^lib\(boost_system.*\)\.dylib$;\1;'` ; do
15973
15385
                     ax_lib=${libextension}
15974
15386
                                    as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
15975
15387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
16127
15539
        LDFLAGS="$LDFLAGS_SAVED"
16128
15540
        fi
16129
15541
 
16130
 
      if test -z "$BOOST_SYSTEM_LIB"; then
16131
 
      as_fn_error "unable to find Boost.System library, currently this is required." "$LINENO" 5
16132
 
   fi
16133
 
 
16134
 
 
16135
 
 
16136
 
# Check whether --with-boost-asio was given.
16137
 
if test "${with_boost_asio+set}" = set; then :
16138
 
  withval=$with_boost_asio;
16139
 
        if test "$withval" = "no"; then
16140
 
                        want_boost="no"
16141
 
        elif test "$withval" = "yes"; then
16142
 
            want_boost="yes"
16143
 
            ax_boost_user_asio_lib=""
16144
 
        else
16145
 
                    want_boost="yes"
16146
 
                ax_boost_user_asio_lib="$withval"
16147
 
                fi
16148
 
 
16149
 
else
16150
 
  want_boost="yes"
16151
 
 
16152
 
fi
16153
 
 
16154
 
 
16155
 
        if test "x$want_boost" = "xyes"; then
16156
 
 
16157
 
                CPPFLAGS_SAVED="$CPPFLAGS"
16158
 
                CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16159
 
                export CPPFLAGS
16160
 
 
16161
 
                LDFLAGS_SAVED="$LDFLAGS"
16162
 
                LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
16163
 
                export LDFLAGS
16164
 
 
16165
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::ASIO library is available" >&5
16166
 
$as_echo_n "checking whether the Boost::ASIO library is available... " >&6; }
16167
 
if test "${ax_cv_boost_asio+set}" = set; then :
16168
 
  $as_echo_n "(cached) " >&6
16169
 
else
16170
 
  ac_ext=cpp
16171
 
ac_cpp='$CXXCPP $CPPFLAGS'
16172
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16173
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16174
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16175
 
 
16176
 
                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16177
 
/* end confdefs.h.  */
16178
 
 #include <boost/asio.hpp>
16179
 
 
16180
 
int
16181
 
main ()
16182
 
{
16183
 
 
16184
 
 
16185
 
                                    boost::asio::io_service io;
16186
 
                                    boost::system::error_code timer_result;
16187
 
                                    boost::asio::deadline_timer t(io);
16188
 
                                    t.cancel();
16189
 
                                    io.run_one();
16190
 
                                                                        return 0;
16191
 
 
16192
 
  ;
16193
 
  return 0;
16194
 
}
16195
 
_ACEOF
16196
 
if ac_fn_cxx_try_compile "$LINENO"; then :
16197
 
  ax_cv_boost_asio=yes
16198
 
else
16199
 
  ax_cv_boost_asio=no
16200
 
fi
16201
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16202
 
         ac_ext=c
16203
 
ac_cpp='$CPP $CPPFLAGS'
16204
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16205
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16206
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16207
 
 
16208
 
 
16209
 
fi
16210
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_asio" >&5
16211
 
$as_echo "$ax_cv_boost_asio" >&6; }
16212
 
                if test "x$ax_cv_boost_asio" = "xyes"; then
16213
 
 
16214
 
$as_echo "#define HAVE_BOOST_ASIO /**/" >>confdefs.h
16215
 
 
16216
 
                        BN=boost_system
16217
 
                        BN2=`echo $BOOST_SYSTEM_LIB | sed 's/-l//'`
16218
 
            if test "x$ax_boost_user_asio_lib" = "x"; then
16219
 
                                for ax_lib in $BN2 $BN $BN-$CC $BN-$CC-mt $BN-$CC-mt-s $BN-$CC-s \
16220
 
                              lib$BN lib$BN-$CC lib$BN-$CC-mt lib$BN-$CC-mt-s lib$BN-$CC-s \
16221
 
                              $BN-mgw $BN-mgw $BN-mgw-mt $BN-mgw-mt-s $BN-mgw-s ; do
16222
 
                                    as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
16223
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
16224
 
$as_echo_n "checking for main in -l$ax_lib... " >&6; }
16225
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
16226
 
  $as_echo_n "(cached) " >&6
16227
 
else
16228
 
  ac_check_lib_save_LIBS=$LIBS
16229
 
LIBS="-l$ax_lib  $LIBS"
16230
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16231
 
/* end confdefs.h.  */
16232
 
 
16233
 
 
16234
 
int
16235
 
main ()
16236
 
{
16237
 
return main ();
16238
 
  ;
16239
 
  return 0;
16240
 
}
16241
 
_ACEOF
16242
 
if ac_fn_c_try_link "$LINENO"; then :
16243
 
  eval "$as_ac_Lib=yes"
16244
 
else
16245
 
  eval "$as_ac_Lib=no"
16246
 
fi
16247
 
rm -f core conftest.err conftest.$ac_objext \
16248
 
    conftest$ac_exeext conftest.$ac_ext
16249
 
LIBS=$ac_check_lib_save_LIBS
16250
 
fi
16251
 
eval ac_res=\$$as_ac_Lib
16252
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16253
 
$as_echo "$ac_res" >&6; }
16254
 
eval as_val=\$$as_ac_Lib
16255
 
   if test "x$as_val" = x""yes; then :
16256
 
  BOOST_ASIO_LIB="-l$ax_lib"  link_thread="yes" break
16257
 
else
16258
 
  link_thread="no"
16259
 
fi
16260
 
 
16261
 
                                done
16262
 
            else
16263
 
               for ax_lib in $ax_boost_user_asio_lib $BN-$ax_boost_user_asio_lib; do
16264
 
                                      as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
16265
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
16266
 
$as_echo_n "checking for main in -l$ax_lib... " >&6; }
16267
 
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
16268
 
  $as_echo_n "(cached) " >&6
16269
 
else
16270
 
  ac_check_lib_save_LIBS=$LIBS
16271
 
LIBS="-l$ax_lib  $LIBS"
16272
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16273
 
/* end confdefs.h.  */
16274
 
 
16275
 
 
16276
 
int
16277
 
main ()
16278
 
{
16279
 
return main ();
16280
 
  ;
16281
 
  return 0;
16282
 
}
16283
 
_ACEOF
16284
 
if ac_fn_c_try_link "$LINENO"; then :
16285
 
  eval "$as_ac_Lib=yes"
16286
 
else
16287
 
  eval "$as_ac_Lib=no"
16288
 
fi
16289
 
rm -f core conftest.err conftest.$ac_objext \
16290
 
    conftest$ac_exeext conftest.$ac_ext
16291
 
LIBS=$ac_check_lib_save_LIBS
16292
 
fi
16293
 
eval ac_res=\$$as_ac_Lib
16294
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16295
 
$as_echo "$ac_res" >&6; }
16296
 
eval as_val=\$$as_ac_Lib
16297
 
   if test "x$as_val" = x""yes; then :
16298
 
  BOOST_ASIO_LIB="-l$ax_lib"  link_asio="yes" break
16299
 
else
16300
 
  link_asio="no"
16301
 
fi
16302
 
 
16303
 
                  done
16304
 
 
16305
 
            fi
16306
 
                        if test "x$link_asio" = "xno"; then
16307
 
                                as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
16308
 
                        fi
16309
 
                fi
16310
 
 
16311
 
                CPPFLAGS="$CPPFLAGS_SAVED"
16312
 
        LDFLAGS="$LDFLAGS_SAVED"
16313
 
        fi
16314
 
 
16315
 
      if test -z "$BOOST_ASIO_LIB"; then
16316
 
      as_fn_error "Unable to find Boost.Asio library, currently this is required." "$LINENO" 5
16317
 
   fi
16318
 
 
16319
 
 
16320
 
 
16321
 
 
16322
 
$as_echo "#define HAVE_BOOST /**/" >>confdefs.h
16323
 
 
16324
 
        fi
16325
 
fi
16326
 
 
16327
 
 
16328
 
 
16329
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: BOOST_CPPFLAGS=$BOOST_CPPFLAGS" >&5
16330
 
$as_echo "$as_me: BOOST_CPPFLAGS=$BOOST_CPPFLAGS" >&6;}
16331
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: BOOST_LDFLAGS=$BOOST_LDFLAGS" >&5
16332
 
$as_echo "$as_me: BOOST_LDFLAGS=$BOOST_LDFLAGS" >&6;}
 
15542
if test -z "$BOOST_SYSTEM_LIB"; then :
 
15543
  as_fn_error "Boost.System library not found. Try using --with-boost-system=lib" "$LINENO" 5
 
15544
fi
16333
15545
 
16334
15546
 
16335
15547
 
16336
15548
# Check whether --with-boost-filesystem was given.
16337
15549
if test "${with_boost_filesystem+set}" = set; then :
16338
15550
  withval=$with_boost_filesystem;
16339
 
        if test "$withval" = "no"; then
 
15551
        if test "x$withval" = "xno"; then
16340
15552
                        want_boost="no"
16341
 
        elif test "$withval" = "yes"; then
 
15553
        elif test "x$withval" = "xyes"; then
16342
15554
            want_boost="yes"
16343
15555
            ax_boost_user_filesystem_lib=""
16344
15556
        else
16408
15620
$as_echo "$ax_cv_boost_filesystem" >&6; }
16409
15621
                if test "x$ax_cv_boost_filesystem" = "xyes"; then
16410
15622
 
16411
 
$as_echo "#define HAVE_BOOST_FILESYSTEM /**/" >>confdefs.h
 
15623
$as_echo "#define HAVE_BOOST_FILESYSTEM 1" >>confdefs.h
16412
15624
 
16413
15625
            BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
16414
15626
            if test "x$ax_boost_user_filesystem_lib" = "x"; then
16415
 
                for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;'` ; do
 
15627
                for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.{so,dylib,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.dylib$;\1;'` ; do
16416
15628
                     ax_lib=${libextension}
16417
15629
                                    as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
16418
15630
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
16570
15782
                LIBS="$LIBS_SAVED"
16571
15783
        fi
16572
15784
 
16573
 
if test -z "$BOOST_FILESYSTEM_LIB"; then
16574
 
   as_fn_error "Unable to find Boost.Filesystem library, currently this is required." "$LINENO" 5
 
15785
if test -z "$BOOST_FILESYSTEM_LIB"; then :
 
15786
  as_fn_error "Boost.Filesystem library not found. Try using --with-boost-filesystem=lib" "$LINENO" 5
16575
15787
fi
16576
15788
 
16577
15789
 
16579
15791
# Check whether --with-boost-thread was given.
16580
15792
if test "${with_boost_thread+set}" = set; then :
16581
15793
  withval=$with_boost_thread;
16582
 
        if test "$withval" = "no"; then
 
15794
        if test "x$withval" = "xno"; then
16583
15795
                        want_boost="no"
16584
 
        elif test "$withval" = "yes"; then
 
15796
        elif test "x$withval" = "xyes"; then
16585
15797
            want_boost="yes"
16586
15798
            ax_boost_user_thread_lib=""
16587
15799
        else
16619
15831
 
16620
15832
                         CXXFLAGS_SAVE=$CXXFLAGS
16621
15833
 
16622
 
                         if test "x$build_os" = "xsolaris" ; then
16623
 
                                 CXXFLAGS="-pthreads $CXXFLAGS"
16624
 
                         elif test "x$build_os" = "xming32" ; then
16625
 
                                 CXXFLAGS="-mthreads $CXXFLAGS"
16626
 
                         else
16627
 
                                CXXFLAGS="-pthread $CXXFLAGS"
16628
 
                         fi
16629
15834
                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630
15835
/* end confdefs.h.  */
16631
15836
#include <boost/thread/thread.hpp>
16656
15861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
16657
15862
$as_echo "$ax_cv_boost_thread" >&6; }
16658
15863
                if test "x$ax_cv_boost_thread" = "xyes"; then
16659
 
           if test "x$build_os" = "xsolaris" ; then
16660
 
                          BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
16661
 
                   elif test "x$build_os" = "xming32" ; then
16662
 
                          BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
16663
 
                   else
16664
 
                          BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
16665
 
                   fi
16666
 
 
16667
 
 
16668
 
 
16669
 
 
16670
 
$as_echo "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
 
15864
 
 
15865
 
 
15866
 
 
15867
 
 
15868
$as_echo "#define HAVE_BOOST_THREAD 1" >>confdefs.h
16671
15869
 
16672
15870
            BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
16673
15871
 
16679
15877
                          ;;
16680
15878
                        esac
16681
15879
            if test "x$ax_boost_user_thread_lib" = "x"; then
16682
 
                for libextension in `ls $BOOSTLIBDIR/libboost_thread*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.so.*$;\1;' -e 's;^lib\(boost_thread.*\)\.a*$;\1;'` ; do
 
15880
                for libextension in `ls $BOOSTLIBDIR/libboost_thread*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.a*$;\1;'`; do
16683
15881
                     ax_lib=${libextension}
16684
15882
                                    as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
16685
15883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
16728
15926
 
16729
15927
                                done
16730
15928
                if test "x$link_thread" != "xyes"; then
16731
 
                for libextension in `ls $BOOSTLIBDIR/boost_thread*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.dll.*$;\1;' -e 's;^\(boost_thread.*\)\.a*$;\1;'` ; do
 
15929
                for libextension in `ls $BOOSTLIBDIR/boost_thread*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.a*$;\1;'` ; do
16732
15930
                     ax_lib=${libextension}
16733
15931
                                    as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
16734
15932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
16845
16043
        LDFLAGS="$LDFLAGS_SAVED"
16846
16044
        fi
16847
16045
 
16848
 
if test -z "$BOOST_THREAD_LIB"; then
16849
 
   as_fn_error "Unable to find Boost.Thread library, currently this is required." "$LINENO" 5
16850
 
fi
16851
 
 
16852
 
 
16853
 
 
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
16858
 
                        want_boost="no"
16859
 
        elif test "$withval" = "yes"; then
16860
 
            want_boost="yes"
16861
 
            ax_boost_user_regex_lib=""
16862
 
        else
16863
 
                    want_boost="yes"
16864
 
                ax_boost_user_regex_lib="$withval"
16865
 
                fi
16866
 
 
16867
 
else
16868
 
  want_boost="yes"
16869
 
 
16870
 
fi
16871
 
 
16872
 
 
16873
 
        if test "x$want_boost" = "xyes"; then
16874
 
 
16875
 
                CPPFLAGS_SAVED="$CPPFLAGS"
16876
 
                CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
16877
 
                export CPPFLAGS
16878
 
 
16879
 
                LDFLAGS_SAVED="$LDFLAGS"
16880
 
                LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
16881
 
                export LDFLAGS
16882
 
 
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
16887
 
else
16888
 
  ac_ext=cpp
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
16893
 
 
16894
 
                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895
 
/* end confdefs.h.  */
16896
 
#include <boost/regex.hpp>
16897
 
 
16898
 
int
16899
 
main ()
16900
 
{
16901
 
boost::regex r(); return 0;
16902
 
  ;
16903
 
  return 0;
16904
 
}
16905
 
_ACEOF
16906
 
if ac_fn_cxx_try_compile "$LINENO"; then :
16907
 
  ax_cv_boost_regex=yes
16908
 
else
16909
 
  ax_cv_boost_regex=no
16910
 
fi
16911
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16912
 
         ac_ext=c
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
16917
 
 
16918
 
 
16919
 
fi
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
16923
 
 
16924
 
$as_echo "#define HAVE_BOOST_REGEX /**/" >>confdefs.h
16925
 
 
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
16935
 
else
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.  */
16940
 
 
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.  */
16944
 
#ifdef __cplusplus
16945
 
extern "C"
16946
 
#endif
16947
 
char exit ();
16948
 
int
16949
 
main ()
16950
 
{
16951
 
return exit ();
16952
 
  ;
16953
 
  return 0;
16954
 
}
16955
 
_ACEOF
16956
 
if ac_fn_c_try_link "$LINENO"; then :
16957
 
  eval "$as_ac_Lib=yes"
16958
 
else
16959
 
  eval "$as_ac_Lib=no"
16960
 
fi
16961
 
rm -f core conftest.err conftest.$ac_objext \
16962
 
    conftest$ac_exeext conftest.$ac_ext
16963
 
LIBS=$ac_check_lib_save_LIBS
16964
 
fi
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
16971
 
else
16972
 
  link_regex="no"
16973
 
fi
16974
 
 
16975
 
                                done
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
16984
 
else
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.  */
16989
 
 
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.  */
16993
 
#ifdef __cplusplus
16994
 
extern "C"
16995
 
#endif
16996
 
char exit ();
16997
 
int
16998
 
main ()
16999
 
{
17000
 
return exit ();
17001
 
  ;
17002
 
  return 0;
17003
 
}
17004
 
_ACEOF
17005
 
if ac_fn_c_try_link "$LINENO"; then :
17006
 
  eval "$as_ac_Lib=yes"
17007
 
else
17008
 
  eval "$as_ac_Lib=no"
17009
 
fi
17010
 
rm -f core conftest.err conftest.$ac_objext \
17011
 
    conftest$ac_exeext conftest.$ac_ext
17012
 
LIBS=$ac_check_lib_save_LIBS
17013
 
fi
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
17020
 
else
17021
 
  link_regex="no"
17022
 
fi
17023
 
 
17024
 
                                done
17025
 
                fi
17026
 
 
17027
 
            else
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
17034
 
else
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.  */
17039
 
 
17040
 
 
17041
 
int
17042
 
main ()
17043
 
{
17044
 
return main ();
17045
 
  ;
17046
 
  return 0;
17047
 
}
17048
 
_ACEOF
17049
 
if ac_fn_c_try_link "$LINENO"; then :
17050
 
  eval "$as_ac_Lib=yes"
17051
 
else
17052
 
  eval "$as_ac_Lib=no"
17053
 
fi
17054
 
rm -f core conftest.err conftest.$ac_objext \
17055
 
    conftest$ac_exeext conftest.$ac_ext
17056
 
LIBS=$ac_check_lib_save_LIBS
17057
 
fi
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
17064
 
else
17065
 
  link_regex="no"
17066
 
fi
17067
 
 
17068
 
               done
17069
 
            fi
17070
 
                        if test "x$link_regex" != "xyes"; then
17071
 
                                as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
17072
 
                        fi
17073
 
                fi
17074
 
 
17075
 
                CPPFLAGS="$CPPFLAGS_SAVED"
17076
 
        LDFLAGS="$LDFLAGS_SAVED"
17077
 
        fi
17078
 
 
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;
17083
 
fi
17084
 
 
17085
 
 
17086
 
 
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
17091
 
                        want_boost="no"
17092
 
        elif test "$withval" = "yes"; then
17093
 
            want_boost="yes"
17094
 
            ax_boost_user_program_options_lib=""
17095
 
        else
17096
 
                    want_boost="yes"
17097
 
                ax_boost_user_program_options_lib="$withval"
17098
 
                fi
17099
 
 
17100
 
else
17101
 
  want_boost="yes"
17102
 
 
17103
 
fi
17104
 
 
17105
 
 
17106
 
        if test "x$want_boost" = "xyes"; then
17107
 
 
17108
 
            export want_boost
17109
 
                CPPFLAGS_SAVED="$CPPFLAGS"
17110
 
                CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17111
 
                export CPPFLAGS
17112
 
                LDFLAGS_SAVED="$LDFLAGS"
17113
 
                LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
17114
 
                export 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
17119
 
else
17120
 
  ac_ext=cpp
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
17125
 
 
17126
 
                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17127
 
/* end confdefs.h.  */
17128
 
#include <boost/program_options.hpp>
17129
 
 
17130
 
int
17131
 
main ()
17132
 
{
17133
 
boost::program_options::options_description generic("Generic options");
17134
 
                                   return 0;
17135
 
  ;
17136
 
  return 0;
17137
 
}
17138
 
_ACEOF
17139
 
if ac_fn_cxx_try_compile "$LINENO"; then :
17140
 
  ax_cv_boost_program_options=yes
17141
 
else
17142
 
  ax_cv_boost_program_options=no
17143
 
fi
17144
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17145
 
                                        ac_ext=c
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
17150
 
 
17151
 
 
17152
 
fi
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
17156
 
 
17157
 
$as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS /**/" >>confdefs.h
17158
 
 
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
17168
 
else
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.  */
17173
 
 
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.  */
17177
 
#ifdef __cplusplus
17178
 
extern "C"
17179
 
#endif
17180
 
char exit ();
17181
 
int
17182
 
main ()
17183
 
{
17184
 
return exit ();
17185
 
  ;
17186
 
  return 0;
17187
 
}
17188
 
_ACEOF
17189
 
if ac_fn_c_try_link "$LINENO"; then :
17190
 
  eval "$as_ac_Lib=yes"
17191
 
else
17192
 
  eval "$as_ac_Lib=no"
17193
 
fi
17194
 
rm -f core conftest.err conftest.$ac_objext \
17195
 
    conftest$ac_exeext conftest.$ac_ext
17196
 
LIBS=$ac_check_lib_save_LIBS
17197
 
fi
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
17204
 
else
17205
 
  link_program_options="no"
17206
 
fi
17207
 
 
17208
 
                                done
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
17217
 
else
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.  */
17222
 
 
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.  */
17226
 
#ifdef __cplusplus
17227
 
extern "C"
17228
 
#endif
17229
 
char exit ();
17230
 
int
17231
 
main ()
17232
 
{
17233
 
return exit ();
17234
 
  ;
17235
 
  return 0;
17236
 
}
17237
 
_ACEOF
17238
 
if ac_fn_c_try_link "$LINENO"; then :
17239
 
  eval "$as_ac_Lib=yes"
17240
 
else
17241
 
  eval "$as_ac_Lib=no"
17242
 
fi
17243
 
rm -f core conftest.err conftest.$ac_objext \
17244
 
    conftest$ac_exeext conftest.$ac_ext
17245
 
LIBS=$ac_check_lib_save_LIBS
17246
 
fi
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
17253
 
else
17254
 
  link_program_options="no"
17255
 
fi
17256
 
 
17257
 
                                done
17258
 
                fi
17259
 
                else
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
17266
 
else
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.  */
17271
 
 
17272
 
 
17273
 
int
17274
 
main ()
17275
 
{
17276
 
return main ();
17277
 
  ;
17278
 
  return 0;
17279
 
}
17280
 
_ACEOF
17281
 
if ac_fn_c_try_link "$LINENO"; then :
17282
 
  eval "$as_ac_Lib=yes"
17283
 
else
17284
 
  eval "$as_ac_Lib=no"
17285
 
fi
17286
 
rm -f core conftest.err conftest.$ac_objext \
17287
 
    conftest$ac_exeext conftest.$ac_ext
17288
 
LIBS=$ac_check_lib_save_LIBS
17289
 
fi
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
17296
 
else
17297
 
  link_program_options="no"
17298
 
fi
17299
 
 
17300
 
                  done
17301
 
                fi
17302
 
                                if test "x$link_program_options" != "xyes"; then
17303
 
                                        as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
17304
 
                                fi
17305
 
                fi
17306
 
                CPPFLAGS="$CPPFLAGS_SAVED"
17307
 
        LDFLAGS="$LDFLAGS_SAVED"
17308
 
        fi
17309
 
 
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;
17314
 
fi
17315
 
 
17316
 
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17317
 
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
17318
 
 
17319
 
if [ "x$BUILD_TESTCLIENT" != "xno" ]; then
17320
 
        CLIENT_TEST_BIN=client_test;
17321
 
 
17322
 
fi
17323
 
 
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
 
16048
fi
 
16049
 
 
16050
CPPFLAGS="$BOOST_CPPFLAGS $CPPFLAGS"
 
16051
LDFLAGS="$BOOST_LDFLAGS $LDFLAGS"
 
16052
 
 
16053
 
 
16054
###############################################################################
 
16055
# Checking for functions and other stuffs
 
16056
###############################################################################
 
16057
 
 
16058
 
 
16059
$as_echo
 
16060
$as_echo  "Checking for pkg-config:"
 
16061
 
 
16062
 
 
16063
 
 
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
 
16072
else
 
16073
  case $PKG_CONFIG in
 
16074
  [\\/]* | ?:[\\/]*)
 
16075
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
16076
  ;;
 
16077
  *)
 
16078
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16079
for as_dir in $PATH
 
16080
do
 
16081
  IFS=$as_save_IFS
 
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
 
16087
    break 2
 
16088
  fi
 
16089
done
 
16090
  done
 
16091
IFS=$as_save_IFS
 
16092
 
 
16093
  ;;
 
16094
esac
 
16095
fi
 
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; }
 
16100
else
 
16101
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16102
$as_echo "no" >&6; }
 
16103
fi
 
16104
 
 
16105
 
 
16106
fi
 
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
 
16115
else
 
16116
  case $ac_pt_PKG_CONFIG in
 
16117
  [\\/]* | ?:[\\/]*)
 
16118
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
16119
  ;;
 
16120
  *)
 
16121
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16122
for as_dir in $PATH
 
16123
do
 
16124
  IFS=$as_save_IFS
 
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
 
16130
    break 2
 
16131
  fi
 
16132
done
 
16133
  done
 
16134
IFS=$as_save_IFS
 
16135
 
 
16136
  ;;
 
16137
esac
 
16138
fi
 
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; }
 
16143
else
 
16144
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16145
$as_echo "no" >&6; }
 
16146
fi
 
16147
 
 
16148
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
16149
    PKG_CONFIG=""
 
16150
  else
 
16151
    case $cross_compiling:$ac_tool_warned in
 
16152
yes:)
 
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 ;;
 
16156
esac
 
16157
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
16158
  fi
 
16159
else
 
16160
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
16161
fi
 
16162
 
 
16163
fi
 
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; }
 
16171
        else
 
16172
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16173
$as_echo "no" >&6; }
 
16174
                PKG_CONFIG=""
 
16175
        fi
 
16176
 
 
16177
fi
 
16178
 
 
16179
$as_echo
 
16180
$as_echo  "Checking for functions and headers:"
 
16181
 
 
16182
# Check whether --enable-largefile was given.
 
16183
if test "${enable_largefile+set}" = set; then :
 
16184
  enableval=$enable_largefile;
 
16185
fi
 
16186
 
 
16187
if test "$enable_largefile" != no; then
 
16188
 
 
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
 
16193
else
 
16194
  ac_cv_sys_largefile_CC=no
 
16195
     if test "$GCC" != yes; then
 
16196
       ac_save_CC=$CC
 
16197
       while :; do
 
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)
 
16210
                      ? 1 : -1];
 
16211
int
 
16212
main ()
 
16213
{
 
16214
 
 
16215
  ;
 
16216
  return 0;
 
16217
}
 
16218
_ACEOF
 
16219
         if ac_fn_c_try_compile "$LINENO"; then :
 
16220
  break
 
16221
fi
 
16222
rm -f core conftest.err conftest.$ac_objext
 
16223
         CC="$CC -n32"
 
16224
         if ac_fn_c_try_compile "$LINENO"; then :
 
16225
  ac_cv_sys_largefile_CC=' -n32'; break
 
16226
fi
 
16227
rm -f core conftest.err conftest.$ac_objext
 
16228
         break
 
16229
       done
 
16230
       CC=$ac_save_CC
 
16231
       rm -f conftest.$ac_ext
 
16232
    fi
 
16233
fi
 
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
 
16238
  fi
 
16239
 
 
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
 
16244
else
 
16245
  while :; do
 
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)
 
16256
                      ? 1 : -1];
 
16257
int
 
16258
main ()
 
16259
{
 
16260
 
 
16261
  ;
 
16262
  return 0;
 
16263
}
 
16264
_ACEOF
 
16265
if ac_fn_c_try_compile "$LINENO"; then :
 
16266
  ac_cv_sys_file_offset_bits=no; break
 
16267
fi
 
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)
 
16280
                      ? 1 : -1];
 
16281
int
 
16282
main ()
 
16283
{
 
16284
 
 
16285
  ;
 
16286
  return 0;
 
16287
}
 
16288
_ACEOF
 
16289
if ac_fn_c_try_compile "$LINENO"; then :
 
16290
  ac_cv_sys_file_offset_bits=64; break
 
16291
fi
 
16292
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16293
  ac_cv_sys_file_offset_bits=unknown
 
16294
  break
 
16295
done
 
16296
fi
 
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 #(
 
16300
  no | unknown) ;;
 
16301
  *)
 
16302
cat >>confdefs.h <<_ACEOF
 
16303
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 
16304
_ACEOF
 
16305
;;
 
16306
esac
 
16307
rm -rf conftest*
 
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
 
16313
else
 
16314
  while :; do
 
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)
 
16325
                      ? 1 : -1];
 
16326
int
 
16327
main ()
 
16328
{
 
16329
 
 
16330
  ;
 
16331
  return 0;
 
16332
}
 
16333
_ACEOF
 
16334
if ac_fn_c_try_compile "$LINENO"; then :
 
16335
  ac_cv_sys_large_files=no; break
 
16336
fi
 
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)
 
16349
                      ? 1 : -1];
 
16350
int
 
16351
main ()
 
16352
{
 
16353
 
 
16354
  ;
 
16355
  return 0;
 
16356
}
 
16357
_ACEOF
 
16358
if ac_fn_c_try_compile "$LINENO"; then :
 
16359
  ac_cv_sys_large_files=1; break
 
16360
fi
 
16361
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16362
  ac_cv_sys_large_files=unknown
 
16363
  break
 
16364
done
 
16365
fi
 
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 #(
 
16369
  no | unknown) ;;
 
16370
  *)
 
16371
cat >>confdefs.h <<_ACEOF
 
16372
#define _LARGE_FILES $ac_cv_sys_large_files
 
16373
_ACEOF
 
16374
;;
 
16375
esac
 
16376
rm -rf conftest*
 
16377
  fi
 
16378
fi
 
16379
 
 
16380
 
 
16381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
16382
$as_echo_n "checking whether ln -s works... " >&6; }
 
16383
LN_S=$as_ln_s
 
16384
if test "$LN_S" = "ln -s"; then
 
16385
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16386
$as_echo "yes" >&6; }
 
16387
else
 
16388
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
16389
$as_echo "no, using $LN_S" >&6; }
 
16390
fi
 
16391
 
 
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; }
 
16394
set x ${MAKE-make}
 
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
 
16398
else
 
16399
  cat >conftest.make <<\_ACEOF
 
16400
SHELL = /bin/sh
 
16401
all:
 
16402
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
16403
_ACEOF
 
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;;
 
16408
  *)
 
16409
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
16410
esac
 
16411
rm -f conftest.make
 
16412
fi
 
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; }
 
16416
  SET_MAKE=
 
16417
else
 
16418
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16419
$as_echo "no" >&6; }
 
16420
  SET_MAKE="MAKE=${MAKE-make}"
 
16421
fi
 
16422
 
 
16423
 
 
16424
# check for gethostbyname and gethostbyname_r (used in src/GeoIP.c)
 
16425
for ac_func in gethostbyname
 
16426
do :
 
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
 
16431
_ACEOF
 
16432
 
 
16433
else
 
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
 
16438
else
 
16439
  ac_check_lib_save_LIBS=$LIBS
 
16440
LIBS="-lnsl  $LIBS"
 
16441
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16442
/* end confdefs.h.  */
 
16443
 
 
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.  */
 
16447
#ifdef __cplusplus
 
16448
extern "C"
 
16449
#endif
 
16450
char gethostbyname ();
 
16451
int
 
16452
main ()
 
16453
{
 
16454
return gethostbyname ();
 
16455
  ;
 
16456
  return 0;
 
16457
}
 
16458
_ACEOF
 
16459
if ac_fn_c_try_link "$LINENO"; then :
 
16460
  ac_cv_lib_nsl_gethostbyname=yes
 
16461
else
 
16462
  ac_cv_lib_nsl_gethostbyname=no
 
16463
fi
 
16464
rm -f core conftest.err conftest.$ac_objext \
 
16465
    conftest$ac_exeext conftest.$ac_ext
 
16466
LIBS=$ac_check_lib_save_LIBS
 
16467
fi
 
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
 
16473
_ACEOF
 
16474
 
 
16475
  LIBS="-lnsl $LIBS"
17326
16476
 
17327
16477
else
17328
16478
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
17369
16519
  LIBS="-lresolv $LIBS"
17370
16520
 
17371
16521
else
17372
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
17373
 
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
17374
 
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
 
16522
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
 
16523
$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
 
16524
if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then :
17375
16525
  $as_echo_n "(cached) " >&6
17376
16526
else
17377
16527
  ac_check_lib_save_LIBS=$LIBS
17378
 
LIBS="-lnsl  $LIBS"
 
16528
LIBS="-lsocket  $LIBS"
17379
16529
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17380
16530
/* end confdefs.h.  */
17381
16531
 
17395
16545
}
17396
16546
_ACEOF
17397
16547
if ac_fn_c_try_link "$LINENO"; then :
17398
 
  ac_cv_lib_nsl_gethostbyname=yes
 
16548
  ac_cv_lib_socket_gethostbyname=yes
17399
16549
else
17400
 
  ac_cv_lib_nsl_gethostbyname=no
 
16550
  ac_cv_lib_socket_gethostbyname=no
17401
16551
fi
17402
16552
rm -f core conftest.err conftest.$ac_objext \
17403
16553
    conftest$ac_exeext conftest.$ac_ext
17404
16554
LIBS=$ac_check_lib_save_LIBS
17405
16555
fi
17406
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
17407
 
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
17408
 
if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
 
16556
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
 
16557
$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
 
16558
if test "x$ac_cv_lib_socket_gethostbyname" = x""yes; then :
17409
16559
  cat >>confdefs.h <<_ACEOF
17410
 
#define HAVE_LIBNSL 1
 
16560
#define HAVE_LIBSOCKET 1
17411
16561
_ACEOF
17412
16562
 
17413
 
  LIBS="-lnsl $LIBS"
 
16563
  LIBS="-lsocket $LIBS"
17414
16564
 
17415
16565
else
17416
16566
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&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";
17479
 
else
17480
 
  as_fn_error "wsock32 not found. Stopped." "$LINENO" 5
17481
 
fi
17482
 
 
17483
 
else
17484
 
  as_fn_error "gethostbyname not found. Stopped." "$LINENO" 5
17485
 
fi
17486
 
 
17487
 
fi
17488
 
 
17489
 
fi
17490
 
 
17491
 
 
17492
 
fi
17493
 
 
17494
 
 
17495
 
 
17496
 
# Check whether --with-logging was given.
17497
 
if test "${with_logging+set}" = set; then :
17498
 
  withval=$with_logging; logging=$withval
17499
 
else
17500
 
  logging=none
17501
 
 
17502
 
fi
17503
 
 
17504
 
 
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
17508
 
 
17509
 
COMPILETIME_OPTIONS+="-DBOOST_ASIO_HASH_MAP_BUCKETS=1021 "
17510
 
 
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; }
17513
 
case "$logging" in
17514
 
        "none")
17515
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
17516
 
$as_echo "none" >&6; }
17517
 
                ;;
17518
 
        "default")
17519
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
17520
 
$as_echo "default" >&6; }
17521
 
 
17522
 
$as_echo "#define TORRENT_LOGGING /**/" >>confdefs.h
17523
 
 
17524
 
                COMPILETIME_OPTIONS+="-DTORRENT_LOGGING "
17525
 
                ;;
17526
 
        "verbose")
17527
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: verbose" >&5
17528
 
$as_echo "verbose" >&6; }
17529
 
 
17530
 
$as_echo "#define TORRENT_VERBOSE_LOGGING /**/" >>confdefs.h
17531
 
 
17532
 
                COMPILETIME_OPTIONS+="-DTORRENT_VERBOSE_LOGGING "
17533
 
                ;;
17534
 
        *)
17535
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
17536
 
$as_echo "" >&6; }
17537
 
                as_fn_error "Unknown logging option \"$logging\". Use either \"none\", \"default\" or \"verbose\"." "$LINENO" 5
17538
 
                ;;
17539
 
esac
17540
 
 
17541
 
 
17542
 
# Check whether --with-dht was given.
17543
 
if test "${with_dht+set}" = set; then :
17544
 
  withval=$with_dht; dht=$withval
17545
 
else
17546
 
  dht=on
17547
 
 
17548
 
fi
17549
 
 
17550
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use DHT" >&5
17551
 
$as_echo_n "checking how to use DHT... " >&6; }
17552
 
case "$dht" in
17553
 
        "on")
17554
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: on" >&5
17555
 
$as_echo "on" >&6; }
17556
 
                ;;
17557
 
        "off")
17558
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: off" >&5
17559
 
$as_echo "off" >&6; }
17560
 
 
17561
 
$as_echo "#define TORRENT_DISABLE_DHT /**/" >>confdefs.h
17562
 
 
17563
 
                COMPILETIME_OPTIONS+="-DTORRENT_DISABLE_DHT "
17564
 
                ;;
17565
 
        "logging")
17566
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: logging" >&5
17567
 
$as_echo "logging" >&6; }
17568
 
 
17569
 
$as_echo "#define TORRENT_DHT_VERBOSE_LOGGING /**/" >>confdefs.h
17570
 
 
17571
 
                COMPILETIME_OPTIONS+="-DTORRENT_DHT_VERBOSE_LOGGING "
17572
 
                ;;
17573
 
        *)
17574
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
17575
 
$as_echo "" >&6; }
17576
 
                as_fn_error "Unknown dht option \"$dht\". Use either \"on\", \"off\" or \"logging\"." "$LINENO" 5
17577
 
                ;;
17578
 
esac
17579
 
 if test "x$dht" != "xoff"; then
17580
 
  USE_DHT_TRUE=
17581
 
  USE_DHT_FALSE='#'
17582
 
else
17583
 
  USE_DHT_TRUE='#'
17584
 
  USE_DHT_FALSE=
17585
 
fi
17586
 
 
17587
 
 
17588
 
 
17589
 
# Check whether --with-encryption was given.
17590
 
if test "${with_encryption+set}" = set; then :
17591
 
  withval=$with_encryption; encryption=$withval
17592
 
else
17593
 
  encryption=on
17594
 
 
17595
 
fi
17596
 
 
17597
 
 
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
17601
 
       "on")
17602
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: on" >&5
17603
 
$as_echo "on" >&6; }
17604
 
 
17605
 
 
17606
 
# Check whether --with-ssl was given.
17607
 
if test "${with_ssl+set}" = set; then :
17608
 
  withval=$with_ssl;
17609
 
fi
17610
 
 
17611
 
    for dir in $withval /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do
17612
 
        ssldir="$dir"
17613
 
        if test -f "$dir/include/openssl/ssl.h"; then
17614
 
            found_ssl="yes";
17615
 
            SSL_CFLAGS="-I$ssldir/include/openssl -DHAVE_SSL";
17616
 
            SSL_CXXFLAGS="-I$ssldir/include/openssl -DHAVE_SSL";
17617
 
            break;
17618
 
        fi
17619
 
        if test -f "$dir/include/ssl.h"; then
17620
 
            found_ssl="yes";
17621
 
            SSL_CFLAGS="-I$ssldir/include/ -DHAVE_SSL";
17622
 
            SSL_CXXFLAGS="-I$ssldir/include/ -DHAVE_SSL";
17623
 
            break
17624
 
        fi
17625
 
    done
17626
 
    if test x_$found_ssl != x_yes; then
17627
 
        as_fn_error "Cannot find ssl libraries" "$LINENO" 5
17628
 
    else
17629
 
        printf "OpenSSL found in $ssldir\n";
17630
 
        SSL_LIBS="-lssl -lcrypto";
17631
 
        SSL_LDFLAGS="-L$ssldir/lib";
17632
 
        HAVE_SSL=yes
17633
 
    fi
17634
 
 
17635
 
 
17636
 
 
17637
 
 
17638
 
 
17639
 
 
17640
 
 
17641
 
$as_echo "#define TORRENT_USE_OPENSSL /**/" >>confdefs.h
17642
 
 
17643
 
               COMPILETIME_OPTIONS+="-DTORRENT_USE_OPENSSL "
17644
 
 
17645
 
               ;;
17646
 
       "off")
17647
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: off" >&5
17648
 
$as_echo "off" >&6; }
17649
 
 
17650
 
$as_echo "#define TORRENT_DISABLE_ENCRYPTION /**/" >>confdefs.h
17651
 
 
17652
 
               COMPILETIME_OPTIONS+="-DTORRENT_DISABLE_ENCRYPTION "
17653
 
               ;;
17654
 
       *)
17655
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
17656
 
$as_echo "" >&6; }
17657
 
               as_fn_error "Unknown encryption option \"$encryption\". Use either \"on\" or \"off\"." "$LINENO" 5
17658
 
               ;;
17659
 
esac
17660
 
 if test "x$encryption" != "xoff"; then
17661
 
  USE_ENCRYPTION_TRUE=
17662
 
  USE_ENCRYPTION_FALSE='#'
17663
 
else
17664
 
  USE_ENCRYPTION_TRUE='#'
17665
 
  USE_ENCRYPTION_FALSE=
17666
 
fi
17667
 
 
17668
 
 
17669
 
 
17670
 
# Check whether --with-zlib was given.
17671
 
if test "${with_zlib+set}" = set; then :
17672
 
  withval=$with_zlib; zlib=$withval
17673
 
else
17674
 
  zlib=detect
17675
 
 
17676
 
fi
17677
 
 
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; }
17680
 
case "$zlib" in
17681
 
        "detect")
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
17688
 
else
17689
 
  ac_check_lib_save_LIBS=$LIBS
17690
 
LIBS="-lz  $LIBS"
17691
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692
 
/* end confdefs.h.  */
17693
 
 
17694
 
 
17695
 
int
17696
 
main ()
17697
 
{
17698
 
return main ();
17699
 
  ;
17700
 
  return 0;
17701
 
}
17702
 
_ACEOF
17703
 
if ac_fn_c_try_link "$LINENO"; then :
17704
 
  ac_cv_lib_z_main=yes
17705
 
else
17706
 
  ac_cv_lib_z_main=no
17707
 
fi
17708
 
rm -f core conftest.err conftest.$ac_objext \
17709
 
    conftest$ac_exeext conftest.$ac_ext
17710
 
LIBS=$ac_check_lib_save_LIBS
17711
 
fi
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
17717
 
_ACEOF
17718
 
 
17719
 
  LIBS="-lz $LIBS"
17720
 
 
17721
 
else
17722
 
  zlib="shipped"
17723
 
 
17724
 
fi
17725
 
 
17726
 
                ;;
17727
 
        "shipped")
17728
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: shipped" >&5
17729
 
$as_echo "shipped" >&6; }
17730
 
                ;;
17731
 
        "system")
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
17738
 
else
17739
 
  ac_check_lib_save_LIBS=$LIBS
17740
 
LIBS="-lz  $LIBS"
17741
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17742
 
/* end confdefs.h.  */
17743
 
 
17744
 
 
17745
 
int
17746
 
main ()
17747
 
{
17748
 
return main ();
17749
 
  ;
17750
 
  return 0;
17751
 
}
17752
 
_ACEOF
17753
 
if ac_fn_c_try_link "$LINENO"; then :
17754
 
  ac_cv_lib_z_main=yes
17755
 
else
17756
 
  ac_cv_lib_z_main=no
17757
 
fi
17758
 
rm -f core conftest.err conftest.$ac_objext \
17759
 
    conftest$ac_exeext conftest.$ac_ext
17760
 
LIBS=$ac_check_lib_save_LIBS
17761
 
fi
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
17767
 
_ACEOF
17768
 
 
17769
 
  LIBS="-lz $LIBS"
17770
 
 
17771
 
else
17772
 
  as_fn_error "libtorrent-rasterbar depends on zlib but zlib was not found on your system." "$LINENO" 5
17773
 
 
17774
 
fi
17775
 
 
17776
 
                ;;
17777
 
        "no")
17778
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
17779
 
$as_echo "" >&6; }
17780
 
                as_fn_error "libtorrent-rasterbar depends on zlib, you must specify either \"system\" or \"shipped\"." "$LINENO" 5
17781
 
                ;;
17782
 
        *)
17783
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
17784
 
$as_echo "" >&6; }
17785
 
                as_fn_error "Unknown zlib option \"$zlib\". Use either \"system\" or \"shipped\"." "$LINENO" 5
17786
 
                ;;
17787
 
esac
17788
 
if [ "$zlib" = "shipped" ]; then
17789
 
        ZLIB="\$(top_builddir)/zlib/libzlib.la"
17790
 
         if true; then
17791
 
  ENABLE_SHIPPED_ZLIB_TRUE=
17792
 
  ENABLE_SHIPPED_ZLIB_FALSE='#'
17793
 
else
17794
 
  ENABLE_SHIPPED_ZLIB_TRUE='#'
17795
 
  ENABLE_SHIPPED_ZLIB_FALSE=
17796
 
fi
17797
 
 
17798
 
        ZLIBINCL="-I\$(top_srcdir)/zlib"
17799
 
elif [ "$zlib" = "system" ] || [ "$zlib" = "detect" ]; then
17800
 
        ZLIB="" # AC_CHECK_LIB will add -lz to @LIBS@ automatically
17801
 
         if false; then
17802
 
  ENABLE_SHIPPED_ZLIB_TRUE=
17803
 
  ENABLE_SHIPPED_ZLIB_FALSE='#'
17804
 
else
17805
 
  ENABLE_SHIPPED_ZLIB_TRUE='#'
17806
 
  ENABLE_SHIPPED_ZLIB_FALSE=
17807
 
fi
17808
 
 
17809
 
        ZLIBINCL=""
17810
 
fi
17811
 
 
17812
 
 
 
16628
  LIBS="-lws2_32 -lwsock32 $LIBS"
 
16629
else
 
16630
  as_fn_error "wsock32 function not found." "$LINENO" 5
 
16631
fi
 
16632
 
 
16633
else
 
16634
  as_fn_error "gethostbyname function not found." "$LINENO" 5
 
16635
fi
 
16636
 
 
16637
fi
 
16638
 
 
16639
fi
 
16640
 
 
16641
fi
 
16642
 
 
16643
 
 
16644
fi
 
16645
done
 
16646
 
 
16647
 
 
16648
for ac_func in gethostbyname_r
 
16649
do :
 
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
 
16654
_ACEOF
 
16655
 
 
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.  */
 
16660
#include <netdb.h>
 
16661
 
 
16662
_ACEOF
 
16663
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
16664
  $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
 
16665
 
 
16666
    $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
 
16667
 
 
16668
fi
 
16669
rm -f conftest*
 
16670
 
 
16671
 
 
16672
fi
 
16673
done
 
16674
 
 
16675
 
 
16676
for ac_func in clock_gettime
 
16677
do :
 
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
 
16682
_ACEOF
 
16683
 
 
16684
else
 
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
 
16689
else
 
16690
  ac_check_lib_save_LIBS=$LIBS
 
16691
LIBS="-lrt  $LIBS"
 
16692
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16693
/* end confdefs.h.  */
 
16694
 
 
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.  */
 
16698
#ifdef __cplusplus
 
16699
extern "C"
 
16700
#endif
 
16701
char clock_gettime ();
 
16702
int
 
16703
main ()
 
16704
{
 
16705
return clock_gettime ();
 
16706
  ;
 
16707
  return 0;
 
16708
}
 
16709
_ACEOF
 
16710
if ac_fn_c_try_link "$LINENO"; then :
 
16711
  ac_cv_lib_rt_clock_gettime=yes
 
16712
else
 
16713
  ac_cv_lib_rt_clock_gettime=no
 
16714
fi
 
16715
rm -f core conftest.err conftest.$ac_objext \
 
16716
    conftest$ac_exeext conftest.$ac_ext
 
16717
LIBS=$ac_check_lib_save_LIBS
 
16718
fi
 
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
 
16724
_ACEOF
 
16725
 
 
16726
  LIBS="-lrt $LIBS"
 
16727
 
 
16728
else
 
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
 
16733
else
 
16734
  ac_check_lib_save_LIBS=$LIBS
 
16735
LIBS="-lposix4  $LIBS"
 
16736
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
16737
/* end confdefs.h.  */
 
16738
 
 
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.  */
 
16742
#ifdef __cplusplus
 
16743
extern "C"
 
16744
#endif
 
16745
char clock_gettime ();
 
16746
int
 
16747
main ()
 
16748
{
 
16749
return clock_gettime ();
 
16750
  ;
 
16751
  return 0;
 
16752
}
 
16753
_ACEOF
 
16754
if ac_fn_c_try_link "$LINENO"; then :
 
16755
  ac_cv_lib_posix4_clock_gettime=yes
 
16756
else
 
16757
  ac_cv_lib_posix4_clock_gettime=no
 
16758
fi
 
16759
rm -f core conftest.err conftest.$ac_objext \
 
16760
    conftest$ac_exeext conftest.$ac_ext
 
16761
LIBS=$ac_check_lib_save_LIBS
 
16762
fi
 
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
 
16768
_ACEOF
 
16769
 
 
16770
  LIBS="-lposix4 $LIBS"
 
16771
 
 
16772
else
 
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;}
 
16775
fi
 
16776
 
 
16777
fi
 
16778
 
 
16779
 
 
16780
fi
 
16781
done
 
16782
 
 
16783
 
 
16784
 
 
16785
COMPILETIME_OPTIONS=""
 
16786
 
 
16787
 
 
16788
###############################################################################
 
16789
# Setting configure options
 
16790
###############################################################################
 
16791
 
 
16792
# Check whether --enable-logging was given.
 
16793
if test "${enable_logging+set}" = set; then :
 
16794
  enableval=$enable_logging; ARG_ENABLE_LOGGING=$enableval
 
16795
else
 
16796
  ARG_ENABLE_LOGGING=no
 
16797
 
 
16798
fi
 
16799
 
 
16800
 
 
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
 
16806
 
 
16807
else
 
16808
 
 
16809
   ARG_ENABLE_DEBUG=no
 
16810
   ac_arg_enable_debug=no
 
16811
 
 
16812
 
 
16813
fi
 
16814
 
 
16815
 
 
16816
# Check whether --enable-dht was given.
 
16817
if test "${enable_dht+set}" = set; then :
 
16818
  enableval=$enable_dht; ARG_ENABLE_DHT=$enableval
 
16819
else
 
16820
  ARG_ENABLE_DHT=yes
 
16821
 
 
16822
fi
 
16823
 
 
16824
 
 
16825
# Check whether --enable-encryption was given.
 
16826
if test "${enable_encryption+set}" = set; then :
 
16827
  enableval=$enable_encryption; ARG_ENABLE_ENCRYPTION=$enableval
 
16828
else
 
16829
  ARG_ENABLE_ENCRYPTION=yes
 
16830
 
 
16831
fi
 
16832
 
 
16833
 
 
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
 
16837
else
 
16838
  ARG_ENABLE_POOL_ALLOC=yes
 
16839
 
 
16840
fi
 
16841
 
 
16842
 
 
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
 
16846
else
 
16847
 
 
16848
   if test "x$ac_arg_enable_debug" = "xyes"; then :
 
16849
  ARG_ENABLE_INVARIANT=yes
 
16850
else
 
16851
  ARG_ENABLE_INVARIANT=no
 
16852
fi
 
16853
 
 
16854
 
 
16855
fi
 
16856
 
 
16857
 
 
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
 
16861
else
 
16862
  ARG_ENABLE_DEPRECATED=yes
 
16863
 
 
16864
fi
 
16865
 
 
16866
 
 
16867
# Check whether --enable-statistics was given.
 
16868
if test "${enable_statistics+set}" = set; then :
 
16869
  enableval=$enable_statistics; ARG_ENABLE_STATS=$enableval
 
16870
else
 
16871
  ARG_ENABLE_STATS=no
 
16872
 
 
16873
fi
 
16874
 
 
16875
 
 
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
 
16879
else
 
16880
  ARG_ENABLE_DISK_STATS=no
 
16881
 
 
16882
fi
17813
16883
 
17814
16884
 
17815
16885
# Check whether --enable-geoip was given.
17827
16897
fi
17828
16898
 
17829
16899
 
 
16900
# Check whether --enable-examples was given.
 
16901
if test "${enable_examples+set}" = set; then :
 
16902
  enableval=$enable_examples; ARG_ENABLE_EXAMPLES=$enableval
 
16903
else
 
16904
  ARG_ENABLE_EXAMPLES=no
 
16905
 
 
16906
fi
 
16907
 
 
16908
 
 
16909
# Check whether --enable-tests was given.
 
16910
if test "${enable_tests+set}" = set; then :
 
16911
  enableval=$enable_tests; ARG_ENABLE_TESTS=$enableval
 
16912
else
 
16913
  ARG_ENABLE_TESTS=no
 
16914
 
 
16915
fi
 
16916
 
 
16917
 
 
16918
# Check whether --enable-python-binding was given.
 
16919
if test "${enable_python_binding+set}" = set; then :
 
16920
  enableval=$enable_python_binding; ARG_ENABLE_PYTHON_BINDING=$enableval
 
16921
else
 
16922
  ARG_ENABLE_PYTHON_BINDING=no
 
16923
 
 
16924
fi
 
16925
 
 
16926
 
 
16927
 
 
16928
# Check whether --with-zlib was given.
 
16929
if test "${with_zlib+set}" = set; then :
 
16930
  withval=$with_zlib; ARG_WITH_ZLIB=$withval
 
16931
else
 
16932
  ARG_WITH_ZLIB=yes
 
16933
 
 
16934
fi
 
16935
 
 
16936
 
17830
16937
 
17831
16938
# Check whether --with-libgeoip was given.
17832
16939
if test "${with_libgeoip+set}" = set; then :
17837
16944
fi
17838
16945
 
17839
16946
 
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 #(
17843
 
  "yes"|"system") :
17844
 
 
17845
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17846
 
$as_echo "yes" >&6; }
17847
 
 
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
17850
 
fi
17851
 
 
17852
 
 
17853
 
 
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
17862
 
else
17863
 
  case $PKG_CONFIG in
17864
 
  [\\/]* | ?:[\\/]*)
17865
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17866
 
  ;;
17867
 
  *)
17868
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17869
 
for as_dir in $PATH
17870
 
do
17871
 
  IFS=$as_save_IFS
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
17877
 
    break 2
17878
 
  fi
17879
 
done
17880
 
  done
17881
 
IFS=$as_save_IFS
17882
 
 
17883
 
  ;;
17884
 
esac
17885
 
fi
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; }
17890
 
else
17891
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17892
 
$as_echo "no" >&6; }
17893
 
fi
17894
 
 
17895
 
 
17896
 
fi
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
17905
 
else
17906
 
  case $ac_pt_PKG_CONFIG in
17907
 
  [\\/]* | ?:[\\/]*)
17908
 
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17909
 
  ;;
17910
 
  *)
17911
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17912
 
for as_dir in $PATH
17913
 
do
17914
 
  IFS=$as_save_IFS
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
17920
 
    break 2
17921
 
  fi
17922
 
done
17923
 
  done
17924
 
IFS=$as_save_IFS
17925
 
 
17926
 
  ;;
17927
 
esac
17928
 
fi
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; }
17933
 
else
17934
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17935
 
$as_echo "no" >&6; }
17936
 
fi
17937
 
 
17938
 
  if test "x$ac_pt_PKG_CONFIG" = x; then
17939
 
    PKG_CONFIG=""
17940
 
  else
17941
 
    case $cross_compiling:$ac_tool_warned in
17942
 
yes:)
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 ;;
17946
 
esac
17947
 
    PKG_CONFIG=$ac_pt_PKG_CONFIG
17948
 
  fi
17949
 
else
17950
 
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17951
 
fi
17952
 
 
17953
 
fi
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; }
17961
 
        else
17962
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17963
 
$as_echo "no" >&6; }
17964
 
                PKG_CONFIG=""
17965
 
        fi
17966
 
 
17967
 
fi
17968
 
 
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;}
17971
 
 
17972
 
 
17973
 
  ac_geoip_found="no"
17974
 
 
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
17980
 
  ac_status=$?
17981
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17982
 
  test $ac_status = 0; }; then
17983
 
 
17984
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17985
 
$as_echo "yes" >&6; }
17986
 
 
17987
 
pkg_failed=no
17988
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEOIP" >&5
17989
 
$as_echo_n "checking for GEOIP... " >&6; }
17990
 
 
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
17997
 
  ac_status=$?
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`
18001
 
else
18002
 
  pkg_failed=yes
18003
 
fi
18004
 
 else
18005
 
    pkg_failed=untried
18006
 
fi
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
18013
 
  ac_status=$?
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`
18017
 
else
18018
 
  pkg_failed=yes
18019
 
fi
18020
 
 else
18021
 
    pkg_failed=untried
18022
 
fi
18023
 
 
18024
 
 
18025
 
 
18026
 
if test $pkg_failed = yes; then
18027
 
 
18028
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18029
 
        _pkg_short_errors_supported=yes
18030
 
else
18031
 
        _pkg_short_errors_supported=no
18032
 
fi
18033
 
        if test $_pkg_short_errors_supported = yes; then
18034
 
                GEOIP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "geoip" 2>&1`
18035
 
        else
18036
 
                GEOIP_PKG_ERRORS=`$PKG_CONFIG --print-errors "geoip" 2>&1`
18037
 
        fi
18038
 
        # Put the nasty error message in config.log where it belongs
18039
 
        echo "$GEOIP_PKG_ERRORS" >&5
18040
 
 
18041
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18042
 
$as_echo "no" >&6; }
18043
 
 
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;}
18046
 
 
18047
 
elif test $pkg_failed = untried; then
18048
 
 
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;}
18051
 
 
18052
 
else
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; }
18057
 
 
18058
 
      ac_geoip_found="yes"
18059
 
 
18060
 
fi
18061
 
 
18062
 
else
18063
 
 
18064
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18065
 
$as_echo "no" >&6; }
18066
 
 
18067
 
    CPPFLAGS_SAVED="$CPPFLAGS"
18068
 
    LDFLAGS_SAVED="$LDFLAGS"
18069
 
    CFLAGS_SAVED="$CFLAGS"
18070
 
    LIBS_SAVED="$LIBS"
18071
 
 
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 :
18074
 
 
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
18079
 
else
18080
 
  ac_check_lib_save_LIBS=$LIBS
18081
 
LIBS="-lGeoIP  $LIBS"
18082
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18083
 
/* end confdefs.h.  */
18084
 
 
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.  */
18088
 
#ifdef __cplusplus
18089
 
extern "C"
18090
 
#endif
18091
 
char GeoIP_new ();
18092
 
int
18093
 
main ()
18094
 
{
18095
 
return GeoIP_new ();
18096
 
  ;
18097
 
  return 0;
18098
 
}
18099
 
_ACEOF
18100
 
if ac_fn_c_try_link "$LINENO"; then :
18101
 
  ac_cv_lib_GeoIP_GeoIP_new=yes
18102
 
else
18103
 
  ac_cv_lib_GeoIP_GeoIP_new=no
18104
 
fi
18105
 
rm -f core conftest.err conftest.$ac_objext \
18106
 
    conftest$ac_exeext conftest.$ac_ext
18107
 
LIBS=$ac_check_lib_save_LIBS
18108
 
fi
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 :
18112
 
 
18113
 
        GEOIP_CFLAGS=""
18114
 
        GEOIP_LIBS="-lGeoIP"
18115
 
        ac_geoip_found="yes"
18116
 
 
18117
 
else
18118
 
 
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;}
18121
 
 
18122
 
fi
18123
 
 
18124
 
 
18125
 
else
18126
 
 
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"
18135
 
          break;
18136
 
        else
18137
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18138
 
$as_echo "no" >&6; }
18139
 
        fi
18140
 
      done
18141
 
 
18142
 
      CFLAGS="$GEOIP_CFLAGS $CFLAGS"
18143
 
      export CFLAGS
18144
 
      LIBS="$GEOIP_LIBS $LIBS"
18145
 
      export LIBS
18146
 
 
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.  */
18151
 
 
18152
 
         #include <GeoIP.h>
18153
 
int
18154
 
main ()
18155
 
{
18156
 
 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
18157
 
  ;
18158
 
  return 0;
18159
 
}
18160
 
 
18161
 
_ACEOF
18162
 
if ac_fn_c_try_link "$LINENO"; then :
18163
 
 
18164
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18165
 
$as_echo "yes" >&6; }
18166
 
        ac_geoip_found="yes"
18167
 
 
18168
 
else
18169
 
 
18170
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18171
 
$as_echo "no" >&6; }
18172
 
 
18173
 
fi
18174
 
rm -f core conftest.err conftest.$ac_objext \
18175
 
    conftest$ac_exeext conftest.$ac_ext
18176
 
 
18177
 
fi
18178
 
 
18179
 
 
18180
 
 
18181
 
    CPPFLAGS="$CPPFLAGS_SAVED"
18182
 
    LDFLAGS="$LDFLAGS_SAVED"
18183
 
    CFLAGS="$CFLAGS_SAVED"
18184
 
    LIBS="$LIBS_SAVED"
18185
 
 
18186
 
fi
18187
 
 
18188
 
  if  test "x$ac_geoip_found" != xno ; then :
18189
 
 
18190
 
        LIBS="$GEOIP_LIBS $LIBS"
18191
 
        CFLAGS="$GEOIP_CFLAGS $CFLAGS"
18192
 
 
18193
 
else
18194
 
 
18195
 
        as_fn_error "GeoIP library not found. Try using --without-libgeoip to link against the shipped copy." "$LINENO" 5
18196
 
 
18197
 
fi
18198
 
 
18199
 
 
18200
 
 
18201
 
 
18202
 
    ;; #(
18203
 
  "no"|"shipped") :
18204
 
 
18205
 
      if test "x$ac_arg_enable_geoip" = "xno"; then :
18206
 
 
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
18209
 
            # removed)
18210
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
18211
 
$as_echo "disabled" >&6; }
18212
 
            ARG_WITH_LIBGEOIP="disabled"
 
16947
 
 
16948
###############################################################################
 
16949
# Checking configure options
 
16950
###############################################################################
 
16951
 
 
16952
$as_echo
 
16953
$as_echo  "Checking build options:"
 
16954
 
 
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 #(
 
16958
  "yes"|"on") :
 
16959
 
 
16960
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16961
$as_echo "yes" >&6; }
 
16962
     ;; #(
 
16963
  "no"|"off") :
 
16964
 
 
16965
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16966
$as_echo "no" >&6; }
 
16967
 
 
16968
$as_echo "#define TORRENT_NO_DEPRECATE 1" >>confdefs.h
 
16969
 
 
16970
     ;; #(
 
16971
  *) :
 
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
 
16975
 ;;
 
16976
esac
 
16977
 
 
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 #(
 
16981
  "yes") :
 
16982
 
 
16983
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
16984
$as_echo "yes" >&6; }
 
16985
 
 
16986
$as_echo "#define TORRENT_DEBUG 1" >>confdefs.h
 
16987
 
 
16988
      COMPILETIME_OPTIONS+="-DTORRENT_DEBUG "
 
16989
      DEBUGFLAGS="-g"
 
16990
    ;; #(
 
16991
  "no") :
 
16992
 
 
16993
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
16994
$as_echo "no" >&6; }
 
16995
 
 
16996
$as_echo "#define NDEBUG 1" >>confdefs.h
 
16997
 
 
16998
      #COMPILETIME_OPTIONS+="-DNDEBUG "
 
16999
      DEBUGFLAGS="-Os"
 
17000
    ;; #(
 
17001
  *) :
 
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
 
17005
 ;;
 
17006
esac
 
17007
 
 
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 #(
 
17011
  "yes"|"on") :
 
17012
 
 
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
 
17017
fi
 
17018
     ;; #(
 
17019
  "no"|"off") :
 
17020
 
 
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 :
 
17024
 
 
17025
$as_echo "#define TORRENT_DISABLE_INVARIANT_CHECKS 1" >>confdefs.h
 
17026
 
 
17027
fi
 
17028
     ;; #(
 
17029
  "full") :
 
17030
 
 
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 :
 
17034
 
 
17035
$as_echo "#define TORRENT_EXPENSIVE_INVARIANT_CHECKS 1" >>confdefs.h
 
17036
 
 
17037
else
 
17038
  as_fn_error "invariant-checks: this setting only affects debug build. Try using --enable-debug." "$LINENO" 5
 
17039
fi
 
17040
     ;; #(
 
17041
  *) :
 
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
 
17045
 ;;
 
17046
esac
 
17047
 
 
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 #(
 
17051
  "yes"|"default") :
 
17052
 
 
17053
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17054
$as_echo "yes" >&6; }
 
17055
 
 
17056
$as_echo "#define TORRENT_LOGGING 1" >>confdefs.h
 
17057
 
 
17058
      COMPILETIME_OPTIONS+="-DTORRENT_LOGGING "
 
17059
     ;; #(
 
17060
  "no"|"none") :
 
17061
 
 
17062
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17063
$as_echo "no" >&6; }
 
17064
     ;; #(
 
17065
  "verbose") :
 
17066
 
 
17067
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: verbose" >&5
 
17068
$as_echo "verbose" >&6; }
 
17069
 
 
17070
$as_echo "#define TORRENT_VERBOSE_LOGGING 1" >>confdefs.h
 
17071
 
 
17072
      COMPILETIME_OPTIONS+="-DTORRENT_VERBOSE_LOGGING "
 
17073
     ;; #(
 
17074
  "errors") :
 
17075
 
 
17076
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: errors" >&5
 
17077
$as_echo "errors" >&6; }
 
17078
 
 
17079
$as_echo "#define TORRENT_ERROR_LOGGING 1" >>confdefs.h
 
17080
 
 
17081
      COMPILETIME_OPTIONS+="-DTORRENT_ERROR_LOGGING "
 
17082
     ;; #(
 
17083
  *) :
 
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
 
17087
 ;;
 
17088
esac
 
17089
 
 
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 #(
 
17093
  "yes"|"on") :
 
17094
 
 
17095
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17096
$as_echo "yes" >&6; }
 
17097
 
 
17098
$as_echo "#define TORRENT_STATS 1" >>confdefs.h
 
17099
 
 
17100
     ;; #(
 
17101
  "no"|"off") :
 
17102
 
 
17103
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17104
$as_echo "no" >&6; }
 
17105
     ;; #(
 
17106
  *) :
 
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
 
17110
 ;;
 
17111
esac
 
17112
 
 
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 #(
 
17116
  "yes"|"on") :
 
17117
 
 
17118
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17119
$as_echo "yes" >&6; }
 
17120
 
 
17121
$as_echo "#define TORRENT_DISK_STATS 1" >>confdefs.h
 
17122
 
 
17123
     ;; #(
 
17124
  "no"|"off") :
 
17125
 
 
17126
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17127
$as_echo "no" >&6; }
 
17128
     ;; #(
 
17129
  *) :
 
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
 
17133
 ;;
 
17134
esac
 
17135
 
 
17136
$as_echo
 
17137
$as_echo  "Checking features to be enabled:"
 
17138
 
 
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 #(
 
17142
  "yes"|"on") :
 
17143
 
 
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;}
 
17148
 
 
17149
 
 
17150
    found=false
 
17151
 
 
17152
# Check whether --with-openssl was given.
 
17153
if test "${with_openssl+set}" = set; then :
 
17154
  withval=$with_openssl;
 
17155
            case "$withval" in
 
17156
            "" | y | ye | yes | n | no)
 
17157
            as_fn_error "Invalid --with-openssl value" "$LINENO" 5
 
17158
              ;;
 
17159
            *) ssldirs="$withval"
 
17160
              ;;
 
17161
            esac
 
17162
 
 
17163
else
 
17164
 
 
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`
 
17173
                    found=true
 
17174
                fi
 
17175
            fi
 
17176
 
 
17177
            # no such luck; use some default ssldirs
 
17178
            if ! $found; then
 
17179
                ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
 
17180
            fi
 
17181
 
 
17182
 
 
17183
fi
 
17184
 
 
17185
 
 
17186
 
 
17187
    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
 
17188
    # an 'openssl' subdirectory
 
17189
 
 
17190
    if ! $found; then
 
17191
        OPENSSL_INCLUDES=
 
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"
 
17199
                found=true
 
17200
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17201
$as_echo "yes" >&6; }
 
17202
                break
 
17203
            else
 
17204
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17205
$as_echo "no" >&6; }
 
17206
            fi
 
17207
        done
 
17208
 
 
17209
        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
 
17210
        # it will just work!
 
17211
    fi
 
17212
 
 
17213
    # try the preprocessor and linker with our new flags,
 
17214
    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
 
17215
 
 
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
 
17220
 
 
17221
    save_LIBS="$LIBS"
 
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>
 
17230
int
 
17231
main ()
 
17232
{
 
17233
SSL_new(NULL)
 
17234
  ;
 
17235
  return 0;
 
17236
}
 
17237
_ACEOF
 
17238
if ac_fn_c_try_link "$LINENO"; then :
 
17239
 
 
17240
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17241
$as_echo "yes" >&6; }
 
17242
 
 
17243
 
 
17244
$as_echo "#define TORRENT_USE_OPENSSL 1" >>confdefs.h
 
17245
 
 
17246
          COMPILETIME_OPTIONS+="-DTORRENT_USE_OPENSSL "
 
17247
 
18213
17248
 
18214
17249
else
18215
17250
 
18216
17251
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18217
17252
$as_echo "no" >&6; }
18218
 
            ARG_WITH_LIBGEOIP="no"
18219
 
 
18220
 
$as_echo "#define WITH_SHIPPED_GEOIP_H 1" >>confdefs.h
18221
 
 
18222
 
            COMPILETIME_OPTIONS+="-DWITH_SHIPPED_GEOIP_H "
18223
 
 
18224
 
fi
18225
 
    ;; #(
18226
 
  *) :
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
18230
 
 ;;
18231
 
esac
18232
 
 
18233
 
 if test "x$ARG_WITH_LIBGEOIP" = "xno" ; then
18234
 
  WITH_SHIPPED_GEOIP_TRUE=
18235
 
  WITH_SHIPPED_GEOIP_FALSE='#'
18236
 
else
18237
 
  WITH_SHIPPED_GEOIP_TRUE='#'
18238
 
  WITH_SHIPPED_GEOIP_FALSE=
18239
 
fi
18240
 
 
18241
 
 
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
18245
 
else
18246
 
  ac_python_binding=no
18247
 
 
18248
 
fi
18249
 
 
18250
 
 
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
18254
 
        "yes")
18255
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17253
 
 
17254
          as_fn_error "OpenSSL library not found. Try using --with-openssl=DIR or disabling encryption at all." "$LINENO" 5
 
17255
 
 
17256
 
 
17257
fi
 
17258
rm -f core conftest.err conftest.$ac_objext \
 
17259
    conftest$ac_exeext conftest.$ac_ext
 
17260
    CPPFLAGS="$save_CPPFLAGS"
 
17261
    LDFLAGS="$save_LDFLAGS"
 
17262
    LIBS="$save_LIBS"
 
17263
 
 
17264
 
 
17265
 
 
17266
 
 
17267
 
 
17268
     ;; #(
 
17269
  "no"|"off") :
 
17270
 
 
17271
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17272
$as_echo "no" >&6; }
 
17273
 
 
17274
$as_echo "#define TORRENT_DISABLE_ENCRYPTION 1" >>confdefs.h
 
17275
 
 
17276
      COMPILETIME_OPTIONS+="-DTORRENT_DISABLE_ENCRYPTION "
 
17277
     ;; #(
 
17278
  *) :
 
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
 
17282
 ;;
 
17283
esac
 
17284
 
 
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 #(
 
17288
  "yes") :
 
17289
 
 
17290
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17291
$as_echo "yes" >&6; }
 
17292
    ;; #(
 
17293
  "no") :
 
17294
 
 
17295
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17296
$as_echo "no" >&6; }
 
17297
 
 
17298
$as_echo "#define TORRENT_DISABLE_GEO_IP 1" >>confdefs.h
 
17299
 
 
17300
    COMPILETIME_OPTIONS+="-DTORRENT_DISABLE_GEO_IP "
 
17301
    ;; #(
 
17302
  *) :
 
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
 
17306
 ;;
 
17307
esac
 
17308
 
 
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 #(
 
17312
  "yes"|"on") :
 
17313
 
 
17314
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17315
$as_echo "yes" >&6; }
 
17316
     ;; #(
 
17317
  "no"|"off") :
 
17318
 
 
17319
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17320
$as_echo "no" >&6; }
 
17321
 
 
17322
$as_echo "#define TORRENT_DISABLE_DHT 1" >>confdefs.h
 
17323
 
 
17324
      COMPILETIME_OPTIONS+="-DTORRENT_DISABLE_DHT "
 
17325
     ;; #(
 
17326
  "logging") :
 
17327
 
 
17328
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: logging" >&5
 
17329
$as_echo "logging" >&6; }
 
17330
 
 
17331
$as_echo "#define TORRENT_DHT_VERBOSE_LOGGING 1" >>confdefs.h
 
17332
 
 
17333
      COMPILETIME_OPTIONS+="-DTORRENT_DHT_VERBOSE_LOGGING "
 
17334
     ;; #(
 
17335
  *) :
 
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
 
17339
 ;;
 
17340
esac
 
17341
 
 
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 #(
 
17345
  "yes"|"on") :
 
17346
 
 
17347
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17348
$as_echo "yes" >&6; }
 
17349
     ;; #(
 
17350
  "no"|"off") :
 
17351
 
 
17352
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17353
$as_echo "no" >&6; }
 
17354
 
 
17355
$as_echo "#define TORRENT_DISABLE_POOL_ALLOCATOR 1" >>confdefs.h
 
17356
 
 
17357
     ;; #(
 
17358
  *) :
 
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
 
17362
 ;;
 
17363
esac
 
17364
 
 
17365
$as_echo
 
17366
$as_echo  "Checking for extra build files:"
 
17367
 
 
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 #(
 
17371
  "yes") :
 
17372
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17373
$as_echo "yes" >&6; } ;; #(
 
17374
  "no") :
 
17375
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17376
$as_echo "no" >&6; } ;; #(
 
17377
  *) :
 
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
 
17381
 ;;
 
17382
esac
 
17383
 
 
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 #(
 
17387
  "yes") :
 
17388
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17389
$as_echo "yes" >&6; } ;; #(
 
17390
  "no") :
 
17391
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17392
$as_echo "no" >&6; } ;; #(
 
17393
  *) :
 
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
 
17397
 ;;
 
17398
esac
 
17399
 
 
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 #(
 
17403
  "yes") :
 
17404
 
 
17405
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18256
17406
$as_echo "yes" >&6; }
18257
17407
 
18258
17408
 
18364
17514
 
18365
17515
 
18366
17516
  if test "$PYTHON" = :; then
18367
 
      as_fn_error "Python not found. Python is required to build python binding." "$LINENO" 5
 
17517
      as_fn_error "Python interpreter not found." "$LINENO" 5
18368
17518
  else
18369
17519
 
18370
17520
 
18482
17632
 
18483
17633
 
18484
17634
 
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
18488
 
$as_echo "" >&6; }
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])
18491
 
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 :
 
17635
        #
 
17636
        # Allow the use of a (user set) custom python version
 
17637
        #
 
17638
 
 
17639
 
 
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
18499
17646
else
18500
 
  ac_check_lib_save_LIBS=$LIBS
18501
 
LIBS="-l$ax_python_bin  $LIBS"
18502
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
17647
  case $PYTHON in
 
17648
  [\\/]* | ?:[\\/]*)
 
17649
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
 
17650
  ;;
 
17651
  *)
 
17652
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17653
for as_dir in $PATH
 
17654
do
 
17655
  IFS=$as_save_IFS
 
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
 
17661
    break 2
 
17662
  fi
 
17663
done
 
17664
  done
 
17665
IFS=$as_save_IFS
 
17666
 
 
17667
  ;;
 
17668
esac
 
17669
fi
 
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; }
 
17674
else
 
17675
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
17676
$as_echo "no" >&6; }
 
17677
fi
 
17678
 
 
17679
 
 
17680
        if test -z "$PYTHON"; then
 
17681
           as_fn_error "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
 
17682
           PYTHON_VERSION=""
 
17683
        fi
 
17684
 
 
17685
        #
 
17686
        # Check for a version of Python >= 2.1.0
 
17687
        #
 
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;}
 
17699
as_fn_error "
 
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.
 
17707
 
 
17708
See \`config.log' for more details." "$LINENO" 5; }
 
17709
                else
 
17710
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
 
17711
$as_echo "skip at user request" >&6; }
 
17712
                fi
 
17713
        else
 
17714
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
17715
$as_echo "yes" >&6; }
 
17716
        fi
 
17717
 
 
17718
        #
 
17719
        # if the macro parameter ``version'' is set, honour it
 
17720
        #
 
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; }
 
17730
                else
 
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.
 
17737
" "$LINENO" 5
 
17738
                        PYTHON_VERSION=""
 
17739
                fi
 
17740
        fi
 
17741
 
 
17742
        #
 
17743
        # Check if you have distutils, else fail
 
17744
        #
 
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; }
 
17751
        else
 
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
 
17757
                PYTHON_VERSION=""
 
17758
        fi
 
17759
 
 
17760
        #
 
17761
        # Check for Python include path
 
17762
        #
 
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"
 
17770
                fi
 
17771
                PYTHON_CPPFLAGS=$python_path
 
17772
        fi
 
17773
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
 
17774
$as_echo "$PYTHON_CPPFLAGS" >&6; }
 
17775
 
 
17776
 
 
17777
        #
 
17778
        # Check for Python library path
 
17779
        #
 
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 -
 
17786
 
 
17787
# join all versioning strings, on some systems
 
17788
# major/minor numbers could be in different list elements
 
17789
from distutils.sysconfig import *
 
17790
ret = ''
 
17791
for e in get_config_vars ('VERSION'):
 
17792
        if (e != None):
 
17793
                ret += e
 
17794
print (ret)
 
17795
EOD`
 
17796
 
 
17797
                if test -z "$ac_python_version"; then
 
17798
                        if test -n "$PYTHON_VERSION"; then
 
17799
                                ac_python_version=$PYTHON_VERSION
 
17800
                        else
 
17801
                                ac_python_version=`$PYTHON -c "import sys; \
 
17802
                                        print (sys.version[:3])"`
 
17803
                        fi
 
17804
                fi
 
17805
 
 
17806
                # Make the versioning information available to the compiler
 
17807
 
 
17808
cat >>confdefs.h <<_ACEOF
 
17809
#define HAVE_PYTHON "$ac_python_version"
 
17810
_ACEOF
 
17811
 
 
17812
 
 
17813
                # First, the library directory:
 
17814
                ac_python_libdir=`cat<<EOD | $PYTHON -
 
17815
 
 
17816
# There should be only one
 
17817
import distutils.sysconfig
 
17818
for e in distutils.sysconfig.get_config_vars ('LIBDIR'):
 
17819
        if e != None:
 
17820
                print (e)
 
17821
                break
 
17822
EOD`
 
17823
 
 
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])"`
 
17830
 
 
17831
                # Now, for the library:
 
17832
                ac_python_soname=`$PYTHON -c \
 
17833
                  "import distutils.sysconfig; \
 
17834
                  print (distutils.sysconfig.get_config_vars('LDLIBRARY')[0])"`
 
17835
 
 
17836
                # Strip away extension from the end to canonicalize its name:
 
17837
                ac_python_library=`echo "$ac_python_soname" | sed "s/${ac_python_soext}$//"`
 
17838
 
 
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... ?
 
17842
                #
 
17843
                if test -n "$ac_python_libdir" -a -n "$ac_python_library" \
 
17844
                        -a x"$ac_python_library" != x"$ac_python_soname"
 
17845
                then
 
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"
 
17849
                else
 
17850
                        # old way: use libpython from python_configdir
 
17851
                        ac_python_libdir=`$PYTHON -c \
 
17852
                          "from distutils.sysconfig import get_python_lib as f; \
 
17853
                          import os; \
 
17854
                          print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
 
17855
                        PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
 
17856
                fi
 
17857
 
 
17858
                if test -z "PYTHON_LDFLAGS"; then
 
17859
                        as_fn_error "
 
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.
 
17862
                        " "$LINENO" 5
 
17863
                fi
 
17864
        fi
 
17865
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
 
17866
$as_echo "$PYTHON_LDFLAGS" >&6; }
 
17867
 
 
17868
 
 
17869
        #
 
17870
        # Check for site packages
 
17871
        #
 
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));"`
 
17877
        fi
 
17878
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
 
17879
$as_echo "$PYTHON_SITE_PKG" >&6; }
 
17880
 
 
17881
 
 
17882
        #
 
17883
        # libraries which must be linked in when embedding
 
17884
        #
 
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'))"`
 
17891
        fi
 
17892
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
 
17893
$as_echo "$PYTHON_EXTRA_LIBS" >&6; }
 
17894
 
 
17895
 
 
17896
        #
 
17897
        # linking flags needed when embedding
 
17898
        #
 
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'))"`
 
17905
        fi
 
17906
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
 
17907
$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
 
17908
 
 
17909
 
 
17910
        #
 
17911
        # final check to see if everything compiles alright
 
17912
        #
 
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"
 
17920
        ac_ext=c
 
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
 
17925
 
 
17926
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18503
17927
/* end confdefs.h.  */
18504
17928
 
18505
 
 
 
17929
                #include <Python.h>
18506
17930
int
18507
17931
main ()
18508
17932
{
18509
 
return main ();
 
17933
Py_Initialize();
18510
17934
  ;
18511
17935
  return 0;
18512
17936
}
 
17937
 
18513
17938
_ACEOF
18514
17939
if ac_fn_c_try_link "$LINENO"; then :
18515
 
  eval "$as_ac_Lib=yes"
 
17940
  pythonexists=yes
18516
17941
else
18517
 
  eval "$as_ac_Lib=no"
 
17942
  pythonexists=no
18518
17943
fi
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
18522
 
fi
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
18529
 
else
18530
 
  ax_python_lib=no
18531
 
fi
18532
 
 
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
18538
 
else
18539
 
  ax_python_header=no
18540
 
fi
18541
 
 
18542
 
 
18543
 
   if test $ax_python_lib != no; then
18544
 
     if test $ax_python_header != no; then
18545
 
       break;
18546
 
     fi
18547
 
   fi
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
18553
 
else
18554
 
  ax_python_header=no
18555
 
fi
18556
 
 
18557
 
 
18558
 
   if test $ax_python_lib != no; then
18559
 
     if test $ax_python_header != no; then
18560
 
       break;
18561
 
     fi
18562
 
   fi
18563
 
fi
18564
 
done
18565
 
if test x$ax_python_bin = x; then
18566
 
   ax_python_bin=no
18567
 
fi
18568
 
if test x$ax_python_header = x; then
18569
 
   ax_python_header=no
18570
 
fi
18571
 
if test x$ax_python_lib = x; then
18572
 
   ax_python_lib=no
18573
 
fi
18574
 
 
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; }
18583
 
 
18584
 
if test x$ax_python_header != xno; then
18585
 
  PYTHON_INCLUDE_DIR=$ax_python_header
18586
 
 
18587
 
fi
18588
 
if test x$ax_python_lib != xno; then
18589
 
  PYTHON_LIB=$ax_python_lib
18590
 
 
18591
 
fi
18592
 
 
18593
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Python library is available" >&5
 
17946
        ac_ext=c
 
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
 
17951
 
 
17952
        # turn back to default flags
 
17953
        CPPFLAGS="$ac_save_CPPFLAGS"
 
17954
        LIBS="$ac_save_LIBS"
 
17955
 
 
17956
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
 
17957
$as_echo "$pythonexists" >&6; }
 
17958
 
 
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;}
 
17962
as_fn_error "
 
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
  ============================================================================
 
17968
   ERROR!
 
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
  ============================================================================
 
17972
 
 
17973
See \`config.log' for more details." "$LINENO" 5; }
 
17974
          PYTHON_VERSION=""
 
17975
        fi
 
17976
 
 
17977
        #
 
17978
        # all done!
 
17979
        #
 
17980
 
 
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
18603
17991
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18604
17992
 
18605
17993
 CPPFLAGS_SAVE=$CPPFLAGS
18606
 
 if test x$PYTHON_INCLUDE_DIR != x; then
18607
 
   CPPFLAGS="-I$PYTHON_INCLUDE_DIR $CPPFLAGS"
 
17994
 if test "x$PYTHON_CPPFLAGS" != "x"; then
 
17995
   CPPFLAGS="$PYTHON_CPPFLAGS $CPPFLAGS"
18608
17996
 fi
18609
17997
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18610
17998
/* end confdefs.h.  */
18637
18025
fi
18638
18026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_boost_python" >&5
18639
18027
$as_echo "$ac_cv_boost_python" >&6; }
18640
 
if test "$ac_cv_boost_python" = "yes"; then
 
18028
if test "x$ac_cv_boost_python" = "xyes"; then
18641
18029
 
18642
 
$as_echo "#define HAVE_BOOST_PYTHON /**/" >>confdefs.h
 
18030
$as_echo "#define HAVE_BOOST_PYTHON 1" >>confdefs.h
18643
18031
 
18644
18032
    LDFLAGS_SAVE=$LDFLAGS
18645
 
  if test x$PYTHON_LIB != x; then
18646
 
     LDFLAGS="$LDFLAGS -l$PYTHON_LIB"
 
18033
  if test "x$PYTHON_LDFLAGS" != "x"; then
 
18034
     LDFLAGS="$LDFLAGS $PYTHON_LDFLAGS"
18647
18035
  fi
18648
18036
    ax_python_lib=boost_python
18649
18037
 
18690
18078
$as_echo "$ac_res" >&6; }
18691
18079
eval as_val=\$$as_ac_Lib
18692
18080
   if test "x$as_val" = x""yes; then :
18693
 
  BOOST_PYTHON_LIB=$ax_lib break
 
18081
  BOOST_PYTHON_LIB=-l$ax_lib break
18694
18082
fi
18695
18083
 
18696
18084
  done
18698
18086
 
18699
18087
fi
18700
18088
 
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
18703
 
                fi
18704
 
 
18705
 
                 if true; then
18706
 
  ENABLE_PYTHON_BINDING_TRUE=
18707
 
  ENABLE_PYTHON_BINDING_FALSE='#'
18708
 
else
18709
 
  ENABLE_PYTHON_BINDING_TRUE='#'
18710
 
  ENABLE_PYTHON_BINDING_FALSE=
18711
 
fi
18712
 
 
18713
 
 
18714
 
                ;;
18715
 
        "no")
18716
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18717
 
$as_echo "no" >&6; }
18718
 
                 if false; then
18719
 
  ENABLE_PYTHON_BINDING_TRUE=
18720
 
  ENABLE_PYTHON_BINDING_FALSE='#'
18721
 
else
18722
 
  ENABLE_PYTHON_BINDING_TRUE='#'
18723
 
  ENABLE_PYTHON_BINDING_FALSE=
18724
 
fi
18725
 
 
18726
 
                ;;
18727
 
        "")
18728
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18729
 
$as_echo "no" >&6; }
18730
 
                 if false; then
18731
 
  ENABLE_PYTHON_BINDING_TRUE=
18732
 
  ENABLE_PYTHON_BINDING_FALSE='#'
18733
 
else
18734
 
  ENABLE_PYTHON_BINDING_TRUE='#'
18735
 
  ENABLE_PYTHON_BINDING_FALSE=
18736
 
fi
18737
 
 
18738
 
                ;;
18739
 
        *)
18740
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
18741
 
$as_echo "" >&6; }
18742
 
                as_fn_error "Unknown --enable-python option \"$python\". Use either \"yes\" or \"no\"." "$LINENO" 5
18743
 
                ;;
18744
 
esac
18745
 
 
18746
 
if [ "x$PYTHON_INSTALL_PARAMS" == "x" ]; then
18747
 
        PYTHON_INSTALL_PARAMS='--prefix=$(DESTDIR)$(prefix)'
18748
 
fi
18749
 
 
18750
 
 
18751
 
# Check whether --enable-examples was given.
18752
 
if test "${enable_examples+set}" = set; then :
18753
 
  enableval=$enable_examples; examples=$enableval
18754
 
else
18755
 
  examples=no
18756
 
 
18757
 
fi
18758
 
 
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
18762
 
        "yes")
18763
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18764
 
$as_echo "yes" >&6; }
18765
 
                 if true; then
18766
 
  ENABLE_EXAMPLES_TRUE=
18767
 
  ENABLE_EXAMPLES_FALSE='#'
18768
 
else
18769
 
  ENABLE_EXAMPLES_TRUE='#'
18770
 
  ENABLE_EXAMPLES_FALSE=
18771
 
fi
18772
 
 
18773
 
                ;;
18774
 
        "no")
18775
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18776
 
$as_echo "no" >&6; }
18777
 
                 if false; then
18778
 
  ENABLE_EXAMPLES_TRUE=
18779
 
  ENABLE_EXAMPLES_FALSE='#'
18780
 
else
18781
 
  ENABLE_EXAMPLES_TRUE='#'
18782
 
  ENABLE_EXAMPLES_FALSE=
18783
 
fi
18784
 
 
18785
 
                ;;
18786
 
        "")
18787
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
18788
 
$as_echo "yes (default)" >&6; }
18789
 
                 if true; then
18790
 
  ENABLE_EXAMPLES_TRUE=
18791
 
  ENABLE_EXAMPLES_FALSE='#'
18792
 
else
18793
 
  ENABLE_EXAMPLES_TRUE='#'
18794
 
  ENABLE_EXAMPLES_FALSE=
18795
 
fi
18796
 
 
18797
 
                ;;
18798
 
        *)
18799
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
18800
 
$as_echo "" >&6; }
18801
 
                as_fn_error "Unknown --enable-examples option \"$examples\". Use either \"yes\" or \"no\"." "$LINENO" 5
18802
 
                ;;
18803
 
esac
18804
 
 
18805
 
# Check whether --enable-tests was given.
18806
 
if test "${enable_tests+set}" = set; then :
18807
 
  enableval=$enable_tests; tests=$enableval
18808
 
else
18809
 
  tests=no
18810
 
 
18811
 
fi
18812
 
 
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; }
18815
 
case "$tests" in
18816
 
        "yes")
18817
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18818
 
$as_echo "yes" >&6; }
18819
 
                 if true; then
18820
 
  ENABLE_TESTS_TRUE=
18821
 
  ENABLE_TESTS_FALSE='#'
18822
 
else
18823
 
  ENABLE_TESTS_TRUE='#'
18824
 
  ENABLE_TESTS_FALSE=
18825
 
fi
18826
 
 
18827
 
                ;;
18828
 
        "no")
18829
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18830
 
$as_echo "no" >&6; }
18831
 
                 if false; then
18832
 
  ENABLE_TESTS_TRUE=
18833
 
  ENABLE_TESTS_FALSE='#'
18834
 
else
18835
 
  ENABLE_TESTS_TRUE='#'
18836
 
  ENABLE_TESTS_FALSE=
18837
 
fi
18838
 
 
18839
 
                ;;
18840
 
        "")
18841
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
18842
 
$as_echo "yes (default)" >&6; }
18843
 
                 if true; then
18844
 
  ENABLE_TESTS_TRUE=
18845
 
  ENABLE_TESTS_FALSE='#'
18846
 
else
18847
 
  ENABLE_TESTS_TRUE='#'
18848
 
  ENABLE_TESTS_FALSE=
18849
 
fi
18850
 
 
18851
 
                ;;
18852
 
        *)
18853
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
18854
 
$as_echo "" >&6; }
18855
 
                as_fn_error "Unknown --enable-tests option \"$tests\". Use either \"yes\" or \"no\"." "$LINENO" 5
18856
 
                ;;
18857
 
esac
18858
 
 
18859
 
if [ "x$enable_shared" == "xyes" ]; then
18860
 
 
18861
 
$as_echo "#define TORRENT_BUILDING_SHARED /**/" >>confdefs.h
18862
 
 
18863
 
        COMPILETIME_OPTIONS+="-DTORRENT_LINKING_SHARED "
18864
 
fi
18865
 
 
18866
 
 
18867
 
$as_echo "#define BOOST_EXCEPTION_DISABLE /**/" >>confdefs.h
 
18089
 
 
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
 
18092
fi
 
18093
     ;; #(
 
18094
  "no") :
 
18095
 
 
18096
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18097
$as_echo "no" >&6; }
 
18098
     ;; #(
 
18099
  *) :
 
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
 
18103
 ;;
 
18104
esac
 
18105
 
 
18106
$as_echo
 
18107
$as_echo  "Checking for external libraries:"
 
18108
 
 
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 #(
 
18112
  "yes"|"system") :
 
18113
 
 
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 :
 
18118
 
 
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
 
18123
else
 
18124
  ac_check_lib_save_LIBS=$LIBS
 
18125
LIBS="-lz  $LIBS"
 
18126
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18127
/* end confdefs.h.  */
 
18128
 
 
18129
 
 
18130
int
 
18131
main ()
 
18132
{
 
18133
return main ();
 
18134
  ;
 
18135
  return 0;
 
18136
}
 
18137
_ACEOF
 
18138
if ac_fn_c_try_link "$LINENO"; then :
 
18139
  ac_cv_lib_z_main=yes
 
18140
else
 
18141
  ac_cv_lib_z_main=no
 
18142
fi
 
18143
rm -f core conftest.err conftest.$ac_objext \
 
18144
    conftest$ac_exeext conftest.$ac_ext
 
18145
LIBS=$ac_check_lib_save_LIBS
 
18146
fi
 
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
 
18152
_ACEOF
 
18153
 
 
18154
  LIBS="-lz $LIBS"
 
18155
 
 
18156
else
 
18157
  as_fn_error "zlib library not found. Try using --without-zlib to link against the shipped copy." "$LINENO" 5
 
18158
fi
 
18159
 
 
18160
else
 
18161
  as_fn_error "zlib header not found. Try using --without-zlib to link against the shipped copy." "$LINENO" 5
 
18162
fi
 
18163
 
 
18164
 
 
18165
    ;; #(
 
18166
  "no"|"shipped") :
 
18167
 
 
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])
 
18175
      ARG_WITH_ZLIB="no"
 
18176
    ;; #(
 
18177
  *) :
 
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
 
18181
 ;;
 
18182
esac
 
18183
 
 
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
 
18187
do :
 
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
 
18192
_ACEOF
 
18193
 
 
18194
fi
 
18195
 
 
18196
done
 
18197
 
 
18198
 
 
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 #(
 
18202
  "yes"|"system") :
 
18203
 
 
18204
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18205
$as_echo "yes" >&6; }
 
18206
 
 
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
 
18209
fi
 
18210
 
 
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;}
 
18213
 
 
18214
 
 
18215
  ac_geoip_found="no"
 
18216
 
 
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
 
18222
  ac_status=$?
 
18223
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
18224
  test $ac_status = 0; }; then
 
18225
 
 
18226
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18227
$as_echo "yes" >&6; }
 
18228
 
 
18229
pkg_failed=no
 
18230
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEOIP" >&5
 
18231
$as_echo_n "checking for GEOIP... " >&6; }
 
18232
 
 
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
 
18239
  ac_status=$?
 
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`
 
18243
else
 
18244
  pkg_failed=yes
 
18245
fi
 
18246
 else
 
18247
    pkg_failed=untried
 
18248
fi
 
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
 
18255
  ac_status=$?
 
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`
 
18259
else
 
18260
  pkg_failed=yes
 
18261
fi
 
18262
 else
 
18263
    pkg_failed=untried
 
18264
fi
 
18265
 
 
18266
 
 
18267
 
 
18268
if test $pkg_failed = yes; then
 
18269
 
 
18270
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
18271
        _pkg_short_errors_supported=yes
 
18272
else
 
18273
        _pkg_short_errors_supported=no
 
18274
fi
 
18275
        if test $_pkg_short_errors_supported = yes; then
 
18276
                GEOIP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "geoip" 2>&1`
 
18277
        else
 
18278
                GEOIP_PKG_ERRORS=`$PKG_CONFIG --print-errors "geoip" 2>&1`
 
18279
        fi
 
18280
        # Put the nasty error message in config.log where it belongs
 
18281
        echo "$GEOIP_PKG_ERRORS" >&5
 
18282
 
 
18283
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18284
$as_echo "no" >&6; }
 
18285
 
 
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;}
 
18288
 
 
18289
elif test $pkg_failed = untried; then
 
18290
 
 
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;}
 
18293
 
 
18294
else
 
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; }
 
18299
 
 
18300
      ac_geoip_found="yes"
 
18301
 
 
18302
fi
 
18303
 
 
18304
else
 
18305
 
 
18306
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18307
$as_echo "no" >&6; }
 
18308
 
 
18309
    CPPFLAGS_SAVED="$CPPFLAGS"
 
18310
    LDFLAGS_SAVED="$LDFLAGS"
 
18311
    CFLAGS_SAVED="$CFLAGS"
 
18312
    LIBS_SAVED="$LIBS"
 
18313
 
 
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 :
 
18316
 
 
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
 
18321
else
 
18322
  ac_check_lib_save_LIBS=$LIBS
 
18323
LIBS="-lGeoIP  $LIBS"
 
18324
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18325
/* end confdefs.h.  */
 
18326
 
 
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.  */
 
18330
#ifdef __cplusplus
 
18331
extern "C"
 
18332
#endif
 
18333
char GeoIP_new ();
 
18334
int
 
18335
main ()
 
18336
{
 
18337
return GeoIP_new ();
 
18338
  ;
 
18339
  return 0;
 
18340
}
 
18341
_ACEOF
 
18342
if ac_fn_c_try_link "$LINENO"; then :
 
18343
  ac_cv_lib_GeoIP_GeoIP_new=yes
 
18344
else
 
18345
  ac_cv_lib_GeoIP_GeoIP_new=no
 
18346
fi
 
18347
rm -f core conftest.err conftest.$ac_objext \
 
18348
    conftest$ac_exeext conftest.$ac_ext
 
18349
LIBS=$ac_check_lib_save_LIBS
 
18350
fi
 
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 :
 
18354
 
 
18355
        GEOIP_CFLAGS=""
 
18356
        GEOIP_LIBS="-lGeoIP"
 
18357
        ac_geoip_found="yes"
 
18358
 
 
18359
else
 
18360
 
 
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;}
 
18363
 
 
18364
fi
 
18365
 
 
18366
 
 
18367
else
 
18368
 
 
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"
 
18377
          break;
 
18378
        else
 
18379
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18380
$as_echo "no" >&6; }
 
18381
        fi
 
18382
      done
 
18383
 
 
18384
      CFLAGS="$GEOIP_CFLAGS $CFLAGS"
 
18385
      export CFLAGS
 
18386
      LIBS="$GEOIP_LIBS $LIBS"
 
18387
      export LIBS
 
18388
 
 
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.  */
 
18393
 
 
18394
         #include <GeoIP.h>
 
18395
int
 
18396
main ()
 
18397
{
 
18398
 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
 
18399
  ;
 
18400
  return 0;
 
18401
}
 
18402
 
 
18403
_ACEOF
 
18404
if ac_fn_c_try_link "$LINENO"; then :
 
18405
 
 
18406
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
18407
$as_echo "yes" >&6; }
 
18408
        ac_geoip_found="yes"
 
18409
 
 
18410
else
 
18411
 
 
18412
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18413
$as_echo "no" >&6; }
 
18414
 
 
18415
fi
 
18416
rm -f core conftest.err conftest.$ac_objext \
 
18417
    conftest$ac_exeext conftest.$ac_ext
 
18418
 
 
18419
fi
 
18420
 
 
18421
 
 
18422
 
 
18423
    CPPFLAGS="$CPPFLAGS_SAVED"
 
18424
    LDFLAGS="$LDFLAGS_SAVED"
 
18425
    CFLAGS="$CFLAGS_SAVED"
 
18426
    LIBS="$LIBS_SAVED"
 
18427
 
 
18428
fi
 
18429
 
 
18430
  if  test "x$ac_geoip_found" != xno ; then :
 
18431
 
 
18432
        LIBS="$GEOIP_LIBS $LIBS"
 
18433
        CFLAGS="$GEOIP_CFLAGS $CFLAGS"
 
18434
 
 
18435
else
 
18436
 
 
18437
        as_fn_error "GeoIP library not found. Try using --without-libgeoip to link against the shipped copy." "$LINENO" 5
 
18438
 
 
18439
fi
 
18440
 
 
18441
 
 
18442
 
 
18443
 
 
18444
    ;; #(
 
18445
  "no"|"shipped") :
 
18446
 
 
18447
      if test "x$ac_arg_enable_geoip" = "xno"; then :
 
18448
 
 
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
 
18451
            # removed)
 
18452
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
 
18453
$as_echo "disabled" >&6; }
 
18454
            ARG_WITH_LIBGEOIP="disabled"
 
18455
 
 
18456
else
 
18457
 
 
18458
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
18459
$as_echo "no" >&6; }
 
18460
            ARG_WITH_LIBGEOIP="no"
 
18461
 
 
18462
$as_echo "#define WITH_SHIPPED_GEOIP_H 1" >>confdefs.h
 
18463
 
 
18464
            COMPILETIME_OPTIONS+="-DWITH_SHIPPED_GEOIP_H "
 
18465
 
 
18466
fi
 
18467
    ;; #(
 
18468
  *) :
 
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
 
18472
 ;;
 
18473
esac
 
18474
 
 
18475
 
 
18476
###############################################################################
 
18477
# Setting conditional variables for Makefiles
 
18478
###############################################################################
 
18479
 
 
18480
 if test "x$ARG_ENABLE_DHT" = "xyes" -o "x$ARG_ENABLE_DHT" = "xlogging" ; then
 
18481
  ENABLE_DHT_TRUE=
 
18482
  ENABLE_DHT_FALSE='#'
 
18483
else
 
18484
  ENABLE_DHT_TRUE='#'
 
18485
  ENABLE_DHT_FALSE=
 
18486
fi
 
18487
 
 
18488
 if test "x$ARG_ENABLE_EXAMPLES" = "xyes"; then
 
18489
  ENABLE_EXAMPLES_TRUE=
 
18490
  ENABLE_EXAMPLES_FALSE='#'
 
18491
else
 
18492
  ENABLE_EXAMPLES_TRUE='#'
 
18493
  ENABLE_EXAMPLES_FALSE=
 
18494
fi
 
18495
 
 
18496
 if test "x$ARG_ENABLE_TESTS" = "xyes"; then
 
18497
  ENABLE_TESTS_TRUE=
 
18498
  ENABLE_TESTS_FALSE='#'
 
18499
else
 
18500
  ENABLE_TESTS_TRUE='#'
 
18501
  ENABLE_TESTS_FALSE=
 
18502
fi
 
18503
 
 
18504
 if test "x$ARG_ENABLE_PYTHON_BINDING" = "xyes"; then
 
18505
  ENABLE_PYTHON_BINDING_TRUE=
 
18506
  ENABLE_PYTHON_BINDING_FALSE='#'
 
18507
else
 
18508
  ENABLE_PYTHON_BINDING_TRUE='#'
 
18509
  ENABLE_PYTHON_BINDING_FALSE=
 
18510
fi
 
18511
 
 
18512
 
 
18513
 if test "x$ARG_WITH_ZLIB" = "xno" ; then
 
18514
  WITH_SHIPPED_ZLIB_TRUE=
 
18515
  WITH_SHIPPED_ZLIB_FALSE='#'
 
18516
else
 
18517
  WITH_SHIPPED_ZLIB_TRUE='#'
 
18518
  WITH_SHIPPED_ZLIB_FALSE=
 
18519
fi
 
18520
 
 
18521
 if test "x$ARG_WITH_LIBGEOIP" = "xno" ; then
 
18522
  WITH_SHIPPED_GEOIP_TRUE=
 
18523
  WITH_SHIPPED_GEOIP_FALSE='#'
 
18524
else
 
18525
  WITH_SHIPPED_GEOIP_TRUE='#'
 
18526
  WITH_SHIPPED_GEOIP_FALSE=
 
18527
fi
 
18528
 
 
18529
 
 
18530
 
 
18531
###############################################################################
 
18532
# Other useful stuff
 
18533
###############################################################################
 
18534
 
 
18535
# this works around a bug in asio in boost-1.39
 
18536
# see: https://svn.boost.org/trac/boost/ticket/3095
 
18537
 
 
18538
$as_echo "#define BOOST_ASIO_HASH_MAP_BUCKETS 1021" >>confdefs.h
 
18539
 
 
18540
COMPILETIME_OPTIONS+="-DBOOST_ASIO_HASH_MAP_BUCKETS=1021 "
 
18541
 
 
18542
 
 
18543
$as_echo "#define BOOST_EXCEPTION_DISABLE 1" >>confdefs.h
18868
18544
 
18869
18545
COMPILETIME_OPTIONS+="-DBOOST_EXCEPTION_DISABLE "
18870
18546
 
18871
 
# Check whether --enable-debug was given.
18872
 
if test "${enable_debug+set}" = set; then :
18873
 
  enableval=$enable_debug; case "$enableval" in
18874
 
                no)
18875
 
 
18876
 
$as_echo "#define NDEBUG /**/" >>confdefs.h
18877
 
 
18878
 
                        DEBUGFLAGS="-Os"
18879
 
#                       COMPILETIME_OPTIONS+="-DNDEBUG "
18880
 
                        ;;
18881
 
                yes)
18882
 
                        DEBUGFLAGS="-g"
18883
 
                        COMPILETIME_OPTIONS+="-DTORRENT_DEBUG "
18884
 
 
18885
 
$as_echo "#define TORRENT_DEBUG /**/" >>confdefs.h
18886
 
 
18887
 
                        ;;
18888
 
                *)
18889
 
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
18890
 
$as_echo "" >&6; }
18891
 
                        as_fn_error "Unknown --enable-debug option \"$enableval\". Use either \"yes\" or \"no\"." "$LINENO" 5
18892
 
                        ;;
18893
 
        esac
18894
 
else
18895
 
  DEBUGFLAGS="-Os"
18896
 
 
18897
 
$as_echo "#define NDEBUG /**/" >>confdefs.h
18898
 
 
18899
 
#       COMPILETIME_OPTIONS+="-DNDEBUG "
18900
 
 
18901
 
 
18902
 
fi
18903
 
 
18904
 
 
18905
 
 
18906
 
 
18907
 
 
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"
 
18547
 
 
18548
if test "x$PYTHON_INSTALL_PARAMS" = "x"; then :
 
18549
  PYTHON_INSTALL_PARAMS='--prefix=$(DESTDIR)$(prefix)'
 
18550
fi
 
18551
 
 
18552
if test "x$enable_shared" = "xyes"; then :
 
18553
 
 
18554
$as_echo "#define TORRENT_BUILDING_SHARED 1" >>confdefs.h
 
18555
 
 
18556
       COMPILETIME_OPTIONS+="-DTORRENT_LINKING_SHARED "
 
18557
fi
 
18558
 
 
18559
 
 
18560
 
 
18561
 
 
18562
 
 
18563
 
 
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`
 
18568
fi
 
18569
 
 
18570
 
 
18571
###############################################################################
 
18572
# Generating Makefiles
 
18573
###############################################################################
 
18574
 
 
18575
$as_echo
 
18576
$as_echo  "Generating Makefiles:"
 
18577
 
 
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"
 
18579
 
18909
18580
 
18910
18581
cat >confcache <<\_ACEOF
18911
18582
# This file is a shell script that caches the results of configure
19040
18711
LTLIBOBJS=$ac_ltlibobjs
19041
18712
 
19042
18713
 
 
18714
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
18715
  as_fn_error "conditional \"AMDEP\" was never defined.
 
18716
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18717
fi
 
18718
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
18719
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
 
18720
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18721
fi
 
18722
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
18723
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
 
18724
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18725
fi
19043
18726
 if test -n "$EXEEXT"; then
19044
18727
  am__EXEEXT_TRUE=
19045
18728
  am__EXEEXT_FALSE='#'
19048
18731
  am__EXEEXT_FALSE=
19049
18732
fi
19050
18733
 
19051
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19052
 
  as_fn_error "conditional \"AMDEP\" was never defined.
19053
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19054
 
fi
19055
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19056
 
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
19057
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19058
 
fi
19059
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19060
 
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19061
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19062
 
fi
19063
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19064
 
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19065
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19066
 
fi
19067
 
if test -z "${ENABLE_SHIPPED_ASIO_TRUE}" && test -z "${ENABLE_SHIPPED_ASIO_FALSE}"; then
19068
 
  as_fn_error "conditional \"ENABLE_SHIPPED_ASIO\" was never defined.
19069
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19070
 
fi
19071
 
if test -z "${ENABLE_SHIPPED_ASIO_TRUE}" && test -z "${ENABLE_SHIPPED_ASIO_FALSE}"; then
19072
 
  as_fn_error "conditional \"ENABLE_SHIPPED_ASIO\" was never defined.
19073
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19074
 
fi
19075
 
if test -z "${USE_DHT_TRUE}" && test -z "${USE_DHT_FALSE}"; then
19076
 
  as_fn_error "conditional \"USE_DHT\" was never defined.
19077
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19078
 
fi
19079
 
if test -z "${USE_ENCRYPTION_TRUE}" && test -z "${USE_ENCRYPTION_FALSE}"; then
19080
 
  as_fn_error "conditional \"USE_ENCRYPTION\" was never defined.
19081
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19082
 
fi
19083
 
if test -z "${ENABLE_SHIPPED_ZLIB_TRUE}" && test -z "${ENABLE_SHIPPED_ZLIB_FALSE}"; then
19084
 
  as_fn_error "conditional \"ENABLE_SHIPPED_ZLIB\" was never defined.
19085
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19086
 
fi
19087
 
if test -z "${ENABLE_SHIPPED_ZLIB_TRUE}" && test -z "${ENABLE_SHIPPED_ZLIB_FALSE}"; then
19088
 
  as_fn_error "conditional \"ENABLE_SHIPPED_ZLIB\" was never defined.
 
18734
if test -z "${ENABLE_DHT_TRUE}" && test -z "${ENABLE_DHT_FALSE}"; then
 
18735
  as_fn_error "conditional \"ENABLE_DHT\" was never defined.
 
18736
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18737
fi
 
18738
if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
 
18739
  as_fn_error "conditional \"ENABLE_EXAMPLES\" was never defined.
 
18740
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18741
fi
 
18742
if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
 
18743
  as_fn_error "conditional \"ENABLE_TESTS\" was never defined.
 
18744
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18745
fi
 
18746
if test -z "${ENABLE_PYTHON_BINDING_TRUE}" && test -z "${ENABLE_PYTHON_BINDING_FALSE}"; then
 
18747
  as_fn_error "conditional \"ENABLE_PYTHON_BINDING\" was never defined.
 
18748
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18749
fi
 
18750
if test -z "${WITH_SHIPPED_ZLIB_TRUE}" && test -z "${WITH_SHIPPED_ZLIB_FALSE}"; then
 
18751
  as_fn_error "conditional \"WITH_SHIPPED_ZLIB\" was never defined.
19089
18752
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19090
18753
fi
19091
18754
if test -z "${WITH_SHIPPED_GEOIP_TRUE}" && test -z "${WITH_SHIPPED_GEOIP_FALSE}"; then
19092
18755
  as_fn_error "conditional \"WITH_SHIPPED_GEOIP\" was never defined.
19093
18756
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19094
18757
fi
19095
 
if test -z "${ENABLE_PYTHON_BINDING_TRUE}" && test -z "${ENABLE_PYTHON_BINDING_FALSE}"; then
19096
 
  as_fn_error "conditional \"ENABLE_PYTHON_BINDING\" was never defined.
19097
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19098
 
fi
19099
 
if test -z "${ENABLE_PYTHON_BINDING_TRUE}" && test -z "${ENABLE_PYTHON_BINDING_FALSE}"; then
19100
 
  as_fn_error "conditional \"ENABLE_PYTHON_BINDING\" was never defined.
19101
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19102
 
fi
19103
 
if test -z "${ENABLE_PYTHON_BINDING_TRUE}" && test -z "${ENABLE_PYTHON_BINDING_FALSE}"; then
19104
 
  as_fn_error "conditional \"ENABLE_PYTHON_BINDING\" was never defined.
19105
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19106
 
fi
19107
 
if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
19108
 
  as_fn_error "conditional \"ENABLE_EXAMPLES\" was never defined.
19109
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19110
 
fi
19111
 
if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
19112
 
  as_fn_error "conditional \"ENABLE_EXAMPLES\" was never defined.
19113
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19114
 
fi
19115
 
if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
19116
 
  as_fn_error "conditional \"ENABLE_EXAMPLES\" was never defined.
19117
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19118
 
fi
19119
 
if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
19120
 
  as_fn_error "conditional \"ENABLE_TESTS\" was never defined.
19121
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19122
 
fi
19123
 
if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
19124
 
  as_fn_error "conditional \"ENABLE_TESTS\" was never defined.
19125
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19126
 
fi
19127
 
if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
19128
 
  as_fn_error "conditional \"ENABLE_TESTS\" was never defined.
19129
 
Usually this means the macro was only invoked conditionally." "$LINENO" 5
19130
 
fi
19131
18758
 
19132
18759
: ${CONFIG_STATUS=./config.status}
19133
18760
ac_write_fail=0
19536
19163
# report actual input values of CONFIG_FILES etc. instead of their
19537
19164
# values after options handling.
19538
19165
ac_log="
19539
 
This file was extended by libtorrent-rasterbar $as_me 0.14.10, which was
 
19166
This file was extended by libtorrent-rasterbar $as_me 0.15.0, which was
19540
19167
generated by GNU Autoconf 2.65.  Invocation command line was
19541
19168
 
19542
19169
  CONFIG_FILES    = $CONFIG_FILES
19587
19214
Configuration commands:
19588
19215
$config_commands
19589
19216
 
19590
 
Report bugs to <arvid@cs.umu.se>."
 
19217
Report bugs to <arvid@cs.umu.se>.
 
19218
libtorrent-rasterbar home page: <http://www.libtorrent.org>."
19591
19219
 
19592
19220
_ACEOF
19593
19221
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19594
19222
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19595
19223
ac_cs_version="\\
19596
 
libtorrent-rasterbar config.status 0.14.10
 
19224
libtorrent-rasterbar config.status 0.15.0
19597
19225
configured by $0, generated by GNU Autoconf 2.65,
19598
19226
  with options \\"\$ac_cs_config\\"
19599
19227
 
20060
19688
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20061
19689
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20062
19690
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20063
 
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20064
 
    "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
 
19691
    "include/libtorrent/Makefile") CONFIG_FILES="$CONFIG_FILES include/libtorrent/Makefile" ;;
20065
19692
    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
20066
19693
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 
19694
    "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
 
19695
    "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
20067
19696
    "bindings/python/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/python/Makefile" ;;
20068
19697
    "bindings/python/setup.py") CONFIG_FILES="$CONFIG_FILES bindings/python/setup.py" ;;
20069
19698
    "libtorrent-rasterbar.pc") CONFIG_FILES="$CONFIG_FILES libtorrent-rasterbar.pc" ;;
 
19699
    "libtorrent-rasterbar-cmake.pc") CONFIG_FILES="$CONFIG_FILES libtorrent-rasterbar-cmake.pc" ;;
20070
19700
 
20071
19701
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20072
19702
  esac
21420
21050
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21421
21051
fi
21422
21052
 
 
21053
 
 
21054
 
 
21055
###############################################################################
 
21056
# Generating config.report
 
21057
###############################################################################
 
21058
 
 
21059
$as_echo
 
21060
$as_echo  "Configure script has finished system check."
 
21061
$as_echo
 
21062
 
 
21063
cat > config.report << END
 
21064
   Config results:
 
21065
  -=-=-=-=-=-=-=-=-
 
21066
 
 
21067
Package:
 
21068
  name:                 ${PACKAGE_NAME}
 
21069
  version:              ${PACKAGE_VERSION}
 
21070
  svn revision:         ${SVN_REVISION}
 
21071
 
 
21072
Build environment:
 
21073
  build system:         ${build}
 
21074
  host system:          ${host}
 
21075
  target system:        ${target}
 
21076
 
 
21077
Compiler and linker flags:
 
21078
  CPPFlags:             ${CPPFLAGS}
 
21079
  CFlags:               ${CFLAGS}
 
21080
  CXXFlags:             ${CXXFLAGS}
 
21081
  LDFlags:              ${LDFLAGS}
 
21082
  Libs:                 ${LIBS}
 
21083
  Defs:                 ${DEFS}
 
21084
 
 
21085
Build options:
 
21086
  deprecated functions: ${ARG_ENABLE_DEPRECATED:-yes}
 
21087
  debug build:          ${ARG_ENABLE_DEBUG:-no}
 
21088
  invariant checks:     ${ARG_ENABLE_INVARIANT:-no}
 
21089
  logging support:      ${ARG_ENABLE_LOGGING:-no}
 
21090
  statistics:           ${ARG_ENABLE_STATS:-no}
 
21091
  disk statistics:      ${ARG_ENABLE_DISK_STATS:-no}
 
21092
 
 
21093
Features:
 
21094
  encryption support:   ${ARG_ENABLE_ENCRYPTION:-yes}
 
21095
  geoip support:        ${ARG_ENABLE_GEOIP:-yes}
 
21096
  dht support:          ${ARG_ENABLE_DHT:-yes}
 
21097
  pool allocators:      ${ARG_ENABLE_POOL_ALLOC:-yes}
 
21098
 
 
21099
Extra builds:
 
21100
  examples:             ${ARG_ENABLE_EXAMPLES:-no}
 
21101
  tests:                ${ARG_ENABLE_TESTS:-no}
 
21102
  python bindings:      ${ARG_ENABLE_PYTHON_BINDING:-no}
 
21103
 
 
21104
Pthread library:
 
21105
  CFlags:               ${PTHREAD_CFLAGS}
 
21106
  Libs:                 ${PTHREAD_LIBS}
 
21107
 
 
21108
Boost libraries:
 
21109
  version:              ${BOOST_VERSION}
 
21110
  CPPFlags:             ${BOOST_CPPFLAGS}
 
21111
  LDFlags:              ${BOOST_LDFLAGS}
 
21112
  boost.system:         ${BOOST_SYSTEM_LIB}
 
21113
  boost.filesystem:     ${BOOST_FILESYSTEM_LIB}
 
21114
  boost.thread:         ${BOOST_THREAD_LIB}
 
21115
END
 
21116
 
 
21117
if test "x$ARG_ENABLE_PYTHON_BINDING" = "xyes"; then :
 
21118
 
 
21119
cat >> config.report << END
 
21120
  boost.python:         ${BOOST_PYTHON_LIB}
 
21121
 
 
21122
Python environment:
 
21123
  -automake-
 
21124
  binary:               ${PYTHON}
 
21125
  version:              ${PYTHON_VERSION}
 
21126
  platform:             ${PYTHON_PLATFORM}
 
21127
  prefix:               ${PYTHON_PREFIX}
 
21128
  exec_prefix:          ${PYTHON_EXEC_PREFIX}
 
21129
  pythondir:            ${pythondir}
 
21130
  pkgpythondir:         ${pkgpythondir}
 
21131
  pyexecdir:            ${pyexecdir}
 
21132
  pkgpyexecdir:         ${pkgpyexecdir}
 
21133
 
 
21134
  -m4-
 
21135
  cppflags:             ${PYTHON_CPPFLAGS}
 
21136
  ldflags:              ${PYTHON_LDFLAGS}
 
21137
  extra libs:           ${PYTHON_EXTRA_LIBS}
 
21138
  extra ldflags:        ${PYTHON_EXTRA_LDFLAGS}
 
21139
 
 
21140
END
 
21141
 
 
21142
fi
 
21143
 
 
21144
cat >> config.report << END
 
21145
 
 
21146
External libraries:
 
21147
  system zlib:          ${ARG_WITH_ZLIB:-yes}
 
21148
  system libgeoip:      ${ARG_WITH_LIBGEOIP:-no}
 
21149
END
 
21150
 
 
21151
if test "x$ARG_WITH_LIBGEOIP" = "xyes"; then :
 
21152
 
 
21153
cat >> config.report << END
 
21154
 
 
21155
GeoIP library:
 
21156
  GeoIP CFlags:         ${GEOIP_CFLAGS}
 
21157
  GeoIP Libs:           ${GEOIP_LIBS}
 
21158
END
 
21159
 
 
21160
fi
 
21161
 
 
21162
if test "x$ARG_ENABLE_ENCRYPTION" = "xyes"; then :
 
21163
 
 
21164
cat >> config.report << END
 
21165
 
 
21166
OpenSSL library:
 
21167
  OpenSSL Libs:         ${OPENSSL_LIBS}
 
21168
  OpenSSL LDFlags:      ${OPENSSL_LDFLAGS}
 
21169
  OpenSSL Includes:     ${OPENSSL_INCLUDES}
 
21170
END
 
21171
 
 
21172
fi
 
21173
 
 
21174
cat config.report
 
21175
 
 
21176
$as_echo
 
21177
$as_echo  "Type 'make' to compile $PACKAGE_STRING"
 
21178
$as_echo  "or type 'make V=1' for verbose compiling"
 
21179
$as_echo  "and then 'make install' to install it into $prefix"
 
21180
$as_echo