Based on:
https://cgit.openembedded.org/meta-openembedded/plain/meta-networking/recipes-connectivity/freeradius/files/freeradius-configure.ac-allow-cross-compilation.patch


Author: Dharanendiran <dharanendiran@timesys.com>
Date: Mon, 26 Sep 2022 15:19:39 +0530

Error log:
checking for krb5_is_thread_safe in -lkrb5... yes
configure: error: in `/home/timesys/factory/build_armv7l-timesys-linux-gnueabihf/freeradius-server-3.2.0/freeradius-server-3.2.0/src/modules/rlm_krb5':
configure: error: cannot run test program while cross compiling
See `config.log' for more details
configure: error: ./configure failed for src/modules/rlm_krb5

---
 src/modules/rlm_krb5/configure | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/modules/rlm_krb5/configure b/src/modules/rlm_krb5/configure
index c7df335..43f757d 100755
--- a/src/modules/rlm_krb5/configure
+++ b/src/modules/rlm_krb5/configure
@@ -4004,10 +4004,8 @@ fi
 
 	if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" = xyes; then
 		if test "$cross_compiling" = yes; then :
-  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot run test program while cross compiling
-See \`config.log' for more details" "$LINENO" 5; }
+  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
+$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
-- 
2.25.1

