Skip to content

Commit a8704a8

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 c15abc9 commit a8704a8

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

.github/workflows/makefile.yml

Lines changed: 3 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: |
@@ -68,6 +69,7 @@ jobs:
6869
keyutils-dev \
6970
libnl3-dev \
7071
glib-dev \
72+
yaml-dev \
7173
linux-headers
7274
7375
- name: Configure

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
@@ -19,10 +19,10 @@
1919
sbin_PROGRAMS = tlshd
2020
tlshd_CFLAGS = -Werror -Wall -Wextra $(LIBGNUTLS_CFLAGS) \
2121
$(LIBKEYUTILS_CFLAGS) $(GLIB_CFLAGS) $(LIBNL3_CFLAGS) \
22-
$(LIBNL_GENL3_CFLAGS)
22+
$(LIBNL_GENL3_CFLAGS) $(LIBYAML_CFLAGS)
2323
tlshd_SOURCES = client.c config.c handshake.c keyring.c ktls.c log.c \
2424
main.c netlink.c netlink.h server.c tlshd.h quic.c
2525
tlshd_LDADD = $(LIBGNUTLS_LIBS) $(LIBKEYUTILS_LIBS) $(GLIB_LIBS) \
26-
$(LIBNL3_LIBS) $(LIBNL_GENL3_LIBS)
26+
$(LIBNL3_LIBS) $(LIBNL_GENL3_LIBS) $(LIBYAML_LIBS)
2727

2828
MAINTAINERCLEANFILES = Makefile.in cscope.out

0 commit comments

Comments
 (0)