diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac index 7a36d5ba..99e50b08 100644 --- a/configure.ac +++ b/configure.ac @@ -37,7 +37,7 @@ AC_SUBST(PA_MAJORMINOR, pa_major.pa_minor) AC_SUBST(PACKAGE_URL, [http://pulseaudio.org/]) AC_SUBST(PA_API_VERSION, 12) -AC_SUBST(PA_PROTOCOL_VERSION, 19) +AC_SUBST(PA_PROTOCOL_VERSION, 20) # The stable ABI for client applications, for the version info x:y:z # always will hold y=z @@ -102,7 +102,13 @@ if test "x$M4" = xno ; then fi dnl Compiler flags -CC_CHECK_CFLAGS_APPEND([-Wall -W -Wextra -pipe -Wno-long-long -Winline -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing=2 -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option]) + +# Some compilers (e.g. clang) default to a warning on an unkown command line option. +# Change that temporarily to an error, for the CC_CHECK_CFLAGS_APPEND macro to work. +save_CC="$CC" +CC="$CC -Werror" +CC_CHECK_CFLAGS_APPEND([-Wall -W -Wextra -pipe -Wno-long-long -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option]) +CC="$save_CC" dnl Linker flags. dnl Check whether the linker supports the -version-script option. @@ -1296,7 +1302,7 @@ AC_SUBST(HAVE_DBUS) AM_CONDITIONAL([HAVE_DBUS], [test "x$HAVE_DBUS" = x1]) -# udev and HAL depend on DBUS: So double check if they were explicitly enabled. +# udev and HAL depend on D-Bus: So double check if they were explicitly enabled. if test "x$HAVE_DBUS" != "x1" ; then HAVE_HAL=0 if test "x${hal}" = xyes ; then @@ -1704,7 +1710,7 @@ echo " Enable Jack: ${ENABLE_JACK} Enable Async DNS: ${ENABLE_LIBASYNCNS} Enable LIRC: ${ENABLE_LIRC} - Enable DBUS: ${ENABLE_DBUS} + Enable D-Bus: ${ENABLE_DBUS} Enable HAL: ${ENABLE_HAL} Enable BlueZ: ${ENABLE_BLUEZ} Enable udev: ${ENABLE_UDEV} @@ -1730,9 +1736,9 @@ echo " if test "${ENABLE_DBUS}" = "no" && test "x$os_is_win32" != "x1" ; then echo " ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== -You do not have DBUS support enabled. It is strongly recommended -that you enable DBUS support if you platform supports it. -Many parts of PulseAudio use udev, from Console Kit interaction +You do not have D-Bus support enabled. It is strongly recommended +that you enable D-Bus support if your platform supports it. +Many parts of PulseAudio use D-Bus, from ConsoleKit interaction to the Device Reservation Protocol to speak to JACK, Bluetooth support and even a native control protocol for communicating and controling the PulseAudio daemon itself. @@ -1744,7 +1750,7 @@ if test "${ENABLE_UDEV}" = "no" && test "x$os_is_win32" != "x1" ; then echo " ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== You do not have udev support enabled. It is strongly recommended -that you enable udev support if you platform supports it as it is +that you enable udev support if your platform supports it as it is the primary method used to detect hardware audio devices (on Linux) and is thus a critical part of PulseAudio on that platform. ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== |