gnulib-tool: Fix trouble caused by Python's bytecode cache.
[gnulib.git] / modules / net_if
blobd1b4865bdbcfd4fb412c4b8dd511e6f3eb14297d
1 Description:
2 A <net/if.h> for systems lacking it.
4 Files:
5 lib/net_if.in.h
6 m4/net_if_h.m4
8 Depends-on:
9 gen-header
10 include_next
11 sys_socket
13 configure.ac:
14 gl_HEADER_NET_IF
15 gl_CONDITIONAL_HEADER([net/if.h])
16 AC_PROG_MKDIR_P
18 Makefile.am:
19 BUILT_SOURCES += $(NET_IF_H)
21 # We need the following in order to create <net/if.h> when the system
22 # doesn't have one.
23 if GL_GENERATE_NET_IF_H
24 net/if.h: net_if.in.h $(top_builddir)/config.status
25         $(AM_V_GEN)$(MKDIR_P) '%reldir%/net'
26         $(AM_V_at)$(SED_HEADER_STDOUT) \
27               -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
28               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
29               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
30               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
31               -e 's|@''NEXT_NET_IF_H''@|$(NEXT_NET_IF_H)|g' \
32               -e 's|@''HAVE_NET_IF_H''@|$(HAVE_NET_IF_H)|g' \
33               $(srcdir)/net_if.in.h > $@-t
34         $(AM_V_at)mv $@-t $@
35 else
36 net/if.h: $(top_builddir)/config.status
37         rm -f $@
38 endif
39 MOSTLYCLEANFILES += net/if.h net/if.h-t
40 MOSTLYCLEANDIRS += net
42 Include:
43 <net/if.h>
45 License:
46 LGPLv2+
48 Maintainer:
49 Eric Blake