]> Savannah Git Hosting - gnulib.git/commitdiff
Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
authorBruno Haible <bruno@clisp.org>
Sun, 27 Nov 2011 23:43:01 +0000 (00:43 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 27 Nov 2011 23:43:01 +0000 (00:43 +0100)
* m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
HAVE_OPENDIR is 0.
* m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
HAVE_CLOSEDIR is 0.
* m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
is 0.
* m4/dup3.m4 (gl_FUNC_DUP3): Update comments.

ChangeLog
m4/closedir.m4
m4/dup2.m4
m4/dup3.m4
m4/opendir.m4

index d0efb2ef0ceab45644ad6e6d464fef4dc7ddda0d..0ef0571e2d3b62da73afe87bcf486e54fd75fc7f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2011-11-27  Bruno Haible  <bruno@clisp.org>
+
+       Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
+       * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
+       HAVE_OPENDIR is 0.
+       * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
+       HAVE_CLOSEDIR is 0.
+       * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
+       is 0.
+       * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
+
 2011-11-27  Bruno Haible  <bruno@clisp.org>
 
        getcwd: Fix bug from 2011-08-17.
index 1b7912a30bb7f50a84a0a7c54231cb3244057a2d..a57cd54079ef82c1a067ac89746c8e4d748abb4d 100644 (file)
@@ -1,4 +1,4 @@
-# closedir.m4 serial 1
+# closedir.m4 serial 2
 dnl Copyright (C) 2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -17,7 +17,9 @@ AC_DEFUN([gl_FUNC_CLOSEDIR],
   m4_ifdef([gl_FUNC_FCHDIR], [
     gl_TEST_FCHDIR
     if test $HAVE_FCHDIR = 0; then
-      REPLACE_CLOSEDIR=1
+      if test $HAVE_CLOSEDIR = 1; then
+        REPLACE_CLOSEDIR=1
+      fi
     fi
   ])
 ])
index cd9d254b440740db278a1cf3cc903623d29b81ba..15432828f00a409297172d452d444a691de91b7d 100644 (file)
@@ -1,4 +1,4 @@
-#serial 16
+#serial 17
 dnl Copyright (C) 2002, 2005, 2007, 2009-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -67,7 +67,9 @@ AC_DEFUN([gl_FUNC_DUP2],
   m4_ifdef([gl_FUNC_FCHDIR], [
     gl_TEST_FCHDIR
     if test $HAVE_FCHDIR = 0; then
-      REPLACE_DUP2=1
+      if test $HAVE_DUP2 = 1; then
+        REPLACE_DUP2=1
+      fi
     fi
   ])
 ])
index 29b8dc0a32948b99b19b85b82a659f80c978d421..6406312f240a47d2e815c0b40fd30d92c610067f 100644 (file)
@@ -1,4 +1,4 @@
-# dup3.m4 serial 3
+# dup3.m4 serial 4
 dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -22,7 +22,9 @@ dnl  dnl to keep fchdir's bookkeeping up-to-date.
 dnl  m4_ifdef([gl_FUNC_FCHDIR], [
 dnl    gl_TEST_FCHDIR
 dnl    if test $HAVE_FCHDIR = 0; then
-dnl      REPLACE_DUP3=1
+dnl      if test $HAVE_DUP3 = 1; then
+dnl        REPLACE_DUP3=1
+dnl      fi
 dnl    fi
 dnl  ])
 ])
index fa315b9837bb42075da02d9552e5bffc6bb06baa..043dee4fb9d292a0ab12a62f1b7e2b447f184a8b 100644 (file)
@@ -1,4 +1,4 @@
-# opendir.m4 serial 1
+# opendir.m4 serial 2
 dnl Copyright (C) 2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -17,7 +17,9 @@ AC_DEFUN([gl_FUNC_OPENDIR],
   m4_ifdef([gl_FUNC_FCHDIR], [
     gl_TEST_FCHDIR
     if test $HAVE_FCHDIR = 0; then
-      REPLACE_OPENDIR=1
+      if test $HAVE_OPENDIR = 1; then
+        REPLACE_OPENDIR=1
+      fi
     fi
   ])
 ])