From: han.lu@intel.com
To: tiwai@suse.de, liam.r.girdwood@intel.com,
bernard.gautier@intel.com, caleb@crome.org,
alsa-devel@alsa-project.org
Cc: "Lu, Han" <han.lu@intel.com>
Subject: [PATCH V2 7/7] BAT: Add Makefile and configures
Date: Wed, 23 Sep 2015 15:48:55 +0800 [thread overview]
Message-ID: <f6b856fe5a3075e988211d3a2196d133795f548e.1442993440.git.han.lu@intel.com> (raw)
In-Reply-To: <cover.1442993440.git.han.lu@intel.com>
In-Reply-To: <cover.1442993440.git.han.lu@intel.com>
From: "Lu, Han" <han.lu@intel.com>
Add Makefile and configures that enable BAT on alsa-utils
Signed-off-by: Lu, Han <han.lu@intel.com>
Signed-off-by: Liam Girdwood <liam.r.girdwood@intel.com>
Signed-off-by: Bernard Gautier <bernard.gautier@intel.com>
diff --git a/Makefile.am b/Makefile.am
index 613f62d..3d24b87 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,6 +18,9 @@ SUBDIRS += aplay iecset speaker-test
if ALSALOOP
SUBDIRS += alsaloop
endif
+if BAT
+SUBDIRS += bat
+endif
endif
if HAVE_SEQ
SUBDIRS += seq
diff --git a/bat/Makefile.am b/bat/Makefile.am
new file mode 100644
index 0000000..0849d0d
--- /dev/null
+++ b/bat/Makefile.am
@@ -0,0 +1,14 @@
+bin_PROGRAMS = bat
+
+bat_SOURCES = \
+ bat.c \
+ common.c \
+ analyze.c \
+ signal.c \
+ convert.c \
+ alsa.c
+
+AM_CPPFLAGS = \
+ -Wall -I$(top_srcdir)/include
+
+bat_LDADD = -lasound
diff --git a/configure.ac b/configure.ac
index 4c279a9..8c2d1a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,6 +63,23 @@ AM_CONDITIONAL(HAVE_UCM, test "$have_ucm" = "yes")
AM_CONDITIONAL(HAVE_TOPOLOGY, test "$have_topology" = "yes")
AM_CONDITIONAL(HAVE_SAMPLERATE, test "$have_samplerate" = "yes")
+AC_CHECK_LIB([fftw3], [fftw_malloc], , [AC_MSG_ERROR([Error: need FFTW3 library])])
+AC_CHECK_LIB([m], [sqrtf], , [AC_MSG_ERROR([Error: Need sqrtf])])
+AC_CHECK_LIB([pthread], [pthread_create], , [AC_MSG_ERROR([Error: need PTHREAD library])])
+
+dnl Disable bat
+bat=
+if test "$have_pcm" = "yes"; then
+AC_ARG_ENABLE(bat,
+ AS_HELP_STRING([--disable-bat], [Disable bat compilation]),
+ [case "${enableval}" in
+ yes) bat=true ;;
+ no) bat=false ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-bat) ;;
+ esac],[bat=true])
+fi
+AM_CONDITIONAL(BAT, test x$bat = xtrue)
+
dnl Check for librt
LIBRT=""
AC_MSG_CHECKING(for librt)
@@ -361,7 +378,7 @@ AC_OUTPUT(Makefile alsactl/Makefile alsactl/init/Makefile \
m4/Makefile po/Makefile.in \
alsaconf/alsaconf alsaconf/Makefile \
alsaconf/po/Makefile \
- alsaucm/Makefile topology/Makefile \
+ alsaucm/Makefile topology/Makefile bat/Makefile \
aplay/Makefile include/Makefile iecset/Makefile utils/Makefile \
utils/alsa-utils.spec seq/Makefile seq/aconnect/Makefile \
seq/aplaymidi/Makefile seq/aseqdump/Makefile seq/aseqnet/Makefile \
--
1.9.1
next prev parent reply other threads:[~2015-09-23 7:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-23 7:48 [PATCH V2 0/7] BAT: Add Basic Audio Tester command line tool han.lu
2015-09-23 7:48 ` [PATCH V2 1/7] BAT: Add initial functions han.lu
2015-10-02 10:55 ` Takashi Iwai
2015-10-12 8:56 ` Lu, Han
2015-10-13 9:53 ` Liam Girdwood
2015-09-23 7:48 ` [PATCH V2 2/7] BAT: Add common definitions and functions han.lu
2015-10-02 10:57 ` Takashi Iwai
2015-09-23 7:48 ` [PATCH V2 3/7] BAT: Add playback and record functions han.lu
2015-09-23 7:48 ` [PATCH V2 4/7] BAT: Add signal generator han.lu
2015-09-23 7:48 ` [PATCH V2 5/7] BAT: Add converting functions han.lu
2015-09-23 7:48 ` [PATCH V2 6/7] BAT: Add spectrum analysis functions han.lu
2015-09-23 7:48 ` han.lu [this message]
2015-10-02 10:49 ` [PATCH V2 0/7] BAT: Add Basic Audio Tester command line tool Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f6b856fe5a3075e988211d3a2196d133795f548e.1442993440.git.han.lu@intel.com \
--to=han.lu@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=bernard.gautier@intel.com \
--cc=caleb@crome.org \
--cc=liam.r.girdwood@intel.com \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.