Re: library version number

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

 



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
bfriesen@xxxxxxxxxxxxxxxxxxx, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux