regenerated build file
[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.x],[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 # Intl support
20 AM_GNU_GETTEXT_VERSION([0.18.1])
21 AM_GNU_GETTEXT([external])
22
23 # Checks for header files.
24 AC_PATH_X
25 AC_CHECK_HEADERS([getopt.h stdio.h stdlib.h string.h sys/stat.h sys/time.h sys/types.h time.h])
26
27 # Checks CURL 
28 PKG_CHECK_MODULES(CURL, libcurl )
29 AC_SUBST(CURL_CFLAGS)
30 AC_SUBST(CURL_LIBS)
31
32 # Checks JSON 
33 PKG_CHECK_MODULES(JSON, json )
34 AC_SUBST(JSON_CFLAGS)
35 AC_SUBST(JSON_LIBS)
36
37 AC_CONFIG_FILES([ po/Makefile.in
38  Makefile
39  src/Makefile
40  tests/Makefile
41  www/footer.tpl
42  www/Makefile 
43 ])
44
45 AC_CHECK_PROGS([HELP2MAN], [help2man])
46
47 AC_OUTPUT