echo "Activated pre-commit hook."
fi
-if type -p colorgcc > /dev/null ; then
- export CC=colorgcc
-fi
+libdir() {
+ echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
+}
if [ "x$1" = "xam" ] ; then
run_versioned automake "$AM_VERSION" -a -c --foreign
run_versioned automake "$AM_VERSION" --copy --foreign --add-missing
if [ "x$1" != "xac" ]; then
- CFLAGS="$CFLAGS -g -O0" ./configure --sysconfdir=/etc --localstatedir=/var --with-rootdir= --libexecdir=/usr/lib "$@"
+ CFLAGS="$CFLAGS -g -O0" ./configure \
+ --with-rootprefix= \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --libdir=$(libdir /usr/lib) \
+ --with-rootlibdir=$(libdir /lib) \
+ --libexecdir=/usr/lib \
+ "$@"
make clean
fi
fi