Get eaccess from libgen if available; that's where it is on Solaris 9.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Jul 2004 05:02:17 +0000 (05:02 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Jul 2004 05:02:17 +0000 (05:02 +0000)
ChangeLog
lib/ChangeLog
m4/ChangeLog

index ccec03a..0cfc227 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * src/Makefile.am (cp_LDADD, ginstall_LDADD, mv_LDADD,
+       pathchk_LDADD, rm_LDADD, test_LDADD): New vars, for eaccess.
+
        * tests/readlink/can-e: Don't assume that we can remove the
        working directory: this isn't possible under Solaris 8, say.
        * tests/readlink/can-f: Likewise.
index 8eacab9..a3b5e95 100644 (file)
@@ -1,5 +1,9 @@
 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * euidaccess.c [HAVE_LIBGEN_H]: Include <libgen.h>, for
+       eaccess on Solaris and SVR4-like systems.
+       (euidaccess): Use HAVE_EACCESS, not HAVE_DECL_EACCESS.
+
        cycle-check integer overflow fixup.
 
        * cycle-check.h: Remove now-inaccurate comment about the files
index b84ab3f..0930e99 100644 (file)
@@ -1,5 +1,10 @@
 2004-07-27  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't bother checking for
+       unistd.h, as autoconf does this for us.  Check for libgen.h.
+       Also look for eaccess within -lgen, which is where it is in
+       Solaris.  Set LIB_EACCESS accordingly.
+
        * backupfile.m4 (gl_BACKUPFILE): AC_REQUIRE
        gl_CHECK_TYPE_STRUCT_DIRENT_D_INO instead of invoking it directly.
        Do not require AC_FUNC_CLOSEDIR_VOID.