1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

[MCOL-69] autotools

This commit is contained in:
justin
2016-06-13 20:02:25 -04:00
parent 4365e207fc
commit 54c361cff7
6 changed files with 491 additions and 32 deletions

View File

@ -33,6 +33,10 @@ while true
esac esac
done done
if [ "$INCLUDE" == "" ]; then
INCLUDE="-I$PWD/../sql -I$PWD/../include -I$PWD/../pcre"
fi
export CXXFLAGS=$INCLUDE $CXXFLAGS export CXXFLAGS=$INCLUDE $CXXFLAGS
#TODO: these prebuilt binaries may need to be fetched #TODO: these prebuilt binaries may need to be fetched
@ -117,7 +121,7 @@ then
./configure --prefix=$PREFIX ./configure --prefix=$PREFIX
else else
echo "BUILDING WITH DEFAULT PREFIX" echo "BUILDING WITH DEFAULT PREFIX"
./configure ./configure --prefix=/usr/local/mariadb/columnstore
fi fi
#for x in \ #for x in \

View File

@ -226,6 +226,7 @@ AC_CONFIG_FILES([
oamapps/traphandler/Makefile oamapps/traphandler/Makefile
oamapps/sendtrap/Makefile oamapps/sendtrap/Makefile
oamapps/calpontSupport/Makefile oamapps/calpontSupport/Makefile
oamapps/columnstoreDB/Makefile
primitives/Makefile primitives/Makefile
primitives/blockcache/Makefile primitives/blockcache/Makefile
primitives/linux-port/Makefile primitives/linux-port/Makefile
@ -233,9 +234,11 @@ AC_CONFIG_FILES([
decomsvr/Makefile decomsvr/Makefile
procmgr/Makefile procmgr/Makefile
procmon/Makefile procmon/Makefile
net-snmp/Makefile
snmpd/Makefile snmpd/Makefile
snmpd/etc/Makefile snmpd/etc/Makefile
snmpd/snmpmanager/Makefile snmpd/snmpmanager/Makefile
oamapps/columnstoreSupport/Makefile
tools/Makefile tools/Makefile
tools/editem/Makefile tools/editem/Makefile
tools/cplogger/Makefile tools/cplogger/Makefile

View File

@ -27,7 +27,7 @@
#define FLEX_SCANNER #define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5 #define YY_FLEX_MINOR_VERSION 5
#define YY_FLEX_SUBMINOR_VERSION 35 #define YY_FLEX_SUBMINOR_VERSION 37
#if YY_FLEX_SUBMINOR_VERSION > 0 #if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA #define FLEX_BETA
#endif #endif
@ -72,7 +72,6 @@ typedef int flex_int32_t;
typedef unsigned char flex_uint8_t; typedef unsigned char flex_uint8_t;
typedef unsigned short int flex_uint16_t; typedef unsigned short int flex_uint16_t;
typedef unsigned int flex_uint32_t; typedef unsigned int flex_uint32_t;
#endif /* ! C99 */
/* Limits of integral types. */ /* Limits of integral types. */
#ifndef INT8_MIN #ifndef INT8_MIN
@ -103,6 +102,8 @@ typedef unsigned int flex_uint32_t;
#define UINT32_MAX (4294967295U) #define UINT32_MAX (4294967295U)
#endif #endif
#endif /* ! C99 */
#endif /* ! FLEXINT_H */ #endif /* ! FLEXINT_H */
#ifdef __cplusplus #ifdef __cplusplus
@ -171,7 +172,12 @@ typedef unsigned int flex_uint32_t;
typedef struct yy_buffer_state *YY_BUFFER_STATE; typedef struct yy_buffer_state *YY_BUFFER_STATE;
#endif #endif
extern int dmlleng; #ifndef YY_TYPEDEF_YY_SIZE_T
#define YY_TYPEDEF_YY_SIZE_T
typedef size_t yy_size_t;
#endif
extern yy_size_t dmlleng;
extern FILE *dmlin, *dmlout; extern FILE *dmlin, *dmlout;
@ -197,11 +203,6 @@ extern FILE *dmlin, *dmlout;
#define unput(c) yyunput( c, (yytext_ptr) ) #define unput(c) yyunput( c, (yytext_ptr) )
#ifndef YY_TYPEDEF_YY_SIZE_T
#define YY_TYPEDEF_YY_SIZE_T
typedef size_t yy_size_t;
#endif
#ifndef YY_STRUCT_YY_BUFFER_STATE #ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE
struct yy_buffer_state struct yy_buffer_state
@ -219,7 +220,7 @@ struct yy_buffer_state
/* Number of characters read into yy_ch_buf, not including EOB /* Number of characters read into yy_ch_buf, not including EOB
* characters. * characters.
*/ */
int yy_n_chars; yy_size_t yy_n_chars;
/* Whether we "own" the buffer - i.e., we know we created it, /* Whether we "own" the buffer - i.e., we know we created it,
* and can realloc() it to grow it, and should free() it to * and can realloc() it to grow it, and should free() it to
@ -289,8 +290,8 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
/* yy_hold_char holds the character lost when dmltext is formed. */ /* yy_hold_char holds the character lost when dmltext is formed. */
static char yy_hold_char; static char yy_hold_char;
static int yy_n_chars; /* number of characters read into yy_ch_buf */ static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
int dmlleng; yy_size_t dmlleng;
/* Points to current character in buffer. */ /* Points to current character in buffer. */
static char *yy_c_buf_p = (char *) 0; static char *yy_c_buf_p = (char *) 0;
@ -318,7 +319,7 @@ static void dml_init_buffer (YY_BUFFER_STATE b,FILE *file );
YY_BUFFER_STATE dml_scan_buffer (char *base,yy_size_t size ); YY_BUFFER_STATE dml_scan_buffer (char *base,yy_size_t size );
YY_BUFFER_STATE dml_scan_string (yyconst char *yy_str ); YY_BUFFER_STATE dml_scan_string (yyconst char *yy_str );
YY_BUFFER_STATE dml_scan_bytes (yyconst char *bytes,int len ); YY_BUFFER_STATE dml_scan_bytes (yyconst char *bytes,yy_size_t len );
void *dmlalloc (yy_size_t ); void *dmlalloc (yy_size_t );
void *dmlrealloc (void *,yy_size_t ); void *dmlrealloc (void *,yy_size_t );
@ -350,7 +351,7 @@ void dmlfree (void * );
/* Begin user sect3 */ /* Begin user sect3 */
#define dmlwrap(n) 1 #define dmlwrap() 1
#define YY_SKIP_YYWRAP #define YY_SKIP_YYWRAP
typedef unsigned char YY_CHAR; typedef unsigned char YY_CHAR;
@ -889,7 +890,7 @@ FILE *dmlget_out (void );
void dmlset_out (FILE * out_str ); void dmlset_out (FILE * out_str );
int dmlget_leng (void ); yy_size_t dmlget_leng (void );
char *dmlget_text (void ); char *dmlget_text (void );
@ -948,7 +949,7 @@ static int input (void );
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \ { \
int c = '*'; \ int c = '*'; \
unsigned n; \ size_t n; \
for ( n = 0; n < max_size && \ for ( n = 0; n < max_size && \
(c = getc( dmlin )) != EOF && c != '\n'; ++n ) \ (c = getc( dmlin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \ buf[n] = (char) c; \
@ -1702,21 +1703,21 @@ static int yy_get_next_buffer (void)
else else
{ {
int num_to_read = yy_size_t num_to_read =
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
while ( num_to_read <= 0 ) while ( num_to_read <= 0 )
{ /* Not enough room in the buffer - grow it. */ { /* Not enough room in the buffer - grow it. */
/* just a shorter name for the current buffer */ /* just a shorter name for the current buffer */
YY_BUFFER_STATE b = YY_CURRENT_BUFFER; YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
int yy_c_buf_p_offset = int yy_c_buf_p_offset =
(int) ((yy_c_buf_p) - b->yy_ch_buf); (int) ((yy_c_buf_p) - b->yy_ch_buf);
if ( b->yy_is_our_buffer ) if ( b->yy_is_our_buffer )
{ {
int new_size = b->yy_buf_size * 2; yy_size_t new_size = b->yy_buf_size * 2;
if ( new_size <= 0 ) if ( new_size <= 0 )
b->yy_buf_size += b->yy_buf_size / 8; b->yy_buf_size += b->yy_buf_size / 8;
@ -1747,7 +1748,7 @@ static int yy_get_next_buffer (void)
/* Read in more data. */ /* Read in more data. */
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
(yy_n_chars), (size_t) num_to_read ); (yy_n_chars), num_to_read );
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
} }
@ -1842,7 +1843,7 @@ static int yy_get_next_buffer (void)
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
yy_is_jam = (yy_current_state == 393); yy_is_jam = (yy_current_state == 393);
return yy_is_jam ? 0 : yy_current_state; return yy_is_jam ? 0 : yy_current_state;
} }
#ifndef YY_NO_INPUT #ifndef YY_NO_INPUT
@ -1869,7 +1870,7 @@ static int yy_get_next_buffer (void)
else else
{ /* need more input */ { /* need more input */
int offset = (yy_c_buf_p) - (yytext_ptr); yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
++(yy_c_buf_p); ++(yy_c_buf_p);
switch ( yy_get_next_buffer( ) ) switch ( yy_get_next_buffer( ) )
@ -2029,10 +2030,6 @@ static void dml_load_buffer_state (void)
dmlfree((void *) b ); dmlfree((void *) b );
} }
#ifndef __cplusplus
extern int isatty (int );
#endif /* __cplusplus */
/* Initializes or reinitializes a buffer. /* Initializes or reinitializes a buffer.
* This function is sometimes called more than once on the same buffer, * This function is sometimes called more than once on the same buffer,
* such as during a dmlrestart() or at EOF. * such as during a dmlrestart() or at EOF.
@ -2145,7 +2142,7 @@ void dmlpop_buffer_state (void)
*/ */
static void dmlensure_buffer_stack (void) static void dmlensure_buffer_stack (void)
{ {
int num_to_alloc; yy_size_t num_to_alloc;
if (!(yy_buffer_stack)) { if (!(yy_buffer_stack)) {
@ -2237,12 +2234,12 @@ YY_BUFFER_STATE dml_scan_string (yyconst char * yystr )
/** Setup the input buffer state to scan the given bytes. The next call to dmllex() will /** Setup the input buffer state to scan the given bytes. The next call to dmllex() will
* scan from a @e copy of @a bytes. * scan from a @e copy of @a bytes.
* @param bytes the byte buffer to scan * @param yybytes the byte buffer to scan
* @param len the number of bytes in the buffer pointed to by @a bytes. * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
* *
* @return the newly allocated buffer state object. * @return the newly allocated buffer state object.
*/ */
YY_BUFFER_STATE dml_scan_bytes (yyconst char * yybytes, int _yybytes_len ) YY_BUFFER_STATE dml_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
{ {
YY_BUFFER_STATE b; YY_BUFFER_STATE b;
char *buf; char *buf;
@ -2329,7 +2326,7 @@ FILE *dmlget_out (void)
/** Get the length of the current token. /** Get the length of the current token.
* *
*/ */
int dmlget_leng (void) yy_size_t dmlget_leng (void)
{ {
return dmlleng; return dmlleng;
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,4 @@
/* Copyright (C) 2014 InfiniDB, Inc. /* Copyright (C) 2014 InfiniDB, Inc.
Copyright (C) 2016 MariaDB Corporaton
This program is free software; you can redistribute it and/or This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License modify it under the terms of the GNU General Public License