From 75b5561427e144b4f6e00f4134269e6f350178bc Mon Sep 17 00:00:00 2001 From: Boyuan Yang <073plan@gmail.com> Date: Thu, 22 Oct 2015 23:47:54 +0800 Subject: [PATCH] don't configure libsodium when using system libs --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 4380e48e..c7bac399 100755 --- a/configure.ac +++ b/configure.ac @@ -245,7 +245,9 @@ else LIBS="$LIBS $PTHREAD_LIBS" fi -AC_CONFIG_SUBDIRS([libsodium]) +AM_COND_IF([USE_SYSTEM_SHARED_LIB], + [], + [AC_CONFIG_SUBDIRS([libsodium])]) AC_CONFIG_FILES([ shadowsocks-libev.pc Makefile