summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2010-11-26 15:20:54 -0500
committerJeff Garzik <jgarzik@redhat.com>2010-11-26 15:20:54 -0500
commit59f1fb2ec87b4a8e3d6608b405b6aa649b89db95 (patch)
tree68b60777ae09f5d1abb9de804f6f91d7346b714a /configure.ac
parent5d1a45294b4dcc1ca7e1e2c1243ee4904f0f53fe (diff)
Link with pthreads lib, if present. Remove GNU-specific asprintf usage.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 7ae9888..ce4272b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,11 +12,13 @@ dnl Checks for programs
AC_PROG_CC
AC_PROG_GCC_TRADITIONAL
AM_PROG_CC_C_O
+AC_PROG_RANLIB
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_LIB(jansson, json_loads, JANSSON_LIBS=-ljansson)
+AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIBS=-lpthread)
PKG_PROG_PKG_CONFIG()
@@ -24,6 +26,7 @@ LIBCURL_CHECK_CONFIG(, 7.10.1, ,
[AC_MSG_ERROR([Missing required libcurl >= 7.10.1])])
AC_SUBST(JANSSON_LIBS)
+AC_SUBST(PTHREAD_LIBS)
AC_CONFIG_FILES([
Makefile