build: add support for pkg-config
This commit is contained in:
parent
646de34f5e
commit
6c063317b7
@ -267,6 +267,11 @@ libuv_la_LIBADD = uv-dtrace.lo
|
|||||||
CLEANFILES += src/unix/uv-dtrace.o src/unix/uv-dtrace.lo
|
CLEANFILES += src/unix/uv-dtrace.o src/unix/uv-dtrace.lo
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if HAVE_PKG_CONFIG
|
||||||
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
|
pkgconfig_DATA = @PACKAGE_NAME@.pc
|
||||||
|
endif
|
||||||
|
|
||||||
SUFFIXES = .d
|
SUFFIXES = .d
|
||||||
|
|
||||||
include/uv-dtrace.h: src/unix/uv-dtrace.d
|
include/uv-dtrace.h: src/unix/uv-dtrace.d
|
||||||
|
|||||||
@ -45,6 +45,12 @@ AM_CONDITIONAL([NETBSD], [AS_CASE([$host_os], [netbsd*], [true], [false])])
|
|||||||
AM_CONDITIONAL([OPENBSD], [AS_CASE([$host_os], [openbsd*], [true], [false])])
|
AM_CONDITIONAL([OPENBSD], [AS_CASE([$host_os], [openbsd*], [true], [false])])
|
||||||
AM_CONDITIONAL([SUNOS], [AS_CASE([$host_os], [solaris*], [true], [false])])
|
AM_CONDITIONAL([SUNOS], [AS_CASE([$host_os], [solaris*], [true], [false])])
|
||||||
AM_CONDITIONAL([WINNT], [AS_CASE([$host_os], [mingw*], [true], [false])])
|
AM_CONDITIONAL([WINNT], [AS_CASE([$host_os], [mingw*], [true], [false])])
|
||||||
|
PKG_PROG_PKG_CONFIG([0.20])
|
||||||
|
AM_CONDITIONAL([HAVE_PKG_CONFIG], [test "x$PKG_CONFIG" != "x"])
|
||||||
|
AC_SUBST(HAVE_PKG_CONFIG)
|
||||||
PANDORA_ENABLE_DTRACE
|
PANDORA_ENABLE_DTRACE
|
||||||
|
AS_IF([test "x$PKG_CONFIG" != "x"], [
|
||||||
|
AC_CONFIG_FILES([libuv.pc])
|
||||||
|
])
|
||||||
AC_CONFIG_FILES([Makefile])
|
AC_CONFIG_FILES([Makefile])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|||||||
11
libuv.pc.in
Normal file
11
libuv.pc.in
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
prefix=@prefix@
|
||||||
|
exec_prefix=@prefix@
|
||||||
|
libdir=@libdir@
|
||||||
|
includedir=@includedir@
|
||||||
|
|
||||||
|
Name: @PACKAGE_NAME@
|
||||||
|
Version: @PACKAGE_VERSION@
|
||||||
|
Description: multi-platform support library with a focus on asynchronous I/O.
|
||||||
|
|
||||||
|
Libs: -L${libdir} -luv
|
||||||
|
Cflags: -I${includedir}
|
||||||
Loading…
Reference in New Issue
Block a user