From: duguhaotian Date: Wed, 30 May 2018 02:25:40 +0000 (+0800) Subject: support tls in cross-compile X-Git-Tag: lxc-2.0.10~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f962af8a26cc0fbfb46f1611ac63b459aedd3f1;p=thirdparty%2Flxc.git support tls in cross-compile AC_RUN_IFELSE will fail in cross-compile, we can use AC_COMPILE_IFELSE replace. Signed-off-by: duguhaotian --- diff --git a/config/tls.m4 b/config/tls.m4 index 5d1ac5918..cd032c9d7 100644 --- a/config/tls.m4 +++ b/config/tls.m4 @@ -5,7 +5,7 @@ AC_DEFUN([LXC_CHECK_TLS], [ AC_MSG_CHECKING(for TLS) - AC_RUN_IFELSE([AC_LANG_SOURCE([[ static __thread int val; int main() { return 0; } ]])],[have_tls=yes],[have_tls=no],[have_tls=no ]) + AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ static __thread int val; int main() { return 0; } ]])],[have_tls=yes],[have_tls=no],[have_tls=no ]) AC_MSG_RESULT($have_tls) if test "$have_tls" = "yes"; then AC_DEFINE([HAVE_TLS],[1],[Define if the compiler supports __thread])