From 1862aa6c259ebe6de86b220208e315a22515b453 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 25 Jan 2016 03:30:39 +0100 Subject: [PATCH] build: detect support for ethtool Pair-Programmed-With: Anoop C S Signed-off-by: Michael Adam Signed-off-by: Anoop C S Reviewed-by: Stefan Metzmacher --- lib/socket/wscript | 7 +++++++ wscript | 1 + 2 files changed, 8 insertions(+) create mode 100644 lib/socket/wscript 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() -- 2.34.1