diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2012-01-12 18:23:32 -0200 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2012-01-12 18:23:32 -0200 |
commit | e5603189bc6eb1104228025cb3f8f634eb51fc7f (patch) | |
tree | 1535558089688c1742629311b631a42d6a5b4177 /bootstrap | |
parent | d89d7cb46a55fe1fce190adb24efb3676d815918 (diff) | |
download | kmod-e5603189bc6eb1104228025cb3f8f634eb51fc7f.tar.gz kmod-e5603189bc6eb1104228025cb3f8f634eb51fc7f.tar.bz2 kmod-e5603189bc6eb1104228025cb3f8f634eb51fc7f.zip |
build-sys: rename autogen.sh to bootstrap and keep a symlink
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap new file mode 100755 index 0000000..6c73d4e --- /dev/null +++ b/bootstrap @@ -0,0 +1,29 @@ +#!/bin/sh -e + +gtkdocize --docdir libkmod/docs || touch libkmod/docs/gtk-doc.make +autoreconf --install --symlink + +libdir() { + echo $(cd $1/$(gcc -print-multi-os-directory); pwd) +} + +args="--prefix=/usr \ +--sysconfdir=/etc \ +--libdir=$(libdir /usr/lib)" + +hackargs="--enable-debug --with-xz --with-zlib" + +cat <<EOC + +---------------------------------------------------------------- +Initialized build system. For a common configuration please run: +---------------------------------------------------------------- + +./configure CFLAGS='-g -O2' $args + +If you are debugging or hacking on kmod, consider configuring +like below: + +./configure CFLAGS="-g -O2 -Werror" $args $hackargs + +EOC |