Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | From 0780b7053fb0d33d721aa70ab2ecd75299e5ba31 Mon Sep 17 00:00:00 2001 |
| 2 | From: Changqing Li <changqing.li@windriver.com> |
| 3 | Date: Tue, 24 Jul 2018 15:03:39 +0800 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 4 | Subject: [PATCH] configure.ac: allow cross-compilation |
| 5 | |
| 6 | The checking OpenSSL library and header version consistency will |
| 7 | always fail in cross compiling, skip the check and give a warning |
| 8 | instead for cross compiling. |
| 9 | |
| 10 | Upstream-Status: Inappropriate[embedded specific] |
| 11 | |
| 12 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
| 13 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 14 | |
| 15 | update to new version 3.0.17 to fix patch warning |
| 16 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 17 | --- |
| 18 | src/modules/rlm_krb5/configure.ac | 3 ++- |
| 19 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 20 | |
| 21 | diff --git a/src/modules/rlm_krb5/configure.ac b/src/modules/rlm_krb5/configure.ac |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 22 | index efc9f29..98a97e4 100644 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 23 | --- a/src/modules/rlm_krb5/configure.ac |
| 24 | +++ b/src/modules/rlm_krb5/configure.ac |
| 25 | @@ -137,7 +137,8 @@ if test x$with_[]modname != xno; then |
| 26 | FR_SMART_CHECK_LIB(krb5, krb5_is_thread_safe) |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 27 | if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" = xyes; then |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 28 | AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <krb5.h>]], [[return krb5_is_thread_safe() ? 0 : 1]])], |
| 29 | - [krb5threadsafe="-DKRB5_IS_THREAD_SAFE"], [AC_MSG_WARN([[libkrb5 is not threadsafe]])]) |
| 30 | + [krb5threadsafe="-DKRB5_IS_THREAD_SAFE"], [AC_MSG_WARN([[libkrb5 is not threadsafe]])], |
| 31 | + [AC_MSG_WARN(cross compiling: not checking)]) |
| 32 | fi |
| 33 | else |
| 34 | krb5threadsafe="" |
| 35 | -- |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 36 | 2.7.4 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 37 | |