# Initial auto.def created by 'autosetup --init=make'
# vim: filetype=tcl

use cc

# Add any user options here
options {
	tcl=1		=> "Disable TcL Sourcefile support"
	lua=1		=> "Disable Lua Sourcefile support"
	tinycc=1	=> "Disable TinyCC Sourcefile support"
}

cc-check-tools ar
cc-check-includes string.h memory.h

if {[opt-bool tcl]} {
	msg-result "Enabling TcL support (JimTcl)"
	define USE_TCL 1
}
if {[opt-bool lua]} {
	msg-result "Enabling lua support (Lua 5.2.0)"
	define USE_LUA 1
}

if {[opt-bool tinycc]} {
	msg-result "Enabling TinyCC support"
	define USE_TCC 1
}

define _POSIX_SOURCE 1

make-config-header src/config.h -bare {HAVE_* USE_* _*}
make-template tup.config.in build/tup.config
