]> granicus.if.org Git - libevent/commitdiff
Add pkgconfig files for libevent_{openssl,pthreads}
authorNick Mathewson <nickm@torproject.org>
Tue, 10 Aug 2010 15:11:25 +0000 (11:11 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 10 Aug 2010 15:11:25 +0000 (11:11 -0400)
.gitignore
Makefile.am
configure.in
libevent_openssl.pc.in [new file with mode: 0644]
libevent_pthreads.pc.in [new file with mode: 0644]

index 197843f5f7066bd20c8dee6971d8ce6c69cd608c..bc8f8c70e0fdb60051b1610b3d865f11dfbb4048 100644 (file)
@@ -38,6 +38,8 @@ TAGS
 
 # Stuff made by our makefiles
 libevent.pc
+libevent_pthreads.pc
+libevent_openssl.pc
 
 ## The initial / makes these files only get ignored in particular directories.
 /autom4te.cache
index 3fffb339b568a3262aa1a185297526b6197fee8e..fa0a1533490219e3a8a8c55c2decbe78490fa50f 100644 (file)
@@ -91,9 +91,11 @@ EXTRA_DIST = \
 lib_LTLIBRARIES = libevent.la libevent_core.la libevent_extra.la
 if PTHREADS
 lib_LTLIBRARIES += libevent_pthreads.la
+pkgconfig_DATA += libevent_pthreads.pc
 endif
 if OPENSSL
 lib_LTLIBRARIES += libevent_openssl.la
+pkgconfig_DATA += libevent_openssl.pc
 endif
 
 SUBDIRS = . include sample test
index a1fc67b8e95f4ba7d6950aaab5c1c833c007d61b..4ddb9beb82eb15fac72f9994ec4ab5433d9c5207 100644 (file)
@@ -593,5 +593,5 @@ if test x$enable_gcc_warnings = xyes; then
 
 fi
 
-AC_CONFIG_FILES( [libevent.pc] )
+AC_CONFIG_FILES( [libevent.pc libevent_openssl.pc libevent_pthreads.pc] )
 AC_OUTPUT(Makefile include/Makefile test/Makefile sample/Makefile)
diff --git a/libevent_openssl.pc.in b/libevent_openssl.pc.in
new file mode 100644 (file)
index 0000000..0fe7cb6
--- /dev/null
@@ -0,0 +1,16 @@
+#libevent pkg-config source file
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libevent_openssl
+Description: libevent_openssl adds openssl-based TLS support to libevent
+Version: @VERSION@
+Requires: libevent
+Conflicts:
+Libs: -L${libdir} -levent_openssl
+Libs.private: @LIBS@ -lcrypto -lssl
+Cflags: -I${includedir}
+
diff --git a/libevent_pthreads.pc.in b/libevent_pthreads.pc.in
new file mode 100644 (file)
index 0000000..9bc2392
--- /dev/null
@@ -0,0 +1,16 @@
+#libevent pkg-config source file
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libevent_pthreads
+Description: libevent_pthreads adds pthreads-based threading support to libevent
+Version: @VERSION@
+Requires: libevent
+Conflicts:
+Libs: -L${libdir} -levent_pthreads
+Libs.private: @LIBS@ @PTHREAD_LIBS@
+Cflags: -I${includedir} @PTHREAD_CFLAGS@
+