summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2012-02-07 01:58:59 +0100
committerKay Sievers <kay.sievers@vrfy.org>2012-02-07 01:58:59 +0100
commit3b2e525a5621784287601573dbf8b55d76cbe407 (patch)
tree1f8c5a884e8dc4a63bb40477eae152ea76d32aeb /autogen.sh
parent96b2eef25bb43c62f8d6b914a04fd72d8a968d65 (diff)
release 181udev/v181
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh22
1 files changed, 16 insertions, 6 deletions
diff --git a/autogen.sh b/autogen.sh
index 180e423c4d..55ee03afd1 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -13,18 +13,28 @@ libdir() {
echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
}
-args="\
+args="$args \
--prefix=/usr \
---with-rootprefix= \
--sysconfdir=/etc \
---bindir=/sbin \
--libdir=$(libdir /usr/lib) \
---with-rootlibdir=$(libdir /lib) \
---libexecdir=/lib \
---with-systemdsystemunitdir=/lib/systemd/system \
--with-selinux \
--enable-gtk-doc"
+if [ -L /bin ]; then
+args="$args \
+--libexecdir=/usr/lib \
+--with-systemdsystemunitdir=/usr/lib/systemd/system \
+"
+else
+args="$args \
+--with-rootprefix= \
+---with-rootlibdir=$(libdir /lib) \
+--bindir=/sbin \
+--libexecdir=/lib \
+--with-systemdsystemunitdir=/lib/systemd/system \
+"
+fi
+
echo
echo "----------------------------------------------------------------"
echo "Initialized build system. For a common configuration please run:"