Changeset 4007dbb for m4


Ignore:
Timestamp:
08/21/15 11:22:30 (5 years ago)
Author:
Richard Sanger <rsangerarj@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
eea427f
Parents:
76291d1
Message:

Updates the new interface to be more complete

This should work around any issues with systems without thread support.
This still remains compatible with existing code.
Examples/tools/tests still need to be updated to make use of the new interface.
And tests also need to be updated.
Adds debug memory stats as an option to configure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • m4/attributes.m4

    r9b42f3e r4007dbb  
    154154])
    155155
     156AC_DEFUN([gcc_TLS],
     157[
     158  HAVE_TLS=0
     159  if test -n "$CC"; then
     160    AC_CACHE_CHECK([if compiler supports TLS __thread],
     161      [lt_cv_attribute_tls],
     162      [
     163       AC_COMPILE_IFELSE([AC_LANG_SOURCE(
     164         [static __thread int apples;])],
     165         [lt_cv_attribute_tls=yes],
     166         [lt_cv_attribute_tls=no]
     167       )
     168      ])
     169    if test x$lt_cv_attribute_tls = xyes; then
     170      HAVE_TLS=1
     171    fi
     172  fi
     173  AC_SUBST([HAVE_TLS])
     174  AC_DEFINE_UNQUOTED([HAVE_TLS], [$HAVE_TLS],
     175    [Define to 1 or 0, depending on whether the compiler supports tls via __thread.])
     176])
    156177
Note: See TracChangeset for help on using the changeset viewer.