summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-07-26 21:56:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-07-26 21:56:47 +0000
commitbebef9e9407c81319032f0353ed00f450b232df5 (patch)
treea614c8237b23d5ea633af6e26127ef414618efbe
parentd750fa4c2d77d4e53859084c8cffde54f464ab6f (diff)
downloadc-ares-bebef9e9407c81319032f0353ed00f450b232df5.tar.gz
c-ares-bebef9e9407c81319032f0353ed00f450b232df5.tar.bz2
c-ares-bebef9e9407c81319032f0353ed00f450b232df5.zip
added initial pkg-config file (attempt)
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac2
-rw-r--r--libcares.pc.in20
3 files changed, 22 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 36d4a2f..0449c8b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,7 +11,7 @@ MSVCFILES = vc/adig/adig.dep vc/adig/adig.dsp vc/vc.dsw vc/ahost/ahost.dep \
# adig and ahost are just sample programs and thus not mentioned with the
# regular sources and headers
EXTRA_DIST = CHANGES README.cares Makefile.inc adig.c ahost.c $(man_MANS) \
- $(MSVCFILES) AUTHORS config-win32.h RELEASE-NOTES
+ $(MSVCFILES) AUTHORS config-win32.h RELEASE-NOTES libcares.pc.in
VER=-version-info 1:0:0
diff --git a/configure.ac b/configure.ac
index 67e92ba..874901d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -803,4 +803,4 @@ if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
[a suitable file/device to read random data from])
fi
-AC_OUTPUT(Makefile)
+AC_OUTPUT(Makefile libcares.pc)
diff --git a/libcares.pc.in b/libcares.pc.in
new file mode 100644
index 0000000..315b2df
--- /dev/null
+++ b/libcares.pc.in
@@ -0,0 +1,20 @@
+#***************************************************************************
+# Project ___ __ _ _ __ ___ ___
+# / __|____ / _` | '__/ _ \/ __|
+# | (_|_____| (_| | | | __/\__ \
+# \___| \__,_|_| \___||___/
+# $id: $
+#
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: c-ares
+URL: http://daniel.haxx.se/projects/c-ares/
+Description: asyncronous DNS lookup library
+Version: @VERSION@
+Requires:
+Requires.private:
+Cflags: -I${includedir}
+Libs: -L${libdir} -lcares