summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-04-22 11:54:57 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-04-22 12:05:41 +0200
commit0349b93a6689aa9a57e8cf4b686455155a23ffa5 (patch)
tree7eb194bad53b07005d8600a60dd55f8d10b7bd39 /configure
parentb244823900f32891903c44962f530503004a8348 (diff)
build: configure: Allow to disable support for libgeoip and zlib
Allow users to explicitely disable linking against libgeoip and zlib, as they are completely optional, e.g: DISABLE_GEOIP=1 ./configure && make DISABLE_ZLIB=1 ./configure && make This change should also help to increase build coverage once we use these options in the Travis CI setup. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index 067b675..105b1ec 100755
--- a/configure
+++ b/configure
@@ -333,6 +333,11 @@ check_libgeoip()
{
echo -n "[*] Checking libGeoIP ... "
+ if [ "$DISABLE_GEOIP" == "1" ] ; then
+ echo "[DISABLED]"
+ return
+ fi
+
cat > $TMPDIR/geoiptest.c << EOF
#include <GeoIP.h>
#include <GeoIPCity.h>
@@ -397,6 +402,11 @@ check_zlib()
{
echo -n "[*] Checking libz ... "
+ if [ "$DISABLE_ZLIB" == "1" ] ; then
+ echo "[DISABLED]"
+ return
+ fi
+
cat > $TMPDIR/ztest.c << EOF
#include "zlib.h"