diff --git a/autogen.sh b/autogen.sh
index a7226cc2fc266f9b2af825b1e84988e4ef97f45d..e9b7efff3a9bdaa8f4fc7a2c4a9e2e55d9f3bee2 100755 (executable)
--- a/autogen.sh
+++ b/autogen.sh
-#!/bin/sh
-libtoolize
+#!/bin/bash
+
+# On MAC OS X, GNU libtoolize is named 'glibtoolize':
+if [ `(uname -s) 2>/dev/null` == 'Darwin' ]
+then
+ glibtoolize
+else
+ libtoolize
+fi
+
autoreconf --force --install --verbose -I m4