Instructions how to build dfu-util on OS X

Tomwid,

I tried the instructions there, followed them as close to the letter as I could. One small issue, on the:

sudo port install libusb-devel
I got a message saying “Please do not install this port as it has been replaced by libusb.”

So I installed the libusb port (as well as git-core), and everything seemed to go fine until the make command. Here’s the last part of my output:
(whitespace added after paste here for ease of reading.)

Base:dfu-util martin$ ./configure --libdir=/opt/local/lib --includedir=/opt/local/include
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… m4/install-sh -c -d
checking for gawk… no
checking for mawk… no
checking for nawk… no
checking for awk… awk
checking whether make sets $(MAKE)… yes
checking whether to enable maintainer-specific portions of Makefiles… no
checking for gcc… gcc
checking for C compiler default output file name… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking for style of include used by make… GNU
checking dependency style of gcc… gcc3
./configure: line 3332: syntax error near unexpected token USB,' ./configure: line 3332: PKG_CHECK_MODULES(USB, libusb-1.0 >= 1.0.0,’

Base:dfu-util martin$ ls -1
COPYING
ChangeLog
DEVICES.txt
Makefile.am
Makefile.in
README
SPEC-differences.txt
TODO
aclocal.m4
autogen.sh
autom4te.cache
config.h.in
config.log
configure
configure.ac
device-logs
doc
m4
src
www

Base:dfu-util martin$ make
make: *** No targets specified and no makefile found. Stop.
Base:dfu-util martin$

I don’t know how to proceed - my suspicion is that it’s some small fiddly bit I need to set/unset properly, but I don’t know where to start looking. Perhaps one of you local experts can either tell me what’s up, or ask me for output/directories/etc., to figure out what the problem is.

Regards,
Martin