From e337caeed1459f876449611ae1684616d0ea8f55 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 26 Sep 2005 15:15:50 +0000 Subject: r10509: Some more sconscript fixes. Now getting to link stage for smbclient (This used to be commit 6df956edbab7ad5e72b2f20e74ab0f0d62528932) --- source4/lib/netif/SConscript | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 source4/lib/netif/SConscript (limited to 'source4/lib/netif') diff --git a/source4/lib/netif/SConscript b/source4/lib/netif/SConscript new file mode 100644 index 0000000000..3e36fc55fe --- /dev/null +++ b/source4/lib/netif/SConscript @@ -0,0 +1,22 @@ +Import('hostenv defines') + +if hostenv['configure']: + conf = Configure(hostenv) + + for h in ['arpa/inet.h','net/if.h','netdb.h','netinet/in.h','netinet/ip.h','netinet/tcp.h','netinet/in_systm.h','netinet/in_ip.h']: + if conf.CheckCHeader(h): + defines['HAVE_' + h.upper().replace('.','_').replace('/','_')] = 1 + + for d in ['HAVE_IFACE_IFCONF','HAVE_IFACE_AIX','HAVE_IFACE_IFREQ']: + if conf.TryRun(""" +#define %s 1 +#define AUTOCONF_TEST 1 +#include "confdefs.h" +#include "netif.c" +""" % d, '.c'): + defines[d] = 1 + break + + conf.Finish() + +hostenv.StaticLibrary('netif', ['interface.c', 'netif.c']) -- cgit