Bump changelog
[debian/gsimplecal.git] / configure.ac
1 AC_PREREQ([2.65])
2 AC_INIT([gsimplecal],
3         [0.9],
4         [https://github.com/dmedvinsky/gsimplecal/issues],
5         [gsimplecal],
6         [https://github.com/dmedvinsky/gsimplecal])
7
8 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
9
10 AC_CONFIG_SRCDIR([src/gsimplecal.cpp])
11
12 # Checks for programs.
13 AC_LANG([C++])
14 AC_PROG_CXX
15 AC_PROG_INSTALL
16 PKG_PROG_PKG_CONFIG
17
18 # Checks for libraries.
19 PKG_CHECK_MODULES([GTK2], [gtk+-2.0])
20 AC_SUBST(GTK2_CFLAGS)
21 AC_SUBST(GTK2_LIBS)
22
23 # Checks for header files.
24 AC_CHECK_HEADERS([iostream \
25                   string \
26                   sstream \
27                   fstream \
28                   vector \
29                   cstdlib \
30                   stdlib.h \
31                   sys/time.h \
32                   sys/types.h \
33                   sys/ipc.h \
34                   sys/sem.h \
35                   signal.h \
36                   limits.h])
37
38 # Checks for typedefs, structures, and compiler characteristics.
39
40 # Checks for library functions.
41 AC_CHECK_FUNCS([atexit \
42                 gettimeofday \
43                 setenv \
44                 signal \
45                 kill \
46                 semget \
47                 semctl \
48                 ftok \
49                 readlink \
50                 fork \
51                 execl])
52
53 # Flags
54 AM_CPPFLAGS="-Wall"
55 AM_LDFLAGS="-Wl,--as-needed"
56 AC_SUBST(AM_CFLAGS)
57 AC_SUBST(AM_LDFLAGS)
58
59 AC_CONFIG_FILES([Makefile
60                  doc/Makefile
61                  src/Makefile])
62
63 AC_OUTPUT