release 0.0.5
[ppastats.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.64])
5 AC_INIT([ppastats], [0.0.5],[jeanfi@gmail.com],[ppastats],[http://wpitchoune.net/ppastats])
6
7 AM_INIT_AUTOMAKE([-Wall -Werror gnu])
8
9 AC_CONFIG_SRCDIR([src/main.c])
10 AC_CONFIG_HEADERS([config.h])
11
12 # Checks for programs.
13 AC_PROG_CC
14 AM_PROG_CC_C_O
15
16 # Checks lib build
17 AC_PROG_RANLIB
18
19 # Checks for header files.
20 AC_PATH_X
21 AC_CHECK_HEADERS([getopt.h stdio.h stdlib.h string.h sys/stat.h sys/time.h sys/types.h time.h])
22
23 # Checks CURL 
24 PKG_CHECK_MODULES(CURL, libcurl )
25 AC_SUBST(CURL_CFLAGS)
26 AC_SUBST(CURL_LIBS)
27
28 # Checks JSON 
29 PKG_CHECK_MODULES(JSON, json )
30 AC_SUBST(JSON_CFLAGS)
31 AC_SUBST(JSON_LIBS)
32
33 AC_CONFIG_FILES([
34  Makefile
35  src/Makefile
36  tests/Makefile
37  www/Makefile
38 ])
39
40 AC_CHECK_PROGS([HELP2MAN], [help2man])
41
42 AC_OUTPUT