Re: [xslt] Libexslt and automake
- From: Daniel Veillard <veillard redhat com>
- To: xslt gnome org
- Subject: Re: [xslt] Libexslt and automake
- Date: Fri, 14 Nov 2003 06:46:02 -0500
On Fri, Nov 14, 2003 at 09:09:30PM +1000, Ben Fowler wrote:
> Hi All,
> I can get my friend's program to compile by adding a call to
> exsltRegisterAll() and either:
>
> 1) hacking /usr/lib/pkgconfig/libxslt.pc to add a "-lexslt" (yuk)
> 2) hacking my friend's program's configure.in (preferred!)
> 3) hacking my friend's ./configure script's output Makefiles.
>
> I might be clueless but I'm not tasteless, so I initially opted for
> Option 2. In configure.in, the following line tells configure to hunt
> for libxml and libxslt:
>
> PKG_CHECK_MODULES(DEPS, libxml-2.0 >= 2.4.10 libxslt >= 1.0.13)
[...]
> So my big question is, what is the One True Way of fixing this
> particular issue? Should I find a solution on my end, or should I file
> a bug against libxslt?
Hum, the True Way IMHO would be to define a libexslt.pc.in
like the libxslt.pc.in, make sure it's plugged into configure.in
and installation script of libxslt and use it in your friend's
configure.in package check rule.
that sounds small enough that making a bugzilla entry is probably
more resource consuming than writing the thing, can you verify the
enclosed patch produces a working libexslt.pc ?
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
Index: Makefile.am
===================================================================
RCS file: /cvs/gnome/libxslt/Makefile.am,v
retrieving revision 1.30
diff -u -r1.30 Makefile.am
--- Makefile.am 2 Nov 2003 09:53:40 -0000 1.30
+++ Makefile.am 14 Nov 2003 11:44:47 -0000
@@ -58,7 +58,7 @@
pkgconfigdir=$(libdir)/pkgconfig
-pkgconfig_DATA = libxslt.pc
+pkgconfig_DATA = libxslt.pc libexslt.pc
m4datadir = $(datadir)/aclocal
m4data_DATA = libxslt.m4
Index: configure.in
===================================================================
RCS file: /cvs/gnome/libxslt/configure.in,v
retrieving revision 1.135
diff -u -r1.135 configure.in
--- configure.in 2 Nov 2003 09:53:40 -0000 1.135
+++ configure.in 14 Nov 2003 11:44:47 -0000
@@ -400,16 +400,23 @@
AC_SUBST(PYTHON_SITE_PACKAGES)
XSLT_LIBDIR='-L${libdir}'
-
XSLT_INCLUDEDIR='-I${includedir}'
XSLT_LIBS="-lxslt $LIBXML_LIBS $M_LIBS"
-EXTRA_LIBS="$LIBXML_LIBS $M_LIBS"
-
AC_SUBST(XSLT_LIBDIR)
AC_SUBST(XSLT_INCLUDEDIR)
+AC_SUBST(XSLT_LIBS)
+
+EXSLT_LIBDIR='-L${libdir}'
+EXSLT_INCLUDEDIR='-I${includedir}'
+EXSLT_LIBS="-lexslt $XSLT_LIBS"
+AC_SUBST(EXSLT_LIBDIR)
+AC_SUBST(EXSLT_INCLUDEDIR)
+AC_SUBST(EXSLT_LIBS)
+
+EXTRA_LIBS="$LIBXML_LIBS $M_LIBS"
AC_SUBST(EXTRA_LIBS)
+
AC_SUBST(M_LIBS)
-AC_SUBST(XSLT_LIBS)
dnl for the spec file
RELDATE=`date +'%a %b %e %Y'`
@@ -424,6 +431,7 @@
AC_OUTPUT([
Makefile
libxslt.pc
+libexslt.pc
libxslt/Makefile
libxslt/xsltconfig.h
libxslt/xsltwin32config.h
Index: libexslt.pc.in
===================================================================
RCS file: libexslt.pc.in
diff -N libexslt.pc.in
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ libexslt.pc.in 14 Nov 2003 11:44:47 -0000
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+
+Name: libexslt
+Version: @LIBEXSLT_VERSION@
+Description: EXSLT Extension library
+Requires: libxml-2.0
+Libs: @EXSLT_LIBDIR@ @EXSLT_LIBS@
+Cflags: @EXSLT_INCLUDEDIR@
Index: libxslt.spec.in
===================================================================
RCS file: /cvs/gnome/libxslt/libxslt.spec.in,v
retrieving revision 1.39
diff -u -r1.39 libxslt.spec.in
--- libxslt.spec.in 2 Nov 2003 09:53:40 -0000 1.39
+++ libxslt.spec.in 14 Nov 2003 11:44:47 -0000
@@ -95,6 +95,7 @@
%{prefix}/include/*
%{prefix}/bin/xslt-config
%{_libdir}/pkgconfig/libxslt.pc
+%{_libdir}/pkgconfig/libexslt.pc
%files python
%defattr(-, root, root)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]