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
15998c0d
Commit
15998c0d
authored
Apr 16, 2010
by
Avuton Olrich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure.ac: Add better headers to improve readability.
This changes no code, makes no moves; this merely adds some headers to improve readability.
parent
cf3ada3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
66 deletions
+55
-66
configure.ac
configure.ac
+55
-66
No files found.
configure.ac
View file @
15998c0d
...
@@ -8,10 +8,9 @@ AC_CONFIG_MACRO_DIR([m4])
...
@@ -8,10 +8,9 @@ AC_CONFIG_MACRO_DIR([m4])
AC_DEFINE(PROTOCOL_VERSION, "0.16.0", [The MPD protocol version])
AC_DEFINE(PROTOCOL_VERSION, "0.16.0", [The MPD protocol version])
dnl
dnl ---------------------------------------------------------------------------
dnl programs
dnl Programs
dnl
dnl ---------------------------------------------------------------------------
AC_PROG_CC_C99
AC_PROG_CC_C99
AC_PROG_CXX
AC_PROG_CXX
...
@@ -34,11 +33,9 @@ AC_PROG_INSTALL
...
@@ -34,11 +33,9 @@ AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_MAKE_SET
PKG_PROG_PKG_CONFIG
PKG_PROG_PKG_CONFIG
dnl ---------------------------------------------------------------------------
dnl
dnl Declare Variables
dnl declare variables
dnl ---------------------------------------------------------------------------
dnl
AC_SUBST(AM_CFLAGS,"")
AC_SUBST(AM_CFLAGS,"")
AC_SUBST(MPD_LIBS)
AC_SUBST(MPD_LIBS)
...
@@ -46,11 +43,9 @@ AC_SUBST(MPD_CFLAGS)
...
@@ -46,11 +43,9 @@ AC_SUBST(MPD_CFLAGS)
MPD_LIBS=""
MPD_LIBS=""
MPD_CFLAGS=""
MPD_CFLAGS=""
dnl ---------------------------------------------------------------------------
dnl
dnl OS Specific Defaults
dnl OS specific defaults
dnl ---------------------------------------------------------------------------
dnl
AC_CANONICAL_HOST
AC_CANONICAL_HOST
case "$host_os" in
case "$host_os" in
...
@@ -105,6 +100,9 @@ if test x$enable_largefile != xno; then
...
@@ -105,6 +100,9 @@ if test x$enable_largefile != xno; then
AC_DEFINE([ENABLE_LARGEFILE], 1, [Define if large file support is enabled])
AC_DEFINE([ENABLE_LARGEFILE], 1, [Define if large file support is enabled])
fi
fi
dnl ---------------------------------------------------------------------------
dnl Header/Library Checks
dnl ---------------------------------------------------------------------------
AC_CHECK_FUNCS(daemon fork syslog)
AC_CHECK_FUNCS(daemon fork syslog)
if test $ac_cv_func_syslog = no; then
if test $ac_cv_func_syslog = no; then
# syslog is not in the default libraries. See if it's in some other.
# syslog is not in the default libraries. See if it's in some other.
...
@@ -140,18 +138,15 @@ if test x$enable_inotify = xyes; then
...
@@ -140,18 +138,15 @@ if test x$enable_inotify = xyes; then
fi
fi
AM_CONDITIONAL(ENABLE_INOTIFY, test x$enable_inotify = xyes)
AM_CONDITIONAL(ENABLE_INOTIFY, test x$enable_inotify = xyes)
dnl
dnl ---------------------------------------------------------------------------
dnl mandatory libraries
dnl Mandatory Libraries
dnl
dnl ---------------------------------------------------------------------------
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.12 gthread-2.0],,
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.12 gthread-2.0],,
[AC_MSG_ERROR([GLib 2.12 is required])])
[AC_MSG_ERROR([GLib 2.12 is required])])
dnl ---------------------------------------------------------------------------
dnl
dnl Protocol Options
dnl protocol options
dnl ---------------------------------------------------------------------------
dnl
AC_ARG_ENABLE(tcp,
AC_ARG_ENABLE(tcp,
AS_HELP_STRING([--disable-tcp],
AS_HELP_STRING([--disable-tcp],
[disable support for clients connecting via TCP (default: enable)]),,
[disable support for clients connecting via TCP (default: enable)]),,
...
@@ -207,9 +202,9 @@ if test x$enable_un = xyes; then
...
@@ -207,9 +202,9 @@ if test x$enable_un = xyes; then
fi
fi
dnl
##
dnl
---------------------------------------------------------------------------
dnl
misc l
ibraries
dnl
Optional L
ibraries
dnl
##
dnl
---------------------------------------------------------------------------
AC_ARG_ENABLE([libwrap],
AC_ARG_ENABLE([libwrap],
AS_HELP_STRING([--enable-libwrap], [use libwrap]),,
AS_HELP_STRING([--enable-libwrap], [use libwrap]),,
...
@@ -226,6 +221,9 @@ if test x$enable_libwrap = xyes; then
...
@@ -226,6 +221,9 @@ if test x$enable_libwrap = xyes; then
AC_DEFINE(HAVE_LIBWRAP, 1, [define to enable libwrap library])
AC_DEFINE(HAVE_LIBWRAP, 1, [define to enable libwrap library])
fi
fi
dnl ---------------------------------------------------------------------------
dnl Metadata Plugins
dnl ---------------------------------------------------------------------------
AC_ARG_ENABLE(cue,
AC_ARG_ENABLE(cue,
AS_HELP_STRING([--enable-cue],
AS_HELP_STRING([--enable-cue],
[enable support for libcue support]),,
[enable support for libcue support]),,
...
@@ -240,9 +238,9 @@ fi
...
@@ -240,9 +238,9 @@ fi
AM_CONDITIONAL(HAVE_CUE, test x$enable_cue = xyes)
AM_CONDITIONAL(HAVE_CUE, test x$enable_cue = xyes)
dnl
##
dnl
---------------------------------------------------------------------------
dnl A
vahi / Zeroconf
dnl A
utodiscovery
dnl
##
dnl
---------------------------------------------------------------------------
AC_ARG_WITH(zeroconf,
AC_ARG_WITH(zeroconf,
AS_HELP_STRING([--with-zeroconf=@<:@auto|avahi|bonjour|no@:>@],
AS_HELP_STRING([--with-zeroconf=@<:@auto|avahi|bonjour|no@:>@],
[enable zeroconf backend (default=auto)]),,
[enable zeroconf backend (default=auto)]),,
...
@@ -296,6 +294,9 @@ AM_CONDITIONAL(HAVE_ZEROCONF, test x$with_zeroconf != xno)
...
@@ -296,6 +294,9 @@ AM_CONDITIONAL(HAVE_ZEROCONF, test x$with_zeroconf != xno)
AM_CONDITIONAL(HAVE_AVAHI, test x$with_zeroconf = xavahi)
AM_CONDITIONAL(HAVE_AVAHI, test x$with_zeroconf = xavahi)
AM_CONDITIONAL(HAVE_BONJOUR, test x$with_zeroconf = xbonjour)
AM_CONDITIONAL(HAVE_BONJOUR, test x$with_zeroconf = xbonjour)
dnl ---------------------------------------------------------------------------
dnl Sticker Database
dnl ---------------------------------------------------------------------------
AC_ARG_ENABLE(sqlite,
AC_ARG_ENABLE(sqlite,
AS_HELP_STRING([--enable-sqlite],
AS_HELP_STRING([--enable-sqlite],
[enable support for the SQLite database]),,
[enable support for the SQLite database]),,
...
@@ -309,12 +310,9 @@ fi
...
@@ -309,12 +310,9 @@ fi
AM_CONDITIONAL(ENABLE_SQLITE, test x$enable_sqlite = xyes)
AM_CONDITIONAL(ENABLE_SQLITE, test x$enable_sqlite = xyes)
dnl ---------------------------------------------------------------------------
dnl Input Plugins
dnl
dnl ---------------------------------------------------------------------------
dnl input plugins
dnl
AC_ARG_ENABLE(curl,
AC_ARG_ENABLE(curl,
AS_HELP_STRING([--enable-curl],
AS_HELP_STRING([--enable-curl],
[enable support for libcurl HTTP streaming (default: auto)]),,
[enable support for libcurl HTTP streaming (default: auto)]),,
...
@@ -354,11 +352,9 @@ if test x$enable_mms = xyes; then
...
@@ -354,11 +352,9 @@ if test x$enable_mms = xyes; then
fi
fi
AM_CONDITIONAL(ENABLE_MMS, test x$enable_mms = xyes)
AM_CONDITIONAL(ENABLE_MMS, test x$enable_mms = xyes)
dnl ---------------------------------------------------------------------------
dnl
dnl Archive Plugins
dnl archive plugins
dnl ---------------------------------------------------------------------------
dnl
dnl bzip2
dnl bzip2
AC_ARG_ENABLE(bzip2,
AC_ARG_ENABLE(bzip2,
AS_HELP_STRING([--enable-bzip2],
AS_HELP_STRING([--enable-bzip2],
...
@@ -667,11 +663,9 @@ if test x$enable_wavpack = xyes; then
...
@@ -667,11 +663,9 @@ if test x$enable_wavpack = xyes; then
AC_DEFINE([HAVE_WAVPACK], 1, [Define to enable WavPack support])
AC_DEFINE([HAVE_WAVPACK], 1, [Define to enable WavPack support])
fi
fi
dnl ---------------------------------------------------------------------------
dnl
dnl Converter Plugins
dnl converters
dnl ---------------------------------------------------------------------------
dnl
AC_ARG_ENABLE(lsr,
AC_ARG_ENABLE(lsr,
AS_HELP_STRING([--enable-lsr],
AS_HELP_STRING([--enable-lsr],
[enable libsamplerate support]),,
[enable libsamplerate support]),,
...
@@ -693,11 +687,9 @@ fi
...
@@ -693,11 +687,9 @@ fi
AM_CONDITIONAL(HAVE_LIBSAMPLERATE, test x$enable_lsr = xyes)
AM_CONDITIONAL(HAVE_LIBSAMPLERATE, test x$enable_lsr = xyes)
dnl ---------------------------------------------------------------------------
dnl
dnl Encoders for Streaming Audio Output Plugins
dnl encoder plugins
dnl ---------------------------------------------------------------------------
dnl
AC_ARG_ENABLE(vorbis-encoder,
AC_ARG_ENABLE(vorbis-encoder,
AS_HELP_STRING([--enable-vorbis-encoder],
AS_HELP_STRING([--enable-vorbis-encoder],
[enable the Ogg Vorbis encoder]),,
[enable the Ogg Vorbis encoder]),,
...
@@ -718,11 +710,9 @@ AC_ARG_ENABLE(wave-encoder,
...
@@ -718,11 +710,9 @@ AC_ARG_ENABLE(wave-encoder,
[enable the PCM wave encoder]),,
[enable the PCM wave encoder]),,
enable_wave_encoder=yes)
enable_wave_encoder=yes)
dnl ---------------------------------------------------------------------------
dnl
dnl Audio Output Plugins (Nonstreaming)
dnl audio output plugins
dnl ---------------------------------------------------------------------------
dnl
AC_ARG_ENABLE(alsa,
AC_ARG_ENABLE(alsa,
AS_HELP_STRING([--enable-alsa], [enable ALSA support]),,
AS_HELP_STRING([--enable-alsa], [enable ALSA support]),,
enable_alsa=auto)
enable_alsa=auto)
...
@@ -1265,10 +1255,9 @@ if test x$enable_flac_encoder = xyes; then
...
@@ -1265,10 +1255,9 @@ if test x$enable_flac_encoder = xyes; then
[Define to enable the FLAC encoder plugin])
[Define to enable the FLAC encoder plugin])
fi
fi
dnl
dnl
---------------------------------------------------------------------------
dnl Documentation
dnl Documentation
dnl
dnl ---------------------------------------------------------------------------
AC_ARG_ENABLE(documentation,
AC_ARG_ENABLE(documentation,
AS_HELP_STRING([--enable-documentation],
AS_HELP_STRING([--enable-documentation],
[build documentation (default: disable)]),,
[build documentation (default: disable)]),,
...
@@ -1330,13 +1319,14 @@ AC_ARG_ENABLE(test,
...
@@ -1330,13 +1319,14 @@ AC_ARG_ENABLE(test,
[build the test programs (default: disabled)]),,
[build the test programs (default: disabled)]),,
enable_test=no)
enable_test=no)
dnl ---------------------------------------------------------------------------
dnl test suite
dnl ---------------------------------------------------------------------------
AM_CONDITIONAL(ENABLE_TEST, test "x$enable_test" = xyes)
AM_CONDITIONAL(ENABLE_TEST, test "x$enable_test" = xyes)
dnl ---------------------------------------------------------------------------
dnl
dnl CFLAGS
dnl CFLAGS
dnl
dnl ---------------------------------------------------------------------------
if test x$GCC = xyes
if test x$GCC = xyes
then
then
MPD_CHECK_FLAG([-Wall])
MPD_CHECK_FLAG([-Wall])
...
@@ -1351,10 +1341,9 @@ then
...
@@ -1351,10 +1341,9 @@ then
MPD_CHECK_FLAG([-pedantic])
MPD_CHECK_FLAG([-pedantic])
fi
fi
dnl
dnl ---------------------------------------------------------------------------
dnl pretty-print result
dnl Pretty-Print Results
dnl
dnl ---------------------------------------------------------------------------
echo ""
echo ""
echo "########### MPD CONFIGURATION ############"
echo "########### MPD CONFIGURATION ############"
echo ""
echo ""
...
...
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