sysdeps/gnu/configure.ac: Set libc_cv_rootsbindir only if its empty

Message ID 20211202070658.2164977-2-raj.khem@gmail.com
State Superseded
Headers
Series sysdeps/gnu/configure.ac: Set libc_cv_rootsbindir only if its empty |

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent
dj/TryBot-32bit success Build for i686

Commit Message

Khem Raj Dec. 2, 2021, 7:06 a.m. UTC
  This ensures that it can be set in build environment

Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 sysdeps/gnu/configure    | 2 +-
 sysdeps/gnu/configure.ac | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
  

Comments

Mike Frysinger Dec. 3, 2021, 3:44 a.m. UTC | #1
On 01 Dec 2021 23:06, Khem Raj via Libc-alpha wrote:
> +  test -n "$libc_cv_rootsbindir" || libc_cv_rootsbindir=/sbin

: "${libc_cv_rootsbindir:=/sbin}"
-mike
  

Patch

diff --git a/sysdeps/gnu/configure b/sysdeps/gnu/configure
index c15d1087e8..37cc983f2a 100644
--- a/sysdeps/gnu/configure
+++ b/sysdeps/gnu/configure
@@ -32,6 +32,6 @@  case "$prefix" in
   else
     libc_cv_localstatedir=$localstatedir
    fi
-  libc_cv_rootsbindir=/sbin
+  test -n "$libc_cv_rootsbindir" || libc_cv_rootsbindir=/sbin
   ;;
 esac
diff --git a/sysdeps/gnu/configure.ac b/sysdeps/gnu/configure.ac
index 634fe4de2a..3db1697f4f 100644
--- a/sysdeps/gnu/configure.ac
+++ b/sysdeps/gnu/configure.ac
@@ -21,6 +21,6 @@  case "$prefix" in
   else
     libc_cv_localstatedir=$localstatedir
    fi
-  libc_cv_rootsbindir=/sbin
+  test -n "$libc_cv_rootsbindir" || libc_cv_rootsbindir=/sbin
   ;;
 esac