From: Pádraig Brady
Date: Fri, 31 Oct 2014 18:18:36 +0000 (+0000) Subject: linkat: don't unconditionally replace on GNU/Linux X-Git-Tag: v1.0~7270 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=c564172a11b94fed43632cbc854277d68d14e693;p=gnulib.git linkat: don't unconditionally replace on GNU/Linux * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW was redundant for a few reasons. It was present to support compiling on new systems but running on the old narrow window of Linux 2.6.1[67]. It setup and cleaned up test files which weren't actually used. On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is implicit in the following check. --- diff --git a/ChangeLog b/ChangeLog index e9d848a611..6728893e43 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2014-11-03 Pádraig Brady
+ + linkat: don't unconditionally replace on GNU/Linux + * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW + was redundant for a few reasons. It was present to support compiling + on new systems but running on the old narrow window of Linux 2.6.1[67]. + It setup and cleaned up test files which weren't actually used. + On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is + implicit in the following check. + 2014-11-03 Pádraig Brady
linkat: wrap to handle symlinks on OS X 10.10
diff --git a/m4/linkat.m4 b/m4/linkat.m4
index a2b5213c16..fb0277da61 100644
--- a/m4/linkat.m4
+++ b/m4/linkat.m4
@@ -41,24 +41,6 @@ AC_DEFUN([gl_FUNC_LINKAT],
LINKAT_SYMLINK_NOTSUP=1])
rm -rf conftest.l1 conftest.l2])
- AC_CACHE_CHECK([whether linkat(,AT_SYMLINK_FOLLOW) works],
- [gl_cv_func_linkat_follow],
- [rm -rf conftest.f1 conftest.f2
- touch conftest.f1
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
-#include