disable alsa if no jack found
authorPaul Brossier <piem@altern.org>
Sat, 28 May 2005 06:53:21 +0000 (06:53 +0000)
committerPaul Brossier <piem@altern.org>
Sat, 28 May 2005 06:53:21 +0000 (06:53 +0000)
configure.ac

index 9b6c667fa4e2f267d92b6fd2bafae3cf8d572689..77d818986d02afcee8edd6803a0acae014da6d53 100644 (file)
@@ -130,10 +130,15 @@ AC_ARG_ENABLE(alsa,
   with_alsa="yes")
 if test "$with_alsa" = "yes"
 then
+        if test "$with_jack" = "yes"
+        then
        PKG_CHECK_MODULES(ALSA,       alsa >= 0.0.9,          ALSA_SUPPORT=1, ALSA_SUPPORT=0)
        if test "${ALSA_SUPPORT}" = "1"; then
          AC_DEFINE(ALSA_SUPPORT,1,[Define to enable alsa support])
        fi
+        else
+        AC_MSG_WARN([Disabling alsa as jack was not found])
+        fi
 fi
 
 AC_ARG_ENABLE(ladcca,