aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-07 08:24:13 +0100
committerMax Kellermann <max@duempel.org>2008-11-07 08:24:13 +0100
commit51f0ed166508442b65c0fb4ec46da685607608a2 (patch)
treeaf420bd0e3de7b6ea7be0e5d3a6648080d07d235 /configure.ac
parent6c2f8ba26ac1dbfa785224990bc52432cba92ac6 (diff)
downloadmpd-51f0ed166508442b65c0fb4ec46da685607608a2.tar.gz
mpd-51f0ed166508442b65c0fb4ec46da685607608a2.tar.xz
mpd-51f0ed166508442b65c0fb4ec46da685607608a2.zip
configure.ac: added option --enable-mini
The option --enable-mini disables lots of features, and tries to create a ncmpc binary which fits on very small machines.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac30
1 files changed, 26 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 1d2e0057c..4dec85891 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,6 +37,29 @@ AC_CHECK_FUNCS([strcasestr])
dnl
+dnl ncmpc-mini
+dnl
+
+AC_ARG_ENABLE(mini,
+ AS_HELP_STRING([--enable-mini],
+ [Build ncmpc-mini (default: disabled)]),
+ [enable_mini=$enableval],
+ [enable_mini=no])
+
+AM_CONDITIONAL(NCMPC_MINI, test x$enable_mini = xyes)
+if test "x$enable_mini" = xyes; then
+ AC_DEFINE([NCMPC_MINI], [1], [Build ncmpc-mini, which disables lots of features]),
+ auto=no
+ disable_mini=no
+ ncurses=ncurses
+else
+ auto=auto
+ disable_mini=yes
+ ncurses=auto
+fi
+
+
+dnl
dnl Check for libraries
dnl
@@ -64,7 +87,6 @@ AC_ARG_ENABLE([wide],
dnl ncurses
-ncurses=auto
AC_ARG_WITH([ncurses],
AC_HELP_STRING([--with-ncurses], [compile/link with ncurses library] ),
[ncurses=ncurses])
@@ -242,7 +264,7 @@ AC_ARG_ENABLE([mouse],
AC_HELP_STRING([--enable-mouse],
[Enable curses getmouse support @<:@default=yes@:>@]),
[getmouse="$enableval"],
- [getmouse=yes])
+ [getmouse=$disable_mini])
AC_MSG_RESULT([$getmouse])
if test "x$getmouse" = "xyes" ; then
AC_CHECK_LIB([$ncurses],
@@ -271,7 +293,7 @@ AC_ARG_ENABLE([search-screen],
AC_HELP_STRING([--enable-search-screen],
[Enable search screen (EXPERIMENTAL) @<:@default=yes@:>@]),
[search_screen="$enableval"],
- [search_screen=yes])
+ [search_screen=$disable_mini])
AC_MSG_RESULT([$search_screen])
if test "x$search_screen" = "xyes" ; then
AC_DEFINE(ENABLE_SEARCH_SCREEN, 1, [Enable search screen])
@@ -285,7 +307,7 @@ AC_ARG_ENABLE([key-screen],
AC_HELP_STRING([--enable-key-screen],
[Enable key editor screen @<:@default=yes@:>@]),
[keydef_screen="$enableval"],
- [keydef_screen=yes])
+ [keydef_screen=$disable_mini])
AC_MSG_RESULT([$keydef_screen])
if test "x$keydef_screen" = "xyes" ; then
AC_DEFINE(ENABLE_KEYDEF_SCREEN, 1, [Enable key editor screen])