use libexecdir, bindir, sbindir, switch to /usr/lib/udev in documentation
[platform/upstream/systemd.git] / autogen.sh
1 #!/bin/sh -e
2
3 gtkdocize
4 autoreconf --install --symlink
5
6 MYCFLAGS="-g -Wall \
7 -Wmissing-declarations -Wmissing-prototypes \
8 -Wnested-externs -Wpointer-arith \
9 -Wpointer-arith -Wsign-compare -Wchar-subscripts \
10 -Wstrict-prototypes -Wshadow \
11 -Wformat-security -Wtype-limits"
12
13 case "$CFLAGS" in
14         *-O[0-9]*)
15                 ;;
16         *)
17                 MYCFLAGS="$MYCFLAGS -O2"
18                 ;;
19 esac
20
21 libdir() {
22         echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
23 }
24
25 args="--prefix=/usr \
26 --sysconfdir=/etc \
27 --bindir=/usr/bin \
28 --sbindir=/usr/sbin \
29 --libdir=$(libdir /usr/lib) \
30 --libexecdir=/usr/lib/udev \
31 --with-systemdsystemunitdir=/usr/lib/systemd/system
32 --with-selinux \
33 --enable-gtk-doc"
34
35 ./configure $args CFLAGS="${CFLAGS} ${MYCFLAGS}" $@