Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: c0d943d4e8
Fetching contributors…

Cannot retrieve contributors at this time

62 lines (50 sloc) 1.613 kB
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_INIT([libteam], [0.1], [jpirko@redhat.com])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
#m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)], [])
AM_PROG_AR
AC_SUBST(LIBTEAM_CURRENT, 0)
AC_SUBST(LIBTEAM_REVISION, 0)
AC_SUBST(LIBTEAM_AGE, 0)
CFLAGS="$CFLAGS -Wall -Werror"
# Checks for programs.
AC_PROG_CC
LT_INIT
PKG_CHECK_MODULES([LIBNL], [libnl-3.0 libnl-genl-3.0 libnl-cli-3.0])
PKG_CHECK_MODULES([LIBDAEMON], [libdaemon])
PKG_CHECK_MODULES([JANSSON], [jansson])
PKG_CHECK_MODULES([DBUS], [dbus-1])
# Checks for header files.
AC_CHECK_HEADERS([stdint.h stdlib.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
# Checks for library functions.
AC_FUNC_MALLOC
AC_ARG_ENABLE([logging],
AS_HELP_STRING([--disable-logging], [disable system logging @<:@default=enabled@:>@]),
[], enable_logging=yes)
AS_IF([test "x$enable_logging" = "xyes"], [
AC_DEFINE(ENABLE_LOGGING, [1], [System logging.])
])
AC_ARG_ENABLE([debug],
AS_HELP_STRING([--enable-debug], [enable debug messages @<:@default=disabled@:>@]),
[], [enable_debug=no])
AS_IF([test "x$enable_debug" = "xyes"], [
AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.])
])
AC_CONFIG_FILES([Makefile
include/Makefile \
lib/Makefile \
src/Makefile \
teamd/Makefile \
man/Makefile \
lib/libteam.pc \
binding/Makefile \
binding/python/Makefile \
binding/python/setup.py \
binding/python/team/Makefile \
binding/python/team/capi.i \
examples/Makefile])
AC_OUTPUT
Jump to Line
Something went wrong with that request. Please try again.