From: duguhaotian Date: Wed, 30 May 2018 02:25:40 +0000 (+0800) Subject: support tls in cross-compile X-Git-Tag: lxc-3.1.0~271^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d6aae92d3bdac4227fbcf372548a76a0fc26383;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])