1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-09 21:30:42 +00:00

build: set HAVE_QRENCODE only once

and use CLFAGS not cflags
This commit is contained in:
Michael Vetter 2022-05-30 17:59:56 +02:00
parent 0c7350e2e6
commit 1a7017e44c

View File

@ -348,10 +348,8 @@ AC_SUBST(THEMES_PATH)
AM_CONDITIONAL([THEMES_INSTALL], "$THEMES_INSTALL")
if test "x$enable_omemo_qrcode" != xno; then
AC_DEFINE([HAVE_QRENCODE], [1], [Have QRencode])
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])
AS_IF([test "x$enable_qrcode" = xyes],
[AC_MSG_ERROR([libqrencode not found])],