From 819a9ab222da57d6064a7cc9ad3e2c9ff0ef2f82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 9 Jul 2014 16:04:58 +0200 Subject: Imported Upstream version 0.6 --- configure.ac | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 configure.ac (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..e204cc5 --- /dev/null +++ b/configure.ac @@ -0,0 +1,65 @@ +# +# configure.ac +# +# Copyright (c) 2009-2013 EPIPE Communications. All rights reserved. +# +# This software is licensed under the terms and conditions of the FreeBSD +# License which is also known as the Simplified BSD License. You should have +# received a copy of that license along with this software. +# + +AC_PREREQ(2.65) +AC_INIT([downtimed],[0.6],[opensource@epipe.com],[],[http://dist.epipe.com/downtimed/]) +AC_CONFIG_SRCDIR([downtimed.c]) +AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_AUX_DIR([build-aux]) +AM_INIT_AUTOMAKE([foreign dist-xz]) + +AC_LANG([C]) +AC_PROG_CC +AC_PROG_CC_C99 +AM_PROG_CC_C_O + +AC_PROG_INSTALL +AC_PROG_SED +AC_PROG_MAKE_SET + +AC_C_BIGENDIAN + +AC_CHECK_HEADERS([sys/param.h paths.h utmpx.h]) + +# check sys/sysctl.h seperately, as it requires other headers on OpenBSD +AC_CHECK_HEADERS([sys/sysctl.h], [], [], +[[#if HAVE_SYS_PARAM_H +#include +#endif +]]) + +AC_TYPE_INT8_T +AC_TYPE_INT16_T +AC_TYPE_INT32_T +AC_TYPE_INT64_T +AC_TYPE_UINT8_T +AC_TYPE_UINT16_T +AC_TYPE_UINT32_T +AC_TYPE_UINT64_T + +AH_TEMPLATE([sig_atomic_t], [Define to int if does not define.]) +AC_CHECK_TYPES([sig_atomic_t], [], [AC_DEFINE([sig_atomic_t], [int])], [ +#include +]) + +AC_CHECK_FUNCS([daemon futimes flock]) + +AC_CHECK_DECL([facilitynames], [ +AC_DEFINE([HAVE_SYSLOG_FACILITYNAMES], [1], [Define to 1 if you have the declaration of 'facilitynames' in .]) +], [], [ +#include +#define SYSLOG_NAMES +#include +]) + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT + +# eof -- cgit v1.2.3