mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
2fc5449870
If libsodium can't be found with PKG_CHECK_MODULES, try AC_CHECK_LIB. If that also fails, abort configure. If a user passes --with-libsodium-libs explicitly, that overrides the pkg-config found location.
19 lines
486 B
Bash
Executable File
19 lines
486 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e -u -x
|
|
. other/travis/env-$ENV.sh
|
|
|
|
# Build toxcore and run tests.
|
|
./autogen.sh
|
|
RUN ./configure \
|
|
--with-libsodium-libs=$CACHE_DIR/lib \
|
|
--with-libsodium-headers=$CACHE_DIR/include \
|
|
--enable-daemon \
|
|
--enable-logging \
|
|
--enable-ntox
|
|
|
|
# We use make instead of RUN $MAKE here, because the autotools build will only
|
|
# ever run natively on the Linux container, never on a Windows cross compilation
|
|
# docker instance or an OSX machine.
|
|
make distcheck -j`nproc` -k
|