]> git.ipfire.org Git - thirdparty/kmod.git/blob - bootstrap
kmod: It's an error not to have modules.devname
[thirdparty/kmod.git] / bootstrap
1 #!/bin/sh -e
2
3 gtkdocize --docdir libkmod/docs || touch libkmod/docs/gtk-doc.make
4 autoreconf --install --symlink
5
6 libdir() {
7 (cd "$1/$(gcc -print-multi-os-directory)"; pwd)
8 }
9
10 args="--prefix=/usr \
11 --sysconfdir=/etc \
12 --libdir=$(libdir /usr/lib)"
13
14 hackargs="--enable-debug --with-xz --with-zlib"
15
16 cat <<EOC
17
18 ----------------------------------------------------------------
19 Initialized build system. For a common configuration please run:
20 ----------------------------------------------------------------
21
22 ./configure CFLAGS='-g -O2' $args
23
24 If you are debugging or hacking on kmod, consider configuring
25 like below:
26
27 ./configure CFLAGS="-g -O2 -Werror" $args $hackargs
28
29 EOC