Code

fix off by 1 error
[rrdtool.git] / autogen.sh
index b524ca37ec96df27e7fa6756caeb6de7c7f8b4ee..e9b7efff3a9bdaa8f4fc7a2c4a9e2e55d9f3bee2 100755 (executable)
@@ -1,3 +1,11 @@
-#!/bin/sh
-libtoolize
-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