blob: 5163aa05a40ceced8dd5aa2ab209aede19b176ad [file] [log] [blame]
Lucas De Marchiecd40ee2011-11-21 12:35:15 -02001#!/bin/sh -e
2
Lucas De Marchi4fb900c2012-01-10 12:55:13 -02003gtkdocize --docdir libkmod/docs || touch libkmod/docs/gtk-doc.make
Lucas De Marchiecd40ee2011-11-21 12:35:15 -02004autoreconf --install --symlink
5
Lucas De Marchiecd40ee2011-11-21 12:35:15 -02006libdir() {
Dave Reisnerb7d830b2012-06-08 13:17:28 -04007 (cd "$1/$(gcc -print-multi-os-directory)"; pwd)
Lucas De Marchiecd40ee2011-11-21 12:35:15 -02008}
9
10args="--prefix=/usr \
11--sysconfdir=/etc \
Lucas De Marchi63dc8322012-01-09 13:00:28 -020012--libdir=$(libdir /usr/lib)"
Lucas De Marchiecd40ee2011-11-21 12:35:15 -020013
Lucas De Marchi21e14d32012-01-11 17:54:05 -020014hackargs="--enable-debug --with-xz --with-zlib"
Lucas De Marchiae2612e2012-01-09 13:26:06 -020015
Lucas De Marchi21e14d32012-01-11 17:54:05 -020016cat <<EOC
17
18----------------------------------------------------------------
19Initialized build system. For a common configuration please run:
20----------------------------------------------------------------
21
22./configure CFLAGS='-g -O2' $args
23
24If you are debugging or hacking on kmod, consider configuring
25like below:
26
27./configure CFLAGS="-g -O2 -Werror" $args $hackargs
28
29EOC