+chiark-tcl (1.0.1) unstable; urgency=low
+
+ * Replace #include <tcl8.3/tcl.h> with <tcl.h> and in build system find
+ Tcl version and pass appropriate -I option. (Closes: #362806.)
+
+ --
+
chiark-tcl (1.0.0.99.iwj.2) unstable; urgency=low
* Provide adns txt RRs.
#include <sys/un.h>
#include <arpa/inet.h>
-#include <tcl8.3/tcl.h>
+#ifndef _TCL /* if someone already included some tcl.h, use that */
+#include <tcl.h>
+#endif /*_TCL*/
#include <adns.h>
VERSION ?= 1
FAMILY ?= chiark_tcl
+TCL_VERSION ?= 8.3
+TCL_INCLUDEDIR ?= /usr/include/tcl$(TCL_VERSION)
OPTIMISE ?= -O2
TCL_MEM_DEBUG ?= -DTCL_MEM_DEBUG
CFLAGS += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror \
$(OPTIMISE)
-CPPFLAGS += -I$(BASE_DIR)
+CPPFLAGS += -I$(TCL_INCLUDEDIR) -I$(BASE_DIR)
CPPFLAGS += $(TCL_MEM_DEBUG)
AUTOS += $(AUTO_SRCS) $(AUTO_HDRS)
+chiark-tcl (1.0.1) unstable; urgency=low
+
+ * Replace #include <tcl8.3/tcl.h> with <tcl.h> and in build system find
+ Tcl version and pass appropriate -I option. (Closes: #362806.)
+
+ --
+
chiark-tcl (1.0.0.99.iwj.2) unstable; urgency=low
* Provide adns txt RRs.
docpackage=libtcl-chiark-$(majversion)
docdir=usr/share/doc/$(docpackage)
+tclh:=$(firstword $(wildcard /usr/include/tcl8.*/tcl.h))
+tclversion:=$(patsubst /usr/include/tcl%/tcl.h,%,$(tclh))
+
define checkdir
test -f hbytes/hbytes.tct
endef
build:
$(checkdir)
- $(MAKE) prefix=/usr VERSION=$(majversion)
+ $(MAKE) prefix=/usr VERSION=$(majversion) TCL_VERSION=$(tclversion)
clean:
$(checkdir)