Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Kea
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastian Schrader
Kea
Commits
5039ad2b
Commit
5039ad2b
authored
Nov 02, 2016
by
Tomek Mrugalski
🛰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[5027] Glue added in configure.ac/Makefile.am for premium content.
parent
d3682634
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletion
+36
-1
Makefile.am
Makefile.am
+2
-1
configure.ac
configure.ac
+34
-0
No files found.
Makefile.am
View file @
5039ad2b
...
...
@@ -2,7 +2,8 @@ ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS}
# ^^^^^^^^ This has to be the first line and cannot come later in this
# Makefile.am due to some bork in some versions of autotools.
SUBDIRS
=
compatcheck tools doc
.
ext src m4macros
SUBDIRS
=
compatcheck tools doc
.
ext src m4macros @PREMIUM_DIR@
USE_LCOV
=
@USE_LCOV@
LCOV
=
@LCOV@
GENHTML
=
@GENHTML@
...
...
configure.ac
View file @
5039ad2b
...
...
@@ -72,6 +72,14 @@ AC_ARG_ENABLE([debug],
AM_CONDITIONAL([DEBUG_ENABLED], [test x$debug_enabled = xyes])
AM_COND_IF([DEBUG_ENABLED], [AC_DEFINE([ENABLE_DEBUG], [1], [Enable low-performing debugging facilities?])])
PREMIUM_DIR =
if test -d "${srcdir}/premium"; then
PREMIUM_DIR=premium
AC_CONFIG_SUBDIRS([premium])
fi
AC_SUBST(PREMIUM_DIR)
# Libtool configuration
#
...
...
@@ -1629,6 +1637,21 @@ AC_CONFIG_FILES([compatcheck/Makefile
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(found!)
else
AC_MSG_RESULT(not found)
fi
AC_OUTPUT
dnl Print the results
...
...
@@ -1650,6 +1673,17 @@ Package:
Extended version:${EXTENDED_VERSION}
OS Family: ${OS_TYPE}
Using GNU sed: ${GNU_SED}
END
if test "$PREMIUM" != ""; then
cat >> config.report << END
Premium package: Found
END
else
cat >> config.report << END
Premium package: Not found
END
fi
cat >> config.report << END
C++ Compiler:
CXX: ${CXX}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment