]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acspecific.m4 (AC_FUNC_STRERROR_R): New, from `strerror_r.m4',
authorAkim Demaille <akim@epita.fr>
Fri, 26 May 2000 15:59:19 +0000 (15:59 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 26 May 2000 15:59:19 +0000 (15:59 +0000)
serial 2, by Jim Meyering.
(AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New, from
`lstat-slash.m4', serial 1, by Jim Meyering.
* acfunctions: Adjust.

ChangeLog
doc/autoconf.texi

index d236f1d280d3e1e78a5914b05b0e7202fa1ee9e8..fde1f7c1832faf995fffa467b84b63c1b9599772 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2000-05-26  Akim Demaille  <akim@epita.fr>
+
+       * acspecific.m4 (AC_FUNC_STRERROR_R): New, from `strerror_r.m4',
+       serial 2, by Jim Meyering.
+       (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New, from
+       `lstat-slash.m4', serial 1, by Jim Meyering.
+       * acfunctions: Adjust.
+
 2000-05-26  Akim Demaille  <akim@epita.fr>
 
        * acgeneral.m4 (AC_CHECK_TOOLS): Don't require
index 3bae4e23f35c4832a23a07f6f6b794679263c724..6207b0777b0480afb47af58060fa9bf659e03d27 100644 (file)
@@ -2786,6 +2786,19 @@ a process ID as an argument.  This macro does not check whether
 first call @code{AC_CHECK_FUNC} for @code{getpgrp}.
 @end defmac
 
+@defmac AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
+@maindex FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
+@cvindex LSTAT_FOLLOWS_SLASHED_SYMLINK
+According to @sc{posix}, if @file{link} is a symlink to an
+@file{entity}, then @code{lstat} must return information on the
+@file{entity} (not on @file{link}) when called on @file{"link/"}, i.e.,
+when the trailing slash is given.
+
+If @code{lstat} behaves properly, define
+@code{LSTAT_FOLLOWS_SLASHED_SYMLINK}, otherwise require an
+@code{AC_LIBOBJ} replacement of @code{lstat}.
+@end defmac
+
 @defmac AC_FUNC_MALLOC
 @maindex FUNC_MALLOC
 If the @code{malloc} works correctly (@samp{malloc (0)} returns a valid
@@ -2857,6 +2870,18 @@ If the @code{strcoll} function exists and works correctly, define
 definitions of @code{strcoll}, which should not be used.
 @end defmac
 
+@defmac AC_FUNC_STRERROR_R
+@maindex FUNC_STRERROR_R
+@cvindex HAVE_STRERROR_R
+@cvindex HAVE_WORKING_STRERROR_R
+If @code{strerror_r} is available, define @code{HAVE_STRERROR_R}.  If
+its implementation correctly returns a @code{char *}, define
+@code{HAVE_WORKING_STRERROR_R}.  On at least DEC UNIX 4.0[A-D] and HP-UX
+B.10.20, @code{strerror_r} returns @code{int}.  Actually, this tests
+only whether it returns a scalar or an array, but that should be enough.
+This is used by the common @file{error.c}.
+@end defmac
+
 @defmac AC_FUNC_STRFTIME
 @maindex FUNC_STRFTIME
 @cvindex HAVE_STRFTIME