Skip to content
This repository was archived by the owner on Jan 25, 2021. It is now read-only.

Commit 006543f

Browse files
committed
[configure.ac] Check FDK-AAC
[Makefile.am] Add AAC support
1 parent 5ef83ed commit 006543f

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

configure.ac

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ PA_MACHINE_ID_FALLBACK="${localstatedir}/lib/dbus/machine-id"
10601060
AX_DEFINE_DIR(PA_MACHINE_ID_FALLBACK, PA_MACHINE_ID_FALLBACK,
10611061
[Fallback machine-id file])
10621062

1063-
#### BlueZ support (optional, dependent on FFmpeg, D-Bus and SBC) ####
1063+
#### BlueZ support (optional, dependent on FFmpeg, FDK-AAC, D-Bus and SBC) ####
10641064

10651065
AC_ARG_ENABLE([bluez5],
10661066
AS_HELP_STRING([--disable-bluez5],[Disable optional BlueZ 5 support]))
@@ -1070,6 +1070,12 @@ AS_IF([test "x$enable_bluez5" != "xno"],
10701070
[PKG_CHECK_MODULES(SBC, [ sbc >= 1.0 ], HAVE_SBC=1, HAVE_SBC=0)],
10711071
HAVE_SBC=0)
10721072

1073+
## FDK-AAC ##
1074+
AS_IF([test "x$enable_bluez5" != "xno"],
1075+
[PKG_CHECK_MODULES(FDK_AAC, [ fdk-aac >= 0.1.5 ], HAVE_FDK_AAC=1, HAVE_FDK_AAC=0)],
1076+
HAVE_FDK_AAC=0)
1077+
1078+
10731079
## FFmpeg libavcodec ##
10741080
AS_IF([test "x$enable_bluez5" != "xno"],
10751081
[PKG_CHECK_MODULES(FF_AVCODEC, [ libavcodec >= 58.18.100 ], HAVE_FF_AVCODEC=1, HAVE_FF_AVCODEC=0)],
@@ -1079,10 +1085,10 @@ AS_IF([test "x$enable_bluez5" != "xno"],
10791085
HAVE_FF_AVUTIL=0)
10801086

10811087
## BlueZ 5 ##
1082-
AS_IF([test "x$enable_bluez5" != "xno" && test "x$HAVE_DBUS" = "x1" && test "x$HAVE_SBC" = "x1" && test "x$HAVE_FF_AVCODEC" = "x1" && test "x$HAVE_FF_AVUTIL" = "x1"], HAVE_BLUEZ_5=1,
1088+
AS_IF([test "x$enable_bluez5" != "xno" && test "x$HAVE_DBUS" = "x1" && test "x$HAVE_SBC" = "x1" && test "x$HAVE_FDK_AAC" = "x1" && test "x$HAVE_FF_AVCODEC" = "x1" && test "x$HAVE_FF_AVUTIL" = "x1"], HAVE_BLUEZ_5=1,
10831089
HAVE_BLUEZ_5=0)
10841090
AS_IF([test "x$enable_bluez5" = "xyes" && test "x$HAVE_BLUEZ_5" != "x1"],
1085-
[AC_MSG_ERROR([*** BLUEZ 5 support not found (requires FFmpeg, sbc and D-Bus)])])
1091+
[AC_MSG_ERROR([*** BLUEZ 5 support not found (requires FFmpeg, FDK-AAC, sbc and D-Bus)])])
10861092
AC_SUBST(HAVE_BLUEZ_5)
10871093
AM_CONDITIONAL([HAVE_BLUEZ_5], [test "x$HAVE_BLUEZ_5" = x1])
10881094

src/Makefile.am

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2118,6 +2118,7 @@ libbluez5_util_la_SOURCES = \
21182118
modules/bluetooth/bluez5-util.c \
21192119
modules/bluetooth/a2dp/a2dp_util.c \
21202120
modules/bluetooth/a2dp/a2dp_sbc.c \
2121+
modules/bluetooth/a2dp/a2dp_aac.c \
21212122
modules/bluetooth/a2dp/a2dp_aptx.c \
21222123
modules/bluetooth/a2dp/a2dp_ldac.c \
21232124
modules/bluetooth/a2dp-api.h \
@@ -2135,8 +2136,8 @@ libbluez5_util_la_SOURCES += \
21352136
endif
21362137

21372138
libbluez5_util_la_LDFLAGS = -avoid-version
2138-
libbluez5_util_la_LIBADD = $(MODULE_LIBADD) $(SBC_LIBS) $(DBUS_LIBS)
2139-
libbluez5_util_la_CFLAGS = $(AM_CFLAGS) $(SBC_CFLAGS) $(DBUS_CFLAGS) $(FF_AVCODEC_CFLAGS) $(FF_AVUTIL_CFLAGS)
2139+
libbluez5_util_la_LIBADD = $(MODULE_LIBADD) $(SBC_LIBS) $(DBUS_LIBS) $(FDK_AAC_LIBS)
2140+
libbluez5_util_la_CFLAGS = $(AM_CFLAGS) $(SBC_CFLAGS) $(DBUS_CFLAGS) $(FF_AVCODEC_CFLAGS) $(FF_AVUTIL_CFLAGS) $(FDK_AAC_CFLAGS)
21402141

21412142
module_bluez5_discover_la_SOURCES = modules/bluetooth/module-bluez5-discover.c
21422143
module_bluez5_discover_la_LDFLAGS = $(MODULE_LDFLAGS)

0 commit comments

Comments
 (0)