about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2022-04-21 13:24:00 +0300
committerPaul Fertser <fercerpav@gmail.com>2022-04-21 13:24:00 +0300
commitb4857c6043f8b8a4a0e4e8f8dd091d128effa9ca (patch)
tree7a81ffdf9e35a18761789baa0d28b9adc98efe99
parentf891edc0e994e6b05deaf40b964a6d384f9fe32e (diff)
downloadprofani-tty-b4857c6043f8b8a4a0e4e8f8dd091d128effa9ca.tar.gz
Fix xscreensaver detection
Using pkg-config to find libraries requires explicit mention of the
relevant _CFLAGS and _LIBS variables.

Fixes #1695.
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f4653a03..158878b0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -270,7 +270,8 @@ AS_IF([test "x$PLATFORM" = xosx],
 dnl feature: xscreensaver
 AS_IF([test "x$enable_xscreensaver" != xno],
     [PKG_CHECK_MODULES([xscrnsaver], [xscrnsaver],
-        [AC_MSG_NOTICE([xscreensaver support is enabled])],
+        [AC_MSG_NOTICE([xscreensaver support is enabled]);
+         LIBS="$xscrnsaver_LIBS $LIBS" CFLAGS="$CFLAGS $xscrnsaver_CFLAGS"],
         [AS_IF([test "x$enable_xscreensaver" = xyes],
             [AC_MSG_ERROR([xscreensaver is required but does not exist])],
             [AC_MSG_NOTICE([xscreensaver support is disabled])])])])