-#!/bin/sh
-PATH="/usr/pack/automake-1.11-to/amd64-linux-ubuntu8.04/bin:$PATH"
-export PATH
-autoreconf --force --install --verbose -I config -I m4
+#!/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