Skip to content
Snippets Groups Projects
Commit d9ccc00e authored by Boris Kolpackov's avatar Boris Kolpackov
Browse files

Add support for generating pkgconfig file. Patch by Jay Berkenbilt (XERCESC-1824).

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@695767 13f79535-47bb-0310-9956-ffa450edef68
parent 59b28308
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,9 @@ ACLOCAL_AMFLAGS = -I m4
CLEANFILES = test-results.log
pkgconfigdir = @pkgconfigdir@
pkgconfig_DATA= xerces-c.pc
check:
-rm -f test-results.log
export PATH=${abs_top_builddir}/samples:${abs_top_builddir}/tests:"${PATH}" && export XERCESC_NLS_HOME=${abs_top_builddir}/src/.libs && cd ${top_srcdir} && perl scripts/sanityTest.pl 2>&1 | ${SED} 's/ *[0-9][0-9]* *ms */{timing removed}/' 1> ${abs_top_builddir}/test-results.log
......
......@@ -35,7 +35,8 @@ AC_CONFIG_FILES([Makefile \
src/xercesc/util/MsgLoaders/ICU/resources/Makefile \
src/xercesc/util/MsgLoaders/MsgCatalog/Makefile \
tests/Makefile \
samples/Makefile])
samples/Makefile \
xerces-c.pc])
# Check the target system
AC_CANONICAL_HOST
......@@ -187,11 +188,21 @@ XERCES_TRANSCODER_SELECTION
XERCES_MSGLOADER_SELECTION
XERCES_FILEMGR_SELECTION
# Allow the user to specify the pkgconfig directory.
#
AC_ARG_WITH(pkgconfigdir,
AC_HELP_STRING([--with-pkgconfigdir=DIR],
[Specify location of pkgconfig dir (default is libdir/pkgconfig)]),
[pkgconfigdir=${withval}],
[pkgconfigdir='${libdir}/pkgconfig'])
AC_SUBST([pkgconfigdir])
######################################################
# Define some namespace-protected macros for use in the publicly visible
# XercesConfig.h file.
# Define some namespace-protected macros for use in the
# publicly visible XercesConfig.h file.
######################################################
AC_DEFINE([XERCES_AUTOCONF], 1, [Define to true if autoconf is used in this configuration])
AS_IF([test x$ac_cv_header_sys_types_h = xyes],
......
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: Xerces-C++
Description: Validating XML parser library for C++
Version: @VERSION@
Libs: -L${libdir} -lxerces-c
Cflags: -I${includedir}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment