[libgpiod v1.6.x][PATCH] build: don't expect automake to set $PYTHON

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>

It seems that the implementation of AM_PATH_PYTHON() changed in automake
recently and no longer sets $PYTHON variable which breaks the build on
some systems.

We know we use python3 so use python3-config explicitly.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3149384..0460810 100644
--- a/configure.ac
+++ b/configure.ac
@@ -204,9 +204,9 @@ then
 		AC_MSG_ERROR([python3-config not found - needed for python bindings])
 	fi
 	AS_IF([test -z "$PYTHON_CPPFLAGS"],
-		[AC_SUBST(PYTHON_CPPFLAGS, [`$PYTHON-config --includes`])])
+		[AC_SUBST(PYTHON_CPPFLAGS, [`python3-config --includes`])])
 	AS_IF([test -z "$PYTHON_LIBS"],
-		[AC_SUBST(PYTHON_LIBS, [`$PYTHON-config --libs`])])
+		[AC_SUBST(PYTHON_LIBS, [`python3-config --libs`])])
 fi
 
 AC_CHECK_PROG([has_doxygen], [doxygen], [true], [false])
-- 
2.37.2




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux