Skip to content

Commit

Permalink
Merge pull request #827 from ceph/port/bootstrap
Browse files Browse the repository at this point in the history
Port/bootstrap
  • Loading branch information
Sage Weil committed Nov 7, 2013
2 parents 15599b0 + ea725d3 commit 0c3c025
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion autogen.sh
@@ -1,5 +1,7 @@
#!/bin/sh

set -e

check_for_pkg_config() {
which pkg-config >/dev/null && return

Expand All @@ -11,10 +13,20 @@ check_for_pkg_config() {
exit 1
}

if [ `which libtoolize` ]; then
LIBTOOLIZE=libtoolize
elif [ `which glibtoolize` ]; then
LIBTOOLIZE=glibtoolize
else
echo "Error: could not find libtoolize"
echo " Please install libtoolize or glibtoolize."
exit 1
fi

rm -f config.cache
aclocal -I m4 --install
check_for_pkg_config
libtoolize --force --copy
$LIBTOOLIZE --force --copy
autoconf
autoheader
automake -a --add-missing -Wall
Expand Down

0 comments on commit 0c3c025

Please sign in to comment.