]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
configure.ac: fix --disable-geoip 4447/head
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 6 Oct 2019 07:53:23 +0000 (09:53 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 16 Dec 2019 12:26:35 +0000 (13:26 +0100)
$enableval should be used to know if the user has passed --enable-geoip
or --disable-geoip

Fixes:
 - http://autobuild.buildroot.org/results/a7a34f760ae5fe0922fdb720b8234dbcd85ed222

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
(cherry picked from commit 61becb29bf2bcce5febd7f98e09b0006d217c8cb)

configure.ac

index 3ba272522789de09a4dfe4e3588120972d085e22..1ecdc004dd5b064bbe6076a33ac02cfc5fe99d3d 100644 (file)
   # libmaxminddb
     AC_ARG_ENABLE(geoip,
                AS_HELP_STRING([--enable-geoip],[Enable GeoIP support]),
-               [ enable_geoip="yes"],
+               [ enable_geoip="$enableval"],
                [ enable_geoip="no"])
     AC_ARG_ENABLE(libgeoip,
         AS_HELP_STRING([--disable-libgeoip], [Disable libgeoip support]),