From 39d237de043f4bb83ce82b65f9076e7bdee1042c Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Sat, 15 Mar 2014 23:02:09 +0000 Subject: [PATCH] more humnan interface --- misc/mkwin | 42 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/misc/mkwin b/misc/mkwin index 6bbd07b3a..e7f62ff0a 100755 --- a/misc/mkwin +++ b/misc/mkwin @@ -14,13 +14,43 @@ # VERSION=6.3.4 THREADS=no -if test $# = 0; then - ABI=64 -elif test $# = 1; then - ABI=$1 +ABI=64 + +if test $# = 1; then + if test $1 = threads; then + THREADS=yes + elif test $1 = no_threads; then + THREADS=no + elif test $1 = 32; then + ABI=32 + elif test $1 = 64; then + ABI=64 + else + echo "received \"$1\", should be one of threads, no_threads, 32, 64" + fi else - ABI=$1 - THREADS=$2 + if test $1 = threads; then + THREADS=yes + elif test $1 = no_threads; then + THREADS=no + elif test $1 = 32; then + ABI=32 + elif test $1 = 64; then + ABI=64 + else + echo "received 1=\"$1\", should be one of threads, no_threads, 32, 64" + fi + if test $2 = threads; then + THREADS=yes + elif test $2 = no_threads; then + THREADS=no + elif test $2 = 32; then + ABI=32 + elif test $2 = 64; then + ABI=64 + else + echo "received 1=\"$2\", should be one of threads, no_threads, 32, 64" + fi fi CONFIGURE=../yap-6.3/configure