Skip to content

Commit

Permalink
use pkg-config to configure readline for bluealsa-rfcomm
Browse files Browse the repository at this point in the history
  • Loading branch information
borine committed Feb 27, 2025
1 parent 4ee6d50 commit 8e75a5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,7 @@ AC_ARG_ENABLE([rfcomm],
[AS_HELP_STRING([--enable-rfcomm], [enable building of bluealsa-rfcomm tool])])
AM_CONDITIONAL([ENABLE_RFCOMM], [test "x$enable_rfcomm" = "xyes"])
AM_COND_IF([ENABLE_RFCOMM], [
AC_CHECK_HEADERS([readline/readline.h readline/history.h],
[], [AC_MSG_ERROR([readline header files not found])])
PKG_CHECK_MODULES([READLINE], [readline])
])

AC_ARG_ENABLE([a2dpconf],
Expand Down
5 changes: 3 additions & 2 deletions utils/rfcomm/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ bluealsa_rfcomm_CFLAGS = \
-I$(top_srcdir)/src \
@BLUEZ_CFLAGS@ \
@DBUS1_CFLAGS@ \
@LIBUNWIND_CFLAGS@
@LIBUNWIND_CFLAGS@ \
@READLINE_CFLAGS@

bluealsa_rfcomm_LDADD = \
@DBUS1_LIBS@ \
@LIBUNWIND_LIBS@ \
-lreadline
@READLINE_LIBS@

endif

0 comments on commit 8e75a5a

Please sign in to comment.