2 AC_INIT([corewatcher],[0.9.1],[timothy.c.pepper@linux.intel.com])
3 AM_INIT_AUTOMAKE([foreign -Wall -Werror])
4 AC_CONFIG_FILES([Makefile src/Makefile])
5 AC_CONFIG_SRCDIR([src/corewatcher.c])
6 AC_CONFIG_HEADERS([config.h])
13 # Checks for libraries.
14 AC_CHECK_LIB([pthread], [pthread_mutex_unlock], , AC_MSG_ERROR([libpthread is required but was not found]))
17 PKG_CHECK_MODULES([GLIB2], [glib-2.0])
18 PKG_CHECK_MODULES([LIBPROXY], [libproxy-1.0])
19 PKG_CHECK_MODULES([LIBNOTIFY], [libnotify])
20 PKG_CHECK_MODULES([LIBCURL], [libcurl])
22 # Checks for header files.
23 AC_CHECK_HEADERS([stdio.h assert.h sys/types.h sys/stat.h dirent.h signal.h errno.h sched.h fcntl.h stdlib.h string.h sys/time.h syslog.h unistd.h asm/unistd.h])
25 # Checks for typedefs, structures, and compiler characteristics.
29 # Checks for library functions.
32 AC_OUTPUT(src/corewatcher.service)
38 sysconfdir: ${sysconfdir}
39 exec_prefix: ${exec_prefix}
42 datarootdir: ${datarootdir}