summaryrefslogtreecommitdiffstats
path: root/quanta/parts/kafka/configure.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/parts/kafka/configure.in.in')
-rw-r--r--quanta/parts/kafka/configure.in.in42
1 files changed, 42 insertions, 0 deletions
diff --git a/quanta/parts/kafka/configure.in.in b/quanta/parts/kafka/configure.in.in
new file mode 100644
index 00000000..967fc332
--- /dev/null
+++ b/quanta/parts/kafka/configure.in.in
@@ -0,0 +1,42 @@
+build_vpl="yes"
+
+#build_vpl="no"
+AC_DEFUN([QUANTA_CHECK_VPL],
+[
+ AC_MSG_CHECKING(whether VPL can be compiled)
+ AC_CACHE_VAL(ac_cv_vpl_setup,
+ [
+ AC_LANG_SAVE
+ AC_LANG_CPLUSPLUS
+ save_CXXFLAGS="$CXXFLAGS"
+ CXXFLAGS="$KDE_INCLUDES $QT_INCLUDES"
+
+ AC_TRY_LINK([
+ #include <kdeversion.h>
+ ],
+ [
+ #if KDE_VERSION < ((3<<16) | (1<<8) | (90))
+ KDE_choke me
+ #endif
+ ],
+ ac_cv_vpl_setup=yes,
+ ac_cv_vpl_setup=no
+ )
+ CXXFLAGS="$save_CXXFLAGS"
+ AC_LANG_RESTORE
+ ])
+
+ if test "$ac_cv_vpl_setup" = "yes"; then
+ build_vpl="yes"
+ CXXFLAGS="$CXXFLAGS -DBUILD_KAFKAPART"
+ AC_MSG_RESULT(yes)
+ else
+ AC_MSG_RESULT(no)
+ fi
+
+])
+
+#QUANTA_CHECK_VPL
+
+AM_CONDITIONAL(BUILD_WYSIWYG, test "$build_vpl" = "yes")
+