2014-07-30 19:33:47 +00:00
|
|
|
#!/bin/sh -x
|
2010-11-05 18:34:11 +00:00
|
|
|
|
2013-11-05 16:06:05 +00:00
|
|
|
set -e
|
|
|
|
|
2014-05-19 11:55:36 +00:00
|
|
|
test -f src/ceph.in || {
|
|
|
|
echo "You must run this script in the top-level ceph directory"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2010-11-05 18:34:11 +00:00
|
|
|
check_for_pkg_config() {
|
|
|
|
which pkg-config >/dev/null && return
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo "Error: could not find pkg-config"
|
|
|
|
echo
|
|
|
|
echo "Please make sure you have pkg-config installed."
|
|
|
|
echo
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2013-07-21 01:41:38 +00:00
|
|
|
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
|
|
|
|
|
2014-06-02 20:11:24 +00:00
|
|
|
if test -d ".git" ; then
|
2015-03-02 15:54:40 +00:00
|
|
|
if ! git submodule sync || ! git submodule update --init --recursive; then
|
2014-06-02 20:11:24 +00:00
|
|
|
echo "Error: could not initialize submodule projects"
|
|
|
|
echo " Network connectivity might be required."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2008-01-28 02:12:20 +00:00
|
|
|
rm -f config.cache
|
2013-01-09 21:35:16 +00:00
|
|
|
aclocal -I m4 --install
|
2010-11-05 18:34:11 +00:00
|
|
|
check_for_pkg_config
|
2013-07-21 01:41:38 +00:00
|
|
|
$LIBTOOLIZE --force --copy
|
2014-01-15 18:43:49 +00:00
|
|
|
aclocal -I m4 --install
|
2008-01-28 02:12:20 +00:00
|
|
|
autoconf
|
|
|
|
autoheader
|
2010-05-18 15:01:03 +00:00
|
|
|
automake -a --add-missing -Wall
|
2015-01-26 00:38:46 +00:00
|
|
|
( cd src/gmock && autoreconf -fvi; )
|
2014-05-28 02:11:37 +00:00
|
|
|
( cd src/rocksdb && autoreconf -fvi; )
|
2008-01-28 02:12:20 +00:00
|
|
|
exit
|