Fix libgeoip lookup during the build

This commit is contained in:
Felipe Zimmerle
2015-08-10 15:22:32 -03:00
parent 52c419df69
commit 218eab6417
2 changed files with 4 additions and 3 deletions

View File

@@ -103,17 +103,17 @@ else
if test -e "${x}/include/geoip_parse.h"; then
geoip_inc_path="${x}/include"
break
elif test -e "${x}/geoip_parse.h"; then
elif test -e "${x}/GeoIPCity.h"; then
geoip_inc_path="${x}"
break
fi
dnl # Check some sub-paths as well
for geoip_pkg_name in ${geoip_lib_name} ${GEOIP_PKGNAMES}; do
if test -e "${x}/include/${geoip_pkg_name}/geoip_parse.h"; then
if test -e "${x}/include/${geoip_pkg_name}/GeoIPCity.h"; then
geoip_inc_path="${x}/include"
break
elif test -e "${x}/${geoip_pkg_name}/geoip_parse.h"; then
elif test -e "${x}/${geoip_pkg_name}/GeoIPCity.h"; then
geoip_inc_path="${x}"
break
else