9 gtkdocize --docdir libkmod/docs || touch libkmod/docs/gtk-doc.make
10 autoreconf --force --install --symlink
13 echo $(cd "$1/$(gcc -print-multi-os-directory)"; pwd)
19 --libdir=$(libdir /usr/lib) \
22 if [ -f "$topdir/.config.args" ]; then
23 args="$args $(cat $topdir/.config.args)"
26 if [ ! -L /bin ]; then
29 --with-rootlibdir=$(libdir /lib) \
35 hackargs="--enable-debug --enable-python --with-xz --with-zlib"
37 if [ "x$1" = "xc" ]; then
39 $topdir/configure CFLAGS='-g -O2' $args $hackargs "$@"
41 elif [ "x$1" = "xg" ]; then
43 $topdir/configure CFLAGS='-g -Og' $args "$@"
45 elif [ "x$1" = "xl" ]; then
47 $topdir/configure CC=clang CXX=clang++ $args "$@"
49 elif [ "x$1" = "xa" ]; then
51 $topdir/configure CFLAGS='-g -O2 -Wsuggest-attribute=pure -Wsuggest-attribute=const' $args "$@"
53 elif [ "x$1" = "xs" ]; then
55 scan-build $topdir/configure CFLAGS='-g -O0 -std=gnu11' $args "$@"
59 echo "----------------------------------------------------------------"
60 echo "Initialized build system. For a common configuration please run:"
61 echo "----------------------------------------------------------------"
63 echo "$topdir/configure CFLAGS='-g -O2' $args"
65 echo If you are debugging or hacking on kmod, consider configuring
68 echo "$topdir/configure CFLAGS='-g -O2' $args $hackargs"