forked from osmocom/wireshark
Link only the GUIs with SBC (if we have SBC). The other programs don't
(yet) use libcodec. Also, there's no need to explicitly call pkg-config to get SBC's CFLAGS and LIBS: PKG_CHECK_MODULES does that for you. Change-Id: Ia7aa84bb81b8223773661ae2dc663731acaf6c6b Reviewed-on: https://code.wireshark.org/review/6700 Petri-Dish: Jeff Morriss <jeff.morriss.ws@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
46fabdcdf3
commit
ed413e9fe4
|
@ -416,6 +416,7 @@ wireshark_common_ldadd = \
|
|||
@LIBGCRYPT_LIBS@ \
|
||||
@LIBGNUTLS_LIBS@ \
|
||||
@LIBSMI_LDFLAGS@ \
|
||||
@SBC_LIBS@ \
|
||||
@GLIB_LIBS@
|
||||
|
||||
if HAVE_Qt
|
||||
|
@ -644,7 +645,7 @@ dumpcap_LDFLAGS = $(PIE_LDFLAGS)
|
|||
# Common headers
|
||||
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
|
||||
$(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) \
|
||||
@LUA_INCLUDES@ -DTOP_SRCDIR=\"$(abs_top_srcdir)\"
|
||||
@LUA_INCLUDES@ $(SBC_CFLAGS) -DTOP_SRCDIR=\"$(abs_top_srcdir)\"
|
||||
|
||||
#
|
||||
# Build the version string
|
||||
|
|
|
@ -2845,8 +2845,6 @@ PKG_CHECK_MODULES(SBC, sbc >= 1.0, [have_sbc=yes], [have_sbc=no])
|
|||
if test "x$with_sbc" != "xno"; then
|
||||
if (test "${have_sbc}" = "yes"); then
|
||||
AC_DEFINE(HAVE_SBC, 1, [Define to support playing SBC by standalone BlueZ SBC library])
|
||||
CFLAGS="$CFLAGS $(pkg-config sbc --cflags)"
|
||||
LIBS="$LIBS $(pkg-config sbc --libs)"
|
||||
elif test "x$want_sbc" = "xyes"; then
|
||||
# Error out if the user explicitly requested the sbc library
|
||||
AC_MSG_ERROR([SBC codec library was requested, but is not available])
|
||||
|
|
Loading…
Reference in New Issue