Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /trunk/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 83 - (hide annotations) (download)
Mon Jan 21 07:26:12 2008 UTC (16 years, 2 months ago) by mir
File size: 1297 byte(s)
added check for CFLAGS/CXXFLAGS before AC_PROG_CC.

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

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