blob: e5442360b389ed8bbc817eb001ab19899357c8d4 [file] [log] [blame]
Andrew Geisslerc5535c92023-01-27 16:10:19 -06001From ba1390a80662ff2ab7bfda978cde7df9a871f6ae Mon Sep 17 00:00:00 2001
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002From: Changqing Li <changqing.li@windriver.com>
3Date: Tue, 24 Jul 2018 15:03:39 +0800
Brad Bishopd7bf8c12018-02-25 22:55:05 -05004Subject: [PATCH] configure.ac: allow cross-compilation
5
6The checking OpenSSL library and header version consistency will
7always fail in cross compiling, skip the check and give a warning
8instead for cross compiling.
9
Andrew Geisslerc5535c92023-01-27 16:10:19 -060010Upstream-Status: Inappropriate [embedded specific]
Brad Bishopd7bf8c12018-02-25 22:55:05 -050011
12Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
13Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080014
15update to new version 3.0.17 to fix patch warning
16Signed-off-by: Changqing Li <changqing.li@windriver.com>
Brad Bishopd7bf8c12018-02-25 22:55:05 -050017---
18 src/modules/rlm_krb5/configure.ac | 3 ++-
19 1 file changed, 2 insertions(+), 1 deletion(-)
20
21diff --git a/src/modules/rlm_krb5/configure.ac b/src/modules/rlm_krb5/configure.ac
Andrew Geisslerc5535c92023-01-27 16:10:19 -060022index a0f510cfb3..d2f3eca03e 100644
Brad Bishopd7bf8c12018-02-25 22:55:05 -050023--- a/src/modules/rlm_krb5/configure.ac
24+++ b/src/modules/rlm_krb5/configure.ac
Andrew Geisslerc5535c92023-01-27 16:10:19 -060025@@ -140,7 +140,8 @@ if test x$with_[]modname != xno; then
Brad Bishopd7bf8c12018-02-25 22:55:05 -050026 FR_SMART_CHECK_LIB(krb5, krb5_is_thread_safe)
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080027 if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" = xyes; then
Brad Bishopd7bf8c12018-02-25 22:55:05 -050028 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--
Andrew Geisslerc5535c92023-01-27 16:10:19 -0600362.25.1
Brad Bishopd7bf8c12018-02-25 22:55:05 -050037