As well as the above, add .tcl files to EXTRA_DIST so we can
regenerate them and make distcheck works.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3196
d4fa192b-c00b-0410-8231-
f00ffab90ce4
ac_cv_func_port_create=no
fi
+AM_MISSING_HAS_RUN
+AC_CHECK_PROGS(TCLSH, [tclsh tclsh8.4 tclsh8.5], false)
+if test "$TCLSH" = :; then
+ TCLSH=${am_missing_run}tclsh
+fi
+
# Solaris defines SO_{RCV,SND}TIMEO, but does not implement them.
# Varnish will build and run without these, but connections will not
# time out, which may leave Varnish vulnerable to denail-of-service
vcc_token.c \
vcc_var.c \
vcc_xref.c
+
+EXTRA_DIST = vcc_gen_obj.tcl \
+ vcc_gen_fixed_token.tcl
+
+vcc_obj.c: $(srcdir)/vcc_gen_obj.tcl
+ cd $(srcdir) && @TCLSH@ vcc_gen_obj.tcl
+
+vcc_fixed_token.c: $(srcdir)/vcc_gen_fixed_token.tcl
+ cd $(srcdir) && @TCLSH@ vcc_gen_fixed_token.tcl
+
+vcc_token_defs.h: $(srcdir)/vcc_gen_fixed_token.tcl
+ cd $(srcdir) && @TCLSH@ vcc_gen_fixed_token.tcl