On Sat, Mar 5, 2011 at 9:06 AM, Jef Driesen<address@hidden> wrote:
I'm trying to use the PKG_CHECK_MODULES macro to check for an external
library:
PKG_CHECK_MODULES([LIBUSB], [libusb-1.0], [have_libusb=yes],
[have_libusb=no])
This works great, except when trying to compile on a system without
pkg-config installed. The configure script fails with a syntax error. I
tried to wrap the PKG_CHECK_MODULES check in an AC_ARG_ENABLE enable block,
in an attempt to enable to skip this check. But this makes no difference.
Is there another way to make this work?
before any PKG_CHECK_MODULES, call PKG_PROG_PKG_CONFIG to check if
pkg-config is available