diff options
author | Karel Zak | 2009-12-04 15:45:19 +0100 |
---|---|---|
committer | Karel Zak | 2009-12-04 15:45:19 +0100 |
commit | d7a01582424ff0119493cb7d41d382849328a118 (patch) | |
tree | f507ca506b47c7f5aa46b2c73a85c74606a6013b /configure.ac | |
parent | mount: add squashfs to mount.8 (diff) | |
download | kernel-qcow2-util-linux-d7a01582424ff0119493cb7d41d382849328a118.tar.gz kernel-qcow2-util-linux-d7a01582424ff0119493cb7d41d382849328a118.tar.xz kernel-qcow2-util-linux-d7a01582424ff0119493cb7d41d382849328a118.zip |
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>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac index 886700d37..fd692abc0 100644 --- a/configure.ac +++ b/configure.ac @@ -242,14 +242,7 @@ AC_DEFUN([UTIL_RESTORE_FLAGS], [ ]) -AC_ARG_ENABLE([tls], - AS_HELP_STRING([--disable-tls], [disable use of thread local support]), - [], enable_tls=yes -) -if test "x$enable_tls" = xyes; then - AX_TLS -fi - +AX_CHECK_TLS AC_ARG_ENABLE([mount], AS_HELP_STRING([--disable-mount], [do not build mount utilities]), |