bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

chown: fix configure output


From: Bruno Haible
Subject: chown: fix configure output
Date: Sun, 08 Sep 2019 23:05:58 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-159-generic; KDE/5.18.0; x86_64; ; )

While cross-compiling a gnulib testdir, I see this line in the
configure output:

../configure: line 12368: test: too many arguments

It comes from this line:

        if test $gl_cv_func_chown_follows_symlink = no; then

This patch should fix it.


2019-09-08  Bruno Haible  <address@hidden>

        chown: Fix configure output (regression from 2019-03-23).
        * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
        gl_cv_func_chown_follows_symlink variable.

diff --git a/m4/chown.m4 b/m4/chown.m4
index b798325..b693686 100644
--- a/m4/chown.m4
+++ b/m4/chown.m4
@@ -1,4 +1,4 @@
-# serial 32
+# serial 33
 # Determine whether we need the chown wrapper.
 
 dnl Copyright (C) 1997-2001, 2003-2005, 2007, 2009-2019 Free Software
@@ -80,9 +80,10 @@ AC_DEFUN_ONCE([gl_FUNC_CHOWN],
     HAVE_CHOWN=0
   else
     dnl Some old systems treated chown like lchown.
-    if test $gl_cv_func_chown_follows_symlink = no; then
-      REPLACE_CHOWN=1
-    fi
+    case "$gl_cv_func_chown_follows_symlink" in
+      *yes) ;;
+      *) REPLACE_CHOWN=1 ;;
+    esac
 
     dnl Some old systems tried to use uid/gid -1 literally.
     case "$ac_cv_func_chown_works" in




reply via email to

[Prev in Thread] Current Thread [Next in Thread]