summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--INSTALL.md37
-rw-r--r--Makefile.am1
-rw-r--r--configure.ac22
-rw-r--r--toxcore/Makefile.inc10
4 files changed, 59 insertions, 11 deletions
diff --git a/INSTALL.md b/INSTALL.md
index 9a81fba7..d14796f8 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -68,9 +68,14 @@ Advance configure options:
68 - --prefix=/where/to/install 68 - --prefix=/where/to/install
69 - --with-libsodium-headers=/path/to/libsodium/include/ 69 - --with-libsodium-headers=/path/to/libsodium/include/
70 - --with-libsodium-libs=/path/to/sodiumtest/lib/ 70 - --with-libsodium-libs=/path/to/sodiumtest/lib/
71 - --BUILD_DHT_BOOTSTRAP_DAEMON="yes" 71 - --enable-silent-rules less verbose build output (undo: "make V=1")
72 - --BUILD_NTOX="yes" 72 - --disable-silent-rules verbose build output (undo: "make V=0")
73 - --BUILD_TESTS="yes" 73 - --disable-tests build unit tests (default: auto)
74 - --disable-ntox build nTox client (default: auto)
75 - --disable-dht-bootstrap-daemon build DHT bootstrap daemon (default: auto)
76 - --enable-shared[=PKGS] build shared libraries [default=yes]
77 - --enable-static[=PKGS] build static libraries [default=yes]
78
74<a name="osx" /> 79<a name="osx" />
75###OS X: 80###OS X:
76 81
@@ -99,6 +104,13 @@ Advance configure options:
99 - --BUILD_DHT_BOOTSTRAP_DAEMON="yes" 104 - --BUILD_DHT_BOOTSTRAP_DAEMON="yes"
100 - --BUILD_NTOX="yes" 105 - --BUILD_NTOX="yes"
101 - --BUILD_TESTS="yes" 106 - --BUILD_TESTS="yes"
107 - --enable-silent-rules less verbose build output (undo: "make V=1")
108 - --disable-silent-rules verbose build output (undo: "make V=0")
109 - --disable-tests build unit tests (default: auto)
110 - --disable-ntox build nTox client (default: auto)
111 - --disable-dht-bootstrap-daemon build DHT bootstrap daemon (default: auto)
112 - --enable-shared[=PKGS] build shared libraries [default=yes]
113 - --enable-static[=PKGS] build static libraries [default=yes]
102 114
103<a name="non-homebrew" /> 115<a name="non-homebrew" />
104####Non-homebrew: 116####Non-homebrew:
@@ -137,7 +149,13 @@ Advance configure options:
137 - --BUILD_DHT_BOOTSTRAP_DAEMON="yes" 149 - --BUILD_DHT_BOOTSTRAP_DAEMON="yes"
138 - --BUILD_NTOX="yes" 150 - --BUILD_NTOX="yes"
139 - --BUILD_TESTS="yes" 151 - --BUILD_TESTS="yes"
140 152 - --enable-silent-rules less verbose build output (undo: "make V=1")
153 - --disable-silent-rules verbose build output (undo: "make V=0")
154 - --disable-tests build unit tests (default: auto)
155 - --disable-ntox build nTox client (default: auto)
156 - --disable-dht-bootstrap-daemon build DHT bootstrap daemon (default: auto)
157 - --enable-shared[=PKGS] build shared libraries [default=yes]
158 - --enable-static[=PKGS] build static libraries [default=yes]
141 159
142Do not install them from macports (or any dependencies for that matter) as they get shoved in the wrong directory 160Do not install them from macports (or any dependencies for that matter) as they get shoved in the wrong directory
143(or the wrong version gets installed) and make your life more annoying. 161(or the wrong version gets installed) and make your life more annoying.
@@ -175,3 +193,14 @@ Advance configure options:
175 - --BUILD_DHT_BOOTSTRAP_DAEMON="yes" 193 - --BUILD_DHT_BOOTSTRAP_DAEMON="yes"
176 - --BUILD_NTOX="yes" 194 - --BUILD_NTOX="yes"
177 - --BUILD_TESTS="yes" 195 - --BUILD_TESTS="yes"
196 - --enable-silent-rules less verbose build output (undo: "make V=1")
197 - --disable-silent-rules verbose build output (undo: "make V=0")
198 - --disable-tests build unit tests (default: auto)
199 - --disable-ntox build nTox client (default: auto)
200 - --disable-dht-bootstrap-daemon build DHT bootstrap daemon (default: auto)
201 - --enable-shared[=PKGS] build shared libraries [default=yes]
202 - --enable-static[=PKGS] build static libraries [default=yes]
203
204<a name="Clients" />
205####Clients:
206While [Toxic](https://github.com/tox/toxic) is no longer in core, a list of Tox clients are located in our [wiki](http://wiki.tox.im/client)
diff --git a/Makefile.am b/Makefile.am
index 7824ecb0..119b8786 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,7 @@
1SUBDIRS = build 1SUBDIRS = build
2 2
3ACLOCAL_AMFLAGS = -I m4 3ACLOCAL_AMFLAGS = -I m4
4AUTOMAKE_OPTIONS = subdir-objects
4 5
5pkgconfigdir = $(libdir)/pkgconfig 6pkgconfigdir = $(libdir)/pkgconfig
6pkgconfig_DATA = $(top_builddir)/libtoxcore.pc 7pkgconfig_DATA = $(top_builddir)/libtoxcore.pc
diff --git a/configure.ac b/configure.ac
index d11c396a..64d53dec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,6 +10,17 @@ AM_INIT_AUTOMAKE([1.10 -Wall])
10m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 10m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
11AC_CONFIG_MACRO_DIR([m4]) 11AC_CONFIG_MACRO_DIR([m4])
12 12
13LIBTOXCORE_LT_VERSION=0:0:0
14dnl
15dnl current:revision:age
16dnl
17dnl current: increment if interfaces have been added, removed or changed
18dnl revision: increment if source code has changed, set to zero if current is
19dnl incremented
20dnl age: increment if interfaces have been added, set to zero if
21dnl interfaces have been removed or changed
22EXTRA_LT_LDFLAGS="-version-info $LIBTOXCORE_LT_VERSION"
23
13if test "x${prefix}" = "xNONE"; then 24if test "x${prefix}" = "xNONE"; then
14 prefix="${ac_default_prefix}" 25 prefix="${ac_default_prefix}"
15fi 26fi
@@ -96,6 +107,7 @@ AC_ARG_WITH(libsodium-libs,
96# Checks for programs. 107# Checks for programs.
97AC_PROG_CC 108AC_PROG_CC
98AM_PROG_CC_C_O 109AM_PROG_CC_C_O
110AC_LIBTOOL_WIN32_DLL
99AC_PROG_LIBTOOL 111AC_PROG_LIBTOOL
100 112
101WIN32=no 113WIN32=no
@@ -105,13 +117,21 @@ case $host_os in
105 WIN32="yes" 117 WIN32="yes"
106 AC_MSG_WARN([nTox is not supported on $host_os yet, disabling]) 118 AC_MSG_WARN([nTox is not supported on $host_os yet, disabling])
107 BUILD_NTOX="no" 119 BUILD_NTOX="no"
120 EXTRA_LT_LDFLAGS="$EXTRA_LT_LDFLAGS -no-undefined"
108 ;; 121 ;;
109 *solaris*) 122 *solaris*)
110 LIBS="$LIBS -lssp -lsocket -lnsl" 123 LIBS="$LIBS -lssp -lsocket -lnsl"
111 ;; 124 ;;
125 *freebsd*)
126 LDFLAGS="$LDFLAGS -L/usr/local/lib"
127 CFLAGS="$CFLAGS -I/usr/local/include"
128 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
129 ;;
112esac 130esac
113AM_CONDITIONAL(WIN32, test "x$WIN32" = "xyes") 131AM_CONDITIONAL(WIN32, test "x$WIN32" = "xyes")
114 132
133AC_SUBST(EXTRA_LT_LDFLAGS)
134
115# Checks for libraries. 135# Checks for libraries.
116LIBSODIUM_LIBS= 136LIBSODIUM_LIBS=
117LIBSODIUM_LDFLAGS= 137LIBSODIUM_LDFLAGS=
@@ -131,7 +151,7 @@ else
131 AC_CHECK_LIB(sodium, randombytes_random, 151 AC_CHECK_LIB(sodium, randombytes_random,
132 [], 152 [],
133 [ 153 [
134 AC_MSG_ERROR([required library libsodium was not found on your system, please check http://download.libsodium.org/libsodium/releases/]) 154 AC_MSG_ERROR([required library libsodium was not found on your system, please check http://download.libsodium.org/libsodium/releases/])
135 ] 155 ]
136 ) 156 )
137fi 157fi
diff --git a/toxcore/Makefile.inc b/toxcore/Makefile.inc
index 2fd93a22..da07db41 100644
--- a/toxcore/Makefile.inc
+++ b/toxcore/Makefile.inc
@@ -1,5 +1,3 @@
1LIBTOXCORE_VERSION = 0:0:0
2
3lib_LTLIBRARIES = libtoxcore.la 1lib_LTLIBRARIES = libtoxcore.la
4 2
5libtoxcore_la_include_HEADERS = \ 3libtoxcore_la_include_HEADERS = \
@@ -33,8 +31,8 @@ libtoxcore_la_CFLAGS = -I$(top_srcdir) \
33 -I$(top_srcdir)/toxcore \ 31 -I$(top_srcdir)/toxcore \
34 $(LIBSODIUM_CFLAGS) 32 $(LIBSODIUM_CFLAGS)
35 33
36libtoxcore_la_LDFLAGS = -version-info $(LIBTOXCORE_VERSION) \ 34libtoxcore_la_LDFLAGS = $(EXTRA_LT_LDFLAGS) \
37 $(LIBSODIUM_LDFLAGS) 35 $(LIBSODIUM_LDFLAGS) \
38
39libtoxcore_la_LIBS = $(LIBSODIUM_LIBS) \
40 $(WINSOCK2_LIBS) 36 $(WINSOCK2_LIBS)
37
38libtoxcore_la_LIBS = $(LIBSODIUM_LIBS)