all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Herbert J. Skuhra" <h.skuhra@gmail.com>
To: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] emacs-25 89e7483: * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin.
Date: Thu, 31 Dec 2015 07:31:11 +0100	[thread overview]
Message-ID: <86si2jxh74.wl-h.skuhra@gmail.com> (raw)
In-Reply-To: <E1aESC8-0008C9-BI@vcs.savannah.gnu.org>

On Thu, 31 Dec 2015 02:38:24 +0100,
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> wrote:
> 
> branch: emacs-25
> commit 89e7483d9f30153329335b6b8cd97d96a06a8897
> Author: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
> Commit: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
> 
>     * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin.
> ---
>  configure.ac |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 4233efa..9c783e6 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -3615,6 +3615,14 @@ if test "${with_xml2}" != "no"; then
>    # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
>    if test "${HAVE_LIBXML2}" != "yes" && test "$opsys" = "darwin"; then
>      SAVE_CPPFLAGS="$CPPFLAGS"
> +    if test -z "$xcsdkdir" -a -n "$XCRUN" -a ! -d /usr/include; then
> +      dnl /usr/include is not found.  Try Xcode SDK dir if it is sane.
> +      xcsdkdir=`$XCRUN --show-sdk-path 2>/dev/null`
> +      case $xcsdkdir in
> +	*[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
> +	xcsdkdir="" ;;
> +      esac
> +    fi
>      CPPFLAGS="$CPPFLAGS -I$xcsdkdir/usr/include/libxml2"
>      AC_CHECK_HEADER(libxml/HTMLparser.h,
>        [AC_CHECK_DECL(HTML_PARSE_RECOVER, HAVE_LIBXML2=yes, ,

Hi,

should this also work on MacOS X 10.11? Because I still get:

CC       xml.o
xml.c:23:10: fatal error: 'libxml/tree.h' file not found
#include <libxml/tree.h>
         ^
1 error generated.
make[1]: *** [xml.o] Error 1
make: *** [src] Error 2

It works if I use

CPPFLAGS='-I/usr/local/Cellar/libxml2/2.9.3/include/libxml2' and
LDFLAGS='-L/usr/local/Cellar/libxml2/2.9.3/lib'.

or

CPPFLAGS='-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2'

--
Herbert



       reply	other threads:[~2015-12-31  6:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20151231013824.31455.77904@vcs.savannah.gnu.org>
     [not found] ` <E1aESC8-0008C9-BI@vcs.savannah.gnu.org>
2015-12-31  6:31   ` Herbert J. Skuhra [this message]
2015-12-31  7:16     ` [Emacs-diffs] emacs-25 89e7483: * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin YAMAMOTO Mitsuharu
2015-12-31  8:05       ` Herbert J. Skuhra
2015-12-31  8:30         ` YAMAMOTO Mitsuharu
2015-12-31 10:08           ` Herbert J. Skuhra
2015-12-31 11:40           ` Herbert J. Skuhra
2015-12-31 12:02             ` YAMAMOTO Mitsuharu

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86si2jxh74.wl-h.skuhra@gmail.com \
    --to=h.skuhra@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=mituharu@math.s.chiba-u.ac.jp \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.