]>
Commit | Line | Data |
---|---|---|
912541b0 | 1 | #!/bin/sh -e |
01618658 | 2 | |
9fbe27d9 | 3 | if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then |
912541b0 KS |
4 | cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \ |
5 | chmod +x .git/hooks/pre-commit && \ | |
6 | echo "Activated pre-commit hook." | |
9fbe27d9 KS |
7 | fi |
8 | ||
26812f0a | 9 | gtkdocize |
12dda308 | 10 | autoreconf --install --symlink |
01618658 | 11 | |
6133f343 | 12 | libdir() { |
912541b0 | 13 | echo $(cd $1/$(gcc -print-multi-os-directory); pwd) |
6133f343 KS |
14 | } |
15 | ||
3b2e525a | 16 | args="$args \ |
dd8a93e0 | 17 | --prefix=/usr \ |
6133f343 | 18 | --sysconfdir=/etc \ |
6133f343 | 19 | --libdir=$(libdir /usr/lib) \ |
6133f343 KS |
20 | --with-selinux \ |
21 | --enable-gtk-doc" | |
048dc83a | 22 | |
3b2e525a KS |
23 | if [ -L /bin ]; then |
24 | args="$args \ | |
25 | --libexecdir=/usr/lib \ | |
26 | --with-systemdsystemunitdir=/usr/lib/systemd/system \ | |
27 | " | |
28 | else | |
29 | args="$args \ | |
30 | --with-rootprefix= \ | |
31 | ---with-rootlibdir=$(libdir /lib) \ | |
32 | --bindir=/sbin \ | |
33 | --libexecdir=/lib \ | |
34 | --with-systemdsystemunitdir=/lib/systemd/system \ | |
35 | " | |
36 | fi | |
37 | ||
f71a5581 | 38 | echo |
c59d1e45 KS |
39 | echo "----------------------------------------------------------------" |
40 | echo "Initialized build system. For a common configuration please run:" | |
41 | echo "----------------------------------------------------------------" | |
f71a5581 | 42 | echo |
dc401e01 | 43 | echo "./configure CFLAGS='-g -O1' $args" |
f71a5581 | 44 | echo |