Bruno Haible <[EMAIL PROTECTED]> writes: > * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead > of defining putenv in config.h, just set REPLACE_PUTENV.
Thanks for doing that. I had written something quite similar but you beat me to it. One minor change, which I just installed, is to tell users that we're testing for compatibility for GNU as well as for SVID. (GNU is more important and better known these days than SVID.) 2007-11-01 Paul Eggert <[EMAIL PROTECTED]> * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking for compatibility with GNU. diff --git a/m4/putenv.m4 b/m4/putenv.m4 index ba7c5c7..226a9eb 100644 --- a/m4/putenv.m4 +++ b/m4/putenv.m4 @@ -1,4 +1,4 @@ -# putenv.m4 serial 13 +# putenv.m4 serial 14 dnl Copyright (C) 2002-2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -12,7 +12,8 @@ dnl The putenv in libc on at least SunOS 4.1.4 does *not* do that. AC_DEFUN([gl_FUNC_PUTENV], [ AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) - AC_CACHE_CHECK([for SVID conformant putenv], jm_cv_func_svid_putenv, + AC_CACHE_CHECK([for putenv compatible with GNU and SVID], + [jm_cv_func_svid_putenv], [AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],[ /* Put it in env. */ if (putenv ("CONFTEST_putenv=val"))