summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2016-01-25 03:30:39 +0100
committerMichael Adam <obnox@samba.org>2016-01-26 07:33:16 +0100
commit1862aa6c259ebe6de86b220208e315a22515b453 (patch)
tree2e8cb4f210b945d62cb254fe5c047f1d01bb9cde
parent64be8e73ff73bfb546d4753b58937d53898412cb (diff)
downloadsamba-1862aa6c259ebe6de86b220208e315a22515b453.tar.gz
build: detect support for ethtool
Pair-Programmed-With: Anoop C S <anoopcs@redhat.com> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--lib/socket/wscript7
-rw-r--r--wscript1
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/socket/wscript b/lib/socket/wscript
new file mode 100644
index 00000000000..d8c269a59a8
--- /dev/null
+++ b/lib/socket/wscript
@@ -0,0 +1,7 @@
+#!/usr/bin/env python
+
+def configure(conf):
+ conf.CHECK_HEADERS('linux/sockios.h linux/ethtool.h')
+ if (conf.CONFIG_SET('HAVE_LINUX_SOCKIOS_H') and \
+ conf.CONFIG_SET('HAVE_LINUX_ETHTOOL_H')):
+ conf.DEFINE('HAVE_ETHTOOL', 1)
diff --git a/wscript b/wscript
index c3c3cfd6f79..41ed5dafc90 100644
--- a/wscript
+++ b/wscript
@@ -180,6 +180,7 @@ def configure(conf):
conf.RECURSE('lib/texpect')
if conf.env.with_ctdb:
conf.RECURSE('ctdb')
+ conf.RECURSE('lib/socket')
conf.SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS()