changeset 32658:7246ea769aef

Drop unnecessary Xlib.h #include from Xss screensaver extensions check.
author diego
date Sun, 02 Jan 2011 12:05:23 +0000
parents cccc340868f4
children 07549885dad7
files configure
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Jan 02 11:49:48 2011 +0000
+++ b/configure	Sun Jan 02 12:05:23 2011 +0000
@@ -4284,13 +4284,8 @@
 
 echocheck "Xss screensaver extensions"
 if test "$_xss" = auto ; then
-  cat > $TMPC << EOF
-#include <X11/Xlib.h>
-#include <X11/extensions/scrnsaver.h>
-int main(void) { XScreenSaverSuspend(NULL, True); return 0; }
-EOF
   _xss=no
-  cc_check -lXss && _xss=yes
+  statement_check "X11/extensions/scrnsaver.h" 'XScreenSaverSuspend(NULL, True)' -lXss && _xss=yes
 fi
 if test "$_xss" = yes ; then
   def_xss='#define CONFIG_XSS 1'