Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
7f802b62
Commit
7f802b62
authored
Mar 05, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove thread_local check, since we use pthread_* directly for now
parent
c2426bc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
19 deletions
+3
-19
configure.ac
configure.ac
+3
-19
No files found.
configure.ac
View file @
7f802b62
...
@@ -200,21 +200,6 @@ std::vector<std::future<int>> v;
...
@@ -200,21 +200,6 @@ std::vector<std::future<int>> v;
[have_std_future=no
[have_std_future=no
AC_MSG_RESULT([no])])
AC_MSG_RESULT([no])])
# Check that thread_local is available.
AC_MSG_CHECKING([whether thread_local is available])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
[[
]],
[[
thread_local int n;
]])],
[AC_DEFINE([HAVE_THREAD_LOCAL], [1],
[Define to 1 if you have the `thread_local`.])
have_thread_local=yes
AC_MSG_RESULT([yes])],
[have_thread_local=no
AC_MSG_RESULT([no])])
# Check that std::map::emplace is available for g++-4.7.
# Check that std::map::emplace is available for g++-4.7.
AC_MSG_CHECKING([whether std::map::emplace is available])
AC_MSG_CHECKING([whether std::map::emplace is available])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
...
@@ -631,11 +616,10 @@ if test "x$debug" != "xno"; then
...
@@ -631,11 +616,10 @@ if test "x$debug" != "xno"; then
fi
fi
enable_threads=yes
enable_threads=yes
# Some platform does not have working std::future
or thread_local. W
e
# Some platform does not have working std::future
. We disabl
e
#
disable
threading for those platforms.
# threading for those platforms.
if test "x$threads" != "xyes" ||
if test "x$threads" != "xyes" ||
test "x$have_std_future" != "xyes" ||
test "x$have_std_future" != "xyes"; then
test "x$have_thread_local" != "xyes"; then
enable_threads=no
enable_threads=no
AC_DEFINE([NOTHREADS], [1], [Define to 1 if you want to disable threads.])
AC_DEFINE([NOTHREADS], [1], [Define to 1 if you want to disable threads.])
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment