--- freeradius-server-3.2.10.orig/m4/fr_tls.m4 2026-10-18 06:51:21.858900741 +0200 +++ freeradius-server-3.2.10/m4/fr_tls.m4 2026-10-18 06:51:21.898724093 +0200 @@ -16,7 +16,14 @@ dnl # return val; } ]]) - ],[have_tls=yes],[have_tls=no],[have_tls=no]) + ],[have_tls=yes],[have_tls=no], + [AC_LINK_IFELSE([AC_LANG_SOURCE([[ + static __thread int val; + int main(int argc, char **argv) { + val = 0; + return val; + } + ]])],[have_tls=yes],[have_tls=no])]) AC_MSG_RESULT($have_tls) if test "x$have_tls" = "xyes"; then AC_DEFINE([TLS_STORAGE_CLASS],[__thread],[Define if the compiler supports a thread local storage class]) --- freeradius-server-3.2.10.orig/configure 2026-10-18 06:51:21.955562746 +0200 +++ freeradius-server-3.2.10/configure 2026-10-18 06:51:22.028330049 +0200 @@ -12625,7 +12625,22 @@ fi printf %s "checking for __thread support in compiler... " >&6; } if test "$cross_compiling" = yes then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + static __thread int val; + int main(int argc, char **argv) { + val = 0; + return val; + } +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + have_tls=yes +else $as_nop have_tls=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */