-rw-r--r-- | configure.ac | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..8a2a10b --- a/dev/null +++ b/configure.ac | |||
@@ -0,0 +1,38 @@ | |||
1 | AC_INIT([dudki], [0.0], [dudki-bugs@klever.net]) | ||
2 | AC_CONFIG_SRCDIR([src/dudki.cc]) | ||
3 | AC_CONFIG_HEADER([config.h]) | ||
4 | AM_INIT_AUTOMAKE([dist-bzip2]) | ||
5 | |||
6 | AC_PROG_CXX | ||
7 | AC_PROG_CC | ||
8 | |||
9 | AC_HEADER_SYS_WAIT | ||
10 | AC_CHECK_HEADERS([syslog.h unistd.h getopt.h]) | ||
11 | |||
12 | AC_HEADER_STDBOOL | ||
13 | AC_C_CONST | ||
14 | AC_TYPE_UID_T | ||
15 | AC_TYPE_PID_T | ||
16 | |||
17 | AC_FUNC_FORK | ||
18 | AC_HEADER_STDC | ||
19 | AC_TYPE_SIGNAL | ||
20 | AC_CHECK_FUNCS([dup2 strtol]) | ||
21 | AC_CHECK_FUNC([getopt_long],[ | ||
22 | AC_DEFINE([HAVE_GETOPT_LONG],[1],[Define to make use of getopt_long]) | ||
23 | AC_SUBST(HAVE_GETOPT_LONG,1) | ||
24 | ],[ | ||
25 | AC_SUBST(HAVE_GETOPT_LONG,0) | ||
26 | ]) | ||
27 | |||
28 | PKG_CHECK_MODULES(DOTCONF,[dotconf],,[ | ||
29 | AC_MSG_ERROR([no dotconf library found]) | ||
30 | ]) | ||
31 | |||
32 | AC_CONFIG_FILES([ | ||
33 | Makefile | ||
34 | src/Makefile | ||
35 | man/Makefile | ||
36 | man/dudki.8 man/dudki.conf.5 | ||
37 | ]) | ||
38 | AC_OUTPUT | ||