Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2013-06-21 20:59:55 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2013-06-21 20:59:55 (GMT)
commitb57f5b71e1fc1f0d8361d238db72c537fc3808cb (patch)
tree523671f4fee61b832c06e716ac5d0a45af8790de
parent1ee01a047d4b211ae6af29818a959e2870b88bf1 (diff)
Modernize the autogen.sh scriptHEADmaster
It was failing to find the m4 macros directory with automake 1.13.2. This is exactly the same autogen.sh we are using in all the core sugar modules.
-rwxr-xr-xautogen.sh16
1 files changed, 10 insertions, 6 deletions
diff --git a/autogen.sh b/autogen.sh
index dacf40e..bac5247 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,9 +1,13 @@
#!/bin/sh
-aclocal -I m4/ $ACLOCAL_FLAGS --install || exit 1
-libtoolize --copy --force || exit 1
-autoheader || exit 1
-autoconf || exit 1
-automake -a -c || exit 1
+test -n "${srcdir}" || srcdir=`dirname "$0"`
+test -n "${srcdir}" || srcdir="$(pwd)"
-[ "$NOCONFIGURE" ] || ./configure CFLAGS="$CFLAGS -Wall" --enable-maintainer-mode "$@"
+olddir="$(pwd)"
+cd "$srcdir"
+
+intltoolize
+autoreconf -i
+
+cd "$olddir"
+"$srcdir/configure" --enable-maintainer-mode "$@"