From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: Emacs Mac port Date: Fri, 25 Oct 2013 09:56:56 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1382662631 18189 80.91.229.3 (25 Oct 2013 00:57:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Oct 2013 00:57:11 +0000 (UTC) Cc: emacs-devel@gnu.org To: Leo Liu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 25 02:57:15 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VZViC-0004aI-PK for ged-emacs-devel@m.gmane.org; Fri, 25 Oct 2013 02:57:12 +0200 Original-Received: from localhost ([::1]:56869 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZViC-0004F2-DZ for ged-emacs-devel@m.gmane.org; Thu, 24 Oct 2013 20:57:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZVi5-0004Ep-Ix for emacs-devel@gnu.org; Thu, 24 Oct 2013 20:57:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VZVhz-00024d-RD for emacs-devel@gnu.org; Thu, 24 Oct 2013 20:57:05 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:53796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZVhz-00024Y-9V for emacs-devel@gnu.org; Thu, 24 Oct 2013 20:56:59 -0400 Original-Received: from fermat.math.s.chiba-u.ac.jp (fermat [133.82.132.10]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 275A9C055D; Fri, 25 Oct 2013 09:56:57 +0900 (JST) In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 133.82.132.2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:164522 Archived-At: >>>>> On Thu, 24 Oct 2013 19:18:57 +0900, YAMAMOTO Mitsuharu said: >> Everything went well except it no longer linked to libxml2. Any >> idea how to make it work again? Without libxml2 shr.el is pretty >> useless. Thanks in advance. > I didn't notice that. Thanks for spotting this. > It seems that the standard include files are no longer in the > /usr/include directory on OS X 10.9. An immediate workaround would > be to run the configure script as: > CPPFLAGS=-I"`xcrun --show-sdk-path`"/usr/include/libxml2 ./configure --with-mac Below is the patch for configure{.ac,}. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp === modified file 'configure.ac' *** configure.ac 2013-09-21 09:48:19 +0000 --- configure.ac 2013-10-25 00:25:37 +0000 *************** *** 2820,2833 **** # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc. if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then SAVE_CPPFLAGS="$CPPFLAGS" ! CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2" AC_CHECK_HEADER(libxml/HTMLparser.h, [AC_CHECK_DECL(HTML_PARSE_RECOVER, HAVE_LIBXML2=yes, , [#include ])]) CPPFLAGS="$SAVE_CPPFLAGS" if test "${HAVE_LIBXML2}" = "yes"; then LIBXML2_LIBS="-lxml2" ! LIBXML2_CFLAGS="-I/usr/include/libxml2" fi fi if test "${HAVE_LIBXML2}" = "yes"; then --- 2820,2834 ---- # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc. if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then SAVE_CPPFLAGS="$CPPFLAGS" ! sdkdir="`xcrun --show-sdk-path 2> /dev/null`" ! CPPFLAGS="$CPPFLAGS -I${sdkdir}/usr/include/libxml2" AC_CHECK_HEADER(libxml/HTMLparser.h, [AC_CHECK_DECL(HTML_PARSE_RECOVER, HAVE_LIBXML2=yes, , [#include ])]) CPPFLAGS="$SAVE_CPPFLAGS" if test "${HAVE_LIBXML2}" = "yes"; then LIBXML2_LIBS="-lxml2" ! LIBXML2_CFLAGS="-I${sdkdir}/usr/include/libxml2" fi fi if test "${HAVE_LIBXML2}" = "yes"; then === modified file 'configure' *** configure 2013-09-21 09:48:19 +0000 --- configure 2013-10-25 00:31:48 +0000 *************** *** 13238,13244 **** # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc. if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then SAVE_CPPFLAGS="$CPPFLAGS" ! CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2" ac_fn_c_check_header_mongrel "$LINENO" "libxml/HTMLparser.h" "ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default" if test "x$ac_cv_header_libxml_HTMLparser_h" = xyes; then : ac_fn_c_check_decl "$LINENO" "HTML_PARSE_RECOVER" "ac_cv_have_decl_HTML_PARSE_RECOVER" "#include --- 13238,13245 ---- # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc. if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then SAVE_CPPFLAGS="$CPPFLAGS" ! sdkdir="`xcrun --show-sdk-path 2> /dev/null`" ! CPPFLAGS="$CPPFLAGS -I${sdkdir}/usr/include/libxml2" ac_fn_c_check_header_mongrel "$LINENO" "libxml/HTMLparser.h" "ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default" if test "x$ac_cv_header_libxml_HTMLparser_h" = xyes; then : ac_fn_c_check_decl "$LINENO" "HTML_PARSE_RECOVER" "ac_cv_have_decl_HTML_PARSE_RECOVER" "#include *************** *** 13253,13259 **** CPPFLAGS="$SAVE_CPPFLAGS" if test "${HAVE_LIBXML2}" = "yes"; then LIBXML2_LIBS="-lxml2" ! LIBXML2_CFLAGS="-I/usr/include/libxml2" fi fi if test "${HAVE_LIBXML2}" = "yes"; then --- 13254,13260 ---- CPPFLAGS="$SAVE_CPPFLAGS" if test "${HAVE_LIBXML2}" = "yes"; then LIBXML2_LIBS="-lxml2" ! LIBXML2_CFLAGS="-I${sdkdir}/usr/include/libxml2" fi fi if test "${HAVE_LIBXML2}" = "yes"; then