mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Merge pull request #1865 from profanity-im/autotools-omemo-fix
Fix OMEMO autodetection in autotools
This commit is contained in:
commit
245d69deb6
21
configure.ac
21
configure.ac
@ -323,19 +323,20 @@ AS_IF([test "x$enable_gdk_pixbuf" != xno],
|
|||||||
dnl feature: omemo
|
dnl feature: omemo
|
||||||
AM_CONDITIONAL([BUILD_OMEMO], [false])
|
AM_CONDITIONAL([BUILD_OMEMO], [false])
|
||||||
if test "x$enable_omemo" != xno; then
|
if test "x$enable_omemo" != xno; then
|
||||||
AM_CONDITIONAL([BUILD_OMEMO], [true])
|
OMEMO_LIBS=""
|
||||||
PKG_CHECK_MODULES([libsignal], [libsignal-protocol-c >= 2.3.2],
|
PKG_CHECK_MODULES([libsignal], [libsignal-protocol-c >= 2.3.2],
|
||||||
[LIBS="-lsignal-protocol-c $LIBS"],
|
[OMEMO_LIBS="-lsignal-protocol-c"
|
||||||
|
AC_CHECK_LIB([gcrypt], [gcry_md_extract],
|
||||||
|
[OMEMO_LIBS="-lgcrypt $OMEMO_LIBS"
|
||||||
|
AM_CONDITIONAL([BUILD_OMEMO], [true])],
|
||||||
|
[AC_MSG_NOTICE([gcrypt >= 1.7.0 not found, OMEMO support not enabled])])],
|
||||||
[AC_MSG_NOTICE([libsignal-protocol-c >= 2.3.2 not found, OMEMO support not enabled])])
|
[AC_MSG_NOTICE([libsignal-protocol-c >= 2.3.2 not found, OMEMO support not enabled])])
|
||||||
|
|
||||||
AC_CHECK_LIB([gcrypt], [gcry_md_extract],
|
AM_COND_IF([BUILD_OMEMO],
|
||||||
[LIBS="-lgcrypt $LIBS"],
|
[AC_DEFINE([HAVE_OMEMO], [1], [Have OMEMO])
|
||||||
[AM_CONDITIONAL([BUILD_OMEMO], [false])
|
LIBS="$OMEMO_LIBS $LIBS"],
|
||||||
AS_IF([test "x$enable_omemo" = xyes],
|
[AS_IF([test "x$enable_omemo" = xyes],
|
||||||
[AC_MSG_ERROR([gcrypt >= 1.7.0 is required for OMEMO support])],
|
[AC_MSG_ERROR([OMEMO support requires a library which is missed])])])
|
||||||
[AC_MSG_NOTICE([gcrypt >= 1.7.0 not found, OMEMO support not enabled])])])
|
|
||||||
|
|
||||||
AM_COND_IF([BUILD_OMEMO], [AC_DEFINE([HAVE_OMEMO], [1], [Have OMEMO])])
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl feature: themes
|
dnl feature: themes
|
||||||
|
Loading…
Reference in New Issue
Block a user