exp fixesw
[csql.git] / buildmmdb.ksh
blobf87ba99e0e5273754ea1c47ecb304f4ce4cc1915
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 ./configure --prefix=`pwd`/install CXXFLAGS="-g -DMMDB -DEMBED -I$JDK_HOME/include -I$JDK_HOME/include/linux"
16 libtoolavailable=`which libtool`
17 if [ -z "$libtoolavailable" ]
18 then
19 echo "libtool not available. Build may fail"
20 else
21 mv libtool libtool.bk
22 ln -s $libtoolavailable libtool
25 make
26 make install
27 ./csqlinstallmmdb.ksh