forked from ceph/ceph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autogen.sh
executable file
·49 lines (42 loc) · 1019 Bytes
/
autogen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/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
if ! git submodule update --init; 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/gtest && autoreconf -fvi; )
( cd src/rocksdb && autoreconf -fvi; )
exit