[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] emacs-25 89e7483: * configure.ac: Find libxml2 headers
From: |
Herbert J. Skuhra |
Subject: |
Re: [Emacs-diffs] emacs-25 89e7483: * configure.ac: Find libxml2 headers in Xcode SDK dir on Darwin. |
Date: |
Thu, 31 Dec 2015 09:05:50 +0100 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/25.0.50 (i386-pc-freebsd10.2) MULE/6.0 (HANACHIRUSATO) |
On Thu, 31 Dec 2015 08:16:03 +0100,
YAMAMOTO Mitsuharu <address@hidden> wrote:
>
> >>>>> On Thu, 31 Dec 2015 07:31:11 +0100, "Herbert J. Skuhra"
> >>>>> <address@hidden> said:
>
> > On Thu, 31 Dec 2015 02:38:24 +0100,
> > YAMAMOTO Mitsuharu <address@hidden> wrote:
> >>
> >> branch: emacs-25
> >> commit 89e7483d9f30153329335b6b8cd97d96a06a8897
> >> Author: YAMAMOTO Mitsuharu <address@hidden>
> >> Commit: YAMAMOTO Mitsuharu <address@hidden>
> >>
> >> * 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'
>
> I'm using OS X 10.10.5 and 10.11.2 without command line developer
> tools installed on my laptop. Could you show me the output of the
> following commands?
>
> $ xcrun --show-sdk-path
> $ xcrun --sdk macosx --show-sdk-path
Both commands output
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
--
Herbert