summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac12
-rwxr-xr-xother/travis/autotools-script11
2 files changed, 11 insertions, 12 deletions
diff --git a/configure.ac b/configure.ac
index 46162b44..14a723c6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -327,6 +327,14 @@ AC_SUBST(MATH_LDFLAGS)
327 327
328# Checks for libraries. 328# Checks for libraries.
329 329
330PKG_CHECK_MODULES([LIBSODIUM], [libsodium],
331 [
332 LIBSODIUM_FOUND="yes"
333 ],
334 [
335 LIBSODIUM_FOUND="no"
336 ])
337
330if test "x$WANT_NACL" = "xyes"; then 338if test "x$WANT_NACL" = "xyes"; then
331 NACL_LIBS= 339 NACL_LIBS=
332 NACL_LDFLAGS= 340 NACL_LDFLAGS=
@@ -368,7 +376,7 @@ if test "x$WANT_NACL" = "xyes"; then
368 AC_SUBST(NACL_LDFLAGS) 376 AC_SUBST(NACL_LDFLAGS)
369 AC_SUBST(NACL_OBJECTS) 377 AC_SUBST(NACL_OBJECTS)
370 AC_SUBST(NACL_OBJECTS_PKGCONFIG) 378 AC_SUBST(NACL_OBJECTS_PKGCONFIG)
371else 379elif test "x$LIBSODIUM_FOUND" = "xno"; then
372 LIBSODIUM_LIBS= 380 LIBSODIUM_LIBS=
373 LIBSODIUM_LDFLAGS= 381 LIBSODIUM_LDFLAGS=
374 LDFLAGS_SAVE="$LDFLAGS" 382 LDFLAGS_SAVE="$LDFLAGS"
@@ -428,7 +436,7 @@ if test "x$WANT_NACL" = "xyes"; then
428 CPPFLAGS="$CPPFLAGS_SAVE" 436 CPPFLAGS="$CPPFLAGS_SAVE"
429 AC_SUBST(NACL_CFLAGS) 437 AC_SUBST(NACL_CFLAGS)
430 AC_DEFINE([VANILLA_NACL], [1], [use nacl instead of libsodium]) 438 AC_DEFINE([VANILLA_NACL], [1], [use nacl instead of libsodium])
431else 439elif test "x$LIBSODIUM_FOUND" = "xno"; then
432 LIBSODIUM_CFLAGS= 440 LIBSODIUM_CFLAGS=
433 CFLAGS_SAVE="$CFLAGS" 441 CFLAGS_SAVE="$CFLAGS"
434 CPPFLAGS_SAVE="$CPPFLAGS" 442 CPPFLAGS_SAVE="$CPPFLAGS"
diff --git a/other/travis/autotools-script b/other/travis/autotools-script
index 735229fb..18cb2d26 100755
--- a/other/travis/autotools-script
+++ b/other/travis/autotools-script
@@ -15,13 +15,4 @@ RUN ./configure \
15# We use make instead of RUN $MAKE here, because the autotools build will only 15# We use make instead of RUN $MAKE here, because the autotools build will only
16# ever run natively on the Linux container, never on a Windows cross compilation 16# ever run natively on the Linux container, never on a Windows cross compilation
17# docker instance or an OSX machine. 17# docker instance or an OSX machine.
18make -j`nproc` 18make distcheck -j`nproc` -k
19
20# This doesn't currently work on Travis, because the autotools build is broken.
21# It does not look up libsodium by pkg-config, so without the --with flags it
22# won't find it. We don't care that much about distcheck at this point, but we
23# do care whether it configures/builds at all, which is exercised by the make
24# call above. Tests are executed by the cmake build.
25echo "*** make distcheck currently fails; see https://github.com/TokTok/toxcore/blob/master/other/travis/autotools-script#L16 ***"
26make distcheck -j`nproc` \
27 || echo "*** make distcheck has failed as expected; don't be alarmed ***"