pkgconfig support

This commit is contained in:
Sean Middleditch 2009-09-19 14:35:05 -07:00
parent 4adfdf312d
commit d08d812c30
4 changed files with 16 additions and 4 deletions

1
.gitignore vendored
View File

@ -19,3 +19,4 @@ autom4te.cache
telnet-proxy
telnet-client
telnet-chatd
libtelnet.pc

View File

@ -1,3 +1,6 @@
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libtelnet.pc
libtelnet_includedir = $(includedir)
libtelnet_include_HEADERS = libtelnet.h

View File

@ -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

10
libtelnet.pc.in Normal file
View File

@ -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}