diff --git a/.cvsignore b/.cvsignore index 8889db2dd6e1f7ffdb582f071fc6f926ce6a7079..26497af93d67319fc8d5a3f7e4c159356cdaa972 100644 --- a/.cvsignore +++ b/.cvsignore @@ -9,3 +9,4 @@ ltmain.sh missing config.guess config.sub +*.pc diff --git a/Makefile.am b/Makefile.am index 5757c4eeb62b61ec6fb1a25a13f1ee0b81b05b7d..1eabe0056fe917aec01cdf569331e8fc67fc686e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -10,6 +10,9 @@ AUTOMAKE_OPTIONS = foreign 1.7 lib_LTLIBRARIES = liboop.la @LIBOOP_LIBS@ EXTRA_LTLIBRARIES = liboop-adns.la liboop-glib2.la liboop-glib.la liboop-tcl.la liboop-www.la liboop-rl.la +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = liboop.pc liboop-glib2.pc + # versions updated as of 1.0 liboop_la_LDFLAGS = -version-info 4:1:0 # version:revision:age liboop_la_SOURCES = sys.c select.c signal.c alloc.c read.c read-fd.c read-mem.c diff --git a/configure.ac b/configure.ac index 659713eb779fc0bd2e0d804b8ab875a566d62c26..1388e984ce2a091a93372452f526a888d95d7ca5 100644 --- a/configure.ac +++ b/configure.ac @@ -124,4 +124,4 @@ AC_SUBST(WWW_INCLUDES) AC_SUBST(WWW_LIBS) AC_SUBST(READLINE_LIBS) AC_SUBST(LIBOOP_LIBS) -AC_OUTPUT(Makefile) +AC_OUTPUT([Makefile liboop.pc liboop-glib2.pc]) diff --git a/liboop-glib2.pc.in b/liboop-glib2.pc.in new file mode 100644 index 0000000000000000000000000000000000000000..de6a8e7baed0267f088359395bde54c7a8187489 --- /dev/null +++ b/liboop-glib2.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: liboop-glib2 +Description: Event loop management library (GLIB2 support) +Version: @VERSION@ +Requires: liboop = @VERSION@ +Libs: -L${libdir} -loop-glib2 +Cflags: -D_REENTRANT -I${includedir} diff --git a/liboop.pc.in b/liboop.pc.in new file mode 100644 index 0000000000000000000000000000000000000000..bb0edc7c1f6a4849e44e66afbde8a37100341788 --- /dev/null +++ b/liboop.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: liboop +Description: Event loop management library +Version: @VERSION@ +Libs: -L${libdir} -lpthread -loop +Cflags: -D_REENTRANT -I${includedir}