X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fdup2.m4;h=dec27faeeb9ca8454a99b8c2deec7a6c76c6fbf4;hb=55b49420fc3ae8860ed66a85645b2b4d171646dc;hp=6385b0ced34af3f5ead4bf905f555a82e507056e;hpb=607acaa3c38fa32e0765847c85362183b5dc46ac;p=gnulib.git diff --git a/m4/dup2.m4 b/m4/dup2.m4 index 6385b0ced..dec27faee 100644 --- a/m4/dup2.m4 +++ b/m4/dup2.m4 @@ -1,5 +1,5 @@ -#serial 15 -dnl Copyright (C) 2002, 2005, 2007, 2009-2011 Free Software Foundation, Inc. +#serial 17 +dnl Copyright (C) 2002, 2005, 2007, 2009-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -67,13 +67,12 @@ 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 ]) ]) # Prerequisites of lib/dup2.c. -AC_DEFUN([gl_PREREQ_DUP2], -[ - AC_REQUIRE([AC_C_INLINE]) -]) +AC_DEFUN([gl_PREREQ_DUP2], [])