mkdir "$BUILDDIR"
INSTPREFIX="$INSTDIR/usr"
MAKE="dmake"
-DOCLEAN="false"
+DOCLEAN="true"
function prepend() {
if [ "x$1" = "x" ]; then
}
function build() {
- # newer autoreconf (autoconf) versions don't have the -M option and no replacement :-(
+ # newer autoreconf (autoconf) versions don't have the -M option and no real replacement :-(
+ # (you can only set ACLOCAL_AMFLAGS in the Makefile.am)
# todo: this IMHO should be filed as bug against autoconf
# ugly workaround
- autoreconf -f -i $@ || (autoreconf -f -i && aclocal $(echo "$@"|sed 's,-M,-I,'))
+ autoreconf -f -i $@ || { aclocal --force $(echo "$@"|sed 's,-M,-I,') && libtoolize --copy --force && autoconf --force && automake --add-missing --copy --force-missing; }
./configure --prefix="$INSTPREFIX"
if $DOCLEAN; then
$MAKE distclean