libt2n: (reinhard) bugfix in example configure.in. update some informational files.
[libt2n] / test-build-install-use
index 2d281a4..b45957e 100755 (executable)
@@ -17,7 +17,7 @@ mkdir "$INSTDIR"
 mkdir "$BUILDDIR"
 INSTPREFIX="$INSTDIR/usr"
 MAKE="dmake"
-DOCLEAN="false"
+DOCLEAN="true"
 
 function prepend() {
        if [ "x$1" = "x" ]; then
@@ -28,7 +28,11 @@ function prepend() {
 }
 
 function build() {
-    autoreconf -f -i $@
+    # 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 $@ || { 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
@@ -41,8 +45,6 @@ function build() {
        $MAKE
        $MAKE clean
        $MAKE distcheck
-    else
-       $MAKE dist
     fi
 
     $MAKE install