X-Git-Url: http://git.ipfire.org/?p=collecty.git;a=blobdiff_plain;f=configure.ac;h=9b540fd6f15f6f1657afe0c564a8c91eaeedc255;hp=0d943e3a65761013c48b31c750c5383f89b0300e;hb=af16115b791aec35bcffc3d47c8e98b1bcaa1ccd;hpb=08e390fce99ecea91d0206471544aca1527111e3 diff --git a/configure.ac b/configure.ac index 0d943e3..9b540fd 100644 --- a/configure.ac +++ b/configure.ac @@ -21,7 +21,7 @@ AC_PREREQ([2.64]) AC_INIT([collecty], - [002], + [003], [info@ipfire.org], [collecty], [http://git.ipfire.org/?p=oddments/collecty.git;a=summary]) @@ -41,6 +41,8 @@ AM_INIT_AUTOMAKE([ subdir-objects ]) AM_SILENT_RULES([yes]) +LT_PREREQ(2.2) +LT_INIT([disable-static]) IT_PROG_INTLTOOL([0.40.0]) @@ -51,13 +53,35 @@ AC_PROG_LN_S AC_PROG_MKDIR_P AC_PROG_SED +# C Compiler +AC_PROG_CC +AC_PROG_CC_C99 +AC_PROG_CC_C_O +AC_PROG_GCC_TRADITIONAL + AC_PATH_PROG([XSLTPROC], [xsltproc]) +PKG_CHECK_MODULES([OPING], [liboping]) + # Python -AM_PATH_PYTHON([2.7]) +AM_PATH_PYTHON([3.2]) +PKG_CHECK_MODULES([PYTHON], [python-${PYTHON_VERSION}]) + +# libatasmart +PKG_CHECK_MODULES([LIBATASMART], [libatasmart >= 0.19]) save_LIBS="$LIBS" +# lm-sensors +AC_CHECK_HEADERS([sensors/sensors.h sensors/errors.h]) + +LIBS= +AC_CHECK_LIB(sensors, sensors_init, [], [AC_MSG_ERROR([*** sensors library not found])]) +SENSORS_LIBS="$LIBS" +AC_SUBST(SENSORS_LIBS) + +LIBS="$save_LIBS" + # pkg-config PKG_PROG_PKG_CONFIG # This makes sure pkg.m4 is available. @@ -89,7 +113,7 @@ AC_ARG_WITH([dbussystemservicedir], ) AS_IF([test "x$with_systemd" != "xno"], - [PKG_CHECK_MODULES(systemd, [libsystemd-daemon], + [PKG_CHECK_MODULES(systemd, [libsystemd], [have_systemd=yes], [have_systemd=no])], [have_systemd=no] ) @@ -124,6 +148,7 @@ AC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir]) AC_CONFIG_FILES([ Makefile po/Makefile.in + src/collecty/__version__.py ]) AC_OUTPUT