Although bash recognizes ==, and the shell has a shebang to use it, some
of us still automatically type "sh autogen.sh" instead of
"./autogen.sh", and this breaks on debian/jessie where /bin/sh is not
bash. The fix is trivial and should be safe for bash too (which
recommends using = instead of == with the test command for POSIX
conformance.
#!/usr/bin/env bash
# On MAC OS X, GNU libtoolize is named 'glibtoolize':
-if [ `(uname -s) 2>/dev/null` == 'Darwin' ]
+if [ `(uname -s) 2>/dev/null` = 'Darwin' ]
then
glibtoolize
else