summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2009-04-25 18:52:24 (UTC)
committer Michael Krelin <hacker@klever.net>2009-04-25 18:52:24 (UTC)
commit18ae3c58d51547bc087e7a2b85b63dd87d395f25 (patch) (side-by-side diff)
treea33703718e3f5584e3ef1a2d2759e094410b22f2
parenta07665e030a8f26f6cd77efc466507ed6381acc5 (diff)
downloadlibopkele-18ae3c58d51547bc087e7a2b85b63dd87d395f25.zip
libopkele-18ae3c58d51547bc087e7a2b85b63dd87d395f25.tar.gz
libopkele-18ae3c58d51547bc087e7a2b85b63dd87d395f25.tar.bz2
autogen: try to detect libtoolize
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xautogen.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/autogen.sh b/autogen.sh
index ba27501..bf32a35 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,7 +1,9 @@
#!/bin/sh
-WANT_AUTOMAKE=1.8
-export WANT_AUTOMAKE
-libtoolize -f \
+tool_libtoolize="$(type -P glibtoolize || type -P libtoolize)"
+if test -z "$tool_libtoolize" ; then
+ echo "Failed to find libtoolize." ; exit 1;
+fi
+ "$tool_libtoolize" -f \
&& aclocal \
&& autoheader \
&& automake -a \