Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From a0bf65e04d2bbd3271cab94bd5ac93f8e877bfc5 Mon Sep 17 00:00:00 2001 |
| 2 | From: Jackie Huang <jackie.huang@windriver.com> |
| 3 | Date: Wed, 27 Jan 2016 05:07:19 -0500 |
| 4 | Subject: [PATCH] rlm_python: add PY_INC_DIR in search dir |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | configure option --with-rlm-python-include-dir is used to set |
| 9 | PY_INC_DIR which is never used and it fails to find Python.h, |
| 10 | so add it into search dir to fix it. |
| 11 | |
| 12 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
| 13 | Signed-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 | |
| 18 | diff --git a/src/modules/rlm_python/configure.ac b/src/modules/rlm_python/configure.ac |
| 19 | index 831a33a..c3792d8 100644 |
| 20 | --- a/src/modules/rlm_python/configure.ac |
| 21 | +++ b/src/modules/rlm_python/configure.ac |
| 22 | @@ -93,7 +93,7 @@ if test x$with_[]modname != xno; then |
| 23 | |
| 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 | -- |
| 32 | 2.10.2 |
| 33 | |