blob: d50dae982a8b81becf80ee0a931fb33ccf675972 [file] [log] [blame]
Lucas De Marchi15cfa1d2014-12-25 23:12:22 -02001#!/bin/sh
2set -e
Lucas De Marchiecd40ee2011-11-21 12:35:15 -02003
Lucas De Marchi4fb900c2012-01-10 12:55:13 -02004gtkdocize --docdir libkmod/docs || touch libkmod/docs/gtk-doc.make
Lucas De Marchiecd40ee2011-11-21 12:35:15 -02005autoreconf --install --symlink
6
Lucas De Marchiecd40ee2011-11-21 12:35:15 -02007libdir() {
Dave Reisnerb7d830b2012-06-08 13:17:28 -04008 (cd "$1/$(gcc -print-multi-os-directory)"; pwd)
Lucas De Marchiecd40ee2011-11-21 12:35:15 -02009}
10
11args="--prefix=/usr \
12--sysconfdir=/etc \
Lucas De Marchi63dc8322012-01-09 13:00:28 -020013--libdir=$(libdir /usr/lib)"
Lucas De Marchiecd40ee2011-11-21 12:35:15 -020014
Lucas De Marchi6ca7c092014-04-06 17:14:23 -030015hackargs="--enable-debug --enable-python --with-xz --with-zlib"
Lucas De Marchiae2612e2012-01-09 13:26:06 -020016
Lucas De Marchi21e14d32012-01-11 17:54:05 -020017cat <<EOC
18
19----------------------------------------------------------------
20Initialized build system. For a common configuration please run:
21----------------------------------------------------------------
22
23./configure CFLAGS='-g -O2' $args
24
25If you are debugging or hacking on kmod, consider configuring
26like below:
27
Lucas De Marchi6d59d9d2014-03-24 07:58:32 -030028./configure CFLAGS="-g -O2" $args $hackargs
Lucas De Marchi21e14d32012-01-11 17:54:05 -020029
30EOC