FreeBSD Porting
[csql.git] / buildmmdb.ksh
blob709a1c952e3d1d63f818fd5c22b3bf541910d015
1 if [ -z "$JDK_HOME" ]
2 then
3 echo "Please set JDK_HOME"
4 exit 1
5 fi
6 cp src/sql/Makefile.am.mmdb src/sql/Makefile.am
7 cp src/tools/Makefile.am.mmdb src/tools/Makefile.am
8 cp src/odbc/Makefile.am.mmdb src/odbc/Makefile.am
9 cp src/jdbc/Makefile.am.mmdb src/jdbc/Makefile.am
10 cp src/Makefile.am.mmdb src/Makefile.am
12 make -f Makefile.cvs
14 ./configure --prefix=`pwd`/install CXXFLAGS="-g -DMMDB -I$JDK_HOME/include -I$JDK_HOME/include/linux"
15 libtoolavailable=`which libtool`
16 if [ -z "$libtoolavailable" ]
17 then
18 echo "libtool not available. Build may fail"
19 else
20 mv libtool libtool.bk
21 ln -s $libtoolavailable libtool
24 make
25 make install
26 ./csqlinstallmmdb.ksh