mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-12 07:35:51 +01:00
Possible fix for bug #435
I say possible because I can't fully test it as my motherboard audio device doesn't show up in Windows (don't know why yet). So, because of that and because this "fix" needs a little discussion amongst the troops, I've ifdef'd it with EXPERIMENTAL_HAVE_DEVICE_CHANGE and have disabled it by default. What is does is it sets up a device change listener and performs an automatic rescan when a change is detected. (That's the part that needs discussion.)
This commit is contained in:
@@ -606,6 +606,8 @@ case "${host_os}" in
|
||||
dnl Unix configuration
|
||||
CONFIGHEADER="configunix.h"
|
||||
|
||||
AC_CHECK_HEADERS_ONCE(libudev.h)
|
||||
|
||||
dnl On Unix we always use dlopen
|
||||
AC_SEARCH_LIBS([dlopen], [dl])
|
||||
if [[ "$ac_cv_search_dlopen" = no ]]; then
|
||||
@@ -657,6 +659,9 @@ case "${host_os}" in
|
||||
AC_CHECK_LIB(rt, clock_gettime, [rt_libs=" -lrt"])
|
||||
LIBS="${LIBS}${rt_libs}"
|
||||
AC_CHECK_FUNCS([clock_gettime nanosleep])
|
||||
|
||||
AC_CHECK_LIB(udev, udev_new, [udev_libs=" -ludev"])
|
||||
LIBS="${LIBS}${udev_libs}"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
Reference in New Issue
Block a user