diff options
| author | Valtteri Vuorikoski | 2023-07-22 20:08:42 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2023-07-26 17:03:58 +0300 |
| commit | 3449ff5b6528b9b75fa7a00ef9bf580668e20d9e (patch) | |
| tree | 352aa39b88499e521fe893c05256c0edf7e93c2e | |
| parent | 04a930a08ce80d8dcc123f86a3f153f23ec31a29 (diff) | |
| download | emacs-3449ff5b6528b9b75fa7a00ef9bf580668e20d9e.tar.gz emacs-3449ff5b6528b9b75fa7a00ef9bf580668e20d9e.zip | |
Fix build --with-sound on NetBSD and OpenBSD
* configure.ac: Use ossaudio by default on *BSD systems.
(Bug#64698)
* etc/NEWS: Announce the change.
| -rw-r--r-- | configure.ac | 9 | ||||
| -rw-r--r-- | etc/NEWS | 10 |
2 files changed, 16 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 38ff6e18daf..79f5a468dd9 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -1800,12 +1800,15 @@ if test "${with_sound}" != "no"; then | |||
| 1800 | AC_MSG_ERROR([OSS sound support requested but not found.]) | 1800 | AC_MSG_ERROR([OSS sound support requested but not found.]) |
| 1801 | 1801 | ||
| 1802 | if test "${with_sound}" = "bsd-ossaudio" || test "${with_sound}" = "yes"; then | 1802 | if test "${with_sound}" = "bsd-ossaudio" || test "${with_sound}" = "yes"; then |
| 1803 | # Emulation library used on NetBSD. | 1803 | # OSS emulation library used on NetBSD and OpenBSD. |
| 1804 | AC_CHECK_LIB([ossaudio], [_oss_ioctl], [LIBSOUND=-lossaudio], [LIBSOUND=]) | 1804 | AC_CHECK_LIB([ossaudio], [_oss_ioctl], [LIBSOUND=-lossaudio], [LIBSOUND=]) |
| 1805 | test "${with_sound}" = "bsd-ossaudio" && test -z "$LIBSOUND" && \ | 1805 | test "${with_sound}" = "bsd-ossaudio" && test -z "$LIBSOUND" && \ |
| 1806 | AC_MSG_ERROR([bsd-ossaudio sound support requested but not found.]) | 1806 | AC_MSG_ERROR([bsd-ossaudio sound support requested but not found.]) |
| 1807 | dnl FIXME? If we did find ossaudio, should we set with_sound=bsd-ossaudio? | 1807 | # On {Net,Open}BSD use the system audio library instead of |
| 1808 | dnl Traditionally, we go on to check for alsa too. Does that make sense? | 1808 | # potentially switching to ALSA below, as ALSA on these appears to |
| 1809 | # just wrap system libraries. | ||
| 1810 | test "${with_sound}" = "yes" && test "$LIBSOUND" = "-lossaudio" && \ | ||
| 1811 | with_sound="bsd-ossaudio" | ||
| 1809 | fi | 1812 | fi |
| 1810 | AC_SUBST([LIBSOUND]) | 1813 | AC_SUBST([LIBSOUND]) |
| 1811 | 1814 | ||
| @@ -24,6 +24,16 @@ applies, and please also update docstrings as needed. | |||
| 24 | 24 | ||
| 25 | * Installation Changes in Emacs 30.1 | 25 | * Installation Changes in Emacs 30.1 |
| 26 | 26 | ||
| 27 | --- | ||
| 28 | ** Emacs now defaults to ossaudio library for sound on NetBSD and OpenBSD. | ||
| 29 | Previously configure used ALSA libraries if installed on the | ||
| 30 | system when configured '--with-sound=yes' (which is the default), with | ||
| 31 | fallback to libossaudio. The libossaudio library included with the | ||
| 32 | base system is now used even if ALSA is found to avoid relying on | ||
| 33 | external packages and to resolve potential incompatibilities between | ||
| 34 | Linux and BSD versions of ALSA. Use '--with-sound=alsa' to build with | ||
| 35 | ALSA on these operating systems instead. | ||
| 36 | |||
| 27 | 37 | ||
| 28 | * Startup Changes in Emacs 30.1 | 38 | * Startup Changes in Emacs 30.1 |
| 29 | 39 | ||