Modify libcurl options for dealing with SSL and redirects.
[platform/upstream/corewatcher.git] / configure.ac
1 AC_PREREQ([2.68])
2 AC_INIT([corewatcher],[0.9.11],[william.douglas@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])
7
8 # Checks for programs.
9 AC_PROG_CC
10 AM_PROG_CC_C_O
11 AC_PROG_INSTALL
12
13 # PkgConfig tests
14 PKG_CHECK_MODULES([glib], [glib-2.0 gthread-2.0])
15 PKG_CHECK_MODULES([curl], [libcurl])
16 PKG_CHECK_MODULES([systemd_journal], [libsystemd-journal])
17
18 # Checks for header files.
19 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])
20
21 # Checks for typedefs, structures, and compiler characteristics.
22 AC_TYPE_SIZE_T
23 AC_TYPE_SSIZE_T
24
25 # Checks for library functions.
26 AC_FUNC_MALLOC
27
28 AC_OUTPUT(src/corewatcher.service)
29 AC_MSG_RESULT([
30         corewatcher $VERSION
31         ========
32
33         prefix:                 ${prefix}
34         sysconfdir:             ${sysconfdir}
35         exec_prefix:            ${exec_prefix}
36         bindir:                 ${bindir}
37         sbindir:                ${sbindir}
38         datarootdir:            ${datarootdir}
39         mandir:                 ${mandir}
40
41         compiler:               ${CC}
42         cflags:                 ${CFLAGS}
43         ldflags:                ${LDFLAGS}
44 ])