[lxc-devel] [PATCH] use pkg-config to ensure python3-devel is installed
Stéphane Graber
stgraber at ubuntu.com
Fri Jan 11 17:47:45 UTC 2013
On 01/10/2013 04:18 PM, Dwight Engen wrote:
>>From c6b906c3cb792c7d83ff7463a02dcd3073d31a55 Mon Sep 17 00:00:00 2001
> From: Dwight Engen <dwight.engen at oracle.com>
> Date: Thu, 10 Jan 2013 15:45:22 -0500
> Subject: [PATCH] use pkg-config to ensure python3-devel is installed
>
> The Python.h header varies in location by distribution, so instead use
> pkg-config to ensure the python3 devel package is installed. Tested with
> Ubuntu 12.04 and Fedora 17. Fixes --enable-python on Fedora 17.
>
> Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
Thanks! That's indeed very useful, I should really have done that to
being with...
Acked-by: Stéphane Graber <stgraber at ubuntu.com>
Pushed to staging.
> ---
> configure.ac | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index 0089f93..1df24f3 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -134,7 +134,7 @@ AM_CONDITIONAL([ENABLE_PYTHON], [test "x$enable_python" = "xyes"])
>
> AM_COND_IF([ENABLE_PYTHON],
> [AM_PATH_PYTHON([3.2], [], [AC_MSG_ERROR([You must install python3])])
> - AC_CHECK_HEADER([python$PYTHON_VERSION/Python.h],[],[AC_MSG_ERROR([You must install python3-dev])])
> + PKG_CHECK_MODULES([PYTHONDEV], [python3 >= 3.2],[],[AC_MSG_ERROR([You must install python3-dev])])
> AC_DEFINE_UNQUOTED([ENABLE_PYTHON], 1, [Python3 is available])])
>
> # Optional test binaries
>
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20130111/ac29d0ec/attachment.pgp>
More information about the lxc-devel
mailing list