aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-08-31 13:00:22 -0700
committerGlenn Morris2013-08-31 13:00:22 -0700
commit2c347217caf044cc83559b9e3b59de81bb4d8b82 (patch)
tree315c22a516c2a360e246d65dddccf0b04c84111e
parente0936eed9b324079511d7660751189bca2087fe8 (diff)
downloademacs-2c347217caf044cc83559b9e3b59de81bb4d8b82.tar.gz
emacs-2c347217caf044cc83559b9e3b59de81bb4d8b82.zip
* configure.ac (--with-sound): Rename ossaudio to bsd-ossaudio,
and voxware to oss.
-rw-r--r--ChangeLog5
-rw-r--r--configure.ac18
2 files changed, 14 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 871a07788b4..14bac067213 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12013-08-31 Glenn Morris <rgm@gnu.org>
2
3 * configure.ac (--with-sound): Rename ossaudio to bsd-ossaudio,
4 and voxware to oss.
5
12013-08-31 Ulrich Müller <ulm@gentoo.org> 62013-08-31 Ulrich Müller <ulm@gentoo.org>
2 7
3 * configure.ac: Allow for --with-sound=voxware that will enable 8 * configure.ac: Allow for --with-sound=voxware that will enable
diff --git a/configure.ac b/configure.ac
index ef06c6c2b3b..6cafa3eda57 100644
--- a/configure.ac
+++ b/configure.ac
@@ -167,12 +167,12 @@ AC_ARG_WITH([mailhost],[AS_HELP_STRING([--with-mailhost=HOSTNAME],
167 AC_DEFINE_UNQUOTED(MAILHOST, ["$withval"], [String giving fallback POP mail host.])) 167 AC_DEFINE_UNQUOTED(MAILHOST, ["$withval"], [String giving fallback POP mail host.]))
168 168
169AC_ARG_WITH([sound],[AS_HELP_STRING([--with-sound=VALUE], 169AC_ARG_WITH([sound],[AS_HELP_STRING([--with-sound=VALUE],
170 [compile with sound support (VALUE one of: yes, ossaudio, alsa, voxware, no; 170 [compile with sound support (VALUE one of: yes, alsa, oss, bsd-ossaudio, no;
171default yes). Only for GNU/Linux, FreeBSD, NetBSD, MinGW.])], 171default yes). Only for GNU/Linux, FreeBSD, NetBSD, MinGW.])],
172 [ case "${withval}" in 172 [ case "${withval}" in
173 yes|no|ossaudio|alsa|voxware) val=$withval ;; 173 yes|no|alsa|oss|bsd-ossaudio) val=$withval ;;
174 *) AC_MSG_ERROR([`--with-sound=$withval' is invalid; 174 *) AC_MSG_ERROR([`--with-sound=$withval' is invalid;
175this option's value should be `yes', `no', `ossaudio', `alsa', or `voxware'.]) 175this option's value should be `yes', `no', `alsa', `oss', or `bsd-ossaudio'.])
176 ;; 176 ;;
177 esac 177 esac
178 with_sound=$val 178 with_sound=$val
@@ -1307,15 +1307,15 @@ if test "${with_sound}" != "no"; then
1307 #include <windows.h> 1307 #include <windows.h>
1308 #endif 1308 #endif
1309 ]) 1309 ])
1310 test "${with_sound}" = "voxware" && test "${have_sound_header}" != "yes" && \ 1310 test "${with_sound}" = "oss" && test "${have_sound_header}" != "yes" && \
1311 AC_MSG_ERROR([OSS/Voxware sound support requested but not found.]) 1311 AC_MSG_ERROR([OSS sound support requested but not found.])
1312 1312
1313 if test "${with_sound}" = "ossaudio" || test "${with_sound}" = "yes"; then 1313 if test "${with_sound}" = "bsd-ossaudio" || test "${with_sound}" = "yes"; then
1314 # Emulation library used on NetBSD. 1314 # Emulation library used on NetBSD.
1315 AC_CHECK_LIB(ossaudio, _oss_ioctl, LIBSOUND=-lossaudio, LIBSOUND=) 1315 AC_CHECK_LIB(ossaudio, _oss_ioctl, LIBSOUND=-lossaudio, LIBSOUND=)
1316 test "${with_sound}" = "ossaudio" && test -z "$LIBSOUND" && \ 1316 test "${with_sound}" = "bsd-ossaudio" && test -z "$LIBSOUND" && \
1317 AC_MSG_ERROR([ossaudio sound support requested but not found.]) 1317 AC_MSG_ERROR([bsd-ossaudio sound support requested but not found.])
1318 dnl FIXME? If we did find ossaudio, should we set with_sound=ossaudio? 1318 dnl FIXME? If we did find ossaudio, should we set with_sound=bsd-ossaudio?
1319 dnl Traditionally, we go on to check for alsa too. Does that make sense? 1319 dnl Traditionally, we go on to check for alsa too. Does that make sense?
1320 fi 1320 fi
1321 AC_SUBST(LIBSOUND) 1321 AC_SUBST(LIBSOUND)