1 Import('hostenv defines')
3 if hostenv['configure']:
4 conf = Configure(hostenv)
6 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']:
7 if conf.CheckCHeader(h):
8 defines['HAVE_' + h.upper().replace('.','_').replace('/','_')] = 1
10 for d in ['HAVE_IFACE_IFCONF','HAVE_IFACE_AIX','HAVE_IFACE_IFREQ']:
13 #define AUTOCONF_TEST 1
22 hostenv.Library('netif', ['interface.c', 'netif.c'])