X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=configure.ac;h=22f6a8cd0f488dd24b6084655876ddbdd2f50fe2;hb=76b85b03426aa14483c2243430869ad7a490508b;hp=897f40e382097dad7eab2f3765f73bacfbf3b347;hpb=9cd75dc72c567208d839e73ee6e4ecf484a08b7c;p=psensor.git diff --git a/configure.ac b/configure.ac index 897f40e..22f6a8c 100644 --- a/configure.ac +++ b/configure.ac @@ -2,11 +2,11 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.64]) -AC_INIT([psensor], [0.7.0.x],[jeanfi@gmail.com],[psensor],[http://wpitchoune.net/psensor]) +AC_INIT([psensor], [0.8.0.x],[jeanfi@gmail.com],[psensor],[http://wpitchoune.net/psensor]) AM_INIT_AUTOMAKE([-Wall -Werror gnu]) -AC_CONFIG_SRCDIR([src/compat.h]) +AC_CONFIG_SRCDIR([src/ui.c]) AC_CONFIG_HEADERS([config.h]) # Checks for programs. @@ -43,6 +43,11 @@ AM_GCONF_SOURCE_2 ############### common +# Checks pthread +AC_CHECK_LIB(pthread, pthread_create) +PTHREAD_LIBS=-pthread +AC_SUBST(PTHREAD_LIBS) + # Checks sensors, required by psensor and psensor-server AC_CHECK_LIB(sensors, sensors_init) AC_CHECK_HEADERS([sensors/sensors.h sensors/errors.h]) @@ -237,6 +242,7 @@ AC_SUBST(GTOP_LIBS) AC_CONFIG_FILES([ Makefile + doc/Makefile src/Makefile src/glade/Makefile src/lib/Makefile @@ -259,4 +265,7 @@ AC_CONFIG_FILES([ AC_CHECK_PROGS([HELP2MAN], [help2man]) +AC_CHECK_PROG(HAVE_CPPCHECK, cppcheck, yes) +AM_CONDITIONAL(CPPCHECK, test -n "$HAVE_CPPCHECK") + AC_OUTPUT