Branch: Tag:

2006-08-02

2006-08-02 21:19:03 by Martin Stjernholm <mast@lysator.liu.se>

Do the manifest embedding dance necessary to make the VC8 CRT happy.

Rev: src/Makefile.in:1.441
Rev: src/configure.in:1.978
Rev: src/modules/dynamic_module_makefile.in:1.123

1: - AC_REVISION("$Id: configure.in,v 1.977 2006/08/02 20:29:18 mast Exp $") + AC_REVISION("$Id: configure.in,v 1.978 2006/08/02 21:19:02 mast Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
2265:    # MinGW system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.977 2006/08/02 20:29:18 mast Exp $. + # Automatically generated by $Id: configure.in,v 1.978 2006/08/02 21:19:02 mast Exp $.   # MinGW-version. Do NOT edit.   posix_name="`cat`"   posix_prefix="/"
2303:    # Native POSIX system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.977 2006/08/02 20:29:18 mast Exp $. + # Automatically generated by $Id: configure.in,v 1.978 2006/08/02 21:19:02 mast Exp $.   # POSIX-version. Do NOT edit.   cat   EOF
2312:    # rntcl-style    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.977 2006/08/02 20:29:18 mast Exp $. + # Automatically generated by $Id: configure.in,v 1.978 2006/08/02 21:19:02 mast Exp $.   # RNTCL-version. Do NOT edit.   sed -e "$PIKE_PATH_TRANSLATE"   EOF
2609:   fi   AC_SUBST(TALLOW)    + # VC8 manifest tool + if test "x${MTEXE-}" = x ; then +  AC_PATH_PROG(MTEXE, mt.exe, $RNTANY mt.exe, $PATH:$EXTRA_PATH) +  export MTEXE + fi +    #############################################################################      # installbsd seems to be broken on some versions of AIX
7640:      #############################################################################    + # Microsoft has decided to make our lives yet more complicated by + # introducing a fancy dependency tracking system in VC8. It got + # manifest files (oooh!) written in xml (aahh!). It got a linker that + # can't make binaries with the dependency info built in from the + # beginning. It got an amazing array of special cases and quirky rules + # on how crt dlls may be loaded and not that's almost certain to nail + # you sooner or later. All in all, it's the most insanely overcomplex + # system to keep your exe and dlls from loading that stinkin' little + # crt dll you can ever imagine. For the full story, see + # http://www.codeproject.com/cpp/vcredists_x86.asp. +  + if test "x$MTEXE" != x; then +  # Embed the manifests. C.f. http://msdn2.microsoft.com/en-us/library/ms235591.aspx +  # You might want to disable this if you want to try private crts. +  # See also the PRIVATE_CRT parts of install.pike. +  MT_FIX_PIKE_EXE="\ +  @if test -f pike.exe.manifest; then \ +  echo \"$MTEXE -nologo -manifest pike.exe.manifest '-outputresource:pike.exe;1'\"; \ +  $MTEXE -nologo -manifest pike.exe.manifest '-outputresource:pike.exe;1'; \ +  else :; fi" +  MT_FIX_MODULE_SO="\ +  @if test -f module.so.manifest; then \ +  echo \"$MTEXE -nologo -manifest module.so.manifest '-outputresource:module.so;2'\"; \ +  $MTEXE -nologo -manifest module.so.manifest '-outputresource:module.so;2'; \ +  else :; fi" + else +  MT_FIX_PIKE_EXE=@: +  MT_FIX_MODULE_SO=@: + fi +  + AC_SUBST(MT_FIX_PIKE_EXE) +  + ############################################################################# +    echo   echo "Compiler summary:"   echo