Skip to content

Commit c63477f

Browse files
committed
Added pkgconfig file for module check.
1 parent 2feb1e9 commit c63477f

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

Makefile.am

+3-3
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ libopenvpn_la_SOURCES += openvpn_win32_resources.rc
9999
libopenvpn_la_LIBADD += -lgdi32 -lws2_32 -lwininet -lcrypt32 -liphlpapi -lwinmm
100100
endif
101101

102+
pkgconfigdir = $(libdir)/pkgconfig
103+
pkgconfig_DATA = libopenvpn.pc
104+
102105
nobase_pkginclude_HEADERS = \
103106
base64.h \
104107
basic.h \
@@ -181,6 +184,3 @@ nobase_pkginclude_HEADERS = \
181184

182185
SUBDIRS = lib
183186

184-
.PHONY: modules
185-
186-
modules:

configure.ac

+1
Original file line numberDiff line numberDiff line change
@@ -545,5 +545,6 @@ LDFLAGS="${LDFLAGS-} -no-undefined"
545545

546546
AC_CONFIG_FILES([Makefile
547547
lib/Makefile
548+
libopenvpn.pc
548549
])
549550
AC_OUTPUT

libopenvpn.pc.in

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
prefix=@prefix@
2+
exec_prefix=@exec_prefix@
3+
libdir=@libdir@
4+
includedir=@includedir@
5+
6+
Name: @PACKAGE@
7+
Description: A utility library for utilizing OpenVPN functionality.
8+
Version: @VERSION@
9+
Requires:
10+
Requires.private:
11+
Cflags: -I${includedir}
12+
Libs: -L${libdir} -lopenvpn

0 commit comments

Comments
 (0)