mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 14:35:29 +00:00
[master] Merged trac5400 (premium build)
This commit is contained in:
@@ -2,7 +2,7 @@ ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS}
|
|||||||
# ^^^^^^^^ This has to be the first line and cannot come later in this
|
# ^^^^^^^^ This has to be the first line and cannot come later in this
|
||||||
# Makefile.am due to some bork in some versions of autotools.
|
# Makefile.am due to some bork in some versions of autotools.
|
||||||
|
|
||||||
SUBDIRS = compatcheck tools doc . ext src m4macros @PREMIUM_DIR@
|
SUBDIRS = compatcheck tools doc . ext src m4macros @PREMIUM_DIR@ @CONTRIB_DIR@
|
||||||
|
|
||||||
USE_LCOV=@USE_LCOV@
|
USE_LCOV=@USE_LCOV@
|
||||||
LCOV=@LCOV@
|
LCOV=@LCOV@
|
||||||
|
72
configure.ac
72
configure.ac
@@ -1,7 +1,7 @@
|
|||||||
# -*- Autoconf -*-
|
# -*- Autoconf -*-
|
||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
AC_PREREQ([2.59])
|
AC_PREREQ([2.69])
|
||||||
|
|
||||||
# For released versions, this is in x.y.z format.
|
# For released versions, this is in x.y.z format.
|
||||||
# For GIT versions, this is x.y.z-git, where x.y.z denotes the software
|
# For GIT versions, this is x.y.z-git, where x.y.z denotes the software
|
||||||
@@ -72,13 +72,23 @@ AC_ARG_ENABLE([debug],
|
|||||||
AM_CONDITIONAL([DEBUG_ENABLED], [test x$debug_enabled = xyes])
|
AM_CONDITIONAL([DEBUG_ENABLED], [test x$debug_enabled = xyes])
|
||||||
AM_COND_IF([DEBUG_ENABLED], [AC_DEFINE([ENABLE_DEBUG], [1], [Enable low-performing debugging facilities?])])
|
AM_COND_IF([DEBUG_ENABLED], [AC_DEFINE([ENABLE_DEBUG], [1], [Enable low-performing debugging facilities?])])
|
||||||
|
|
||||||
|
# Include premium configuration
|
||||||
PREMIUM_DIR=
|
PREMIUM_DIR=
|
||||||
if test -d "${srcdir}/premium"; then
|
AC_DEFUN([AX_PREMIUM],[])
|
||||||
PREMIUM_DIR=premium
|
# m4_sinclude includes the file if it exists at autoreconf time
|
||||||
AC_CONFIG_SUBDIRS([premium])
|
m4_sinclude(premium/config.m4)
|
||||||
fi
|
m4_sinclude(premium/tier1.m4)
|
||||||
|
m4_sinclude(premium/tier2.m4)
|
||||||
AC_SUBST(PREMIUM_DIR)
|
AC_SUBST(PREMIUM_DIR)
|
||||||
|
AX_PREMIUM
|
||||||
|
|
||||||
|
# Include contrib configuration
|
||||||
|
# (currently only a provision copied from premium support)
|
||||||
|
CONTRIB_DIR=
|
||||||
|
AC_DEFUN([AX_CONTRIB],[])
|
||||||
|
m4_sinclude(contrib/config.m4)
|
||||||
|
AC_SUBST(CONTRIB_DIR)
|
||||||
|
AX_CONTRIB
|
||||||
|
|
||||||
# Libtool configuration
|
# Libtool configuration
|
||||||
#
|
#
|
||||||
@@ -1354,21 +1364,6 @@ AC_CONFIG_COMMANDS([permissions], [
|
|||||||
chmod +x tools/path_replacer.sh
|
chmod +x tools/path_replacer.sh
|
||||||
])
|
])
|
||||||
|
|
||||||
AM_CONDITIONAL(PREMIUM, test -d "$srcdir/premium/src")
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([if premium package is available])
|
|
||||||
if test -d "$srcdir/premium/src"; then
|
|
||||||
|
|
||||||
# Define it in the config.h, so C++ code could use it.
|
|
||||||
AC_DEFINE([PREMIUM], [1], [Kea-premium package found])
|
|
||||||
|
|
||||||
# Export it here, so code in configure could use it.
|
|
||||||
PREMIUM=1
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
dnl Print the results
|
dnl Print the results
|
||||||
@@ -1385,19 +1380,22 @@ cat > config.report << END
|
|||||||
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
|
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
|
||||||
|
|
||||||
Package:
|
Package:
|
||||||
Name: ${PACKAGE_NAME}
|
Name: ${PACKAGE_NAME}
|
||||||
Version: ${PACKAGE_VERSION}
|
Version: ${PACKAGE_VERSION}
|
||||||
Extended version:${EXTENDED_VERSION}
|
Extended version: ${EXTENDED_VERSION}
|
||||||
OS Family: ${OS_TYPE}
|
OS Family: ${OS_TYPE}
|
||||||
Using GNU sed: ${GNU_SED}
|
Using GNU sed: ${GNU_SED}
|
||||||
END
|
END
|
||||||
if test "$PREMIUM" != ""; then
|
if test "$PREMIUM" != ""; then
|
||||||
cat >> config.report << END
|
cat >> config.report << END
|
||||||
Premium package: yes
|
Premium package: yes
|
||||||
|
Tier1 Packages: ${TIER1_PACKAGES}
|
||||||
|
Tier2 Packages: ${TIER2_PACKAGES}
|
||||||
|
Included Packages: ${INCLUDED_PACKAGES}
|
||||||
END
|
END
|
||||||
else
|
else
|
||||||
cat >> config.report << END
|
cat >> config.report << END
|
||||||
Premium package: no
|
Premium package: no
|
||||||
END
|
END
|
||||||
fi
|
fi
|
||||||
cat >> config.report << END
|
cat >> config.report << END
|
||||||
@@ -1458,9 +1456,9 @@ ${CRYPTO_NAME}:
|
|||||||
${DISABLED_CRYPTO}: no
|
${DISABLED_CRYPTO}: no
|
||||||
|
|
||||||
Log4cplus:
|
Log4cplus:
|
||||||
LOG4CPLUS_VERSION: ${LOG4CPLUS_VERSION}
|
LOG4CPLUS_VERSION: ${LOG4CPLUS_VERSION}
|
||||||
LOG4CPLUS_INCLUDES: ${LOG4CPLUS_INCLUDES}
|
LOG4CPLUS_INCLUDES: ${LOG4CPLUS_INCLUDES}
|
||||||
LOG4CPLUS_LIBS: ${LOG4CPLUS_LIBS}
|
LOG4CPLUS_LIBS: ${LOG4CPLUS_LIBS}
|
||||||
|
|
||||||
Flex/bison:
|
Flex/bison:
|
||||||
FLEX: ${LEX}
|
FLEX: ${LEX}
|
||||||
@@ -1532,14 +1530,14 @@ fi
|
|||||||
cat >> config.report << END
|
cat >> config.report << END
|
||||||
|
|
||||||
Developer:
|
Developer:
|
||||||
Enable Debugging: $debug_enabled
|
Enable Debugging: $debug_enabled
|
||||||
Google Tests: $enable_gtest
|
Google Tests: $enable_gtest
|
||||||
Valgrind: $found_valgrind
|
Valgrind: $found_valgrind
|
||||||
C++ Code Coverage: $USE_LCOV
|
C++ Code Coverage: $USE_LCOV
|
||||||
Logger checks: $enable_logger_checks
|
Logger checks: $enable_logger_checks
|
||||||
Generate Documentation: $enable_generate_docs
|
Generate Documentation: $enable_generate_docs
|
||||||
Parser Generation: $enable_generate_parser
|
Parser Generation: $enable_generate_parser
|
||||||
Kea-shell: $enable_shell
|
Kea-shell: $enable_shell
|
||||||
|
|
||||||
END
|
END
|
||||||
|
|
||||||
|
@@ -33,12 +33,6 @@ lease_cmds_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) $(LOG4CPLUS_INC
|
|||||||
lease_cmds_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
lease_cmds_unittests_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LDFLAGS) $(GTEST_LDFLAGS)
|
||||||
|
|
||||||
lease_cmds_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
lease_cmds_unittests_CXXFLAGS = $(AM_CXXFLAGS)
|
||||||
if USE_CLANGPP
|
|
||||||
# This is to workaround unused variables tcout and tcerr in
|
|
||||||
# log4cplus's streams.h and unused parameters from some of the
|
|
||||||
# Boost headers.
|
|
||||||
lease_cmds_unittests_CXXFLAGS += -Wno-unused-parameter
|
|
||||||
endif
|
|
||||||
|
|
||||||
lease_cmds_unittests_LDADD = $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
lease_cmds_unittests_LDADD = $(top_builddir)/src/lib/dhcpsrv/libkea-dhcpsrv.la
|
||||||
lease_cmds_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
lease_cmds_unittests_LDADD += $(top_builddir)/src/lib/dhcp/libkea-dhcp++.la
|
||||||
|
Reference in New Issue
Block a user