]> err.no Git - util-linux/commit
build-sys: rewrite TLS detection
authorKarel Zak <kzak@redhat.com>
Fri, 4 Dec 2009 14:45:19 +0000 (15:45 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 4 Dec 2009 14:45:19 +0000 (15:45 +0100)
commitd7a01582424ff0119493cb7d41d382849328a118
treef507ca506b47c7f5aa46b2c73a85c74606a6013b
parenteb351926e224205ff9b31d9e02bf9c6660b0b169
build-sys: rewrite TLS detection

 * use more robust tls.m4 from gcc project

   The old version (from util-linux-ng) used AC_TRY_COMPILE. That's
   wrong. We need to use AC_RUN_IFELSE to check that the result is
   link-able and executable.

   The new version also test it TLS really works in multi-thread
   applications.

 * we need to detect TLS usability for cross-compiling

 * this new version supports __thread keyword only, it seems that we
   needn't to care about anything other

Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac
m4/tls.m4
shlibs/uuid/src/gen_uuid.c