summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorAnton <anton@picapica>2019-03-13 19:54:08 +0400
committerAnton <anton@picapica>2019-03-13 19:54:08 +0400
commit9ef382841dda8c20b5ad1d6be3ab965da6ce2c2f (patch)
tree7cd62f35cd77b8814f212469983acd5b4d1b2a1a /configure.ac
parentdaa60475ed2e92b9afd89b1c4e32bbeda2c26315 (diff)
downloadpica-pica-9ef382841dda8c20b5ad1d6be3ab965da6ce2c2f.tar.gz
pica-pica-9ef382841dda8c20b5ad1d6be3ab965da6ce2c2f.zip
link only pica-node with libevent, prevents linking libevent to pica-client
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index a49ae64..5390f05 100644
--- a/configure.ac
+++ b/configure.ac
@@ -94,8 +94,8 @@ AM_CONDITIONAL([PICA_CLIENT], [test "x$PICA_CLIENT_ENABLED" = "xyes"])
#pica-node tests
AS_IF([test "x$PICA_NODE_ENABLED" = "xyes"],[
AC_CHECK_LIB([sqlite3], [sqlite3_open], [], [AC_MSG_ERROR(["libsqlite3 library not found"])])
-AC_CHECK_LIB([event], [event_get_version], [], [AC_MSG_ERROR(["libevent not found"])])
-
+AC_CHECK_LIB([event], [event_get_version], [PICA_NODE_LIBS="-levent"], [AC_MSG_ERROR(["libevent not found"])])
+AC_SUBST([PICA_NODE_LIBS])
AC_CHECK_PROG([SQLITE3], [sqlite3], [yes], [no])
AS_IF([test "x$SQLITE3" != xyes], [ AC_MSG_ERROR(["sqlite3 program not found"])])