configure: Call a function from libgeoip in check_libgeoip()

In order to cause the linker to get called and thus the check for the
presence of the library (not just the headers) to be performed, call
GeoIP_new(). Also pass the proper linker flag to $CC.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>