meson: Add optional IPv6 support
authorArnaud Rebillout <arnaud.rebillout@collabora.com>
Sun, 21 Oct 2018 09:34:55 +0000 (16:34 +0700)
committerArun Raghavan <arun@arunraghavan.net>
Thu, 27 Dec 2018 11:55:56 +0000 (17:25 +0530)
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
meson.build
meson_options.txt

index c74e6fd..ebe5d52 100644 (file)
@@ -209,6 +209,10 @@ elif get_option('database') == 'gdbm'
   database_dep = cc.find_library('gdbm', required : true)
 endif
 
+if get_option('ipv6')
+  cdata.set('HAVE_IPV6', 1)
+endif
+
 atomictest = '''void func() {
   volatile int atomic = 2;
   __sync_bool_compare_and_swap (&atomic, 2, 3);
index b8f50ba..767ca19 100644 (file)
@@ -53,6 +53,9 @@ option('gtk',
 option('hal-compat',
        type : 'boolean',
        description : 'Optional HAL->udev transition compatibility support (needs udev)')
+option('ipv6',
+       type : 'boolean',
+       description : 'Optional IPv6 support')
 option('jack',
        type : 'feature', value : 'auto',
        description : 'Optional JACK support')