X-Git-Url: http://git.ganeti.org/?p=ganeti-github.git;a=blobdiff_plain;f=configure.ac;h=956b4ed100937df9e1cba1007addfbcd18f2e142;hp=df8f68471e361c35d075f78fd6f898161b78ca58;hb=27df5b736ef72b3b12c07f32d64dbac95fe7a5ba;hpb=a05018a9326ee77b1aabb41817a2bd085c8c92e4 diff --git a/configure.ac b/configure.ac index df8f684..956b4ed 100644 --- a/configure.ac +++ b/configure.ac @@ -776,10 +776,25 @@ AC_PYTHON_MODULE(pyinotify, t) AC_PYTHON_MODULE(pycurl, t) AC_PYTHON_MODULE(bitarray, t) AC_PYTHON_MODULE(ipaddr, t) -AC_PYTHON_MODULE(yaml, t) AC_PYTHON_MODULE(affinity) AC_PYTHON_MODULE(paramiko) +# Development-only Python modules +PY_NODEV= +AC_PYTHON_MODULE(yaml) +if test $HAVE_PYMOD_YAML == "no"; then + PY_NODEV="$PY_NODEV yaml" +fi + +if test -n "$PY_NODEV"; then + AC_MSG_WARN(m4_normalize([Required development modules ($PY_NODEV) were not + found, you won't be able to run Python unittests])) +else + AC_MSG_NOTICE([Python development modules found, unittests enabled]) +fi +AC_SUBST(PY_NODEV) +AM_CONDITIONAL([PY_NODEV], [test -n $PY_NODEV]) + AC_CONFIG_FILES([ Makefile ]) AC_OUTPUT