projects
/
navit-package
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* ignore .pc
[navit-package]
/
autogen.sh
diff --git
a/autogen.sh
b/autogen.sh
index
294a95f
..
e1a5447
100755
(executable)
--- a/
autogen.sh
+++ b/
autogen.sh
@@
-1,14
+1,17
@@
#!/bin/sh
#!/bin/sh
-if ! pkg-config --version >/dev/null
-then
- echo "You need to install pkg-config"
- exit 1
+if [ `uname` = Darwin ]; then
+ LIBTOOL=glibtool
+else
+ LIBTOOL=libtool
fi
fi
-if ! libtool --version >/dev/null
-then
- echo "You need to install libtool"
- exit 1
-fi
+for pkg in pkg-config $LIBTOOL automake aclocal autoreconf:autoconf autopoint:gettext
+do
+ if ! ${pkg%%:*} --version >/dev/null
+ then
+ echo "You need to install ${pkg##*:}"
+ exit 1
+ fi
+done
-autoreconf --force --install -I m4
+autoreconf --install -I m4