kmod/autogen.sh

19 lines
323 B
Bash
Raw Normal View History

2011-11-21 21:35:15 +07:00
#!/bin/sh -e
autoreconf --install --symlink
MYCFLAGS="-g -O2 -Werror"
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) \
--enable-debug"
2011-11-21 21:35:15 +07:00
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