From: Akim Demaille Date: Fri, 26 May 2000 15:59:19 +0000 (+0000) Subject: * acspecific.m4 (AC_FUNC_STRERROR_R): New, from `strerror_r.m4', X-Git-Tag: autoconf-2.50~852 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ec26d2da4fa1129cfd5da25682b0b105f0f9497;p=thirdparty%2Fautoconf.git * 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. --- diff --git a/ChangeLog b/ChangeLog index d236f1d28..fde1f7c18 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2000-05-26 Akim Demaille + + * 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 * acgeneral.m4 (AC_CHECK_TOOLS): Don't require diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 3bae4e23f..6207b0777 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -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