Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
8a365169
Commit
8a365169
authored
Oct 22, 2010
by
Deike Kleberg
Browse files
Added pthread binding
parent
a011fbab
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
configure
View file @
8a365169
This diff is collapsed.
Click to expand it.
configure.ac
View file @
8a365169
...
...
@@ -52,6 +52,29 @@ AC_CHECK_FUNCS(isnan)
#
AC_CHECK_LIB(m, floor)
# ----------------------------------------------------------------------
# Checks for pthread library
AC_ARG_WITH([threads],
[AC_HELP_STRING([--with-threads=<directory>],
[Use the pthread library [default=yes]])],
[],
[with_threads=yes])
AS_CASE([$with_threads],
[no],[AC_MSG_CHECKING([for pthread library])
AC_MSG_RESULT([suppressed])],
[yes],[AC_CHECK_HEADERS(pthread.h)
AC_CHECK_LIB([pthread],[pthread_create])
AC_SUBST([THREADS_LDFLAGS],[" -lpthread"])
AC_SUBST([THREADS_INCLUDE],[""])],
[*],[THREADS_ROOT=$with_threads
LDFLAGS="$LDFLAGS -L$THREADS_ROOT/lib"
CPPFLAGS="$CPPFLAGS -I$THREADS_ROOT/include"
AC_CHECK_HEADERS(pthread.h)
AC_CHECK_LIB([pthread],[pthread_create])
AC_SUBST([THREADS_LDFLAGS],[" -L$THREADS_ROOT/lib -lpthread"])
AC_SUBST([THREADS_INCLUDE],[" -I$THREADS_ROOT/include"])])
# ----------------------------------------------------------------------
# Compile application with ZLIB library
#
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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