Branch: Tag:

2006-08-03

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

Fixed debug/release crt selection. Added --with(out)-debug-crt.

Rev: src/configure.in:1.981

1: - AC_REVISION("$Id: configure.in,v 1.980 2006/08/03 15:28:47 mast Exp $") + AC_REVISION("$Id: configure.in,v 1.981 2006/08/03 19:30:47 mast Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
1259:    [], [enable_dll=no])   AC_ARG_WITH(crt, MY_DESCR([--with-crt=dynamic|static],    [force linking with dynamic or static CRT in Visual Studio])) +  + # --with-debug-crt is a nop on most systems since a debug C runtime + # lib normally is used simply by setting LD_LIBRARY_PATH, but in MSVC + # the choice affects both the compiler and the linker. + # + # Note that all libs need to be linked to the same CRT in VC8 if they + # are linked to the DLL variant (i.e. using -MD), otherwise the MS + # loader won't load them. This restriction is reinforced by the + # manifest stuff that's used in VC8, and it doesn't apply when running + # directly in the build dir. See + # http://msdn2.microsoft.com/en-us/library/ms235299.aspx + # + # Also note that the debug CRT DLL in VC8 isn't redistributable. + AC_ARG_WITH(debug-crt, MY_DESCR([--with-debug-crt], +  [compile and link with debug CRT in Visual Studio]), +  [], [with_debug_crt=no]) +    AC_ARG_WITH(bundles,    MY_DESCR([--without-bundles],    [do not enable bundled libraries]),
2152:    ;;       *rntcl*) -  if test x$with_rtldebug = xyes; then +  if test x$with_debug_crt = xyes; then    dynamic_crt_flag=-MDd    static_crt_flag=-MTd    else
2267:    # MinGW system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.980 2006/08/03 15:28:47 mast Exp $. + # Automatically generated by $Id: configure.in,v 1.981 2006/08/03 19:30:47 mast Exp $.   # MinGW-version. Do NOT edit.   posix_name="`cat`"   posix_prefix="/"
2305:    # Native POSIX system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.980 2006/08/03 15:28:47 mast Exp $. + # Automatically generated by $Id: configure.in,v 1.981 2006/08/03 19:30:47 mast Exp $.   # POSIX-version. Do NOT edit.   cat   EOF
2314:    # rntcl-style    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.980 2006/08/03 15:28:47 mast Exp $. + # Automatically generated by $Id: configure.in,v 1.981 2006/08/03 19:30:47 mast Exp $.   # RNTCL-version. Do NOT edit.   sed -e "$PIKE_PATH_TRANSLATE"   EOF