mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-01-26 01:44:55 +01:00
autotools: check for pthread library
This commit is contained in:
parent
f3a6302866
commit
932d6a6fb2
@ -26,6 +26,11 @@ AC_CONFIG_MACRO_DIR([m4])
|
|||||||
dnl checks for header files
|
dnl checks for header files
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
AC_CHECK_HEADERS(sys/types.h)
|
AC_CHECK_HEADERS(sys/types.h)
|
||||||
|
AC_CHECK_HEADERS(pthread.h,, [AC_MSG_ERROR([pthread.h required])])
|
||||||
|
|
||||||
|
dnl checks for required libraries
|
||||||
|
dnl pthreads
|
||||||
|
AC_CHECK_LIB(pthread, pthread_create, [LIBS="$LIBS -lpthread"])
|
||||||
|
|
||||||
# The following test is taken from WebKit's webkit.m4
|
# The following test is taken from WebKit's webkit.m4
|
||||||
saved_CFLAGS="$CFLAGS"
|
saved_CFLAGS="$CFLAGS"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user