-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
38 lines (27 loc) · 981 Bytes
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
m4_define([VERSION_INFO_CURRENT],[0])
m4_define([VERSION_INFO_REVISION],[0])
m4_define([VERSION_INFO_AGE],[0])
AC_INIT([libtorrent-reputation], [0.0.0], [[email protected]])
AC_CONFIG_SRCDIR([src/reputation_manager.cpp])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
INTERFACE_VERSION_INFO=VERSION_INFO_CURRENT:VERSION_INFO_REVISION:VERSION_INFO_AGE
AC_SUBST(INTERFACE_VERSION_INFO)
dnl Pass some build options to .pc file
COMPILETIME_OPTIONS=""
AC_PROG_CXX
AX_BOOST_BASE([1.47])
AX_BOOST_THREAD()
AS_IF([test -z "$BOOST_THREAD_LIB"],
[AC_MSG_ERROR(Boost.Thread library not found. Try using --with-boost-thread=lib)])
CPPFLAGS="$BOOST_CPPFLAGS $CPPFLAGS"
LDFLAGS="$BOOST_LDFLAGS $LDFLAGS"
LIBS="$BOOST_THREAD_LIB $LIBS"
PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES([DEPS], [sqlite3 libtorrent-rasterbar >= 1.1])
AC_SUBST(DEPS_CFLAGS)
AC_SUBST(DEPS_LIBS)
LT_INIT
AM_INIT_AUTOMAKE([subdir-objects])
AC_CONFIG_FILES([Makefile] [libtorrent-reputation.pc])
AC_OUTPUT