diff options
Diffstat (limited to 'curses/configure.ac')
-rw-r--r-- | curses/configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/curses/configure.ac b/curses/configure.ac index d4623ea..c397e03 100644 --- a/curses/configure.ac +++ b/curses/configure.ac @@ -1,8 +1,14 @@ AC_INIT([fmplayer], [0.1.0]) AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects]) +AM_SILENT_RULES([yes]) AC_PROG_CC_C99 PKG_CHECK_MODULES([PORTAUDIO], [portaudio-2.0]) +AC_ARG_WITH([samplerate], AS_HELP_STRING([--with-samplerate], [Use libsamplerate and output at native samplerate (needed on NetBSD)])) +AS_IF([test "x$with_samplerate" = "xyes"], [ + PKG_CHECK_MODULES([SAMPLERATE], [samplerate]) + AC_DEFINE([HAVE_SAMPLERATE]) +]) AX_WITH_CURSES AM_ICONV |