1
dnl Process this file with autoconf to produce a configure script.
4
AM_CONFIG_HEADER(config.h)
6
AM_INIT_AUTOMAKE(xsensors, 0.70)
16
dnl Checks for the sensors library.
17
AC_CHECK_LIB(sensors, sensors_init,[],
18
AC_MSG_ERROR(You need the sensors library))
20
AC_CHECK_HEADERS([sensors/sensors.h sensors/error.h])
22
AM_PATH_GLIB_2_0(2.0.0,,AC_MSG_ERROR([
23
*** GLib 2.0 is required to build xsensors; please make sure you have the GLib
24
*** development headers installed. The latest version of GLib is
25
*** always available at http://www.gtk.org/.]))
26
AM_PATH_GTK_2_0(2.0.0,,AC_MSG_ERROR([
27
*** GTK+ 2.0 is required to build xsensors; please make sure you have the GTK+
28
*** development headers installed. The latest version of GTK+ is
29
*** always available at http://www.gtk.org/.]))
31
XSENSORS_CFLAGS="`pkg-config --cflags gtk+-2.0` -Werror"
32
XSENSORS_LIBS="`pkg-config --libs gtk+-2.0`"
33
AC_SUBST(XSENSORS_CFLAGS)
34
AC_SUBST(XSENSORS_LIBS)
36
AC_DEFINE_UNQUOTED(XSENSORS_ICONDIR, "${prefix}/share/pixmaps/xsensors")