add a pkg-config file for libdice

This commit is contained in:
Florian Stinglmayr 2018-03-23 16:14:00 +01:00
parent ea98d356a0
commit f26d57419c
3 changed files with 18 additions and 1 deletions

View File

@ -14,4 +14,6 @@ AM_CFLAGS = -Ilib
libdice_la_LIBADD = ${BSD_LIBS}
pkgconfig_DATA = libdice.pc
SUBDIRS = . tests

View File

@ -13,7 +13,7 @@ PKG_CHECK_MODULES([CMOCKA], [cmocka >= 1.0.1])
AC_CHECK_HEADER_STDBOOL()
AC_CHECK_FUNCS([arc4random arc4random_uniform strlcat strlcpy],,
AC_CHECK_FUNCS([arc4random_uniform],,
[PKG_CHECK_MODULES([BSD], [libbsd])])
AC_CONFIG_FILES([Makefile tests/Makefile])
@ -22,4 +22,7 @@ AC_SEARCH_LIBS([cos], [m], [], [
AC_MSG_ERROR([unable to find the cos() function])
])
PKG_INSTALLDIR
AC_CONFIG_FILES([libdice.pc])
AC_OUTPUT

12
libdice.pc.in Normal file
View File

@ -0,0 +1,12 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: libdice
Description: dice rolling and math expression library
Version: 0.1
Requires:
Conflicts:
Cflags: -I${includedir}
Libs: -L${libdir} -ldice