From 9b46520ae18fea3e1dab28cb36786ebe95f81546 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 5 Sep 2010 10:55:14 -0400 Subject: [PATCH] Autoconf - Added a check for pthread_create, which should trigger inclusion of '-lpthread' on the link command line. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 329c3827d..d85ee4b32 100644 --- a/configure.ac +++ b/configure.ac @@ -169,6 +169,10 @@ AC_CONFIG_SRCDIR([src/main.cpp]) AC_CONFIG_HEADER([auto.h]) +# Checks for libraries. +AC_CHECK_LIB(pthread,pthread_create) + + # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([stdlib.h sys/file.h sys/stat.h sys/time.h unistd.h])