you must use LIBS instead of LDFLAGS for the libraries in configure.in, see the patch in the debian bug
you must use LIBS instead of LDFLAGS for the libraries in configure.in, see the patch in the debian bug