mirror of
https://github.com/ceph/ceph
synced 2024-12-15 16:07:00 +00:00
ba0d2c333d
This lets us track upstream without mantaining our own autotools fork. Move back to rocksdb vanilla 3.11.2 (without our autotools patches). Signed-off-by: Sage Weil <sage@redhat.com>
50 lines
1.1 KiB
Bash
Executable File
50 lines
1.1 KiB
Bash
Executable File
#!/bin/sh -x
|
|
|
|
set -e
|
|
|
|
test -f src/ceph.in || {
|
|
echo "You must run this script in the top-level ceph directory"
|
|
exit 1
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
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
|
|
|
|
if test -d ".git" ; then
|
|
force=$(if git submodule usage 2>&1 | grep --quiet 'update.*--force'; then echo --force ; fi)
|
|
if ! git submodule sync || ! git submodule update $force --init --recursive; then
|
|
echo "Error: could not initialize submodule projects"
|
|
echo " Network connectivity might be required."
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
rm -f config.cache
|
|
aclocal -I m4 --install
|
|
check_for_pkg_config
|
|
$LIBTOOLIZE --force --copy
|
|
aclocal -I m4 --install
|
|
autoconf
|
|
autoheader
|
|
automake -a --add-missing -Wall
|
|
( cd src/gmock && autoreconf -fvi; )
|
|
exit
|