From: Paul Eggert Date: Tue, 12 Dec 2006 07:37:26 +0000 (+0000) Subject: * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat X-Git-Tag: cvs-readonly~1495 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=bc9a52afd88b484ff686a9ce18ec38fba6e2e4a9;p=gnulib.git * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat and fchmodat unconditionally, since glibc 2.4 has them. Problem reported by Arkadiusz Miskiewicz. --- diff --git a/ChangeLog b/ChangeLog index 166166a9e..a5af99064 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-12-11 Paul Eggert + + * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat + and fchmodat unconditionally, since glibc 2.4 has them. + Problem reported by Arkadiusz Miskiewicz. + 2006-12-10 Bruno Haible * gnulib-tool (func_import): Show the include files only for those diff --git a/m4/openat.m4 b/m4/openat.m4 index 4789482d8..e7286487e 100644 --- a/m4/openat.m4 +++ b/m4/openat.m4 @@ -1,4 +1,4 @@ -#serial 11 +#serial 12 # See if we need to use our replacement for Solaris' openat et al functions. dnl Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. @@ -10,16 +10,12 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_OPENAT], [ - # No system provides these functions; compile them unconditionally. - AC_LIBOBJ([mkdirat]) - AC_LIBOBJ([fchmodat]) - AC_LIBOBJ([openat-die]) AC_LIBOBJ([openat-proc]) AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_CHECK_FUNCS_ONCE([lchmod]) AC_CHECK_FUNCS_ONCE([fdopendir]) - AC_REPLACE_FUNCS(openat) + AC_REPLACE_FUNCS([fchmodat mkdirat openat]) case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in yes+yes) ;; yes+*) AC_LIBOBJ([fstatat]);;