]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
build: search for python3
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 15 Dec 2020 19:09:27 +0000 (20:09 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 15 Dec 2020 19:09:27 +0000 (20:09 +0100)
Eric Garver says: "It would probably be better to use the automake macro
AM_PATH_PYTHON. [...] The above is fine for now."

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
configure.ac

index 5dacb43e5d8f10d7125ce8688874f50aba82aca7..1b493541af3db02040865e9d3249cf3120950388 100644 (file)
@@ -111,7 +111,7 @@ AC_ARG_ENABLE(python,
 
 AC_ARG_WITH([python_bin],
             [AS_HELP_STRING([--with-python-bin], [Specify Python binary to use])],
-           [PYTHON_BIN="$withval"], [AC_PATH_PROGS(PYTHON_BIN, python python2 python2.7)]
+           [PYTHON_BIN="$withval"], [AC_PATH_PROGS(PYTHON_BIN, python python2 python2.7 python3)]
           )
 
 AS_IF([test "x$PYTHON_BIN" = "x"], [