diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-04-28 01:27:24 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-04-28 01:27:24 +0000 |
commit | 3be8f38c8216094c12a7910ab09be94394a5e2db (patch) | |
tree | 70ce28e837483ef1169acdbd739d0882a3aa5b04 /krandr/configure.in.in | |
parent | 9f2307382d4acc636b621570ed7770dcab0d652a (diff) | |
download | tdelibs-3be8f38c8216094c12a7910ab09be94394a5e2db.tar.gz tdelibs-3be8f38c8216094c12a7910ab09be94394a5e2db.zip |
Added new central krandr library to handle everything related to dynamic screen configuration
In the future this will probably handle ICC profiles as well
This will allow easy integration of screen configuration into other KDE programs and control center modules
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1119941 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krandr/configure.in.in')
-rw-r--r-- | krandr/configure.in.in | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/krandr/configure.in.in b/krandr/configure.in.in new file mode 100644 index 000000000..6feca241b --- /dev/null +++ b/krandr/configure.in.in @@ -0,0 +1,21 @@ +dnl ----------------------------------------------------- +dnl X Resize and Rotate extension library check +dnl ----------------------------------------------------- + +KDE_CHECK_HEADERS(X11/extensions/Xrandr.h, [xrandr_h=yes], [xrandr_h=no], [#include <X11/Xlib.h>]) +if test "$xrandr_h" = yes; then + KDE_CHECK_LIB(Xrandr, XRRSetScreenConfigAndRate, [ + LIB_XRANDR=-lXrandr + AC_DEFINE_UNQUOTED(XRANDR_SUPPORT, 1, [Defined if your system has XRandR support]) + RANDR_SUBDIR="randr" + ], [ + RANDR_SUBDIR="" + ], -lXrender -lXext $X_EXTRA_LIBS) +else + LIB_XRANDR= +fi +AC_SUBST(LIB_XRANDR) +AM_CONDITIONAL(system_has_xrandr, test -n "$RANDR_SUBDIR") +if test $system_has_xrandr = no; then + DO_NOT_COMPILE="$DO_NOT_COMPILE libkrandr" +fi |