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
fa30a069
Commit
fa30a069
authored
Sep 16, 2018
by
Francis Dupont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[65-libyang-config-build] Updated configure and top Makefile
parent
a388c647
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
Makefile.am
Makefile.am
+4
-0
configure.ac
configure.ac
+8
-1
tools/sysrepo_config
tools/sysrepo_config
+8
-1
No files found.
Makefile.am
View file @
fa30a069
...
...
@@ -14,6 +14,7 @@ DISTCHECK_LOG4CPLUS_CONFIGURE_FLAG=@DISTCHECK_LOG4CPLUS_CONFIGURE_FLAG@
DISTCHECK_KEA_SHELL_CONFIGURE_FLAG
=
@DISTCHECK_KEA_SHELL_CONFIGURE_FLAG@
DISTCHECK_PREMIUM_CONFIGURE_FLAG
=
@DISTCHECK_PREMIUM_CONFIGURE_FLAG@
DISTCHECK_CONTRIB_CONFIGURE_FLAG
=
@DISTCHECK_CONTRIB_CONFIGURE_FLAG@
DISTCHECK_SYSREPO_CONFIGURE_FLAG
=
@DISTCHECK_SYSREPO_CONFIGURE_FLAG@
OVERALL_COVERAGE_DIR
=
$(abs_top_builddir)
/coverage-cpp-html
...
...
@@ -43,6 +44,9 @@ DISTCHECK_CONFIGURE_FLAGS += $(DISTCHECK_PREMIUM_CONFIGURE_FLAG)
# Keep the contrib config
DISTCHECK_CONFIGURE_FLAGS
+=
$(DISTCHECK_CONTRIB_CONFIGURE_FLAG)
# keerp the sysrepo config
DISTCHECK_CONFIGURE_FLAGS
+=
$(DISTCHECK_SYSREPO_CONFIGURE_FLAG)
dist_doc_DATA
=
AUTHORS COPYING ChangeLog README
.PHONY
:
check-valgrind check-valgrind-suppress
...
...
configure.ac
View file @
fa30a069
...
...
@@ -863,6 +863,7 @@ fi
# ... and at the shell level, so Makefile.am can take action depending on this.
AM_CONDITIONAL(HAVE_CQL, test "$CQL_CONFIG" != "")
DISTCHECK_SYSREPO_CONFIGURE_FLAG=
sysrepo_config="no"
AC_ARG_WITH([sysrepo],
AC_HELP_STRING([--with-sysrepo=PATH],
...
...
@@ -871,13 +872,16 @@ AC_ARG_WITH([sysrepo],
if test "${sysrepo_config}" = "yes" ; then
SYSREPO_CONFIG="$PKG_CONFIG"
DISTCHECK_SYSREPO_CONFIGURE_FLAG="-with-sysrepo=${sysrepo_config}"
elif test "${sysrepo_config}" != "no" ; then
SYSREPO_CONFIG="${sysrepo_config}"
DISTCHECK_SYSREPO_CONFIGURE_FLAG="-with-sysrepo=${sysrepo_config}"
fi
AC_SUBST(DISTCHECK_SYSREPO_CONFIGURE_FLAG)
if test "$SYSREPO_CONFIG" != "" ; then
if test -d "$SYSREPO_CONFIG" -o ! -x "$SYSREPO_CONFIG" ; then
AC_MSG_ERROR([--with-sysrepo should point to a sysrepo_config program])
AC_MSG_ERROR([--with-sysrepo should point to a
pkg-config or
sysrepo_config program])
fi
# Let's get the configuration environment for pure Sysrepo (written in C) first
...
...
@@ -885,6 +889,7 @@ if test "$SYSREPO_CONFIG" != "" ; then
SYSREPO_CPPFLAGS="$SYSREPO_INCLUDEDIR `$SYSREPO_CONFIG --cflags-only-other libsysrepo`"
SYSREPO_LIBS="`$SYSREPO_CONFIG --libs libsysrepo`"
SYSREPO_VERSION=`$SYSREPO_CONFIG --modversion libsysrepo`
SYSREPO_REPO=`$SYSREPO_CONFIG --variable=SR_REPOSITORY_LOC libsysrepo`
# Now get the environment for C++ bindings for Sysrepo.
SYSREPOCPP_INCLUDEDIR=`$SYSREPO_CONFIG --cflags-only-I libSysrepo-cpp`
...
...
@@ -908,6 +913,7 @@ if test "$SYSREPO_CONFIG" != "" ; then
AC_SUBST(SYSREPO_CPPFLAGS)
AC_SUBST(SYSREPO_LIBS)
AC_SUBST(SYSREPO_REPO)
# Check that a simple program using Sysrepo functions can compile and link.
CPPFLAGS_SAVED="$CPPFLAGS"
...
...
@@ -1810,6 +1816,7 @@ Sysrepo:
SYSREPO_VERSION: ${SYSREPO_VERSION}
SYSREPO_CPPFLAGS: ${SYSREPO_CPPFLAGS}
SYSREPO_LIBS: ${SYSREPO_LIBS}
SYSREPO_REPO: ${SYSREPO_REPO}
END
else
cat >> config.report << END
...
...
tools/sysrepo_config
View file @
fa30a069
...
...
@@ -39,6 +39,8 @@ then
echo
" get lib path"
echo
"--modversion"
echo
" get version"
echo
"--variable=SR_REPOSITORY_LOC"
echo
" get repo path"
echo
"libraries:"
echo
" libsysrepo"
exit
0
...
...
@@ -67,7 +69,8 @@ then
fi
if
[
$1
==
"--libs"
]
then
echo
"-L
${
SYSREPO_PATH
}
/build/src -L
${
SYSREPO_PATH
}
/build/swig -L
$YANG_LIBRARY_PATH
-l:
${
sysrepo_lib
}
.a -lSysrepo-cpp -lyang -pthread -lpcre -lev -lprotobuf -lavl -lprotobuf-c"
# Earlier versions also required -lprotobuf, but it is no longer needed.
echo
"-L
${
SYSREPO_PATH
}
/build/src -L
${
SYSREPO_PATH
}
/build/swig -L
$YANG_LIBRARY_PATH
-l:
${
sysrepo_lib
}
.a -lSysrepo-cpp -lyang -pthread -lpcre -lev -lavl -lprotobuf-c"
exit
0
fi
if
[
$1
==
"--modversion"
]
...
...
@@ -78,5 +81,9 @@ then
echo
"
${
MAJOR
}
.
${
MINOR
}
.
${
PATCH
}
"
exit
0
fi
if
[
$1
==
"--variable=SR_REPOSITORY_LOC"
]
then
echo
"
${
SYSREPO_PATH
}
/build/repository"
fi
echo
"wrong parameter"
echo
"run:
\`
$0
--help
\`
for more help"
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