X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=configure.ac;h=795b774299dc220d16bdf250789e33566278ace5;hb=7e6f7fb45466bf6672e295ab155a9697c294410c;hp=c06fdaa619fe24997a45e1ffe33ce0d9133f81a5;hpb=62ac5e57a1f48a302e9bb69486f8d8722841e093;p=chaz%2Fopenbox diff --git a/configure.ac b/configure.ac index c06fdaa6..795b7742 100644 --- a/configure.ac +++ b/configure.ac @@ -136,6 +136,51 @@ else xcursor_found=no fi +AC_ARG_ENABLE(xcomposite, + AC_HELP_STRING( + [--disable-xcomposite], + [disable use of the X Composite library. [[default=enabled]]] + ), + [enable_xcomposite=$enableval], + [enable_xcomposite=yes] +) + +if test "$enable_xcomposite" = yes; then +PKG_CHECK_MODULES(XRENDER, [xrender], + [ + AC_DEFINE(USE_XRENDER, [1], [Use X Render library]) + AC_SUBST(XRENDER_CFLAGS) + AC_SUBST(XRENDER_LIBS) + PKG_CHECK_MODULES(XDAMAGE, [xdamage], + [ + AC_DEFINE(USE_XDAMAGE, [1], [Use X Damage library]) + AC_SUBST(XDAMAGE_CFLAGS) + AC_SUBST(XDAMAGE_LIBS) + PKG_CHECK_MODULES(XCOMPOSITE, [xcomposite], + [ + AC_DEFINE(USE_XCOMPOSITE, [1], [Use X Composite library]) + AC_SUBST(XCOMPOSITE_CFLAGS) + AC_SUBST(XCOMPOSITE_LIBS) + xcomposite_found=yes + ], + [ + xcomposite_found=no + ] + ) + ], + [ + xcomposite_found=no + ] + ) + ], + [ + xcomposite_found=no + ] +) +else + xcomposite_found=no +fi + dnl Check for session management X11_SM @@ -170,6 +215,7 @@ AC_MSG_RESULT AC_MSG_RESULT([Compiling with these options: Startup Notification... $sn_found X Cursor Library... $xcursor_found + X Composite Library... $xcomposite_found Session Management... $SM ]) AC_MSG_RESULT([configure complete, now type "make"])