diff options
author | hobbs <hobbs> | 2003-10-06 19:08:45 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2003-10-06 19:08:45 (GMT) |
commit | e480612fad9f6dc863a8a24b72a8c167ab9ceca4 (patch) | |
tree | 4cb93a7665c923e15589c427aaa8830feadbe0dc /win | |
parent | f472b81bc3a7304572259fbab58ac8e8b6753f82 (diff) | |
download | tcl-e480612fad9f6dc863a8a24b72a8c167ab9ceca4.zip tcl-e480612fad9f6dc863a8a24b72a8c167ab9ceca4.tar.gz tcl-e480612fad9f6dc863a8a24b72a8c167ab9ceca4.tar.bz2 |
* win/configure:
* win/tcl.m4: removed incorrect checks for existence of
optimization. TCL_CFG_OPTIMIZED is now defined whenever the user
does not build with --enable-symbols.
Diffstat (limited to 'win')
-rwxr-xr-x | win/configure | 26 | ||||
-rw-r--r-- | win/tcl.m4 | 26 |
2 files changed, 2 insertions, 50 deletions
diff --git a/win/configure b/win/configure index 8893cbd..eb4ea6f 100755 --- a/win/configure +++ b/win/configure @@ -3267,25 +3267,6 @@ echo "$as_me: WARNING: \"could not find 64-bit SDK to enable 64bit mode\"" >&2;} CFLAGS_OPTIMIZE="-nologo -Oti -Gs -GD ${runtime}" STLIB_LD="lib -nologo" LINKBIN="link -link50compat" - - # TIP #59 - # A check borrowed from 'rules.vc' to determine if the - # compiler actually supports optimization. If not we do - # not try to use this feature. - - lines=`$(CC) -nologo -Ox -c -Zs -TC -Fdtemp nul 2>&1 | grep "D4002" | wc -l` - - for f in temp.idb temp.pdb ; do - if -f $f ; then - rm -f $f - fi - done - if $lines -gt 0 ; then - OPTIMIZING=1 - else - OPTIMIZING=0 - CFLAGS_OPTIMIZE="-nologo -Oti -Gs -GD ${runtime}" - fi fi SHLIB_LD="${LINKBIN} -dll -nologo -incremental:no" @@ -3354,15 +3335,10 @@ fi; echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 - # Use result from SC_CONFIG_CFLAGS to determine if - # optimization is truly active. - - if test "$OPTIMIZING" = "1" ; then - cat >>confdefs.h <<\_ACEOF + cat >>confdefs.h <<\_ACEOF #define TCL_CFG_OPTIMIZED 1 _ACEOF - fi else CFLAGS_DEFAULT='$(CFLAGS_DEBUG)' LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)' @@ -302,12 +302,7 @@ AC_DEFUN(SC_ENABLE_SYMBOLS, [ DBGX="" AC_MSG_RESULT([no]) - # Use result from SC_CONFIG_CFLAGS to determine if - # optimization is truly active. - - if test "$OPTIMIZING" = "1" ; then - AC_DEFINE(TCL_CFG_OPTIMIZED) - fi + AC_DEFINE(TCL_CFG_OPTIMIZED) else CFLAGS_DEFAULT='$(CFLAGS_DEBUG)' LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)' @@ -608,25 +603,6 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [ CFLAGS_OPTIMIZE="-nologo -Oti -Gs -GD ${runtime}" STLIB_LD="lib -nologo" LINKBIN="link -link50compat" - - # TIP #59 - # A check borrowed from 'rules.vc' to determine if the - # compiler actually supports optimization. If not we do - # not try to use this feature. - - lines=`$(CC) -nologo -Ox -c -Zs -TC -Fdtemp nul 2>&1 | grep "D4002" | wc -l` - - for f in temp.idb temp.pdb ; do - if [ -f $f ]; then - rm -f $f - fi - done - if [ $lines -gt 0 ]; then - OPTIMIZING=1 - else - OPTIMIZING=0 - CFLAGS_OPTIMIZE="-nologo -Oti -Gs -GD ${runtime}" - fi fi SHLIB_LD="${LINKBIN} -dll -nologo -incremental:no" |