Treferwynd / transmission-remote-gtk

Automatically exported from code.google.com/p/transmission-remote-gtk
GNU General Public License v2.0
0 stars 0 forks source link

GeoIP detection logic fails if GeoIP.h is not in default search path #269

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I noticed that on OpenBSD GeoIP.h detection logic did not work by default.  
From configure.ac I noticed that there is a workaround for FreeBSD, which 
involves hardcoding /usr/local in CPPFLAGS.  As I get, GeoIP didn't include 
pkg-config file, which was the reason for custom logic here.  Since it does 
ship geoip.pc now, I propose to use it and only fall back to detection logic if 
PKG_CHECK_MODULES fails.

Also, it appears that providing "[AC_INCLUDES_DEFAULT]" as fourth argument to 
AC_CHECK_HEADER fixes detection logic on OpenBSD.

I prepared a changeset with a fix here: 
http://code.google.com/r/czarkoff-build-system/source/detail?r=47e828d959689bf9f
ed7e6ea6c8bbec34cc185a3

Original issue reported on code.google.com by czarkoff on 12 Nov 2014 at 9:35