Unverified Commit 2a656c9d authored by Vitalii Koshura's avatar Vitalii Koshura Committed by GitHub

Merge pull request #3716 from fsbruva/bugfix/ignore_without_x

configure.ac: Fix have_xss test to respect --without-x
parents a02b6a81 35da6e0d
......@@ -626,10 +626,14 @@ AM_CONDITIONAL(BUILD_GRAPHICS_API, [ test "$have_glut" = yes -a "$have_jpeg" = 1
dnl check for X screen saver lib (X-based idle detection on Linux)
if test "$enable_xss" = yes; then
AC_CHECK_LIB([Xss], [XScreenSaverAllocInfo], [have_Xss="yes"], [have_Xss="no"])
AC_CHECK_HEADER([X11/extensions/scrnsaver.h], [have_Xss="yes"], [have_Xss="no"])
if test "$have_Xss" = no; then
AC_MSG_WARN([libxss missing, disabling X ScreenSaver user idle detection])
if test "X${no_x}" = "Xyes" ; then
AC_MSG_WARN([X Window include files/libs excluded or location unknown, disabling X ScreenSaver user idle detection])
else
AC_CHECK_LIB([Xss], [XScreenSaverAllocInfo], [have_Xss="yes"], [have_Xss="no"])
AC_CHECK_HEADER([X11/extensions/scrnsaver.h], [have_Xss="yes"], [have_Xss="no"])
if test "$have_Xss" = no; then
AC_MSG_WARN([libxss missing, disabling X ScreenSaver user idle detection])
fi
fi
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment