mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2026-05-09 02:28:08 +02:00
configure: test for python and python-argparse
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
parent
0dbf1ea4f8
commit
db3ecc334b
2 changed files with 6 additions and 1 deletions
|
|
@ -97,6 +97,11 @@ AS_IF([test "x$enable_gcov" != "xno"],
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
AM_PATH_PYTHON()
|
||||||
|
AC_SUBST(PYTHON)
|
||||||
|
AS_IF([$($PYTHON -c "import argparse")], [:],
|
||||||
|
AC_MSG_ERROR([python argparse module is missing]))
|
||||||
|
|
||||||
AM_CONDITIONAL([GCOV_ENABLED], [test "x$enable_gcov" != "xno"])
|
AM_CONDITIONAL([GCOV_ENABLED], [test "x$enable_gcov" != "xno"])
|
||||||
AC_SUBST([GCOV_CFLAGS])
|
AC_SUBST([GCOV_CFLAGS])
|
||||||
AC_SUBST([GCOV_LDFLAGS])
|
AC_SUBST([GCOV_LDFLAGS])
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ libevdevincludedir = $(includedir)/libevdev-1.0/libevdev
|
||||||
libevdevinclude_HEADERS = libevdev.h libevdev-uinput.h
|
libevdevinclude_HEADERS = libevdev.h libevdev-uinput.h
|
||||||
|
|
||||||
event-names.h: Makefile make-event-names.py
|
event-names.h: Makefile make-event-names.py
|
||||||
$(srcdir)/make-event-names.py --output=c > $@
|
$(PYTHON) $(srcdir)/make-event-names.py --output=c > $@
|
||||||
|
|
||||||
EXTRA_DIST = make-event-names.py
|
EXTRA_DIST = make-event-names.py
|
||||||
CLEANFILES = event-names.h
|
CLEANFILES = event-names.h
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue