Skip to content

Commit

Permalink
Link with apt-X/apt-X HD library by pali.rohar
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq committed Oct 17, 2020
1 parent 63e2eea commit cc97d4d
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,33 @@ AM_COND_IF([ENABLE_AAC], [
AC_DEFINE([ENABLE_AAC], [1], [Define to 1 if AAC is enabled.])
])

AC_ARG_WITH([libopenaptx],
[AS_HELP_STRING([--with-libopenaptx], [use libopenaptx by pali.rohar for apt-X (HD)])])
AM_CONDITIONAL([WITH_LIBOPENAPTX], [test "x$with_libopenaptx" = "xyes"])

AC_ARG_ENABLE([aptx],
[AS_HELP_STRING([--enable-aptx], [enable apt-X encoding support])])
AM_CONDITIONAL([ENABLE_APTX], [test "x$enable_aptx" = "xyes"])
AM_COND_IF([ENABLE_APTX], [
PKG_CHECK_MODULES([APTX], [openaptx >= 1.2.0])
AM_COND_IF([WITH_LIBOPENAPTX], [
PKG_CHECK_MODULES([APTX], [libopenaptx >= 0.3.0])
AC_DEFINE([ENABLE_QUALCOMM_API], [1], [Enable Qualcomm API.])
], [
PKG_CHECK_MODULES([APTX], [openaptx >= 1.2.0])
])
AC_DEFINE([ENABLE_APTX], [1], [Define to 1 if apt-X is enabled.])
])

AC_ARG_ENABLE([aptx_hd],
[AS_HELP_STRING([--enable-aptx-hd], [enable apt-X HD encoding support])])
AM_CONDITIONAL([ENABLE_APTX_HD], [test "x$enable_aptx_hd" = "xyes"])
AM_COND_IF([ENABLE_APTX_HD], [
PKG_CHECK_MODULES([APTX_HD], [openaptxhd >= 1.2.0])
AM_COND_IF([WITH_LIBOPENAPTX], [
PKG_CHECK_MODULES([APTX_HD], [libopenaptx >= 0.3.0])
AC_DEFINE([ENABLE_QUALCOMM_API], [1], [Enable Qualcomm API.])
], [
PKG_CHECK_MODULES([APTX_HD], [openaptxhd >= 1.2.0])
])
AC_DEFINE([ENABLE_APTX_HD], [1], [Define to 1 if apt-X HD is enabled.])
])

Expand Down

0 comments on commit cc97d4d

Please sign in to comment.