mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
configure: Fix sodium variable assignments.
This commit is contained in:
parent
85c6fc82c7
commit
992ed22846
1 changed files with 3 additions and 3 deletions
|
@ -1083,6 +1083,7 @@ PKG_CHECK_MODULES(SODIUM, libsodium,
|
|||
AC_CHECK_LIB([sodium], sodium_init,
|
||||
[
|
||||
have_sodium="yes"
|
||||
SODIUM_LIBS+=" -lsodium"
|
||||
], [
|
||||
have_sodium="no"
|
||||
])
|
||||
|
@ -1093,7 +1094,6 @@ AM_CONDITIONAL([SODIUM], [test "x$have_sodium" = "xyes"])
|
|||
AM_COND_IF([SODIUM],
|
||||
[
|
||||
AC_DEFINE([HAVE_SODIUM], [1], [Have libsodium])
|
||||
SODIUM_LIBS+="-lsodium"
|
||||
], [
|
||||
AC_MSG_ERROR([libsodium is required but not found. Try apt-get install libsodium-dev])
|
||||
])
|
||||
|
|
Loading…
Reference in a new issue