summaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-07-17 00:22:29 +0200
committerGravatar Nikias Bassen2012-07-17 00:22:29 +0200
commit954c5504a03a061ff43ec6c5334f342bd919badd (patch)
tree6f8cbdc8c846d62128bc33e851e370a3b65de0e7 /autogen.sh
parent0e4fb99549e0a1b4f5330598ec30a222e0fb75cc (diff)
downloadlibirecovery-954c5504a03a061ff43ec6c5334f342bd919badd.tar.gz
libirecovery-954c5504a03a061ff43ec6c5334f342bd919badd.tar.bz2
changed build system to autofoo. previous Makefile is now Makefile.shared
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..3292973
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+gprefix=`which glibtoolize 2>&1 >/dev/null`
+if [ $? -eq 0 ]; then
+ glibtoolize --force
+else
+ libtoolize --force
+fi
+aclocal -I m4
+autoheader
+automake --add-missing
+autoconf
+
+if [ -z "$NOCONFIGURE" ]; then
+ ./configure "$@"
+fi