+
+if HAVE_PYTHON
+ALL_LOCAL += include/openflow/openflow.h.stamp
+include/openflow/openflow.h.stamp: \
+ include/openflow/openflow.h build-aux/check-structs
+ $(PYTHON) $(srcdir)/build-aux/check-structs $(srcdir)/include/openflow/openflow.h
+ touch $@
+DISTCLEANFILES += include/openflow/openflow.h.stamp
+
+ALL_LOCAL += include/openflow/nicira-ext.h.stamp
+include/openflow/nicira-ext.h.stamp: include/openflow/openflow.h include/openflow/nicira-ext.h build-aux/check-structs
+ $(PYTHON) $(srcdir)/build-aux/check-structs $(srcdir)/include/openflow/openflow.h $(srcdir)/include/openflow/nicira-ext.h
+ touch $@
+DISTCLEANFILES += include/openflow/nicira-ext.h.stamp
+endif
+
+EXTRA_DIST += build-aux/check-structs
+