mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-11 13:24:43 -04:00
pkgconfig support from Ted Bullock
svn:r1177
This commit is contained in:
parent
0b98781353
commit
edfc28caef
@ -29,9 +29,13 @@ VERSION_INFO = 2:0:0
|
|||||||
|
|
||||||
bin_SCRIPTS = event_rpcgen.py
|
bin_SCRIPTS = event_rpcgen.py
|
||||||
|
|
||||||
|
pkgconfigdir=$(libdir)/pkgconfig
|
||||||
|
pkgconfig_DATA=libevent.pc
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
autogen.sh evdns.3 \
|
autogen.sh evdns.3 \
|
||||||
event.3 \
|
event.3 \
|
||||||
|
libevent.pc \
|
||||||
Doxyfile \
|
Doxyfile \
|
||||||
kqueue.c epoll_sub.c epoll.c select.c poll.c signal.c \
|
kqueue.c epoll_sub.c epoll.c select.c poll.c signal.c \
|
||||||
evport.c devpoll.c event_rpcgen.py \
|
evport.c devpoll.c event_rpcgen.py \
|
||||||
@ -131,4 +135,4 @@ doxygen: FORCE
|
|||||||
doxygen $(srcdir)/Doxyfile
|
doxygen $(srcdir)/Doxyfile
|
||||||
FORCE:
|
FORCE:
|
||||||
|
|
||||||
DISTCLEANFILES = *~ event-config.h
|
DISTCLEANFILES = *~ event-config.h libevent.pc
|
||||||
|
@ -40,10 +40,10 @@ dnl AC_DISABLE_SHARED
|
|||||||
AC_SUBST(LIBTOOL_DEPS)
|
AC_SUBST(LIBTOOL_DEPS)
|
||||||
|
|
||||||
dnl Checks for libraries.
|
dnl Checks for libraries.
|
||||||
AC_CHECK_LIB(socket, socket)
|
AC_CHECK_LIB(socket, socket, [AC_SUBST( [LIBSOCKET], ["-lsocket"] )] )
|
||||||
AC_CHECK_LIB(resolv, inet_aton)
|
AC_CHECK_LIB(resolv, inet_aton, [AC_SUBST( [LIBRESOLV], ["-lresolv"] )] )
|
||||||
AC_CHECK_LIB(rt, clock_gettime)
|
AC_CHECK_LIB(rt, clock_gettime, [AC_SUBST( [LIBRT], ["-lrt"] )] )
|
||||||
AC_CHECK_LIB(nsl, inet_ntoa)
|
AC_CHECK_LIB(nsl, inet_ntoa, [AC_SUBST( [LIBNSL], ["-lnsl"] )] )
|
||||||
|
|
||||||
dnl Determine if we have zlib for regression tests
|
dnl Determine if we have zlib for regression tests
|
||||||
ZLIB_LIBS=""
|
ZLIB_LIBS=""
|
||||||
@ -453,4 +453,5 @@ if test x$enable_gcc_warnings = xyes; then
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_CONFIG_FILES( [libevent.pc] )
|
||||||
AC_OUTPUT(Makefile include/Makefile test/Makefile sample/Makefile)
|
AC_OUTPUT(Makefile include/Makefile test/Makefile sample/Makefile)
|
||||||
|
15
libevent.pc.in
Normal file
15
libevent.pc.in
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#libevent pkg-config source file
|
||||||
|
|
||||||
|
prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
libdir=@libdir@
|
||||||
|
includedir=@includedir@
|
||||||
|
|
||||||
|
Name: libevent
|
||||||
|
Description: libevent is an asynchronous notification event loop library
|
||||||
|
Version: @VERSION@
|
||||||
|
Requires:
|
||||||
|
Conflicts:
|
||||||
|
Libs: -L${libdir} -levent @LIBSOCKET@ @LIBRESOLV@ @LIBRT@ @LIBNSL@ @ZLIB_LIBS@
|
||||||
|
Cflags: -I${includedir}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user