Re-add the "json" pkg-config file as a compatibility shim.
Also rename the json-c-uninstalled.pc file.
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -11,8 +11,9 @@
|
|||||||
/configure
|
/configure
|
||||||
/depcomp
|
/depcomp
|
||||||
/install-sh
|
/install-sh
|
||||||
|
/json.pc
|
||||||
/json-c.pc
|
/json-c.pc
|
||||||
/json-uninstalled.pc
|
/json-c-uninstalled.pc
|
||||||
/libtool
|
/libtool
|
||||||
/ltmain.sh
|
/ltmain.sh
|
||||||
/Makefile
|
/Makefile
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ endif
|
|||||||
|
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
pkgconfig_DATA = json-c.pc
|
pkgconfig_DATA = json-c.pc
|
||||||
|
if ENABLE_OLDNAME_COMPAT
|
||||||
|
pkgconfig_DATA += json.pc
|
||||||
|
endif
|
||||||
|
|
||||||
libjson_cincludedir = $(includedir)/json-c
|
libjson_cincludedir = $(includedir)/json-c
|
||||||
libjson_cinclude_HEADERS = \
|
libjson_cinclude_HEADERS = \
|
||||||
|
|||||||
@@ -41,9 +41,10 @@ AM_PROG_LIBTOOL
|
|||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
|
json.pc
|
||||||
json-c.pc
|
json-c.pc
|
||||||
tests/Makefile
|
tests/Makefile
|
||||||
json-uninstalled.pc
|
json-c-uninstalled.pc
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|||||||
11
json.pc.in
Normal file
11
json.pc.in
Normal 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:
|
||||||
Reference in New Issue
Block a user