Files
packages/net/gensio/patches/0001-Ensure-that-ax_python_devel_found-is-defined.patch
Michael Heimpold fd6832b4bc gensio: add patches/fixes to workaround swig and python detection
The built-in swig/python detection does not works well
when system-wide m4 macros are available with same name
but different content.
So make the configure stuff compatible, resp. workaround
a little bit.

It seems also necessary to pass the PYTHON_LIBS environment
during the compile phase.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2023-11-22 00:45:25 +01:00

31 lines
877 B
Diff

From 6bbc3056c4b9192010d888672d97810609ee23f9 Mon Sep 17 00:00:00 2001
From: Michael Heimpold <mhei@heimpold.de>
Date: Sat, 18 Nov 2023 21:46:15 +0100
Subject: [PATCH] Ensure that $ax_python_devel_found is defined
Otherwise in case of --without-python, it triggers an error like:
-snip-
...
checking consistency of all components of python development environment... yes
./configure: line 23729: test: =: unary operator expected
...
-snap-
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
---
configure.ac | 3 +++
1 file changed, 3 insertions(+)
--- a/configure.ac
+++ b/configure.ac
@@ -1997,6 +1997,9 @@ if test "x$trypython" = "xyes"; then
PYTHON_CPPFLAGS="$pythoncflags"
fi
AX_PYTHON_DEVEL([], [true])
+ ax_python_devel_found=yes
+else
+ ax_python_devel_found=no
fi
if test $ax_python_devel_found = yes; then
AX_PROG_PYTHON_VERSION([3.0.0],