diff options
Diffstat (limited to 'configure.in.in')
-rw-r--r-- | configure.in.in | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/configure.in.in b/configure.in.in index 49b9228..bed41ce 100644 --- a/configure.in.in +++ b/configure.in.in @@ -58,6 +58,34 @@ if test x$have_expat = xyes -a x$want_expat = xyes; then AC_SUBST(LIB_EXPAT) fi +dnl ------------------------- +dnl check for XTest extension +dnl ------------------------- + +AC_ARG_WITH([xtest], [AS_HELP_STRING([--without-xtest], [build without XTest support])],, + [with_xtest=yes]) + +CFLAGS_XTEST="" +LIB_XTEST="" + +if test "$with_xtest" != "no" ; then + AC_MSG_CHECKING([for XTest extension]) + + if "$PKG_CONFIG" --exists xtst ; then + with_xtest=yes + CFLAGS_XTEST=`"$PKG_CONFIG" --cflags xtst` + LIB_XTEST=`"$PKG_CONFIG" --libs xtst` + AC_DEFINE([HAVE_XTEST],,[XTest extension available]) + AC_MSG_RESULT([yes]) + else + with_xtest=no + AC_MSG_RESULT([no]) + fi +fi + +AC_SUBST([CFLAGS_XTEST]) +AC_SUBST([LIB_XTEST]) + KDE_CHECK_HEADER(xine.h, have_xine=yes, have_xine=no) |