Lucas De Marchi | 15cfa1d | 2014-12-25 23:12:22 -0200 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | set -e |
Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 3 | |
Lucas De Marchi | 4fb900c | 2012-01-10 12:55:13 -0200 | [diff] [blame] | 4 | gtkdocize --docdir libkmod/docs || touch libkmod/docs/gtk-doc.make |
Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 5 | autoreconf --install --symlink |
| 6 | |
Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 7 | libdir() { |
Dave Reisner | b7d830b | 2012-06-08 13:17:28 -0400 | [diff] [blame] | 8 | (cd "$1/$(gcc -print-multi-os-directory)"; pwd) |
Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 9 | } |
| 10 | |
| 11 | args="--prefix=/usr \ |
| 12 | --sysconfdir=/etc \ |
Lucas De Marchi | 63dc832 | 2012-01-09 13:00:28 -0200 | [diff] [blame] | 13 | --libdir=$(libdir /usr/lib)" |
Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 14 | |
Lucas De Marchi | 6ca7c09 | 2014-04-06 17:14:23 -0300 | [diff] [blame] | 15 | hackargs="--enable-debug --enable-python --with-xz --with-zlib" |
Lucas De Marchi | ae2612e | 2012-01-09 13:26:06 -0200 | [diff] [blame] | 16 | |
Lucas De Marchi | 21e14d3 | 2012-01-11 17:54:05 -0200 | [diff] [blame] | 17 | cat <<EOC |
| 18 | |
| 19 | ---------------------------------------------------------------- |
| 20 | Initialized build system. For a common configuration please run: |
| 21 | ---------------------------------------------------------------- |
| 22 | |
| 23 | ./configure CFLAGS='-g -O2' $args |
| 24 | |
| 25 | If you are debugging or hacking on kmod, consider configuring |
| 26 | like below: |
| 27 | |
Lucas De Marchi | 6d59d9d | 2014-03-24 07:58:32 -0300 | [diff] [blame] | 28 | ./configure CFLAGS="-g -O2" $args $hackargs |
Lucas De Marchi | 21e14d3 | 2012-01-11 17:54:05 -0200 | [diff] [blame] | 29 | |
| 30 | EOC |