diff options
author | runge <runge> | 2006-11-22 00:12:09 +0000 |
---|---|---|
committer | runge <runge> | 2006-11-22 00:12:09 +0000 |
commit | 123cab092cc2a837ebccd30c18e6c138bdcbc2a8 (patch) | |
tree | d459adb1efbbe19adea36ddb37e711365cd38049 /configure.ac | |
parent | 75aca1c74d0df807603d1d113df36f4d4be3a89f (diff) | |
download | libtdevnc-123cab092cc2a837ebccd30c18e6c138bdcbc2a8.tar.gz libtdevnc-123cab092cc2a837ebccd30c18e6c138bdcbc2a8.zip |
use AC_CHECK_LIB for fbpm and dpms
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 1abd74e..b54cafd 100644 --- a/configure.ac +++ b/configure.ac @@ -118,16 +118,15 @@ elif test "$X_CFLAGS" != "-DX_DISPLAY_MISSING"; then [#include <X11/Xlib.h>]) if test "x$with_fbpm" != "xno"; then - AC_CHECK_HEADER(X11/extensions/fbpm.h, + AC_CHECK_LIB(Xext, FBPMForceLevel, [AC_DEFINE(HAVE_FBPM)], , - [#include <X11/Xlib.h> -#include <X11/Xmd.h>]) + $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS) fi if test "x$with_dpms" != "xno"; then - AC_CHECK_HEADER(X11/extensions/dpms.h, + AC_CHECK_LIB(Xext, DPMSForceLevel, [AC_DEFINE(HAVE_DPMS)], , - [#include <X11/Xlib.h>]) + $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS) fi AC_CHECK_LIB(Xtst, XTestGrabControl, |