Browse files

pkgconfig support

  • Loading branch information...
1 parent 4adfdf3 commit d08d812c3025474d47a090626b8ee14fcb89f883 @seanmiddleditch seanmiddleditch committed Sep 19, 2009
Showing with 16 additions and 4 deletions.
  1. +1 −0 .gitignore
  2. +3 −0 Makefile.am
  3. +2 −4 configure.ac
  4. +10 −0 libtelnet.pc.in
View
1 .gitignore
@@ -19,3 +19,4 @@ autom4te.cache
telnet-proxy
telnet-client
telnet-chatd
+libtelnet.pc
View
3 Makefile.am
@@ -1,3 +1,6 @@
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libtelnet.pc
+
libtelnet_includedir = $(includedir)
libtelnet_include_HEADERS = libtelnet.h
View
6 configure.ac
@@ -1,4 +1,4 @@
-AC_INIT([libtelnet], [0.11], [http://github.com/elanthis/libtelnet/tree/master])
+AC_INIT([libtelnet], [0.12], [http://github.com/elanthis/libtelnet/tree/master])
AM_INIT_AUTOMAKE
@@ -10,9 +10,7 @@ AC_CHECK_LIB(z,deflate,ZLIB=yes,ZLIB=no)
if test "x$ZLIB" = "xyes" ; then
LIBS="$LIBS -lz"
AC_DEFINE(HAVE_ZLIB, 1, [We have zlib])
- LIBTELNET_HAVE_ZLIB="-DHAVE_ZLIB"
- AC_SUBST(LIBTELNET_HAVE_ZLIB)
fi
-AC_CONFIG_FILES(Makefile)
+AC_CONFIG_FILES([Makefile libtelnet.pc])
AC_OUTPUT
View
10 libtelnet.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=${prefix}/include
+
+Name: libtelnet
+Description: TELNET protocol handling library
+Version: @VERSION@
+Libs: -L${libdir} -ltelnet @LIBS@
+Cflags: -I${includedir}

0 comments on commit d08d812

Please sign in to comment.