-
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'rakshasa:master' into master
- Loading branch information
Showing
43 changed files
with
1,956 additions
and
1,600 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
AC_INIT(libtorrent, 0.13.8, [email protected]) | ||
AC_INIT([[libtorrent]],[[0.13.8]],[[[email protected]]]) | ||
|
||
LT_INIT([disable-static]) | ||
AC_CONFIG_HEADERS([config.h]) | ||
AC_CONFIG_MACRO_DIRS([scripts]) | ||
AM_INIT_AUTOMAKE([serial-tests subdir-objects foreign]) | ||
|
||
LT_INIT([[disable-static]]) | ||
|
||
dnl Find a better way to do this | ||
AC_DEFINE(PEER_NAME, "-lt0D80-", Identifier that is part of the default peer id) | ||
AC_DEFINE(PEER_VERSION, "lt\x0D\x80", 4 byte client and version identifier for DHT) | ||
AC_DEFINE([[PEER_NAME]], [["-lt0D80-"]], [[Identifier that is part of the default peer id.]]) | ||
AC_DEFINE([[PEER_VERSION]], [["lt\x0D\x80"]], [[4 byte client and version identifier for DHT.]]) | ||
|
||
LIBTORRENT_CURRENT=21 | ||
LIBTORRENT_REVISION=0 | ||
|
@@ -17,26 +21,22 @@ AC_SUBST(LIBTORRENT_CURRENT) | |
AC_SUBST(LIBTORRENT_INTERFACE_VERSION_INFO) | ||
AC_SUBST(LIBTORRENT_INTERFACE_VERSION_NO) | ||
|
||
AM_INIT_AUTOMAKE([serial-tests subdir-objects]) | ||
AC_CONFIG_HEADERS(config.h) | ||
|
||
AC_PROG_CXX | ||
AC_SYS_LARGEFILE | ||
|
||
AC_C_BIGENDIAN( | ||
AC_DEFINE(IS_BIG_ENDIAN, 1, Big endian), | ||
AC_DEFINE(IS_LITTLE_ENDIAN, 1, Little endian), | ||
AC_MSG_ERROR([Could not determine endianness]) | ||
AC_DEFINE(IS_BIG_ENDIAN, 1, Big endian), | ||
AC_DEFINE(IS_LITTLE_ENDIAN, 1, Little endian), | ||
AC_MSG_ERROR([Could not determine endianness]) | ||
) | ||
|
||
AX_CXX_COMPILE_STDCXX(14, noext, mandatory) | ||
|
||
RAK_CHECK_CFLAGS | ||
RAK_CHECK_CXXFLAGS | ||
RAK_ENABLE_DEBUG | ||
RAK_ENABLE_EXTRA_DEBUG | ||
RAK_ENABLE_WERROR | ||
RAK_DISABLE_BACKTRACE | ||
|
||
RAK_CHECK_CXX11 | ||
|
||
TORRENT_ENABLE_ALIGNED | ||
TORRENT_ENABLE_INTERRUPT_SOCKET | ||
|
@@ -55,7 +55,25 @@ TORRENT_WITHOUT_STATVFS | |
TORRENT_WITHOUT_STATFS | ||
TORRENT_WITH_INOTIFY | ||
|
||
CC_ATTRIBUTE_VISIBILITY | ||
AC_ARG_ENABLE(attribute-visibility, | ||
AS_HELP_STRING([--disable-attribute-visibility],[disable symbol visibility attribute [[default=enable]]]), | ||
[ | ||
if test "$enableval" = "yes"; then | ||
CC_ATTRIBUTE_VISIBILITY | ||
fi | ||
],[ | ||
CC_ATTRIBUTE_VISIBILITY | ||
]) | ||
|
||
AC_ARG_ENABLE(execinfo, | ||
AS_HELP_STRING([--disable-execinfo],[disable libexecinfo [[default=enable]]]), | ||
[ | ||
if test "$enableval" = "yes"; then | ||
AX_EXECINFO | ||
fi | ||
],[ | ||
AX_EXECINFO | ||
]) | ||
|
||
AX_CHECK_ZLIB | ||
AX_PTHREAD | ||
|
@@ -71,11 +89,11 @@ TORRENT_ARG_CYRUS_RC4 | |
|
||
AC_CHECK_FUNCS(posix_memalign) | ||
|
||
TORRENT_CHECK_MADVISE() | ||
TORRENT_CHECK_CACHELINE() | ||
TORRENT_CHECK_POPCOUNT() | ||
TORRENT_CHECK_PTHREAD_SETNAME_NP() | ||
TORRENT_MINCORE() | ||
TORRENT_CHECK_MADVISE | ||
TORRENT_CHECK_CACHELINE | ||
TORRENT_CHECK_POPCOUNT | ||
TORRENT_DISABLE_PTHREAD_SETNAME_NP | ||
TORRENT_MINCORE | ||
|
||
TORRENT_DISABLE_INSTRUMENTATION | ||
|
||
|
@@ -88,16 +106,17 @@ AC_SUBST(LIBTORRENT_CFLAGS) | |
AC_DEFINE(HAVE_CONFIG_H, 1, true if config.h was included) | ||
|
||
CC_ATTRIBUTE_UNUSED( | ||
AC_DEFINE([__UNUSED], [__attribute__((unused))], [Wrapper around unused attribute]), | ||
AC_DEFINE([__UNUSED], [], [Null-wrapper if unused attribute is unsupported]) | ||
AC_DEFINE([__UNUSED], [__attribute__((unused))], [Wrapper around unused attribute]), | ||
AC_DEFINE([__UNUSED], [], [Null-wrapper if unused attribute is unsupported]) | ||
) | ||
|
||
AC_OUTPUT([ | ||
AC_CONFIG_FILES([ | ||
libtorrent.pc | ||
Makefile | ||
src/Makefile | ||
src/torrent/Makefile | ||
test/Makefile | ||
test/torrent/net/Makefile | ||
test/net/Makefile | ||
test/Makefile | ||
test/torrent/net/Makefile | ||
test/net/Makefile | ||
]) | ||
AC_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.