Commit 3a23e492 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Have auto* look for a python3 instead of tclsh and use the python

version of the VCC generator script



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4733 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent f46f8997
...@@ -291,9 +291,9 @@ else ...@@ -291,9 +291,9 @@ else
fi fi
AM_MISSING_HAS_RUN AM_MISSING_HAS_RUN
AC_CHECK_PROGS(TCLSH, [tclsh tclsh8.4 tclsh8.5], :) AC_CHECK_PROGS(PYTHON3, [python3 python3.1 python3.2], :)
if test "$TCLSH" = :; then if test "$PYTHON3" = :; then
TCLSH="${am_missing_run}tclsh" PYTHON3="${am_missing_run}python3"
fi fi
# Solaris defines SO_{RCV,SND}TIMEO, but does not implement them. # Solaris defines SO_{RCV,SND}TIMEO, but does not implement them.
......
...@@ -27,13 +27,13 @@ libvcl_la_SOURCES = \ ...@@ -27,13 +27,13 @@ libvcl_la_SOURCES = \
vcc_xref.c vcc_xref.c
EXTRA_DIST = \ EXTRA_DIST = \
vcc_gen_fixed_token.tcl generate.py
$(srcdir)/vcc_obj.c: $(srcdir)/vcc_gen_fixed_token.tcl $(srcdir)/vcc_obj.c: $(srcdir)/generate.py
cd $(srcdir) && @TCLSH@ vcc_gen_fixed_token.tcl || true 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 $(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) && @TCLSH@ vcc_gen_fixed_token.tcl || true 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 $(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) && @TCLSH@ vcc_gen_fixed_token.tcl || true cd $(srcdir) && @PYTHON3@ generate.py || true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment