summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBtbN <btbn@btbn.de>2013-10-07 01:58:57 +0200
committerBtbN <btbn@btbn.de>2013-10-07 02:01:16 +0200
commit8d40ddf41727a9022f32531c0a1cc85536db9836 (patch)
treed1c0089e3bbd6d103ca07ece70d9c17cbd7a39dd
parent94691bfe0ed198b282a6cdf49ad8c718fd45afa1 (diff)
Some configuration/build fixes, so building basicaly everything else than the library can be disabled
-rw-r--r--INSTALL15
-rwxr-xr-x[-rw-r--r--]autogen.sh0
-rw-r--r--configure.ac16
-rw-r--r--other/Makefile.inc6
-rw-r--r--testing/Makefile.inc4
5 files changed, 33 insertions, 8 deletions
diff --git a/INSTALL b/INSTALL
index 7d1c323b..007e9396 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,8 +1,8 @@
1Installation Instructions 1Installation Instructions
2************************* 2*************************
3 3
4Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, 4Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
52006, 2007, 2008, 2009 Free Software Foundation, Inc. 5Inc.
6 6
7 Copying and distribution of this file, with or without modification, 7 Copying and distribution of this file, with or without modification,
8are permitted in any medium without royalty provided the copyright 8are permitted in any medium without royalty provided the copyright
@@ -226,6 +226,11 @@ order to use an ANSI C compiler:
226 226
227and if that doesn't work, install pre-built binaries of GCC for HP-UX. 227and if that doesn't work, install pre-built binaries of GCC for HP-UX.
228 228
229 HP-UX `make' updates targets which have the same time stamps as
230their prerequisites, which makes it generally unusable when shipped
231generated files such as `configure' are involved. Use GNU `make'
232instead.
233
229 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot 234 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
230parse its `<wchar.h>' header file. The option `-nodtk' can be used as 235parse its `<wchar.h>' header file. The option `-nodtk' can be used as
231a workaround. If GNU CC is not installed, it is therefore recommended 236a workaround. If GNU CC is not installed, it is therefore recommended
@@ -304,9 +309,10 @@ causes the specified `gcc' to be used as the C compiler (unless it is
304overridden in the site shell script). 309overridden in the site shell script).
305 310
306Unfortunately, this technique does not work for `CONFIG_SHELL' due to 311Unfortunately, this technique does not work for `CONFIG_SHELL' due to
307an Autoconf bug. Until the bug is fixed you can use this workaround: 312an Autoconf limitation. Until the limitation is lifted, you can use
313this workaround:
308 314
309 CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash 315 CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
310 316
311`configure' Invocation 317`configure' Invocation
312====================== 318======================
@@ -362,4 +368,3 @@ operates.
362 368
363`configure' also accepts some other, not widely useful, options. Run 369`configure' also accepts some other, not widely useful, options. Run
364`configure --help' for more details. 370`configure --help' for more details.
365
diff --git a/autogen.sh b/autogen.sh
index 9de319ec..9de319ec 100644..100755
--- a/autogen.sh
+++ b/autogen.sh
diff --git a/configure.ac b/configure.ac
index 762736df..81f15eca 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,6 +28,7 @@ fi
28BUILD_DHT_BOOTSTRAP_DAEMON="yes" 28BUILD_DHT_BOOTSTRAP_DAEMON="yes"
29BUILD_NTOX="yes" 29BUILD_NTOX="yes"
30BUILD_TESTS="yes" 30BUILD_TESTS="yes"
31BUILD_TESTING="yes"
31 32
32NCURSES_FOUND="no" 33NCURSES_FOUND="no"
33LIBCONFIG_FOUND="no" 34LIBCONFIG_FOUND="no"
@@ -35,7 +36,7 @@ LIBCHECK_FOUND="no"
35WANT_NACL="no" 36WANT_NACL="no"
36 37
37AC_ARG_ENABLE([nacl], 38AC_ARG_ENABLE([nacl],
38 [AC_HELP_STRING([--enable-tests], [use nacl instead of libsodium (default: disabled)]) ], 39 [AC_HELP_STRING([--enable-nacl], [use nacl instead of libsodium (default: disabled)]) ],
39 [ 40 [
40 if test "x$enableval" = "xno"; then 41 if test "x$enableval" = "xno"; then
41 WANT_NACL="no" 42 WANT_NACL="no"
@@ -78,6 +79,17 @@ AC_ARG_ENABLE([dht-bootstrap-daemon],
78 ] 79 ]
79) 80)
80 81
82AC_ARG_ENABLE([testing],
83 [AC_HELP_STRING([--disable-testing], [build various testing tools (default: auto)]) ],
84 [
85 if test "x$enableval" = "xno"; then
86 BUILD_TESTING="no"
87 elif test "x$enableval" = "xyes"; then
88 BUILD_TESTING="yes"
89 fi
90 ]
91)
92
81DEPSEARCH= 93DEPSEARCH=
82LIBSODIUM_SEARCH_HEADERS= 94LIBSODIUM_SEARCH_HEADERS=
83LIBSODIUM_SEARCH_LIBS= 95LIBSODIUM_SEARCH_LIBS=
@@ -460,9 +472,9 @@ if test "x$WIN32" = "xyes"; then
460fi 472fi
461 473
462AM_CONDITIONAL(BUILD_DHT_BOOTSTRAP_DAEMON, test "x$BUILD_DHT_BOOTSTRAP_DAEMON" = "xyes") 474AM_CONDITIONAL(BUILD_DHT_BOOTSTRAP_DAEMON, test "x$BUILD_DHT_BOOTSTRAP_DAEMON" = "xyes")
463
464AM_CONDITIONAL(BUILD_TESTS, test "x$BUILD_TESTS" = "xyes") 475AM_CONDITIONAL(BUILD_TESTS, test "x$BUILD_TESTS" = "xyes")
465AM_CONDITIONAL(BUILD_NTOX, test "x$BUILD_NTOX" = "xyes") 476AM_CONDITIONAL(BUILD_NTOX, test "x$BUILD_NTOX" = "xyes")
477AM_CONDITIONAL(BUILD_TESTING, test "x$BUILD_TESTING" = "xyes")
466 478
467AC_CONFIG_FILES([Makefile 479AC_CONFIG_FILES([Makefile
468 build/Makefile 480 build/Makefile
diff --git a/other/Makefile.inc b/other/Makefile.inc
index 736678fd..5308c45d 100644
--- a/other/Makefile.inc
+++ b/other/Makefile.inc
@@ -1,4 +1,6 @@
1noinst_PROGRAMS += DHT_bootstrap 1if BUILD_DHT_BOOTSTRAP_DAEMON
2
3bin_PROGRAMS += DHT_bootstrap
2 4
3DHT_bootstrap_SOURCES = ../other/DHT_bootstrap.c \ 5DHT_bootstrap_SOURCES = ../other/DHT_bootstrap.c \
4 ../toxcore/DHT.h \ 6 ../toxcore/DHT.h \
@@ -15,5 +17,7 @@ DHT_bootstrap_LDADD = $(LIBSODIUM_LDFLAGS) \
15 $(NACL_LIBS) \ 17 $(NACL_LIBS) \
16 $(WINSOCK2_LIBS) 18 $(WINSOCK2_LIBS)
17 19
20endif
21
18EXTRA_DIST += $(top_srcdir)/other/DHTservers \ 22EXTRA_DIST += $(top_srcdir)/other/DHTservers \
19 $(top_srcdir)/other/tox.png 23 $(top_srcdir)/other/tox.png
diff --git a/testing/Makefile.inc b/testing/Makefile.inc
index 65f9f64c..de3995be 100644
--- a/testing/Makefile.inc
+++ b/testing/Makefile.inc
@@ -19,6 +19,8 @@ nTox_LDADD = $(LIBSODIUM_LDFLAGS) \
19endif 19endif
20 20
21 21
22if BUILD_TESTING
23
22noinst_PROGRAMS += DHT_test \ 24noinst_PROGRAMS += DHT_test \
23 Lossless_UDP_testclient \ 25 Lossless_UDP_testclient \
24 Lossless_UDP_testserver \ 26 Lossless_UDP_testserver \
@@ -116,3 +118,5 @@ tox_sync_LDADD = \
116 $(WINSOCK2_LIBS) 118 $(WINSOCK2_LIBS)
117 119
118EXTRA_DIST += $(top_srcdir)/testing/misc_tools.c 120EXTRA_DIST += $(top_srcdir)/testing/misc_tools.c
121
122endif