For BSDs, only set OSS if Jack not found.
authorStephen Sinclair <radarsat1@gmail.com>
Sun, 27 Aug 2017 02:45:34 +0000 (23:45 -0300)
committerStephen Sinclair <radarsat1@gmail.com>
Sun, 27 Aug 2017 02:45:34 +0000 (23:45 -0300)
configure.ac

index 7d2d0855495e180e304924b09113086f6c1a0b6b..1bda54892d8c66afd827ad88347ecccdc1e66721 100644 (file)
@@ -131,17 +131,21 @@ AS_IF([test "x$with_jack" == "xyes"], [
 
 case $host in
   *-*-netbsd*)
+  if [test "$api" == ""; ] then
     AC_MSG_RESULT(using OSS)
     api="$api -D__LINUX_OSS__"
     LIBS="$LIBS -lossaudio"
     AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(RtAudio requires the pthread library!))
+  fi
   ;;
 
   *-*-freebsd*)
+  if [test "$api" == ""; ] then
     AC_MSG_RESULT(using OSS)
     api="$api -D__LINUX_OSS__"
     LIBS="$LIBS -lossaudio"
     AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(RtAudio requires the pthread library!))
+  fi
   ;;
 
   *-*-linux*)