chiark / gitweb /
Makefile: switch from .asc to .sign
[elogind.git] / autogen.sh
1 #!/bin/sh -e
2
3 if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
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."
7 fi
8
9 gtkdocize
10 autoreconf --install --symlink
11
12 libdir() {
13         echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
14 }
15
16 args="\
17 --prefix=/usr \
18 --with-rootprefix= \
19 --sysconfdir=/etc \
20 --bindir=/sbin \
21 --libdir=$(libdir /usr/lib) \
22 --with-rootlibdir=$(libdir /lib) \
23 --libexecdir=/lib \
24 --with-systemdsystemunitdir=/lib/systemd/system \
25 --with-selinux \
26 --enable-gtk-doc"
27
28 echo
29 echo "----------------------------------------------------------------"
30 echo "Initialized build system. For a common configuration please run:"
31 echo "----------------------------------------------------------------"
32 echo
33 echo "./configure CFLAGS='-g -O1' $args"
34 echo