diff options
author | Thom May <thommay@apache.org> | 2004-05-29 23:16:38 +0000 |
---|---|---|
committer | Thom May <thommay@apache.org> | 2004-05-29 23:16:38 +0000 |
commit | 575d76346a27d840bd6a52df2287479c6a58a415 (patch) | |
tree | e4bf77e12f20a4ea906d613df0245ae7cd6e30a4 | |
parent | fce4f23e56a6109db600301a54b87310e587d8f7 (diff) | |
download | apr-575d76346a27d840bd6a52df2287479c6a58a415.tar.gz |
Add pkg-config APR file.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65141 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | .cvsignore | 1 | ||||
-rw-r--r-- | Makefile.in | 4 | ||||
-rw-r--r-- | apr.pc.in | 14 | ||||
-rw-r--r-- | configure.in | 1 |
4 files changed, 20 insertions, 0 deletions
diff --git a/.cvsignore b/.cvsignore index 22f7fd790..4b17e2735 100644 --- a/.cvsignore +++ b/.cvsignore @@ -38,3 +38,4 @@ build-outputs.mk *.bbg *.da coverage +apr.pc diff --git a/Makefile.in b/Makefile.in index 486382d32..19a6703b0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -70,6 +70,10 @@ install: $(TARGET_LIB) apr-config.out fi; $(LIBTOOL) --mode=install cp $(TARGET_LIB) $(DESTDIR)$(libdir) $(LIBTOOL) --mode=install cp apr.exp $(DESTDIR)$(libdir) + if [ ! -d $(DESTDIR)$(libdir)/pkgconfig ]; then \ + $(top_srcdir)/build/mkdir.sh $(DESTDIR)$(libdir)/pkgconfig; \ + fi; + cp -p apr.pc $(DESTDIR)$(libdir)/pkgconfig; if [ ! -d $(DESTDIR)$(installbuilddir) ]; then \ $(top_srcdir)/build/mkdir.sh $(DESTDIR)$(installbuilddir); \ fi; diff --git a/apr.pc.in b/apr.pc.in new file mode 100644 index 000000000..d3cbe9713 --- /dev/null +++ b/apr.pc.in @@ -0,0 +1,14 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +bindir=@bindir@ +libdir=@libdir@ +datadir=@datadir@ +installbuilddir=@installbuilddir@ +APR_MAJOR_VERSION=@APR_MAJOR_VERSION@ +includedir=@includedir@ + +Name: APR +Description: The Apache Portable Runtime library +Version: @APR_DOTTED_VERSION@ +Libs: -L${libdir} -l@APR_LIBNAME@ @EXTRA_LIBS@ +Cflags: @EXTRA_CFLAGS@ -I${includedir} diff --git a/configure.in b/configure.in index b25abe6eb..96c8a6ba8 100644 --- a/configure.in +++ b/configure.in @@ -1998,6 +1998,7 @@ AC_OUTPUT([ include/apr.h build/apr_rules.mk apr-config + apr.pc ],[ for i in $SAVE_FILES; do if cmp -s $i $i.save 2>/dev/null; then |