]> granicus.if.org Git - libexpat/commitdiff
Autotools: Add package name variable for expat.pc config file
authorMohammed Khajapasha <mohammed.khajapasha@intel.com>
Mon, 14 Oct 2019 17:55:01 +0000 (17:55 +0000)
committerMohammed Khajapasha <mohammed.khajapasha@intel.com>
Mon, 14 Oct 2019 18:19:52 +0000 (18:19 +0000)
Add _EXPAT_TARGET package name variable for expat.pc
package config file in automake.

Signed-off-by: Mohammed Khajapasha <mohammed.khajapasha@intel.com>
expat/configure.ac

index e2b9a1146286a4d49172bf7bb6f4e329a0d7d7e0..49e55def22b3a3d4c7b3c512f0ded892d7a7f05b 100644 (file)
@@ -307,6 +307,9 @@ AS_IF([test "x${DOCBOOK_TO_MAN}" != x -a "x$with_docbook" != xno],
 
 AM_CONDITIONAL(WITH_DOCBOOK, [test "x${DOCBOOK_TO_MAN}" != x])
 
+dnl updating _EXPAT_TARGET variable to effect the package name in expat.pc file (issue #361)
+AC_SUBST(_EXPAT_TARGET, ["$PACKAGE_NAME"])
+
 AC_CONFIG_FILES([Makefile]
   [expat.pc]
   [doc/Makefile]