Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
5ad1fe77
Commit
5ad1fe77
authored
Jan 26, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m4/mpd_depends.m4: print warning when disabling the feature
parent
8d4ed1e9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
configure.ac
configure.ac
+2
-2
mpd_auto.m4
m4/mpd_auto.m4
+1
-1
mpd_depends.m4
m4/mpd_depends.m4
+3
-2
No files found.
configure.ac
View file @
5ad1fe77
...
@@ -552,7 +552,7 @@ dnl -------------------------------- libmpdclient ------------------------------
...
@@ -552,7 +552,7 @@ dnl -------------------------------- libmpdclient ------------------------------
MPD_ENABLE_AUTO_PKG_DEPENDS(libmpdclient, LIBMPDCLIENT,
MPD_ENABLE_AUTO_PKG_DEPENDS(libmpdclient, LIBMPDCLIENT,
[libmpdclient >= 2.2],
[libmpdclient >= 2.2],
[MPD client library], [libmpdclient not found], [],
[MPD client library], [libmpdclient not found], [],
[enable_database], [
Cannot use --enable-libmpdclient with --disable-database
])
[enable_database], [
Database support is disabled
])
dnl -------------------------------- expat --------------------------------
dnl -------------------------------- expat --------------------------------
MPD_ENABLE_AUTO_PKG(expat, EXPAT, [expat],
MPD_ENABLE_AUTO_PKG(expat, EXPAT, [expat],
...
@@ -807,7 +807,7 @@ fi
...
@@ -807,7 +807,7 @@ fi
MPD_ENABLE_AUTO_PKG_DEPENDS(upnp, UPNP, [libupnp],
MPD_ENABLE_AUTO_PKG_DEPENDS(upnp, UPNP, [libupnp],
[UPnP client support], [libupnp not found], [],
[UPnP client support], [libupnp not found], [],
[enable_database], [
Cannot use --enable-upnp with --disable-database
])
[enable_database], [
Database support is disabled
])
dnl --------------------------------- libzzip ---------------------------------
dnl --------------------------------- libzzip ---------------------------------
MPD_ENABLE_AUTO_PKG(zzip, ZZIP, [zziplib >= 0.13],
MPD_ENABLE_AUTO_PKG(zzip, ZZIP, [zziplib >= 0.13],
...
...
m4/mpd_auto.m4
View file @
5ad1fe77
...
@@ -181,5 +181,5 @@ dnl
...
@@ -181,5 +181,5 @@ dnl
dnl Parameters: varname1, varname2, pkg, description, errmsg, default, dep_variable, dep_errmsg
dnl Parameters: varname1, varname2, pkg, description, errmsg, default, dep_variable, dep_errmsg
AC_DEFUN([MPD_ENABLE_AUTO_PKG_DEPENDS], [
AC_DEFUN([MPD_ENABLE_AUTO_PKG_DEPENDS], [
MPD_ENABLE_AUTO_PKG([$1], [$2], [$3], [$4], [$5], [$6],
MPD_ENABLE_AUTO_PKG([$1], [$2], [$3], [$4], [$5], [$6],
[MPD_DEPENDS([enable_$1], [$7], [$8])])
[MPD_DEPENDS([enable_$1], [$7], [$
4], [$
8])])
])
])
m4/mpd_depends.m4
View file @
5ad1fe77
...
@@ -2,13 +2,14 @@ dnl Declare a dependency of one feature on another. If the depending
...
@@ -2,13 +2,14 @@ dnl Declare a dependency of one feature on another. If the depending
dnl feature is disabled, the former must be disabled as well. If the
dnl feature is disabled, the former must be disabled as well. If the
dnl former was explicitly enabled, abort with an error message.
dnl former was explicitly enabled, abort with an error message.
dnl
dnl
dnl Parameters: varname1, varname2 (=dependency), errmsg
dnl Parameters: varname1, varname2 (=dependency),
description,
errmsg
AC_DEFUN([MPD_DEPENDS], [
AC_DEFUN([MPD_DEPENDS], [
if test x$$2 = xno; then
if test x$$2 = xno; then
if test x$$1 = xauto; then
if test x$$1 = xauto; then
AC_MSG_WARN([$4: disabling $3])
$1=no
$1=no
elif test x$$1 = xyes; then
elif test x$$1 = xyes; then
AC_MSG_ERROR([$3])
AC_MSG_ERROR([$3
: $4
])
fi
fi
fi
fi
])
])
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