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
16f729eb
Commit
16f729eb
authored
Dec 08, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m4/mpd_auto.m4: fix displayed default value
Was hard-coded to "auto", and the macro parameter was ignored (in the help text).
parent
36f0bd43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
mpd_auto.m4
m4/mpd_auto.m4
+7
-2
No files found.
m4/mpd_auto.m4
View file @
16f729eb
...
@@ -77,13 +77,18 @@ AC_DEFUN([MPD_AUTO_LIB], [
...
@@ -77,13 +77,18 @@ AC_DEFUN([MPD_AUTO_LIB], [
[$5])])
[$5])])
])
])
AC_DEFUN([MPD_FORMAT_DEFAULT],
[ifelse([$1], [], [auto],
index([$1], [$]), [-1], [$1],
[auto])])
dnl Wrapper for AC_ARG_ENABLE and MPD_AUTO_PKG
dnl Wrapper for AC_ARG_ENABLE and MPD_AUTO_PKG
dnl
dnl
dnl Parameters: varname1, varname2, pkg, description, errmsg, default, pre
dnl Parameters: varname1, varname2, pkg, description, errmsg, default, pre
AC_DEFUN([MPD_ENABLE_AUTO_PKG], [
AC_DEFUN([MPD_ENABLE_AUTO_PKG], [
AC_ARG_ENABLE(translit([$1], [_], [-]),
AC_ARG_ENABLE(translit([$1], [_], [-]),
AS_HELP_STRING([--enable-]translit([$1], [_], [-]),
AS_HELP_STRING([--enable-]translit([$1], [_], [-]),
[enable $4 (default:
auto
)]),,
[enable $4 (default:
]MPD_FORMAT_DEFAULT([$6])[
)]),,
[enable_$1=]ifelse([$6], [], [auto], [$6]))
[enable_$1=]ifelse([$6], [], [auto], [$6]))
$7
$7
...
@@ -102,7 +107,7 @@ dnl Parameters: varname1, varname2, pkg, libname, symname, libs, cflags, descrip
...
@@ -102,7 +107,7 @@ dnl Parameters: varname1, varname2, pkg, libname, symname, libs, cflags, descrip
AC_DEFUN([MPD_ENABLE_AUTO_PKG_LIB], [
AC_DEFUN([MPD_ENABLE_AUTO_PKG_LIB], [
AC_ARG_ENABLE(translit([$1], [_], [-]),
AC_ARG_ENABLE(translit([$1], [_], [-]),
AS_HELP_STRING([--enable-]translit([$1], [_], [-]),
AS_HELP_STRING([--enable-]translit([$1], [_], [-]),
[enable $4 (default:
auto
)]),,
[enable $4 (default:
]MPD_FORMAT_DEFAULT([$10])[
)]),,
[enable_$1=]ifelse([$10], [], [auto], [$10]))
[enable_$1=]ifelse([$10], [], [auto], [$10]))
$11
$11
...
...
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