mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:05:41 +01:00
configure.ac: check for fftw3/m(sqrtf)/pthread only when BAT is enabled
This commit is contained in:
parent
0960094905
commit
9b757e3a64
1 changed files with 8 additions and 4 deletions
12
configure.ac
12
configure.ac
|
@ -49,10 +49,6 @@ 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
|
||||
|
@ -66,6 +62,14 @@ AC_ARG_ENABLE(bat,
|
|||
fi
|
||||
AM_CONDITIONAL(BAT, test x$bat = xtrue)
|
||||
|
||||
if test x$bat = xtrue; then
|
||||
|
||||
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])])
|
||||
|
||||
fi
|
||||
|
||||
dnl Check for librt
|
||||
LIBRT=""
|
||||
AC_MSG_CHECKING(for librt)
|
||||
|
|
Loading…
Reference in a new issue