chiark / gitweb /
libudev: device - add udev_device_get_property_value()
[elogind.git] / autogen.sh
1 #!/bin/sh -e
2
3 autoreconf --install --symlink
4
5 CFLAGS="-g -Wall \
6 -Wmissing-declarations -Wmissing-prototypes \
7 -Wnested-externs -Wpointer-arith \
8 -Wpointer-arith -Wsign-compare -Wchar-subscripts \
9 -Wstrict-prototypes -Wshadow"
10 args="--prefix=/usr --exec-prefix= --sysconfdir=/etc --with-selinux"
11 libdir=$(basename $(cd /lib/$(gcc -print-multi-os-directory); pwd))
12
13 case "$1" in
14         *install|"")
15                 args="$args --with-libdir-name=$libdir"
16                 export CFLAGS="$CFLAGS -O2"
17                 echo "   configure:  $args"
18                 echo
19                 ./configure $args
20                 ;;
21         *devel)
22                 args="$args --enable-debug --with-libdir-name=$libdir"
23                 export CFLAGS="$CFLAGS -O0"
24                 echo "   configure:  $args"
25                 echo
26                 ./configure $args
27                 ;;
28         *clean)
29                 ./configure
30                 make maintainer-clean
31                 git clean -f -X
32                 exit 0
33                 ;;
34         *)
35                 echo "Usage: $0 [--install|--devel|--clean]"
36                 exit 1
37                 ;;
38 esac