libaacs | branch: master | gates <[email protected]> | Sat Aug 21 14:23:45 
2010 -0400| [11542bc75ac203dc4e315cdf5cc8cbae6f22cc70] | committer: gates 

Check for pthread.h and actually link with pthread lib.

> http://git.videolan.org/gitweb.cgi/libaacs.git/?a=commit;h=11542bc75ac203dc4e315cdf5cc8cbae6f22cc70
---

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

diff --git a/configure.ac b/configure.ac
index 10f6f36..b6a4e17 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,7 +47,7 @@ AC_TYPE_SIGNAL
 # required headers
 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([sys/time.h time.h pthread.h])
 
 # required structures
 AC_STRUCT_DIRENT_D_TYPE
@@ -58,6 +58,10 @@ AC_SYS_LARGEFILE
 # required functions
 AC_CHECK_FUNC([snprintf],, [AC_MSG_ERROR($function_not_found)])
 
+# pthread check
+AC_CHECK_LIB([pthread], [pthread_mutex_init],,
+  [AC_MSG_ERROR($library_not_found)])
+
 # gcrypt check
 AC_CHECK_LIB([gcrypt], [gcry_check_version],,
   [AC_MSG_ERROR($library_not_found)])

_______________________________________________
libaacs-devel mailing list
[email protected]
http://mailman.videolan.org/listinfo/libaacs-devel

Reply via email to