kmod/autogen.sh

18 lines
294 B
Bash
Raw Normal View History

2011-11-21 21:35:15 +07:00
#!/bin/sh -e
autoreconf --install --symlink
MYCFLAGS="-g"
2011-11-21 21:35:15 +07:00
libdir() {
echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
}
args="--prefix=/usr \
--sysconfdir=/etc \
--libdir=$(libdir /usr/lib)"
2011-11-24 22:29:44 +07:00
if [ -z "$NOCONFIGURE" ]; then
exec ./configure $args CFLAGS="${MYCFLAGS} ${CFLAGS}" "$@"
2011-11-24 22:29:44 +07:00
fi