Re: ./configure issues [MacOS X]

Cesar Gutierrez Corea <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
configure and gmake work for me with the latest CVS (PowerBook G4 and  
Mac OS X 10.4.4)

On Jan 13, 2006, at 3:30 AM, Andreas Fink wrote:

> Hi list.
> I've checked out latest CVS and I get an error while building
> It doesnt find libxml headers.
>
> ./gwlib/charset.h:79:29: error: libxml/encoding.h: No such file or  
> directory
> ./gwlib/charset.h:80:25: error: libxml/tree.h: No such file or  
> directory
>
> those files are found under the following locations on my system:
>
> vpn5:/development/gateway afink$ locate libxml/tree.h
> /Developer/SDKs/MacOSX10.3.9.sdk/usr/include/libxml2/libxml/tree.h
> /Developer/SDKs/MacOSX10.4u.sdk/usr/include/libxml2/libxml/tree.h
> /usr/include/libxml2/libxml/tree.h
> /usr/local/include/libxml2/libxml/tree.h
>
>
> So the fix is simply to make sure it includes a -I/usr/include/ 
> libxml2/ to CFLAGS
>
>
> The section in config.in is:
>
>
> AC_CONFIG_SECTION([Checking for libxml2 support])
> xml_ver_required="2.6.0"
> AC_PATH_PROGS(XML_CONFIG, xml2-config xml-config, no)
> if test "$XML_CONFIG" = "no"; then
>   AC_MSG_ERROR([You MUST have the libxml2 (aka gnome-xml) library  
> installed])
> else
>   AC_MSG_CHECKING([libxml version])
>   xml_version=`$XML_CONFIG --version`
>   AC_MSG_RESULT([$xml_version])
>   AC_CHECK_VERSION($xml_version, $xml_ver_required,
>   [ LIBS="$LIBS `$XML_CONFIG --libs`"
>     CFLAGS="$CFLAGS `$XML_CONFIG --cflags`"
>   ],[
>     AC_MSG_ERROR([libxml2 version $xml_version is too old. You need  
> at least $xml_ver_required])
>   ])
> fi
>
> in other words its executing "xml2-config --cflags" to figure this  
> out.
>
> But this is reporting the correct flags:
>
> $ xml2-config --cflags
> -I/usr/include/libxml2
>
> Can anyone show any light on this.
>
> Andreas Fink
> Fink Consulting GmbH
>
> ---------------------------------------------------------------
> Tel: +41-61-6666332 Fax: +41-61-6666331  Mobile: +41-79-2457333
> Address: Clarastrasse 3, 4058 Basel, Switzerland
> E-Mail:  [email protected]
> Homepage: http://www.finkconsulting.com
> ---------------------------------------------------------------
>
> ICQ: 101946485 MSN: [email protected] AIM: smsrelay Skype: andreasfink
> Yahoo: finkconsulting SMS: +41792457333
> PGP9: 0714 DF2B A189 A760 6201  5CBD D040 3E71 4DAF 68BB
>
>
>

--
Cesar Gutierrez Corea
Software Engineer
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.