autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: library version number


From: Bob Friesenhahn
Subject: Re: library version number
Date: Wed, 15 Apr 2009 10:07:24 -0500 (CDT)

On Wed, 15 Apr 2009, Philip Herron wrote:
# Checks for libraries.
AC_CHECK_LIB([xml2],[xmlTextReaderGetAttribute])
if test "$xml2" = "no"
then
        AC_MSG_ERROR(["libxml2 is needed to be installed for ovf xml
reading.. Debian: apt-get intstall libxml2-dev, or SUSE:yast -i
libxml2-devel"])
else
        CFLAGS="$CFLAGS -I/usr/include/libxml2"
fi

It seems to work ok i dont think i am doing it properly because the
libxml2 headers are like:

/usr/include/libxml2/libxml/*.h

You are confusing different issues. The libxml2 library and headers may be somewhere else rather than under /usr. In fact, several libxml2 installs can exist at once. That is why libxml2 provides a utility to find the location of the library and headers.

Any -I options should be put in CPPFLAGS and any -L options should be put in LDFLAGS.

Bob
--
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]