Skip to content

Commit 11a77f7

Browse files
Merge pull request #6363 from dgarske/threadlocal
Add option to support disabling thread local storage
2 parents 58b9963 + ceeda82 commit 11a77f7

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

configure.ac

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,20 @@ then
159159
output_objdir=.
160160
fi
161161

162+
162163
# Thread local storage
163-
AX_TLS([thread_ls_on=yes],[thread_ls_on=no])
164-
AS_IF([test "x$thread_ls_on" = "xyes"],[AM_CFLAGS="$AM_CFLAGS -DHAVE_THREAD_LS"])
164+
thread_ls_on="no"
165+
AC_ARG_ENABLE([threadlocal],
166+
[AS_HELP_STRING([--enable-threadlocal],[Enable thread local support (default: enabled)])],
167+
[ ENABLED_THREADLOCAL=$enableval ],
168+
[ ENABLED_THREADLOCAL=yes ]
169+
)
170+
if test "$ENABLED_THREADLOCAL" = "yes"
171+
then
172+
AX_TLS([thread_ls_on=yes],[thread_ls_on=no])
173+
AS_IF([test "x$thread_ls_on" = "xyes"],[AM_CFLAGS="$AM_CFLAGS -DHAVE_THREAD_LS"])
174+
fi
175+
165176

166177
# DEBUG
167178
AX_DEBUG

0 commit comments

Comments
 (0)