summaryrefslogtreecommitdiffabout
path: root/configure.ac
authorMichael Krelin <hacker@klever.net>2004-07-09 16:48:52 (UTC)
committer Michael Krelin <hacker@klever.net>2004-07-09 16:48:52 (UTC)
commit9148dac885c0325636c2d33715ba248371706d0d (patch) (side-by-side diff)
treefd95d60f6fd051c3ad46a966882e2be48440452f /configure.ac
downloaddudki-9148dac885c0325636c2d33715ba248371706d0d.zip
dudki-9148dac885c0325636c2d33715ba248371706d0d.tar.gz
dudki-9148dac885c0325636c2d33715ba248371706d0d.tar.bz2
dudki: initial import into svn repository
Diffstat (limited to 'configure.ac') (more/less context) (show whitespace changes)
-rw-r--r--configure.ac38
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 @@
+AC_INIT([dudki], [0.0], [dudki-bugs@klever.net])
+AC_CONFIG_SRCDIR([src/dudki.cc])
+AC_CONFIG_HEADER([config.h])
+AM_INIT_AUTOMAKE([dist-bzip2])
+
+AC_PROG_CXX
+AC_PROG_CC
+
+AC_HEADER_SYS_WAIT
+AC_CHECK_HEADERS([syslog.h unistd.h getopt.h])
+
+AC_HEADER_STDBOOL
+AC_C_CONST
+AC_TYPE_UID_T
+AC_TYPE_PID_T
+
+AC_FUNC_FORK
+AC_HEADER_STDC
+AC_TYPE_SIGNAL
+AC_CHECK_FUNCS([dup2 strtol])
+AC_CHECK_FUNC([getopt_long],[
+ AC_DEFINE([HAVE_GETOPT_LONG],[1],[Define to make use of getopt_long])
+ AC_SUBST(HAVE_GETOPT_LONG,1)
+],[
+ AC_SUBST(HAVE_GETOPT_LONG,0)
+])
+
+PKG_CHECK_MODULES(DOTCONF,[dotconf],,[
+ AC_MSG_ERROR([no dotconf library found])
+])
+
+AC_CONFIG_FILES([
+ Makefile
+ src/Makefile
+ man/Makefile
+ man/dudki.8 man/dudki.conf.5
+])
+AC_OUTPUT