Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /trunk/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 81 - (hide annotations) (download)
Fri Jan 18 09:12:45 2008 UTC (16 years, 2 months ago) by mir
File size: 1215 byte(s)
Fixed configure.in as properly.

Now we can build tritonn engine from svn as following:

libtoolize -c -f
aclocal-1.9
autoheader
automake-1.9 -c -a -i
autoconf
./configure --with-mysql=XXX --libdir=XXX
make
make install


1 mir 50 dnl For Tritonn MySQL Engine
2     AC_INIT(src/ha_tritonn.cc)
3 mir 81 AM_CONFIG_HEADER(src/tritonn_config.h)
4 mir 50 AM_INIT_AUTOMAKE("tritonn_engine", 0.0.1)
5    
6     AC_PROG_CC
7     AC_PROG_CXX
8     AC_PROG_CPP
9     AC_PROG_GCC_TRADITIONAL
10     AC_PROG_LIBTOOL
11     LIBTOOL="$LIBTOOL --preserve-dup-deps"
12     AC_SUBST(LIBTOOL)dnl
13    
14 mir 81 AC_DEFUN([MYSQL_SRC_TEST], [
15     AC_MSG_CHECKING(for mysql source code)
16     AC_ARG_WITH(mysql,
17     [[ --with-mysql[=mysql src directory]
18     Source requir to build engine.]],
19     [
20     if test -d "$withval/sql"; then
21     MYSQL_SRC="$i/mysql_config"
22     fi
23    
24     AC_DEFINE([MYSQL_SRC], [1], [Source directory for MySQL])
25     MYSQL_INC="-I$withval/sql -I$withval/include -I$withval/regex -I$withval"
26     AC_MSG_RESULT(["$withval"])
27     ],
28     [
29     AC_MSG_ERROR(["no mysql source provided"])
30     ])
31     ])
32 mir 50 MYSQL_SRC_TEST
33     AC_SUBST(MYSQL_INC)
34    
35     # We only support GCC and Sun's forte at the moment
36     if test "$GCC" = "yes"
37     then
38     CXXFLAGS="$CXXFLAGS -fno-implicit-templates -fno-exceptions -fno-rtti"
39     else
40     CFLAGS="-Xa -xstrconst -mt -D_FORTEC_ -fast -m64"
41     CXXFLAGS="$CXXFLAGS -noex -mt -D_FORTEC_ -fast -m64"
42     DTRACEFLAGS="-64"
43     fi
44    
45     AC_C_CONST
46     AC_TYPE_SIZE_T
47     AC_CHECK_HEADERS(limits.h syslimits.h)
48     AC_OUTPUT(Makefile src/Makefile)

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26