r4733 - in trunk/varnish-cache: . lib/libvcl
phk at varnish-cache.org
phk at varnish-cache.org
Tue Apr 27 17:16:03 CEST 2010
Author: phk
Date: 2010-04-27 17:16:03 +0200 (Tue, 27 Apr 2010)
New Revision: 4733
Modified:
trunk/varnish-cache/configure.ac
trunk/varnish-cache/lib/libvcl/Makefile.am
Log:
Have auto* look for a python3 instead of tclsh and use the python
version of the VCC generator script
Modified: trunk/varnish-cache/configure.ac
===================================================================
--- trunk/varnish-cache/configure.ac 2010-04-27 14:45:43 UTC (rev 4732)
+++ trunk/varnish-cache/configure.ac 2010-04-27 15:16:03 UTC (rev 4733)
@@ -291,9 +291,9 @@
fi
AM_MISSING_HAS_RUN
-AC_CHECK_PROGS(TCLSH, [tclsh tclsh8.4 tclsh8.5], :)
-if test "$TCLSH" = :; then
- TCLSH="${am_missing_run}tclsh"
+AC_CHECK_PROGS(PYTHON3, [python3 python3.1 python3.2], :)
+if test "$PYTHON3" = :; then
+ PYTHON3="${am_missing_run}python3"
fi
# Solaris defines SO_{RCV,SND}TIMEO, but does not implement them.
Modified: trunk/varnish-cache/lib/libvcl/Makefile.am
===================================================================
--- trunk/varnish-cache/lib/libvcl/Makefile.am 2010-04-27 14:45:43 UTC (rev 4732)
+++ trunk/varnish-cache/lib/libvcl/Makefile.am 2010-04-27 15:16:03 UTC (rev 4733)
@@ -27,13 +27,13 @@
vcc_xref.c
EXTRA_DIST = \
- vcc_gen_fixed_token.tcl
+ generate.py
-$(srcdir)/vcc_obj.c: $(srcdir)/vcc_gen_fixed_token.tcl
- cd $(srcdir) && @TCLSH@ vcc_gen_fixed_token.tcl || true
+$(srcdir)/vcc_obj.c: $(srcdir)/generate.py
+ cd $(srcdir) && @PYTHON3@ generate.py || true
-$(srcdir)/vcc_fixed_token.c: $(srcdir)/vcc_gen_fixed_token.tcl $(top_srcdir)/include/vcl.h $(top_srcdir)/include/vrt.h $(top_srcdir)/include/vrt_obj.h
- cd $(srcdir) && @TCLSH@ vcc_gen_fixed_token.tcl || true
+$(srcdir)/vcc_fixed_token.c: $(srcdir)/generate.py $(top_srcdir)/include/vcl.h $(top_srcdir)/include/vrt.h $(top_srcdir)/include/vrt_obj.h
+ cd $(srcdir) && @PYTHON3@ generate.py || true
-$(srcdir)/vcc_token_defs.h: $(srcdir)/vcc_gen_fixed_token.tcl $(top_srcdir)/include/vcl.h $(top_srcdir)/include/vrt.h $(top_srcdir)/include/vrt_obj.h
- cd $(srcdir) && @TCLSH@ vcc_gen_fixed_token.tcl || true
+$(srcdir)/vcc_token_defs.h: $(srcdir)/generate.py $(top_srcdir)/include/vcl.h $(top_srcdir)/include/vrt.h $(top_srcdir)/include/vrt_obj.h
+ cd $(srcdir) && @PYTHON3@ generate.py || true
More information about the varnish-commit
mailing list