]>
Commit | Line | Data |
---|---|---|
01618658 KS |
1 | #!/bin/sh -e |
2 | ||
26812f0a | 3 | gtkdocize |
12dda308 | 4 | autoreconf --install --symlink |
01618658 | 5 | |
bb0059f3 | 6 | MYCFLAGS="-g -Wall \ |
e231a5db KS |
7 | -Wmissing-declarations -Wmissing-prototypes \ |
8 | -Wnested-externs -Wpointer-arith \ | |
9 | -Wpointer-arith -Wsign-compare -Wchar-subscripts \ | |
9dc4a84a | 10 | -Wstrict-prototypes -Wshadow \ |
7a959f1b | 11 | -Wformat-security -Wtype-limits" |
5d89ef7b | 12 | |
bb0059f3 KS |
13 | case "$CFLAGS" in |
14 | *-O[0-9]*) | |
15 | ;; | |
16 | *) | |
17 | MYCFLAGS="$MYCFLAGS -O2" | |
18 | ;; | |
19 | esac | |
20 | ||
6133f343 KS |
21 | libdir() { |
22 | echo $(cd $1/$(gcc -print-multi-os-directory); pwd) | |
23 | } | |
24 | ||
25 | args="--prefix=/usr \ | |
26 | --sysconfdir=/etc \ | |
27 | --sbindir=/sbin \ | |
28 | --libdir=$(libdir /usr/lib) \ | |
29 | --with-rootlibdir=$(libdir /lib) \ | |
30 | --libexecdir=/lib/udev \ | |
31 | --with-selinux \ | |
32 | --enable-gtk-doc" | |
048dc83a | 33 | |
6a90a512 | 34 | ./configure $args CFLAGS="${CFLAGS} ${MYCFLAGS}" $@ |