Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KTorrent
Commits
465c1d30
Commit
465c1d30
authored
May 19, 2009
by
Joris Guisson
Browse files
Backport GeoIP check from trunk
svn path=/branches/stable/extragear-kde4/network/ktorrent/; revision=969900
parent
7ddd0b12
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
465c1d30
...
...
@@ -14,6 +14,7 @@ Changes in 3.2.2 :
- Make sure dbus names are valid, this fixes an assert (192007)
- Fix crash when parsing DHT packets (190107)
- Remove newlines from path names of files when present in torrent file (192652)
- Properly check for GeoIP system library (193117)
Changes in 3.2.1 :
- Resort torrents if display name is changed
...
...
plugins/infowidget/CMakeLists.txt
View file @
465c1d30
...
...
@@ -4,23 +4,23 @@ option(WITH_SYSTEM_GEOIP
OFF
)
if
(
WITH_SYSTEM_GEOIP
)
include
(
CheckIncludeFile
)
check_include_file
(
"GeoIP.h"
have_geoip_include
)
find_library
(
SYSTEM_GEOIP_LIBRARY
"GeoIP"
)
check_library_exists
(
"GeoIP"
"GeoIP_open_type"
${
SYSTEM_GEOIP_LIBRARY
}
have_geoip_library
)
if
(
NOT have_geoip_include OR NOT have_geoip_library
)
find_path
(
GEOIP_INCLUDE_DIR NAMES GeoIP.h PATHS
${
KDE4_INCLUDE_DIR
}
/
${
INCLUDE_INSTALL_DIR
}
/
)
find_library
(
GEOIP_LIBRARY NAMES GeoIP PATHS
${
KDE4_LIB_DIR
}
${
LIB_INSTALL_DIR
}
)
if
(
NOT GEOIP_INCLUDE_DIR OR NOT GEOIP_LIBRARY
)
set
(
WITH_SYSTEM_GEOIP OFF CACHE BOOL
"GeoIP development files could not be found on this system. Forcing this option to OFF"
FORCE
)
message
(
SEND_ERROR
"GeoIP library development files could not be found on your system. Embedding a local copy of GeoIP instead"
)
endif
(
NOT
have_geoip_include OR NOT have_geoip_library
)
endif
(
NOT
GEOIP_INCLUDE_DIR OR NOT GEOIP_LIBRARY
)
endif
(
WITH_SYSTEM_GEOIP
)
if
(
WITH_SYSTEM_GEOIP
)
message
(
STATUS
" Linking InfoWidget against system GeoIP library"
)
add_definitions
(
-DUSE_SYSTEM_GEOIP
)
set
(
geoip_link
"GeoIP"
)
include_directories
(
GEOIP_INCLUDE_DIR
)
set
(
geoip_link
${
GEOIP_LIBRARY
}
)
else
(
WITH_SYSTEM_GEOIP
)
message
(
STATUS
" Compiling GeoIP support directly into InfoWidget plugin"
)
set
(
geoip_src GeoIP.c
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment