mirror of https://gerrit.osmocom.org/libtelnet
pkgconfig support
parent
4adfdf312d
commit
d08d812c30
|
@ -19,3 +19,4 @@ autom4te.cache
|
|||
telnet-proxy
|
||||
telnet-client
|
||||
telnet-chatd
|
||||
libtelnet.pc
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = libtelnet.pc
|
||||
|
||||
libtelnet_includedir = $(includedir)
|
||||
libtelnet_include_HEADERS = libtelnet.h
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}
|
Loading…
Reference in New Issue