summaryrefslogtreecommitdiffstats
path: root/quanta/parts/kafka/configure.in.in
blob: 9bb811d9572119a678f63e1c522779d34717a425 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 <tdeversion.h>
    ],
    [
      #if TDE_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")