mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
build: set HAVE_QRENCODE only once
and use CLFAGS not cflags
This commit is contained in:
parent
0c7350e2e6
commit
1a7017e44c
@ -348,10 +348,8 @@ AC_SUBST(THEMES_PATH)
|
|||||||
AM_CONDITIONAL([THEMES_INSTALL], "$THEMES_INSTALL")
|
AM_CONDITIONAL([THEMES_INSTALL], "$THEMES_INSTALL")
|
||||||
|
|
||||||
if test "x$enable_omemo_qrcode" != xno; then
|
if test "x$enable_omemo_qrcode" != xno; then
|
||||||
AC_DEFINE([HAVE_QRENCODE], [1], [Have QRencode])
|
|
||||||
|
|
||||||
PKG_CHECK_MODULES([libqrencode], [libqrencode],
|
PKG_CHECK_MODULES([libqrencode], [libqrencode],
|
||||||
[LIBS="$libqrencode_LIBS $LIBS" CFLAGS="$libqrencode_CFLAGS $cflags"],
|
[AC_DEFINE([HAVE_QRENCODE], [1], [Have QRencode]) LIBS="$libqrencode_LIBS $LIBS" CFLAGS="$libqrencode_CFLAGS $CFLAGS"],
|
||||||
[AC_DEFINE([HAVE_QRENCODE], [0], [Dont have QRencode])
|
[AC_DEFINE([HAVE_QRENCODE], [0], [Dont have QRencode])
|
||||||
AS_IF([test "x$enable_qrcode" = xyes],
|
AS_IF([test "x$enable_qrcode" = xyes],
|
||||||
[AC_MSG_ERROR([libqrencode not found])],
|
[AC_MSG_ERROR([libqrencode not found])],
|
||||||
|
Loading…
Reference in New Issue
Block a user