-dnl Checks for Python modules needed by ovsdbmonitor.
-AC_DEFUN([OVS_CHECK_OVSDBMONITOR],
- [OVS_CHECK_PYTHON_MODULE([PySide.QtCore])
- OVS_CHECK_PYTHON_MODULE([PyQt4.QtCore])
- OVS_CHECK_PYTHON_MODULE([twisted.conch.ssh])
- OVS_CHECK_PYTHON_MODULE([twisted.internet])
- OVS_CHECK_PYTHON_MODULE([twisted.application])
- OVS_CHECK_PYTHON_MODULE([json])
- OVS_CHECK_PYTHON_MODULE([zope.interface])
- if (test $ovs_cv_py_PySide_QtCore = yes \
- || test $ovs_cv_py_PyQt4_QtCore = yes) \
- && test $ovs_cv_py_twisted_conch_ssh = yes \
- && test $ovs_cv_py_twisted_internet = yes \
- && test $ovs_cv_py_twisted_application = yes \
- && test $ovs_cv_py_json = yes \
- && test $ovs_cv_py_zope_interface = yes; then
- BUILD_OVSDBMONITOR=yes
- else
- BUILD_OVSDBMONITOR=no
- fi
- AC_MSG_CHECKING([whether to build ovsdbmonitor])
- AC_MSG_RESULT([$BUILD_OVSDBMONITOR])
- AM_CONDITIONAL([BUILD_OVSDBMONITOR], [test $BUILD_OVSDBMONITOR = yes])])
-