diff --git a/autogen.sh b/autogen.sh
index f53f6c1..6fe8dde 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -16,7 +16,10 @@ cd $srcdir
 	DIE=1
 }
 
-if automake-1.11 --version < /dev/null > /dev/null 2>&1 ; then
+if automake-1.14 --version < /dev/null > /dev/null 2>&1 ; then
+        AUTOMAKE=automake-1.14
+        ACLOCAL=aclocal-1.14
+elif automake-1.11 --version < /dev/null > /dev/null 2>&1 ; then
 	AUTOMAKE=automake-1.11
 	ACLOCAL=aclocal-1.11
 elif automake-1.10 --version < /dev/null > /dev/null 2>&1 ; then
@@ -39,19 +42,25 @@ else
 	DIE=1
 fi
 
-(libtool --version) < /dev/null > /dev/null 2>&1 || {
+if libtool --version < /dev/null > /dev/null 2>&1 ; then
+	LIBTOOLIZE="libtoolize"
+elif glibtool --version < /dev/null > /dev/null 2>&1 ; then
+	# On non-gnu OS having gnu libtoolize
+	LIBTOOLIZE="glibtoolize"
+else
 	echo
 	echo "You must have libtool installed to compile murrine."
 	echo "Get http://ftp.gnu.org/gnu/libtool/libtool-1.5.10.tar.gz"
 	echo "(or a newer version if it is available)"
 	DIE=1
-}
+fi
 
 (intltoolize --version) < /dev/null > /dev/null 2>&1 || {
 	echo
 	echo "You must have intltool installed to compile murrine."
 	DIE=1
 }
+
 if test "$DIE" -eq 1; then
 	exit 1
 fi
@@ -61,7 +70,7 @@ if test -z "$*"; then
 	echo "to pass any to it, please specify them on the $0 command line."
 fi
 
-libtoolize --force --copy
+$LIBTOOLIZE --force --copy
 intltoolize --force --copy --automake
 
 $ACLOCAL $ACLOCAL_FLAGS
