1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +03:00
systemd/autogen.sh

45 lines
1.0 KiB
Bash
Raw Normal View History

#!/bin/sh -e
2008-07-30 03:45:23 +04:00
2012-01-05 22:22:03 +04:00
if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \
chmod +x .git/hooks/pre-commit && \
echo "Activated pre-commit hook."
2012-01-05 22:22:03 +04:00
fi
2009-06-15 15:22:21 +04:00
gtkdocize
2008-12-29 07:47:53 +03:00
autoreconf --install --symlink
2008-07-30 03:45:23 +04:00
libdir() {
echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
}
2012-02-07 04:58:59 +04:00
args="$args \
2011-12-25 23:41:52 +04:00
--prefix=/usr \
--sysconfdir=/etc \
--libdir=$(libdir /usr/lib) \
--with-selinux \
--enable-gtk-doc"
2009-06-16 16:19:19 +04:00
2012-02-07 04:58:59 +04:00
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:"
echo "----------------------------------------------------------------"
echo
echo "./configure CFLAGS='-g -O1' $args"
echo