Posted to tcl by hypnotoad at Tue Nov 12 19:51:56 GMT 2019view raw
- ###
- # Return the string to pass to ./configure to compile the Tcl core for the given OS.
- # [list_begin itemized]
- # [item] windows: --with-tzdata --with-encoding utf-8
- # [item] macosx: --enable-corefoundation=yes --enable-framework=no --with-tzdata --with-encoding utf-8
- # [item] other: --with-tzdata --with-encoding utf-8
- # [list_end]
- ###
- proc ::practcl::platform::tcl_core_options {os} {
- ###
- # Download our required packages
- ###
- set tcl_config_opts {}
- # Auto-guess options for the local operating system
- switch $os {
- windows {
- #lappend tcl_config_opts --disable-stubs
- }
- linux {
- }
- macosx {
- lappend tcl_config_opts --enable-corefoundation=yes --enable-framework=no
- }
- }
- lappend tcl_config_opts --with-tzdata --with-encoding utf-8
- return $tcl_config_opts
- }
- proc ::practcl::platform::tk_core_options {os} {
- ###
- # Download our required packages
- ###
- set tk_config_opts {}
- # Auto-guess options for the local operating system
- switch $os {
- windows {
- }
- linux {
- lappend tk_config_opts --enable-xft=no --enable-xss=no
- }
- macosx {
- lappend tk_config_opts --enable-aqua=yes
- }
- }
- return $tk_config_opts
- }