Below the fold I've included a patch for publishing a pkgconfig file for this 
library so that other auto tools can find it easily. The patch is with respect 
to top of tree CVS 2012-06-09.

Cheers

Godfrey

-------------------------------------------------------------------------
diff --git a/Makefile.am b/Makefile.am
index 059305b..55717ad 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,7 +2,7 @@ AUTOMAKE_OPTIONS = foreign
 
 VERSION_INFO = 4:0:0
 
-EXTRA_DIST = LICENSE Changes libev.m4 autogen.sh \
+EXTRA_DIST = LICENSE Changes libev.m4 autogen.sh libev.pc.in \
             ev_vars.h ev_wrap.h \
             ev_epoll.c ev_select.c ev_poll.c ev_kqueue.c ev_port.c ev_win32.c \
             ev.3 ev.pod Symbols.ev Symbols.event
@@ -13,6 +13,10 @@ include_HEADERS = ev.h ev++.h event.h
 
 lib_LTLIBRARIES = libev.la
 
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libev.pc
+$(pkgconfig_DATA): config.status
+
 libev_la_SOURCES = ev.c event.c
 libev_la_LDFLAGS = -version-info $(VERSION_INFO)
 
diff --git a/configure.ac b/configure.ac
index 31d0a25..1af149a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,5 +21,5 @@ AC_PROG_LIBTOOL
 
 m4_include([libev.m4])
 
-AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([Makefile libev.pc])
 AC_OUTPUT


_______________________________________________
libev mailing list
libev@lists.schmorp.de
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to