# have all needed files, that a GNU package needs
AUTOMAKE_OPTIONS = foreign 1.4
-SUBDIRS = src doc test
+SUBDIRS = src doc test examples codegen example-codegen
# Install the pkg-config file:
pkgconfigdir = $(libdir)/pkgconfig
/* Name of package */
#undef PACKAGE
+/* protocol version used (integers, increase version if incompatible) */
+#undef PROTOCOL_VERSION
+
/* Version number of package */
#undef VERSION
exit 1
fi
-AC_OUTPUT(Makefile doc/Doxyfile doc/Makefile src/Makefile libt2n.pc libt2n.spec test/Makefile)
+PKG_CHECK_MODULES(CODEGEN, libxml++-2.6 >= 2.8.1)
+AC_SUBST(CODEGEN_CFLAGS)
+AC_SUBST(CODEGEN_LIBS)
+
+AC_OUTPUT(Makefile doc/Doxyfile doc/Makefile src/Makefile libt2n.pc libt2n.spec test/Makefile examples/Makefile codegen/Makefile example-codegen/Makefile)
int ret=select (FD_SETSIZE, &active_fd_set, NULL, NULL, timeout_ptr);
// return the timeout we did not use
+ // todo: this is linux specific according to man 2 select
if (usec_timeout > 0 && usec_timeout_remaining != NULL)
*usec_timeout_remaining=(tval.tv_sec*1000000)+tval.tv_usec;