From 4ee6b94bec0b1fc22540af02dc53a88187e95b90 Mon Sep 17 00:00:00 2001
From: P. J. McDermott <pjm@nac.net>
Date: Thu, 19 Sep 2013 12:26:10 -0400
Subject: build: Pass --with-tcl to configure.

---
diff --git a/build b/build
index 94a8b89..72c5072 100755
--- a/build
+++ b/build
@@ -2,14 +2,20 @@
 
 include ../source.mk
 
+TCL_V = $$(sed -n 's/Tcl-Version: //p' ../substvars)
+
 nop:
 	@:
 
 configure:
+	# Temporary hack for bootstrap on Debian.
+	tcl="/usr/lib/$(OPK_HOST_ARCH)/tcl$(TCL_V)"; \
+	[ -f /etc/debian_version ] && tcl="/usr/lib/tcl$(TCL_V)"; \
 	oh-autoconfigure -- \
 		--enable-shared \
 		--enable-threads \
-		--disable-rpath
+		--disable-rpath \
+		--with-tcl="$${tcl}"
 	touch $@
 
 build: configure
--
cgit v0.9.1