Skip to content

Commit 7231f21

Browse files
committed
configure.ac: Add libyaml dependency
I'm about to introduce a feature that is configured via YAML documents. Add a configure.ac dependency for the library to be used for handling those configuration documents. Signed-off-by: Chuck Lever <[email protected]>
1 parent 63855b7 commit 7231f21

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

.github/workflows/makefile.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
libkeyutils-dev \
2727
libnl-3-dev \
2828
libnl-genl-3-dev \
29-
libglib2.0-dev
29+
libglib2.0-dev \
30+
libyaml-dev
3031
3132
- name: Configure
3233
run: |

README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ following libraries to be installed:
3333
* keyutils
3434
* GLib-2.0
3535
* libnl3
36+
* libyaml
3637

3738
## Installation
3839

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ following libraries to be installed:
3333
* keyutils
3434
* GLib-2.0
3535
* libnl3
36+
* libyaml
3637

3738
## Installation
3839

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ AC_SUBST([LIBNL3_LIBS])
6262
PKG_CHECK_MODULES([LIBNL_GENL3], libnl-genl-3.0 >= 3.1)
6363
AC_SUBST([LIBNL_GENL3_CFLAGS])
6464
AC_SUBST([LIBNL_GENL3_LIBS])
65+
PKG_CHECK_MODULES(LIBYAML, [yaml-0.1])
66+
AC_SUBST([LIBYAML_CFLAGS])
67+
AC_SUBST([LIBYAML_LIBS])
6568

6669
AC_CHECK_HEADER([linux/quic.h],
6770
[AC_CHECK_LIB([gnutls], [gnutls_handshake_set_secret_function],

src/tlshd/Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ EXTRA_DIST = $(man8_MANS)
2222
sbin_PROGRAMS = tlshd
2323
tlshd_CFLAGS = -Werror -Wall -Wextra $(LIBGNUTLS_CFLAGS) \
2424
$(LIBKEYUTILS_CFLAGS) $(GLIB_CFLAGS) $(LIBNL3_CFLAGS) \
25-
$(LIBNL_GENL3_CFLAGS)
25+
$(LIBNL_GENL3_CFLAGS) $(LIBYAML_CFLAGS)
2626
tlshd_SOURCES = client.c config.c handshake.c keyring.c ktls.c log.c \
2727
main.c netlink.c netlink.h server.c tlshd.h quic.c
2828
tlshd_LDADD = $(LIBGNUTLS_LIBS) $(LIBKEYUTILS_LIBS) $(GLIB_LIBS) \
29-
$(LIBNL3_LIBS) $(LIBNL_GENL3_LIBS)
29+
$(LIBNL3_LIBS) $(LIBNL_GENL3_LIBS) $(LIBYAML_LIBS)
3030

3131
SUBDIRS = etc
3232
MAINTAINERCLEANFILES = Makefile.in cscope.out

0 commit comments

Comments
 (0)