projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
da40a5a
)
Fix to prevent compiler optimizations
author
Alan T. DeKok
<aland@freeradius.org>
Wed, 14 Oct 2009 12:09:41 +0000
(14:09 +0200)
committer
Alan T. DeKok
<aland@freeradius.org>
Wed, 14 Oct 2009 12:09:41 +0000
(14:09 +0200)
from bug #30
acinclude.m4
patch
|
blob
|
history
diff --git
a/acinclude.m4
b/acinclude.m4
index
5043e2b
..
1dd8ad1
100644
(file)
--- a/
acinclude.m4
+++ b/
acinclude.m4
@@
-383,7
+383,7
@@
m4_pushdef([AC_OUTPUT],
AC_DEFUN([FR_TLS],
[
AC_MSG_CHECKING(for TLS)
AC_DEFUN([FR_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_RUN_IFELSE([AC_LANG_SOURCE([[ static __thread int val; int main(
int argc, char *argv[]) { return val = argc
; } ]])],[have_tls=yes],[have_tls=no],[have_tls=no ])
AC_MSG_RESULT($have_tls)
if test "$have_tls" = "yes"; then
AC_DEFINE([HAVE_THREAD_TLS],[1],[Define if the compiler supports __thread])
AC_MSG_RESULT($have_tls)
if test "$have_tls" = "yes"; then
AC_DEFINE([HAVE_THREAD_TLS],[1],[Define if the compiler supports __thread])