forked from groonga/groonga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autogen.sh
executable file
·57 lines (51 loc) · 1.6 KB
/
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
50
51
52
53
54
55
56
57
#!/bin/sh
./version-gen.sh
# AX_CXX_COMPILE_STDCXX macro is required to check compiler option correctly
if which dpkg > /dev/null 2>&1; then
if ! dpkg -s autoconf-archive > /dev/null; then
echo "ERROR: autoconf-archive package is not installed yet."
exit 1
fi
elif which rpm > /dev/null 2>&1; then
if yum info autoconf-archive > /dev/null 2>&1 && \
! rpm -q autoconf-archive > /dev/null; then
echo "ERROR: autoconf-archive package is not installed yet."
exit 1
fi
elif which brew > /dev/null 2>&1; then
if ! brew list autoconf-archive > /dev/null 2>&1; then
echo "ERROR: autoconf-archive formula is not installed yet."
exit 1
fi
elif [ -x /usr/local/sbin/pkg ]; then
if ! /usr/local/sbin/pkg info autoconf-archive > /dev/null 2>&1; then
echo "ERROR: autoconf-archive package is not installed yet."
exit 1
fi
fi
case $(uname -s) in
Darwin)
homebrew_aclocal=/usr/local/share/aclocal
if [ -d $homebrew_aclocal ]; then
ACLOCAL_PATH="$ACLOCAL_PATH $homebrew_aclocal"
fi
gettext_prefix=/usr/local/Cellar/gettext
if [ -d $gettext_prefix ]; then
gettext_aclocal=$(ls $gettext_prefix/*/share/aclocal | \
gsort --version-sort | \
tail -n 1)
if [ -d $gettext_aclocal ]; then
ACLOCAL_PATH="$ACLOCAL_PATH $gettext_aclocal"
fi
fi
;;
FreeBSD)
ACLOCAL_PATH="$ACLOCAL_PATH /usr/local/share/aclocal/"
;;
esac
if [ ! -e vendor/mruby-source/.git ]; then
rm -rf vendor/mruby-source
fi
git submodule update --init
mkdir -p m4
${AUTORECONF:-autoreconf} --force --install "$@"