From af4800f3b8e71cb1d1e74d2d7d31f6ea629171bf Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sat, 20 Mar 2021 09:42:16 +0000 Subject: [PATCH] look up python-config using AC_PATH_TOOL Doing so adds the $ac_tool_prefix during cross compilation and will end up using the correct, architecture-dependent python-config. Link: https://bugs.debian.org/984582 --- libraries/libapparmor/m4/ac_python_devel.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libapparmor/m4/ac_python_devel.m4 b/libraries/libapparmor/m4/ac_python_devel.m4 index 6454e2d8a..1da29d873 100644 --- a/libraries/libapparmor/m4/ac_python_devel.m4 +++ b/libraries/libapparmor/m4/ac_python_devel.m4 @@ -13,7 +13,7 @@ AC_DEFUN([AC_PYTHON_DEVEL],[ PYTHON_VERSION="" fi - AC_PATH_PROG([PYTHON_CONFIG],[`basename [$PYTHON]-config`]) + AC_PATH_TOOL([PYTHON_CONFIG],[`basename [$PYTHON]-config`]) if test -z "$PYTHON_CONFIG"; then AC_MSG_ERROR([Cannot find python$PYTHON_VERSION-config in your system path]) fi