diff options
author | Steve Bennett <steveb@workware.net.au> | 2011-07-07 13:50:29 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2011-07-07 21:16:07 +1000 |
commit | 981a0d901de47d09993233f28b71cf9ff1d1e5e1 (patch) | |
tree | 4609f18de548a833cda46e7156b7aa96609939f6 /auto.def | |
parent | f828399b2034b8dfb03d48a8cbff33a1924e1ed7 (diff) | |
download | jimtcl-981a0d901de47d09993233f28b71cf9ff1d1e5e1.zip jimtcl-981a0d901de47d09993233f28b71cf9ff1d1e5e1.tar.gz jimtcl-981a0d901de47d09993233f28b71cf9ff1d1e5e1.tar.bz2 |
Do just enough to make Jim useable with msys/mingw
Convert some paths from backslashes to forward slashes
Handle splitting/joining paths which look like z:/abc/def
Identify the platform as mingw
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'auto.def')
-rw-r--r-- | auto.def | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -66,10 +66,23 @@ cc-check-functions backtrace geteuid mkstemp realpath strptime gettimeofday cc-check-functions regcomp waitpid sigaction sys_signame sys_siglist cc-check-functions syslog opendir readlink sleep usleep pipe inet_ntop getaddrinfo -switch -glob -- [get-define host] { - *-*-ming* { +define TCL_LIBRARY [get-define prefix]/lib/jim + +lassign [split [get-define host] -] host_cpu host_vendor host_os +# Scrub revision from the host_os +regsub -all {[0-9.]} $host_os {} host_os + +switch -glob -- $host_os { + mingw* { # We provide our own implementation of dlopen for mingw32 define-feature dlopen-compat + define TCL_PLATFORM_OS $host_os + define TCL_PLATFORM_PLATFORM windows + } + default { + # Note that cygwin is considered a unix platform + define TCL_PLATFORM_OS $host_os + define TCL_PLATFORM_PLATFORM unix } } @@ -335,10 +348,6 @@ foreach e $ext { } } -define TCL_LIBRARY [get-define prefix]/lib/jim -define TCL_PLATFORM_OS [exec uname -s] -define TCL_PLATFORM_PLATFORM unix - make-autoconf-h jim-config.h {HAVE_LONG_LONG* JIM_UTF8} make-autoconf-h jimautoconf.h {HAVE_* jim_ext_* TCL_PLATFORM_* TCL_LIBRARY USE_* JIM_*} make-template Makefile.in |