]>
Commit | Line | Data |
---|---|---|
ecd40ee4 LDM |
1 | #!/bin/sh -e |
2 | ||
3 | autoreconf --install --symlink | |
4 | ||
e7d90369 | 5 | MYCFLAGS="-g -Wall -Wextra \ |
ecd40ee4 LDM |
6 | -Wmissing-declarations -Wmissing-prototypes \ |
7 | -Wnested-externs -Wpointer-arith \ | |
8 | -Wpointer-arith -Wsign-compare -Wchar-subscripts \ | |
9 | -Wstrict-prototypes -Wshadow \ | |
e7d90369 LDM |
10 | -Wformat-security -Wtype-limits \ |
11 | -Wformat=2 -Wuninitialized -Winit-self -Wundef \ | |
12 | -Wmissing-include-dirs -Wold-style-definition \ | |
13 | -Wfloat-equal -Wredundant-decls -Wendif-labels \ | |
14 | -Wcast-align -Wstrict-aliasing -Wwrite-strings \ | |
15 | -Wno-unused-parameter" | |
ecd40ee4 LDM |
16 | |
17 | libdir() { | |
18 | echo $(cd $1/$(gcc -print-multi-os-directory); pwd) | |
19 | } | |
20 | ||
21 | args="--prefix=/usr \ | |
22 | --sysconfdir=/etc \ | |
23 | --libdir=$(libdir /usr/lib)" | |
24 | ||
c931d00b | 25 | if [ -z "$NOCONFIGURE" ]; then |
a66a0c37 | 26 | exec ./configure $args CFLAGS="${MYCFLAGS} ${CFLAGS}" "$@" |
c931d00b | 27 | fi |