diff --git a/configure.ac b/configure.ac index 5d5fb1b1cbec33c0d9fbb8c73ca537915dee30f0..189958728d29cb9b7cee602753e3a5e8bc5156b5 100644 --- a/configure.ac +++ b/configure.ac @@ -331,15 +331,13 @@ dnl check for libportaudio AS_IF([test "${SYS}" = "mingw32"],[ AC_ARG_WITH([portaudio], [AS_HELP_STRING([--without-portaudio], [disable support for portaudio])], [], [with_portaudio=yes]) - +]) AS_IF([test "x$with_portaudio" = "xyes"], [PKG_CHECK_MODULES(PORTAUDIO, [portaudio-2.0], [AC_DEFINE([HAVE_PORTAUDIO], 1, [Define if you have portaudio])], - [AC_MSG_WARN([Missing libportaudio development files]) - AC_DEFINE([HAVE_PORTAUDIO], 0, [Define if you have portaudio]) - ]) + [AC_MSG_ERROR([Missing libportaudio development files])]) ]) -]) + AM_CONDITIONAL(BUILD_PORTAUDIO, test "x$with_portaudio" = "xyes") AM_CONDITIONAL(HAVE_PORTAUDIO, test "x$with_portaudio" = "xyes")