0004-auto-lib-libxslt-conf-use-pkg-config.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. From 211b9f19a3a62826fadef55d2f89d6f66fbf4aa6 Mon Sep 17 00:00:00 2001
  2. From: Samuel Martin <s.martin49@gmail.com>
  3. Date: Thu, 29 May 2014 19:22:27 +0200
  4. Subject: [PATCH] auto/lib/libxslt/conf: use pkg-config
  5. Change to using pkg-config to find the path to libxslt and its
  6. dependencies.
  7. Signed-off-by: Martin Bark <martin@barkynet.com>
  8. ---
  9. auto/lib/libxslt/conf | 4 ++--
  10. 1 file changed, 2 insertions(+), 2 deletions(-)
  11. diff --git a/auto/lib/libxslt/conf b/auto/lib/libxslt/conf
  12. index 3a0f37b..3c2a60e 100644
  13. --- a/auto/lib/libxslt/conf
  14. +++ b/auto/lib/libxslt/conf
  15. @@ -12,8 +12,8 @@
  16. #include <libxslt/xsltInternals.h>
  17. #include <libxslt/transform.h>
  18. #include <libxslt/xsltutils.h>"
  19. - ngx_feature_path="/usr/include/libxml2"
  20. - ngx_feature_libs="-lxml2 -lxslt"
  21. + ngx_feature_path="$(${PKG_CONFIG:=pkg-config} --cflags-only-I libxslt|sed 's/-I//g')"
  22. + ngx_feature_libs="$(${PKG_CONFIG:=pkg-config} --libs libxslt)"
  23. ngx_feature_test="xmlParserCtxtPtr ctxt = NULL;
  24. xsltStylesheetPtr sheet = NULL;
  25. xmlDocPtr doc;
  26. --
  27. 2.8.2