Skip to content

Commit

Permalink
tiny fix for oss
Browse files Browse the repository at this point in the history
(also: tiny cleanup autoconf)
[ci skip]
  • Loading branch information
krono committed Mar 20, 2018
1 parent 509ce3f commit ba15ba0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions platforms/unix/vm-display-Quartz/acinclude.m4
@@ -1,7 +1,7 @@
# -*- sh -*-

AC_ARG_WITH(quartz,
[ --without-quartz disable MacOSX Window System support [default=enabled]],
AC_ARG_WITH([quartz],
AS_HELP_STRING([--without-quartz], [disable MacOSX Window System support (default=enabled)]),
[have_quartz="$withval"],
[have_quartz="yes"])

Expand Down
7 changes: 5 additions & 2 deletions platforms/unix/vm-sound-OSS/acinclude.m4
@@ -1,7 +1,7 @@
# -*- sh -*-

AC_ARG_WITH(vm-sound-OSS,
[ --without-vm-sound-OSS disable OSS vm sound support [default=enabled]],
AC_ARG_WITH([vm-sound-OSS],
AS_HELP_STRING([--without-vm-sound-OSS], [disable OSS vm sound support (default=enabled)]),
[with_vm_sound_OSS="$withval"],
[with_vm_sound_OSS="yes"])

Expand All @@ -13,5 +13,8 @@ else
AC_CHECK_HEADERS([soundcard.h sys/soundcard.h],[soundcard_h_found="yes"; break])
if test "$soundcard_h_found" = "no"; then
AC_PLUGIN_DISABLE
else
dnl Opportunistically use ossaudio if available.
AC_CHECK_LIB([ossaudio],[_oss_ioctl],[AC_PLUGIN_USE_LIB([ossaudio])])
fi
fi

0 comments on commit ba15ba0

Please sign in to comment.