When calling aclocal, user defined ACLOCAL_FLAGS will now precede ours.
authorYang Tse <yangsita@gmail.com>
Sun, 27 Jul 2008 18:10:54 +0000 (18:10 +0000)
committerYang Tse <yangsita@gmail.com>
Sun, 27 Jul 2008 18:10:54 +0000 (18:10 +0000)
buildconf

index 434a308..7e5e077 100755 (executable)
--- a/buildconf
+++ b/buildconf
@@ -1,7 +1,12 @@
 #!/bin/sh
 
+if test -z "$ACLOCAL_FLAGS"; then
+  ACLOCAL_FLAGS="-I m4"
+else
+  ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I m4"
+fi
+
 ${LIBTOOLIZE:-libtoolize} --copy --automake --force
-ACLOCAL_FLAGS="-I m4 $ACLOCAL_FLAGS"
 ${ACLOCAL:-aclocal} $ACLOCAL_FLAGS
 ${AUTOHEADER:-autoheader}
 ${AUTOCONF:-autoconf}