configure: enable all extras by default, provide --disable-extras
[platform/upstream/systemd.git] / autogen.sh
1 #!/bin/sh -e
2
3 gtkdocize
4 autoreconf --install --symlink
5
6 CFLAGS="-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=2 -Wtype-limits"
12
13 libdirname=$(basename $(cd /lib/$(gcc -print-multi-os-directory); pwd))
14 args="--prefix=/usr --exec-prefix= --sysconfdir=/etc \
15 --libdir=/usr/$libdirname --with-libdir-name=$libdirname \
16 --with-selinux --enable-gtk-doc"
17
18 export CFLAGS="$CFLAGS -O2"
19 ./configure $args $@