]> git.ipfire.org Git - thirdparty/systemd.git/blame - autogen.sh
fix NAME= and OPTION+="string_escape=..." logic
[thirdparty/systemd.git] / autogen.sh
CommitLineData
01618658
KS
1#!/bin/sh -e
2
12dda308 3autoreconf --install --symlink
01618658 4
b929e83a 5CFLAGS="-g -Wall \
e231a5db
KS
6-Wmissing-declarations -Wmissing-prototypes \
7-Wnested-externs -Wpointer-arith \
8-Wpointer-arith -Wsign-compare -Wchar-subscripts \
9dc4a84a
KS
9-Wstrict-prototypes -Wshadow \
10-Wformat=2 -Wtype-limits"
5d89ef7b
KS
11args="--prefix=/usr --exec-prefix= --sysconfdir=/etc --with-selinux"
12libdir=$(basename $(cd /lib/$(gcc -print-multi-os-directory); pwd))
13
14case "$1" in
15 *install|"")
16 args="$args --with-libdir-name=$libdir"
17 export CFLAGS="$CFLAGS -O2"
18 echo " configure: $args"
19 echo
20 ./configure $args
21 ;;
22 *devel)
23 args="$args --enable-debug --with-libdir-name=$libdir"
24 export CFLAGS="$CFLAGS -O0"
25 echo " configure: $args"
26 echo
27 ./configure $args
28 ;;
29 *clean)
30 ./configure
31 make maintainer-clean
d4e7bda7 32 git clean -f -X
5d89ef7b
KS
33 exit 0
34 ;;
35 *)
36 echo "Usage: $0 [--install|--devel|--clean]"
37 exit 1
38 ;;
39esac