1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Merge pull request #1787 from profanity-im/fix/1695-screensaver

Fix xscreensaver detection
This commit is contained in:
Michael Vetter 2023-01-12 07:43:07 +01:00 committed by GitHub
commit 78496d6226
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,9 +273,10 @@ AS_IF([test "x$PLATFORM" = xosx],
dnl feature: xscreensaver
AS_IF([test "x$with_xscreensaver" != xno],
[PKG_CHECK_MODULES([xscrnsaver], [xscrnsaver],
[PKG_CHECK_MODULES([xscrnsaver], [xscrnsaver x11],
[AC_MSG_NOTICE([xscreensaver support is enabled]);
LIBS="$xscrnsaver_LIBS $LIBS" CFLAGS="$CFLAGS $xscrnsaver_CFLAGS"],
LIBS="$xscrnsaver_LIBS $LIBS" CFLAGS="$CFLAGS $xscrnsaver_CFLAGS"
AC_DEFINE([HAVE_LIBXSS], [1], [xscreensaver support])],
[AS_IF([test "x$with_xscreensaver" = xyes],
[AC_MSG_ERROR([xscreensaver is required but does not exist])],
[AC_MSG_NOTICE([xscreensaver support is disabled])])])])