diff options
-rw-r--r-- | INSTALL.md | 37 | ||||
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | configure.ac | 22 | ||||
-rw-r--r-- | toxcore/Makefile.inc | 10 |
4 files changed, 59 insertions, 11 deletions
@@ -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 | ||
142 | Do not install them from macports (or any dependencies for that matter) as they get shoved in the wrong directory | 160 | Do 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: | ||
206 | While [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 @@ | |||
1 | SUBDIRS = build | 1 | SUBDIRS = build |
2 | 2 | ||
3 | ACLOCAL_AMFLAGS = -I m4 | 3 | ACLOCAL_AMFLAGS = -I m4 |
4 | AUTOMAKE_OPTIONS = subdir-objects | ||
4 | 5 | ||
5 | pkgconfigdir = $(libdir)/pkgconfig | 6 | pkgconfigdir = $(libdir)/pkgconfig |
6 | pkgconfig_DATA = $(top_builddir)/libtoxcore.pc | 7 | pkgconfig_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]) | |||
10 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) | 10 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
11 | AC_CONFIG_MACRO_DIR([m4]) | 11 | AC_CONFIG_MACRO_DIR([m4]) |
12 | 12 | ||
13 | LIBTOXCORE_LT_VERSION=0:0:0 | ||
14 | dnl | ||
15 | dnl current:revision:age | ||
16 | dnl | ||
17 | dnl current: increment if interfaces have been added, removed or changed | ||
18 | dnl revision: increment if source code has changed, set to zero if current is | ||
19 | dnl incremented | ||
20 | dnl age: increment if interfaces have been added, set to zero if | ||
21 | dnl interfaces have been removed or changed | ||
22 | EXTRA_LT_LDFLAGS="-version-info $LIBTOXCORE_LT_VERSION" | ||
23 | |||
13 | if test "x${prefix}" = "xNONE"; then | 24 | if test "x${prefix}" = "xNONE"; then |
14 | prefix="${ac_default_prefix}" | 25 | prefix="${ac_default_prefix}" |
15 | fi | 26 | fi |
@@ -96,6 +107,7 @@ AC_ARG_WITH(libsodium-libs, | |||
96 | # Checks for programs. | 107 | # Checks for programs. |
97 | AC_PROG_CC | 108 | AC_PROG_CC |
98 | AM_PROG_CC_C_O | 109 | AM_PROG_CC_C_O |
110 | AC_LIBTOOL_WIN32_DLL | ||
99 | AC_PROG_LIBTOOL | 111 | AC_PROG_LIBTOOL |
100 | 112 | ||
101 | WIN32=no | 113 | WIN32=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 | ;; | ||
112 | esac | 130 | esac |
113 | AM_CONDITIONAL(WIN32, test "x$WIN32" = "xyes") | 131 | AM_CONDITIONAL(WIN32, test "x$WIN32" = "xyes") |
114 | 132 | ||
133 | AC_SUBST(EXTRA_LT_LDFLAGS) | ||
134 | |||
115 | # Checks for libraries. | 135 | # Checks for libraries. |
116 | LIBSODIUM_LIBS= | 136 | LIBSODIUM_LIBS= |
117 | LIBSODIUM_LDFLAGS= | 137 | LIBSODIUM_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 | ) |
137 | fi | 157 | fi |
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 @@ | |||
1 | LIBTOXCORE_VERSION = 0:0:0 | ||
2 | |||
3 | lib_LTLIBRARIES = libtoxcore.la | 1 | lib_LTLIBRARIES = libtoxcore.la |
4 | 2 | ||
5 | libtoxcore_la_include_HEADERS = \ | 3 | libtoxcore_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 | ||
36 | libtoxcore_la_LDFLAGS = -version-info $(LIBTOXCORE_VERSION) \ | 34 | libtoxcore_la_LDFLAGS = $(EXTRA_LT_LDFLAGS) \ |
37 | $(LIBSODIUM_LDFLAGS) | 35 | $(LIBSODIUM_LDFLAGS) \ |
38 | |||
39 | libtoxcore_la_LIBS = $(LIBSODIUM_LIBS) \ | ||
40 | $(WINSOCK2_LIBS) | 36 | $(WINSOCK2_LIBS) |
37 | |||
38 | libtoxcore_la_LIBS = $(LIBSODIUM_LIBS) | ||