Diff

Differences From Artifact [b45aa7beb7]:

To Artifact [b2dce588fe]:


    18     18   	shift
    19     19   
    20     20   	mode="distclean"
    21     21   fi
    22     22   
    23     23   CONFIGUREEXTRA="$@"
    24     24   export CONFIGUREEXTRA
           25  +
           26  +# Add packages implied by the additional arguments
           27  +if echo " ${CONFIGUREEXTRA} " | grep ' --enable-threads' >/dev/null 2>/dev/null; then
           28  +	ADDPKGS="${ADDPKGS} thread"
           29  +fi
    25     30   
    26     31   failedpkgs=""
    27     32   buildfailed="0"
    28         -for pkg in tcl tk itcl mk4tcl tclvfs zlib kitsh; do
           33  +for pkg in tcl tk itcl mk4tcl tclvfs zlib ${ADDPKGS} kitsh; do
    29     34   	if [ "${mode}" = "distclean" ]; then
    30     35   		rm -rf "${pkg}/src"
    31     36   	fi
    32     37   
    33     38   	if [ "${mode}" = "clean" -o "${mode}" = "distclean" ]; then
    34     39   		rm -f "${pkg}/build.log"
    35     40   		rm -rf "${pkg}/out" "${pkg}/inst" "${pkg}/build"