From 0c8d7c868b37e908fb85be05ea7807588a602d76 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Mon, 23 Jan 2017 20:18:31 +0900 Subject: add libsamplerate support for platforms not supporting 55khz --- curses/configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'curses/configure.ac') 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 -- cgit v1.2.3