Re-add the "json" pkg-config file as a compatibility shim.

Also rename the json-c-uninstalled.pc file.
This commit is contained in:
Eric Haszlakiewicz
2012-07-29 18:25:09 -05:00
parent 9f16e25a3e
commit 1f9d199522
5 changed files with 18 additions and 2 deletions

3
.gitignore vendored
View File

@@ -11,8 +11,9 @@
/configure
/depcomp
/install-sh
/json.pc
/json-c.pc
/json-uninstalled.pc
/json-c-uninstalled.pc
/libtool
/ltmain.sh
/Makefile

View File

@@ -10,6 +10,9 @@ endif
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = json-c.pc
if ENABLE_OLDNAME_COMPAT
pkgconfig_DATA += json.pc
endif
libjson_cincludedir = $(includedir)/json-c
libjson_cinclude_HEADERS = \

View File

@@ -41,9 +41,10 @@ AM_PROG_LIBTOOL
AC_CONFIG_FILES([
Makefile
json.pc
json-c.pc
tests/Makefile
json-uninstalled.pc
json-c-uninstalled.pc
])
AC_OUTPUT

11
json.pc.in Normal file
View File

@@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: json-c
Description: JSON implementation in C, compat shim. Use json-c instead.
Version: @VERSION@
Requires: json-c
Libs:
Cflags: