Branch: Tag:

2008-06-10

2008-06-10 20:56:26 by Martin Stjernholm <mast@lysator.liu.se>

Fixed putenv on windows (hopefully).

Rev: src/builtin.cmod:1.205
Rev: src/configure.in:1.1054

1: - AC_REVISION("$Id: configure.in,v 1.1053 2008/04/26 21:07:15 grubba Exp $") + AC_REVISION("$Id: configure.in,v 1.1054 2008/06/10 20:56:26 mast Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
2361:    # MinGW system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.1053 2008/04/26 21:07:15 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.1054 2008/06/10 20:56:26 mast Exp $.   # MinGW-version. Do NOT edit.   posix_name="`cat`"   posix_prefix="/"
2399:    # Native POSIX system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.1053 2008/04/26 21:07:15 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.1054 2008/06/10 20:56:26 mast Exp $.   # POSIX-version. Do NOT edit.   cat   EOF
2408:    # rntcl-style    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.1053 2008/04/26 21:07:15 grubba Exp $. + # Automatically generated by $Id: configure.in,v 1.1054 2008/06/10 20:56:26 mast Exp $.   # RNTCL-version. Do NOT edit.   sed -e "$PIKE_PATH_TRANSLATE"   EOF
7488:      #######################################################################    + AC_MSG_CHECKING([if putenv() always requires a '=']) + AC_CACHE_VAL(pike_cv_putenv_always_requires_equal, [ +  AC_TRY_RUN([ + #include <stdlib.h> +  +  int main() +  { +  putenv ("foo=bar"); +  if (putenv ("foo") && !putenv ("foo=") && !getenv ("foo")) return 1; +  return 0; +  }], +  pike_cv_putenv_always_requires_equal=no, +  pike_cv_putenv_always_requires_equal=yes +  ) + ]) + AC_MSG_RESULT($pike_cv_putenv_always_requires_equal) + if test "x$pike_cv_putenv_always_requires_equal" = "xyes"; then +  AC_DEFINE(PUTENV_ALWAYS_REQUIRES_EQUAL, [], +  [Defined if putenv() always requires a '=']) + fi +  + ####################################################################### +    # Set info about shared libraries.   AC_SUBST(SO)   AC_SUBST(LDSHARED)