[libbluray-devel] commit: configure.ac: require pthread (used in register.c) (hpi1 )

git at videolan.org git at videolan.org
Sat Aug 14 12:19:46 CEST 2010


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sat Aug 14 13:19:11 2010 +0300| [2dbd938201b0ce02b2902ddb0aca7590956f3408] | committer: hpi1 

configure.ac: require pthread (used in register.c)

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=2dbd938201b0ce02b2902ddb0aca7590956f3408
---

 configure.ac |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 83b39fd..b9b01ba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,6 +71,7 @@ AC_TYPE_SIGNAL
 AC_CHECK_HEADERS([stdarg.h sys/types.h dirent.h errno.h libgen.h malloc.h])
 AC_CHECK_HEADERS([stdlib.h mntent.h linux/cdrom.h inttypes.h])
 AC_CHECK_HEADERS([sys/time.h time.h])
+AC_CHECK_HEADERS(pthread.h,, [AC_MSG_ERROR([pthread.h required])])
 
 # required structures
 AC_STRUCT_DIRENT_D_TYPE
@@ -81,6 +82,10 @@ AC_SYS_LARGEFILE
 # required functions
 AC_CHECK_FUNC([snprintf],, [AC_MSG_ERROR($function_not_found)])
 
+# required libraries
+# pthreads
+AC_CHECK_LIB(pthread, pthread_create, [LIBS="$LIBS -lpthread"])
+
 # dlopen check
 if [[ $use_dlopen_crypto_libs = "auto" ]]; then
   AC_CHECK_LIB([dl], [dlopen],



More information about the libbluray-devel mailing list