1Description: 2A <net/if.h> for systems lacking it. 3 4Files: 5lib/net_if.in.h 6m4/net_if_h.m4 7 8Depends-on: 9include_next 10sys_socket 11 12configure.ac: 13gl_HEADER_NET_IF 14AC_PROG_MKDIR_P 15 16Makefile.am: 17BUILT_SOURCES += $(NET_IF_H) 18 19# We need the following in order to create <net/if.h> when the system 20# doesn't have one. 21if GL_GENERATE_NET_IF_H 22net/if.h: net_if.in.h $(top_builddir)/config.status 23 $(AM_V_at)$(MKDIR_P) net 24 $(AM_V_GEN)rm -f $@-t $@ && \ 25 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ 26 sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \ 27 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ 28 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ 29 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ 30 -e 's|@''NEXT_NET_IF_H''@|$(NEXT_NET_IF_H)|g' \ 31 -e 's|@''HAVE_NET_IF_H''@|$(HAVE_NET_IF_H)|g' \ 32 < $(srcdir)/net_if.in.h; \ 33 } > $@-t && \ 34 mv $@-t $@ 35else 36net/if.h: $(top_builddir)/config.status 37 rm -f $@ 38endif 39MOSTLYCLEANFILES += net/if.h net/if.h-t 40MOSTLYCLEANDIRS += net 41 42Include: 43<net/if.h> 44 45License: 46LGPLv2+ 47 48Maintainer: 49Eric Blake 50