forked from simsong/bulk_extractor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
34 lines (32 loc) · 1 KB
/
bootstrap.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
#!/bin/sh
# Hopefully you checked out with git clone --recursive git@github.com:simsong/bulk_extractor.git
for sub in be13_api dfxml sceadan
do
if [ ! -r src/$sub/.git ] ;
then
echo bringing in submodules
echo next time check out with git clone --recursive
git submodule init
git submodule update
fi
done
# have automake do an initial population iff necessary
if [ ! -e config.guess -o ! -e config.sub -o ! -e install-sh -o ! -e missing ]; then
autoheader -f
touch NEWS README AUTHORS ChangeLog
touch stamp-h
aclocal -I m4
autoconf -f
#libtoolize || glibtoolize
automake --add-missing --copy
else
autoreconf -f
fi
echo be sure to run ./configure
if [ `uname -s` == 'Darwin' ]; then
echo To enable AddressSanitizer on Mac, you must install gcc-4.8 with macports, then:
echo CC=gcc-mp-4.8 CXX=g++-mp-4.8 sh configure --enable-address-sanitizer
else
echo To enable AddressSanitizer, install libasan and configure with:
echo sh configure --enable-address-sanitizer
fi