autoconf/python: check for distutils

Require distutils to install the Python tools. Update the logic
to only install suricatactl (and suricatasc) if Python and
distutils are found. Suricata-Update will only be installed if
bundled, and python-distutils and python-yaml are found.
This commit is contained in:
Jason Ish
2019-03-09 09:00:59 -06:00
parent a228986caa
commit a69afd5cf9
3 changed files with 52 additions and 3 deletions
+2
View File
@@ -4,6 +4,7 @@ EXTRA_DIST = setup.py \
suricatasc
if HAVE_PYTHON
if HAVE_PYTHON_DISTUTILS
all-local:
cd $(srcdir) && \
$(HAVE_PYTHON) setup.py build --build-base $(abs_builddir)
@@ -30,3 +31,4 @@ clean-local:
distclean-local:
rm -f version
endif
endif