summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2012-02-07 03:23:05 +0100
committerKay Sievers <kay.sievers@vrfy.org>2012-02-07 03:23:05 +0100
commit772f4698ff415ce8e3c97944c59c4dbcdda4d92d (patch)
tree9f0ae796071b060116c63b5f8349caf0ad4e1913
parentacb14d318b84bda00d1e666d7dab6794d5bbeb3f (diff)
autogen.sh: detect historic split-system-directories and add root options
-rwxr-xr-xautogen.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index 7a09c44dbc..9ca53772a4 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -29,13 +29,18 @@ libdir() {
}
args="\
---with-rootprefix= \
--sysconfdir=/etc \
--localstatedir=/var \
--libdir=$(libdir /usr/lib) \
---with-rootlibdir=$(libdir /lib) \
--libexecdir=/usr/lib"
+if [ ! -L /bin ]; then
+args="$args \
+--with-rootprefix= \
+--with-rootlibdir=$(libdir /lib) \
+"
+fi
+
if [ "x$1" != "xc" ]; then
echo
echo "----------------------------------------------------------------"