configure.in: Use the custom CFLAGS and LDFLAGS when testing for the upsclient library.