-# v8 version 4+ requires c++11
-PKG_CHECK_MODULES(V8, v8 = 3.32.7, [ pkg_check_v8=yes ], [ pkg_check_v8=no ] )
-
-# Rules for building JavaScript plugin
-# If enable_javascript=yes and v8 installed = build javascript
-# If enable_javascript=automatic and v8 installed = build javascript
-# If enable_javascript=yes and v8 not installed = throw an error
-build_javascript_plugin=no
-if test x$enable_javascript = xyes; then
- if test x$pkg_check_v8 = xno; then
- [build_javascript_plugin=no]
- AC_MSG_ERROR("V8 not found or incorrect version installed")
- AC_MSG_NOTICE("To disable building of JavaScript plugin use --disable-javascript")
- else
- [build_javascript_plugin=yes]
- AC_MSG_NOTICE(V8 library found. Building DALi JavaScript plugin)
- fi
-fi
-if test x$enable_javascript = xautomatic && test x$pkg_check_v8 = xyes; then
- [build_javascript_plugin=yes]
- AC_MSG_NOTICE( V8 library found. Automatic building of JavaScript plugin. Use use --disable-javascript to disable)
-fi
-
-
-#set a variable for the makefile to force compile the JAvaSplugin
-AM_CONDITIONAL([ENABLE_JAVASCRIPT_PLUGIN], [test x$build_javascript_plugin = xyes])