From: Andreas Schwab <schwab@linux-m68k.org>
To: emacs-devel@gnu.org
Subject: Re: Linking Emacs with libxml2
Date: Wed, 08 Sep 2010 21:10:03 +0200 [thread overview]
Message-ID: <m2r5h459x0.fsf@igel.home> (raw)
In-Reply-To: <m3vd6ggqjm.fsf@quimbies.gnus.org> (Lars Magne Ingebrigtsen's message of "Wed, 08 Sep 2010 18:15:25 +0200")
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> +### Use libxml2 (-lxml2) if available
> +HAVE_LIBXML2=no
> +LIBXML2_LIBS=
> +if test -n xml2-config; then
What's the point of this test?
> + LIBXML2_CFLAGS="`xml2-config --cflags`"
> + SAVE_CFLAGS="$CFLAGS"
> + CFLAGS="$LIBXML2_CFLAGS $CFLAGS"
> + AC_CHECK_HEADER(libxml/xmlversion.h,
> + [AC_CHECK_LIB(xml2, htmlReadMemory, HAVE_LIBXML2=yes, , -lxml2)])
Please use PKG_CHECK_MODULES.
> + result = Fcons (Fintern (build_string (node->name),
> + Vobarray),
intern (node->name)
> + ibeg = CHAR_TO_BYTE (XFASTINT (Fpoint_min ()));
> + iend = CHAR_TO_BYTE (XFASTINT (Fpoint_max ()));
> + move_gap_both (XFASTINT (Fpoint_min ()), ibeg);
> + while (ibeg < iend) {
> + *s++ = *(BYTE_POS_ADDR (ibeg));
> + ibeg++;
> + }
Lisp_Object s = make_buffer_string (BEGV, ZV, 0);
> + doc = htmlReadMemory (string, strlen(string), "", "utf-8", 0);
SDATA (s), SBYTES (s)
Note that the internal encoding is utf-8-emacs which is different from
utf-8 in details.
> Or an autoconf one, for that matter. ./configure finds the stuff it's
> looking for, but I get this warning:
>
> -------
> [larsi@quimbies ~/src/emacs/trunk]$ ./configure | grep xml
> checking libxml/xmlversion.h usability... yes
> checking libxml/xmlversion.h presence... no
> configure: WARNING: libxml/xmlversion.h: accepted by the compiler, rejected by the preprocessor!
> configure: WARNING: libxml/xmlversion.h: proceeding with the compiler's result
> checking for libxml/xmlversion.h... yes
> checking for htmlReadMemory in -lxml2... yes
> -------
>
> I'm not sure what that means...
Look at config.log.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2010-09-08 19:10 UTC|newest]
Thread overview: 70+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-06 15:21 Linking Emacs with libxml2 Lars Magne Ingebrigtsen
2010-09-06 15:54 ` Wojciech Meyer
2010-09-06 18:26 ` Chad Brown
2010-09-06 21:01 ` Lars Magne Ingebrigtsen
2010-09-06 18:44 ` Lennart Borgman
2010-09-06 18:56 ` Chad Brown
2010-09-06 19:08 ` Chong Yidong
2010-09-06 19:17 ` joakim
2010-09-07 0:36 ` Jason Rumney
2010-09-07 0:58 ` Lars Magne Ingebrigtsen
2010-09-08 14:10 ` Lars Magne Ingebrigtsen
2010-09-08 14:25 ` Andreas Schwab
2010-09-08 14:40 ` Stefan Monnier
2010-09-08 15:16 ` Lars Magne Ingebrigtsen
2010-09-08 16:15 ` Lars Magne Ingebrigtsen
2010-09-08 18:17 ` joakim
2010-09-08 18:19 ` Lars Magne Ingebrigtsen
2010-09-08 19:10 ` Andreas Schwab [this message]
2010-09-08 20:11 ` Lars Magne Ingebrigtsen
2010-09-08 20:30 ` Lars Magne Ingebrigtsen
2010-09-08 20:58 ` Lars Magne Ingebrigtsen
2010-09-08 21:51 ` Andreas Schwab
2010-09-08 21:54 ` Lars Magne Ingebrigtsen
2010-09-09 17:00 ` Stefan Monnier
2010-09-09 21:56 ` Lars Magne Ingebrigtsen
2010-09-09 22:28 ` Stefan Monnier
2010-09-09 22:37 ` Lars Magne Ingebrigtsen
2010-09-10 8:14 ` Andreas Schwab
2010-09-10 10:46 ` Stefan Monnier
2010-09-10 10:56 ` Lars Magne Ingebrigtsen
2010-09-10 12:37 ` Lars Magne Ingebrigtsen
2010-09-10 16:47 ` Lars Magne Ingebrigtsen
2010-09-10 16:54 ` Lars Magne Ingebrigtsen
2010-09-10 17:05 ` Ted Zlatanov
2010-09-10 17:14 ` Lars Magne Ingebrigtsen
2010-09-10 17:34 ` Glenn Morris
2010-09-10 17:41 ` Glenn Morris
2010-09-10 17:44 ` Lars Magne Ingebrigtsen
2010-09-10 18:39 ` Ted Zlatanov
2010-09-12 16:56 ` Andreas Schwab
2010-09-12 17:05 ` Lars Magne Ingebrigtsen
2010-09-10 21:12 ` Chad Brown
2010-09-10 21:40 ` Lars Magne Ingebrigtsen
2010-09-10 22:45 ` chad
2010-09-10 23:19 ` Lars Magne Ingebrigtsen
2010-09-11 7:18 ` Andreas Schwab
2010-09-11 12:48 ` Lars Magne Ingebrigtsen
2010-09-13 18:37 ` Leo
2010-09-13 18:49 ` Lars Magne Ingebrigtsen
2010-09-13 19:08 ` Leo
2010-09-13 19:16 ` Chad Brown
2010-09-13 19:23 ` Chad Brown
2010-09-13 22:24 ` Leo
2010-09-13 16:06 ` Christian Faulhammer
2010-09-10 11:37 ` Andreas Schwab
2010-09-10 14:12 ` Andrew W. Nosenko
2010-09-09 8:35 ` Christian Faulhammer
2010-09-09 10:33 ` Lars Magne Ingebrigtsen
2010-09-09 11:07 ` Christian Faulhammer
2010-09-09 11:09 ` Lars Magne Ingebrigtsen
2010-09-06 19:19 ` Chong Yidong
2010-09-06 21:03 ` Lars Magne Ingebrigtsen
2010-09-15 0:55 ` Eric M. Ludlam
2010-09-15 15:52 ` Ted Zlatanov
2010-09-06 21:08 ` Stefan Monnier
2010-09-06 21:17 ` Lars Magne Ingebrigtsen
2010-09-06 21:30 ` joakim
2010-09-07 1:40 ` Chad Brown
2010-09-07 1:47 ` Lars Magne Ingebrigtsen
2010-09-06 21:18 ` Lennart Borgman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2r5h459x0.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).