1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-04 22:21:55 +03:00
systemd/autogen.sh

35 lines
891 B
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)
}
2011-12-25 23:41:52 +04:00
args="\
--prefix=/usr \
--with-rootprefix= \
--sysconfdir=/etc \
2011-12-23 06:40:31 +04:00
--bindir=/sbin \
--libdir=$(libdir /usr/lib) \
2011-12-23 06:40:31 +04:00
--with-rootlibdir=$(libdir /lib) \
--libexecdir=/lib \
--with-systemdsystemunitdir=/lib/systemd/system \
--with-selinux \
--enable-gtk-doc"
2009-06-16 16:19:19 +04:00
echo
echo "----------------------------------------------------------------"
echo "Initialized build system. For a common configuration please run:"
echo "----------------------------------------------------------------"
echo
echo "./configure CFLAGS='-g -O0' $args"
echo