diff --git a/configure b/configure index 8e2f82a..6d3b557 100755 --- a/configure +++ b/configure @@ -58,6 +58,7 @@ gen_CFLAGS () { dmd) cflags="$cflags -debug";; esac fi + [ -n "$unittest" ] && cflags="$cflags -unittest -main" for flag in $cflags; do using "$flag" @@ -85,7 +86,7 @@ gen_LDFLAGS () { # command line interface -while getopts c:dhr ch; do +while getopts c:dhrt ch; do case "$ch" in c) dcname="$(basename "$OPTARG")" @@ -97,6 +98,7 @@ while getopts c:dhr ch; do ;; d) debug=1 ;; r) unset debug ;; + t) unittest=1; debug=1 ;; h) cat <