newer autoreconf (autoconf) versions don't have the -M option and no replacement...
[libt2n] / test-build-install-use
index db3e5d6..3c54205 100755 (executable)
@@ -28,7 +28,10 @@ function prepend() {
 }
 
 function build() {
-    autoreconf -f -i $@
+    # newer autoreconf (autoconf) versions don't have the -M option and no replacement :-(
+    # todo: this IMHO should be filed as bug against autoconf
+    # ugly workaround
+    autoreconf -f -i $@ || (autoreconf -f -i && aclocal $(echo "$@"|sed 's,-M,-I,'))
     ./configure --prefix="$INSTPREFIX"
     if $DOCLEAN; then
        $MAKE distclean