mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 09:40:12 +01:00
configure: Use pkg check for libsodium.
This commit is contained in:
parent
fe41932b1a
commit
731e474b10
1 changed files with 1 additions and 3 deletions
|
@ -1044,11 +1044,9 @@ AC_HELP_STRING([--with-sodium-libs=[[[DIR]]]], [Path to sodium library directory
|
|||
SODIUM_LDFLAGS="-L$withval"
|
||||
], [])
|
||||
|
||||
RB_CHK_SYSHEADER(sodium.h, [SODIUM_H])
|
||||
AC_CHECK_LIB([sodium], sodium_init,
|
||||
PKG_CHECK_MODULES(SODIUM, libsodium,
|
||||
[
|
||||
have_sodium="yes"
|
||||
SODIUM_LIBS="-lsodium"
|
||||
], [
|
||||
have_sodium="no"
|
||||
AC_MSG_ERROR([libsodium is required but not found. Try apt-get install libsodium-dev])
|
||||
|
|
Loading…
Add table
Reference in a new issue