summaryrefslogtreecommitdiff
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* build-sys: Bump sonames for releasev8.99.1Arun Raghavan2016-05-121-1/+1
| | | | | | Bumping libpulse' version since PA_RATE_MAX was changed. Signed-off-by: Arun Raghavan <arun@arunraghavan.net>
* build-sys: Fix check for CoreServices.hJeremy Huddleston Sequoia2016-05-031-6/+2
| | | | | Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@macports.org> Signed-off-by: Arun Raghavan <git@arunraghavan.net>
* core: Support memfd transport; bump protocol versionAhmed S. Darwish2016-04-271-1/+1
| | | | | | | | | | | Now that all layers in the stack support memfd blocks, add memfd support for the daemon's global core mempool. Also introduce "enable-memfd=" daemon argument and configuration option. For now, memfd support is an opt-in feature to be activated only when daemon's enable-memfd= is set to yes. Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
* build-sys: Set C language standard to gnu11Ahmed S. Darwish2016-04-231-2/+2
| | | | | | | | | | | | | | | Per glibc feature_test_macros(7), setting compiler flags to -std=c11 (or any c* variant like c99) enforces strict ANSI mode. Enforcing strict ANSI makes all declarations under _GNU_SOURCE unavailable. This leads to build warnings in the form of: warning: implicit declaration of function ‘syscall’ Thus replace -std=c11 with -std=gnu11 Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
* pulsecore: Introduce memfd supportAhmed S. Darwish2016-04-021-0/+19
| | | | | | | | | | | | | | | | | | Memfd is a simple memory sharing mechanism, added by the systemd/kdbus developers, to share pages between processes in an anonymous, no global registry needed, no mount-point required, relatively secure, manner. This patch introduces the necessary building blocks for using memfd shared memory transfers in PulseAudio. Memfd support shall also help us in laying out the necessary (but not yet sufficient) groundwork for application sandboxing, protecting PA from its clients, and protecting clients data from each other. We plan to exclusively use memfds, instead of POSIX SHM, on the way forward. Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
* build-sys: Move to compiling with C11 supportArun Raghavan2016-02-251-1/+5
| | | | | | | | This is needed for building with anonymous unions. A bunch of calls to fail() that used to mysteriously work need fixing -- fail() is a macro that takes a printf-style message as an argument. Not passing this somehow worked with the previous compiler flags, but breaks with -std=c11.
* echo-cancel: Update webrtc-audio-processing usage to new APIArun Raghavan2016-02-241-1/+2
| | | | | The code now needs C++11 support to compile with the updated webrtc-audio-processing library.
* build-sys: Only use sysroot in OS X CFLAGS if specifiedArun Raghavan2016-02-121-3/+8
| | | | | The default value doesn't make sense any more, so we'll only use this if explicitly specified.
* solaris: Illumos does not ship with SOUND_PCM* functionalityKamil Rytarowski2016-01-221-0/+7
| | | | | | | | | | | | | | Code reference: https://github.com/joyent/illumos-joyent/blob/master/usr/src/uts/common/sys/audio/audio_oss.h Add autoconf checks for: - SOUND_PCM_READ_RATE - SOUND_PCM_READ_CHANNELS - SOUND_PCM_READ_BITS Some platforms like SunOS (Illumos) may ship without SOUND_PCM_* functionality Thanks to Jonathan Perkin (Joyent) for Illumos code reference.
* NetBSD: Stop depending upon nonstandard __WORDSIZEKamil Rytarowski2016-01-081-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | There is no way to check CPU type in a portable way across ABIs. Assume if pointers are 64-bit that CPU is capable to perform fast 64-bit operations. Add an extra check to handle x32-ABI. PulseAudio by default builds with -Wundef. If we add -Werror=undef this missing define is fatal. By default build log is full of entries like: In file included from ./pulsecore/core.h:47:0, from ./pulsecore/module.h:31, from ./pulsecore/sink-input.h:31, from pulsecore/sound-file-stream.c:36: ./pulsecore/sample-util.h: In function 'pa_mult_s16_volume': ./pulsecore/sample-util.h:58:5: warning: "__WORDSIZE" is not defined [-Wundef] #if __WORDSIZE == 64 || ((ULONG_MAX) > (UINT_MAX)) ^ (NetBSD-7.99.21 with default GCC 4.8.5) This change fixes build issues on NetBSD. This also address a bug reported by Shawn Walker from Oracle (possibly Solaris): Bug 90880 - builds can fail due to non-portable glibc-specific internal macro usage
* configure.ac: add HAVE_COREAUDIO to automake and code.Mihai Moldovan2016-01-041-0/+3
| | | | | This is an OpenPGP/MIME signed message (RFC 4880 and 3156) Signed-off-by: Mihai Moldovan <ionic@ionic.de>
* build-sys: bump sonamesTanu Kaskinen2015-12-271-1/+1
| | | | Bump 18 -> 19 due to the addition of the LFE balance API.
* netbsd: Revamp NetBSD platform checksKamil Rytarowski2015-12-081-4/+7
|
* build-sys: fix PULSE_LOCALEDIR definitionTanu Kaskinen2015-12-071-3/+0
| | | | | | | | | | | | | | | | | | | | | On some systems (at least Arch) DATADIRNAME is not defined. This caused PULSE_LOCALEDIR to point to a wrong directory. This seemed like an issue introduced in 7.0, but probably something else was updated in Arch at the same time, causing DATADIRNAME to become undefined, because there were no changes between 6.0 and 7.0 that could have caused this. After noticing that localedir is a standard variable, my first idea was to use pulselocaledir='${localedir}' in configure.ac, but Jan Steffens pointed out that it causes the final PULSE_LOCALEDIR to become "${prefix}/share/locale", that is, the variables weren't fully expanded. I then found a FAQ item in Autoconf's manual[1], which recommends not to define any absolute installation directories in configure.ac, because the installation directories should be possible to change when running make. The recommended solution is to define the constant in AM_CPPFLAGS instead, so that's what this patch does. [1] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Defining-Directories.html
* netbsd: Fix unportable test(1) constructKamil Rytarowski2015-12-071-2/+2
|
* netbsd: Improve handling of <locale> and <xlocale.h> headersKamil Rytarowski2015-12-071-0/+1
| | | | | | NetBSD ships with strtod_l(3) in <stdlib.h>. Having strtol_l(3) doesn't imply to have <xlocale.h>. Generalize inclusion of <locale.h> and <xlocale.h>.
* netbsd: NetBSD ships with paccept(2) a superset of Linux-specific accept4()Kamil Rytarowski2015-11-271-1/+1
| | | | [diwic: Moved paccept to #bsd line in configure.ac]
* build-sys: fix the default bash completion directoryTanu Kaskinen2015-09-271-1/+1
| | | | | | If bashcompletiondir was empty, the check didn't catch that. As a result, the symlinks that were supposed to be generated in the completion directory were created in the root directory.
* build-sys: don't use the nodelete linker flag on executablesShawn Walker2015-09-251-1/+1
| | | | | | | | | The nodelete flag indicates that we don't want our libraries to be unloaded. It's only relevant on libraries, so let's not use it for executables. Trying to use it on executables breaks things on some platforms. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=90878
* build-sys: bump sonamesTanu Kaskinen2015-09-121-1/+1
| | | | There were a couple of bug fixes to libpulse since 6.99.1.
* build-sys: check strtod_l instead of strtof_lTanu Kaskinen2015-09-071-1/+1
| | | | | | | | | | We have no strtof_l calls in the code, so it doesn't make sense to check that function's availability. We have one strtod_l call, so let's check that instead. I don't know if this change makes any practical difference. I just wondered why we had HAVE_STRTOF_L ifdefs in core-util.c for code that didn't use strtof_l.
* build-sys: bump sonamesTanu Kaskinen2015-08-271-1/+1
| | | | | | | In this release cycle, libpulse had some internal code changes, but no ABI changes. libpulse-simple and libpulse-mainloop-glib had no changes whatsoever.
* build-sys: Fix up setting the bash completion dirArun Raghavan2015-07-291-11/+6
| | | | | This makes setting up the bash completion dir consistent with the other cases that we need to deal with, and also handles distcheck correctly.
* build-sys: Install bash completion to where bash-completion.pc saysVille Skyttä2015-05-251-0/+15
| | | | | | | | | | | | | | Fall back to the previous /etc/bash_completion.d dir on failures (either old bash completion or not installed). changes over Ville Skyttä's patch: define PKG_CHECK_VAR macro which became available only in pkg-config 0.28 see https://bugs.freedesktop.org/show_bug.cgi?id=88782 and https://bugs.freedesktop.org/show_bug.cgi?id=89540 Signed-off-by: Ville Skyttä <ville.skytta@iki.fi> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
* Added libsoxr detection and optional build of soxr resampler backend.Andrey Semashev2015-02-121-0/+17
|
* man: Drop separate paplay man page, move info to pacat man pagePeter Meerwald2015-02-121-1/+0
| | | | | | | | | | | | | see https://bugs.freedesktop.org/show_bug.cgi?id=68135 pacat and paplay man pages both claim to describe the paplay program (which is actually a symlink to pacat) -- this is inconsistent and redundant, so drop the paplay man page a follow-up patch will add man page symlink for all programs implemented by pacat, not just paplay Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
* update FSF addresses to FSF web pageOndrej Holecek2015-01-141-2/+1
| | | | | | | | | FSF addresses used in PA sources are no longer valid and rpmlint generates numerous warnings during packaging because of this. This patch changes all FSF addresses to FSF web page according to the GPL how-to: https://www.gnu.org/licenses/gpl-howto.en.html Done automatically by sed-ing through sources.
* build-sys: Don't enable libsamplerate by defaultTanu Kaskinen2015-01-051-2/+2
| | | | | The libsamplerate based resamplers have been deprecated, so it's best to not build them by default.
* Revert "launch: Disable autospawn by default when systemd daemon support is ↵v5.99.2David Henningsson2014-12-191-3/+0
| | | | | | | | | | | enabled." This reverts commit 7276faca72e9696d4891daff139aee52509f43bf. Using the new systemd socket activation for PulseAudio will cause PulseAudio to not have any connection with D-Bus, breaking device reservation protocol, module-jackdbus-detect and module-dbus-protocol. Therefore, autospawn is now still enabled by default even if you build with systemd daemon headers.
* build-sys: Don't build srbchannel-test on targets without srbchannelDavid Henningsson2014-12-031-0/+1
| | | | | Reported-by: Felipe Sateler <fsateler@debian.org> Signed-off-by: David Henningsson <david.henningsson@canonical.com>
* build-sys: Fix the BlueZ 5 native headset backend checkTanu Kaskinen2014-11-241-4/+4
| | | | | | | | If the libbluetooth headers aren't available, we shouldn't treat that as an error unless --enable-bluez5-native-headset has been explicitly given to configure. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=86582
* build-sys: Always define bluetooth related HAVE_* variablesTanu Kaskinen2014-11-241-5/+9
| | | | | | | | I don't know if it can cause any problems if HAVE_BLUEZ_4, HAVE_BLUEZ_5, HAVE_BLUEZ, HAVE_BLUEZ_5_OFONO_HEADSET or HAVE_BLUEZ_5_NATIVE_HEADSET are undefined when the corresponding features are not enabled, but it certainly won't hurt to define the variables also when the features are not enabled.
* configure: Bump sonamesDavid Henningsson2014-11-211-1/+1
| | | | Signed-off-by: David Henningsson <david.henningsson@canonical.com>
* build-sys: Deprecate libsamplerate supportPeter Meerwald2014-11-171-1/+3
| | | | | | | | | | | | | | output DEPRECATED warnings for libsamplerate in configure and PA daemon's log libsamplerate offers no particular advantage over the speex resampler and is distributed under GPL; support for it will be removed in one of the next releases v2: (thanks Arun Raghavan) * log a warning (instead of info) Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
* bluez 5: Build both headset backends, if availableDavid Henningsson2014-11-141-13/+20
| | | | | | | Enable both ofono and native backends to be built into the same libbluez5-util. Never build the null backend. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
* build-sys: Fix a variable value checkTanu Kaskinen2014-11-121-1/+1
|
* build-sys: Minor cosmetic tidyup of configure summaryColin Guthrie2014-11-031-3/+4
|
* launch: Disable autospawn by default when systemd daemon support is enabled.Colin Guthrie2014-11-031-0/+3
| | | | | | | | | | | | | | | | When enabled, this method is prefered over pulseaudio's built in systems so we should try our best to ensure that it cannot be spawned outside of the mechanisms desired. Packagers should call 'systemctl --global enable pulseaudio.socket' to enable the socket for all users, or alternatively ship an enabling symlink in /usr/lib/systemd/user/sockets.target.wants/ folder. It may also make sense for distributions to add in a ConditionNNN= line to the socket unit if they have a downstream mechanism for enabling or disabling pulseaudio. If individual users wish to opt out of this vendor (or administrator) decision, they can call 'systemctl --user mask pulseaudio.socket'
* launch: Add systemd units for launching pulseaudio user instancesColin Guthrie2014-11-031-0/+11
|
* socket-server: Add support for systemd socket activation.Colin Guthrie2014-11-031-1/+20
| | | | | | | | This adds support to module-native-protocol-unix to take over already listening sockets passed in via socket activation (e.g. from systemd) Most of the code is isolated to socket-server but some cleanup code also had to be tweaked to ensure we do not overzealously close open fds.
* build-sys: Add support for newer systemd without compatibility libsColin Guthrie2014-11-031-6/+21
| | | | | | | | | | | | | | In newer versions of systemd some libraries were combined for the sake of general simplicity. This change checks against the newer name first and avoids separate pkgconfig checks if it's found. We probably want to keep support for the older library names for some time. systemd does allow for the shipping of compatibility pkgconfig files to not break downstream code like ourselves which is why this likely hasn't been "fixed" until now. With this change we no longer rely on systemd having been built with those compatibility pkgconfig files.
* build-sys: Clarify some systemd sub-component variable/define names.Colin Guthrie2014-11-031-16/+16
| | | | | | | | | We currently use the term SYSTEMD when referring to libsystemd-login and JOURNAL when referring to libsystemd-journal. I will be shortly adding support for libsystemd-daemon and in preparation I figured it would be a good idea to clarify the names used currently before adding another!
* backend-native: add a new native headset backendWim Taymans2014-10-311-3/+3
| | | | | | | | Add a simple native headset backend that implements support for the blutooth HSP profile. This allows pulseaudio to output audio to a Headset using the HSP profile. Make the native backend the default.
* build-sys: Alias bash-completion for all PulseAudio commandsMichał Górny2014-10-281-0/+4
| | | | | | | Bash-completion 1.90 introduced support for on-demand loading of completions. Install the completion file as 'pulseaudio' to match the main command, and create symlinks as aliases for other supported commands in order to support the new system.
* configure: Remove "WIBBLE" testDavid Henningsson2014-10-241-1/+0
| | | | | | | | | Apparently "WIBBLE" is just a test, and maybe the test was "How long does it take until somebody notices a strange row in configure.ac and tries to remove it", if so, the test result is "a little over three years". :-) Signed-off-by: David Henningsson <david.henningsson@canonical.com>
* util: Try finding out application name using dladdr if availableFelipe Sateler2014-10-161-0/+2
| | | | | | | | | | This fixes getting the binary name in the Hurd, or any other port using the GNU C library, but only in the case where the library is directly linked to. Opening with dlopen will not work. Change in v3: reorder header includes and definitions Change in v2: use a weak reference to main, so that we don't crash when main cannot be found.
* configure: Fix spelling of "backend"David Henningsson2014-09-101-1/+1
| | | | Signed-off-by: David Henningsson <david.henningsson@canonical.com>
* configure: fix headset checkWim Taymans2014-09-101-1/+1
|
* build-sys: Drop support for json 0.9Peter Meerwald2014-08-221-2/+1
| | | | | | | | | | | drop support for json 0.9 and require json-c 0.11 (this will also avoids confusion which json package is needed due to the upstream rename) json 0.9 lacks json_object_object_get_ex() json-c 0.11 was released 20130402 Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
* bluetooth: Create oFono backendJoão Paulo Rechi Vita2014-08-221-3/+3
|