From: Jean-Philippe Orsini Date: Mon, 10 Sep 2012 08:48:59 +0000 (+0000) Subject: added pthread X-Git-Tag: v0.8.0.5~233 X-Git-Url: http://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=dea3babc4196a5f409838b758a9a3c0e5c18f720 added pthread --- diff --git a/configure.ac b/configure.ac index 897f40e..8088332 100644 --- a/configure.ac +++ b/configure.ac @@ -19,6 +19,7 @@ AC_PROG_RANLIB # Checks for header files. AC_PATH_X AC_CHECK_HEADERS([stdbool.h]) +AC_CHECK_HEADERS(pthread.h,, [AC_MSG_ERROR([pthread.h required])]) # Checks for typedefs, structures, and compiler characteristics. AC_TYPE_SIZE_T @@ -43,6 +44,9 @@ AM_GCONF_SOURCE_2 ############### common +# Checks pthread +AC_CHECK_LIB(pthread, pthread_create, [LIBS="$LIBS -lpthread"]) + # Checks sensors, required by psensor and psensor-server AC_CHECK_LIB(sensors, sensors_init) AC_CHECK_HEADERS([sensors/sensors.h sensors/errors.h])