[PATCH libevdev 1/8] configure: test for python and python-argparse
David Herrmann
dh.herrmann at gmail.com
Mon Oct 21 01:52:34 PDT 2013
Hi
On Mon, Oct 14, 2013 at 8:14 AM, Peter Hutterer
<peter.hutterer at who-t.net> wrote:
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
> configure.ac | 5 +++++
> libevdev/Makefile.am | 2 +-
> 2 files changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index af73bed..df64f3b 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -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"])
> AC_SUBST([GCOV_CFLAGS])
> AC_SUBST([GCOV_LDFLAGS])
> diff --git a/libevdev/Makefile.am b/libevdev/Makefile.am
> index 552df70..94f5514 100644
> --- a/libevdev/Makefile.am
> +++ b/libevdev/Makefile.am
> @@ -21,7 +21,7 @@ libevdevincludedir = $(includedir)/libevdev-1.0/libevdev
> libevdevinclude_HEADERS = libevdev.h libevdev-uinput.h
>
> event-names.h: Makefile make-event-names.py
> - $(srcdir)/make-event-names.py --output=c > $@
> + $(PYTHON) $(srcdir)/make-event-names.py --output=c > $@
Looks good.
Reviewed-by: David Herrmann <dh.herrmann at gmail.com>
> EXTRA_DIST = make-event-names.py
> CLEANFILES = event-names.h
> --
> 1.8.3.1
>
> _______________________________________________
> Input-tools mailing list
> Input-tools at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/input-tools
More information about the Input-tools
mailing list