On Mon, Feb 20, 2012 at 09:40:53AM +0800, Wanlong Gao wrote:
+dnl libblkid (highly recommended) +PKG_CHECK_MODULES([LIBBLKID], [blkid], + [AC_SUBST([LIBBLKID_CFLAGS]) + AC_SUBST([LIBBLKID_LIBS]) + AC_DEFINE([HAVE_LIBBLKID],[1],[libblkid found at compile time.]) + ], + [AC_MSG_WARN([libblkid not found, some features will be disabled])]) +AM_CONDITIONAL([HAVE_LIBBLKID],[test "x$LIBBLKID_LIBS" != "x"])
This makes libblkid conditional, but the code below assumes <blkid.h> and the blkid_* calls are present. I'll have to check what RHEL 5 can do ... Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top