summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
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:"