blob: cb71fb13732b66240d801b7efb9913fa8ab16d9e [file] [log] [blame]
Andrew Geisslerc5535c92023-01-27 16:10:19 -06001From e4ff7a2a9834e2589bc7bdda4b74f5bc962b15e6 Mon Sep 17 00:00:00 2001
Brad Bishopd7bf8c12018-02-25 22:55:05 -05002From: Jackie Huang <jackie.huang@windriver.com>
3Date: Wed, 27 Jan 2016 05:07:19 -0500
4Subject: [PATCH] rlm_python: add PY_INC_DIR in search dir
5
Brad Bishopd7bf8c12018-02-25 22:55:05 -05006configure option --with-rlm-python-include-dir is used to set
7PY_INC_DIR which is never used and it fails to find Python.h,
8so add it into search dir to fix it.
9
Andrew Geisslerc5535c92023-01-27 16:10:19 -060010Upstream-Status: Inappropriate [embedded specific]
11
Brad Bishopd7bf8c12018-02-25 22:55:05 -050012Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
13Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
14---
15 src/modules/rlm_python/configure.ac | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/src/modules/rlm_python/configure.ac b/src/modules/rlm_python/configure.ac
Andrew Geisslerc5535c92023-01-27 16:10:19 -060019index 08ecb62518..d5c0944ff1 100644
Brad Bishopd7bf8c12018-02-25 22:55:05 -050020--- a/src/modules/rlm_python/configure.ac
21+++ b/src/modules/rlm_python/configure.ac
Andrew Geisslerc5535c92023-01-27 16:10:19 -060022@@ -98,7 +98,7 @@ if test x$with_[]modname != xno; then
Brad Bishopd7bf8c12018-02-25 22:55:05 -050023
24 old_CFLAGS=$CFLAGS
25 CFLAGS="$CFLAGS $PY_CFLAGS"
26- smart_try_dir="$PY_PREFIX/include/python$PY_SYS_VERSION"
27+ smart_try_dir="$PY_PREFIX/include/python$PY_SYS_VERSION $PY_INC_DIR"
28 FR_SMART_CHECK_INCLUDE(Python.h)
29 CFLAGS=$old_CFLAGS
30
31--
Andrew Geisslerc5535c92023-01-27 16:10:19 -0600322.25.1
Brad Bishopd7bf8c12018-02-25 22:55:05 -050033