]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fit configure output in 80 columns.
authorEric Blake <ebb9@byu.net>
Mon, 21 Sep 2009 13:01:51 +0000 (07:01 -0600)
committerEric Blake <ebb9@byu.net>
Mon, 21 Sep 2009 13:01:51 +0000 (07:01 -0600)
* lib/autoconf/functions.m4
(AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Shorten message.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/autoconf/functions.m4

index 99003318a817fd6fd55a8910aadad00b505a3216..6b338d07d9d208240664b91081ac119453acebf0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-09-21  Eric Blake  <ebb9@byu.net>
+
+       Fit configure output in 80 columns.
+       * lib/autoconf/functions.m4
+       (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Shorten message.
+
 2009-09-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        Use consistent notation for cache variables.
index 810a0a723524c74e5bc34234eae6a4304f57b899..946a646ff0a6f4c052903bdfa5f8e348d225f3aa 100644 (file)
@@ -832,14 +832,14 @@ fi
 AN_FUNCTION([lstat], [AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])
 AC_DEFUN([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK],
 [AC_CACHE_CHECK(
-       [whether lstat dereferences a symlink specified with a trailing slash],
+       [whether lstat correctly handles trailing slash],
        [ac_cv_func_lstat_dereferences_slashed_symlink],
 [rm -f conftest.sym conftest.file
 echo >conftest.file
 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
   AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
     [struct stat sbuf;
-     /* Linux will dereference the symlink and fail.
+     /* Linux will dereference the symlink and fail, as required by POSIX.
        That is better in the sense that it means we will not
        have to compile and use the lstat wrapper.  */
      return lstat ("conftest.sym/", &sbuf) == 0;])],
@@ -855,12 +855,12 @@ rm -f conftest.sym conftest.file
 ])
 
 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
-  AC_DEFINE_UNQUOTED(LSTAT_FOLLOWS_SLASHED_SYMLINK, 1,
+  AC_DEFINE_UNQUOTED([LSTAT_FOLLOWS_SLASHED_SYMLINK], [1],
                     [Define to 1 if `lstat' dereferences a symlink specified
                      with a trailing slash.])
 
-if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
-  AC_LIBOBJ(lstat)
+if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
+  AC_LIBOBJ([lstat])
 fi
 ])