]> git.ipfire.org Git - thirdparty/kmod.git/blob - autogen.sh
build-sys: move remaining warning flags to configure
[thirdparty/kmod.git] / autogen.sh
1 #!/bin/sh -e
2
3 autoreconf --install --symlink
4
5 MYCFLAGS="-g"
6
7 libdir() {
8 echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
9 }
10
11 args="--prefix=/usr \
12 --sysconfdir=/etc \
13 --libdir=$(libdir /usr/lib)"
14
15 if [ -z "$NOCONFIGURE" ]; then
16 exec ./configure $args CFLAGS="${MYCFLAGS} ${CFLAGS}" "$@"
17 fi