2
2
dnl Process this file with autoconf to produce a configure script.
4
dnl Copyright (C) 2009 Sun Microsystems
6
dnl This program is free software; you can redistribute it and/or modify
7
dnl it under the terms of the GNU General Public License as published by
8
dnl the Free Software Foundation; version 2 of the License.
10
dnl This program is distributed in the hope that it will be useful,
11
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
dnl GNU General Public License for more details.
15
dnl You should have received a copy of the GNU General Public License
16
dnl along with this program; if not, write to the Free Software
17
dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
4
AC_PREREQ(2.59)dnl Minimum Autoconf version required.
21
AC_INIT([drizzle],[RELEASE_VERSION],[http://bugs.launchpad.net/drizzle])
6
AC_INIT(drizzle, [7.0.0], [http://bugs.launchpad.net/drizzle])
22
7
AC_CONFIG_SRCDIR([drizzled/drizzled.cc])
23
8
AC_CONFIG_AUX_DIR(config)
24
9
AC_CONFIG_HEADERS([config.h])
25
AC_CONFIG_MACRO_DIR([m4])
27
# Setting CFLAGS here prevents AC_CANONICAL_TARGET from injecting them
29
SAVE_CXXFLAGS=${CXXFLAGS}
11
# Save some variables and the command line options for mysqlbug
14
SAVE_ASFLAGS="$ASFLAGS"
16
SAVE_CXXFLAGS="$CXXFLAGS"
17
SAVE_LDFLAGS="$LDFLAGS"
18
SAVE_CXXLDFLAGS="$CXXLDFLAGS"
19
CONF_COMMAND="$0 $ac_configure_args"
20
AC_SUBST(CONF_COMMAND)
23
AC_SUBST(SAVE_ASFLAGS)
25
AC_SUBST(SAVE_CXXFLAGS)
26
AC_SUBST(SAVE_LDFLAGS)
27
AC_SUBST(SAVE_CXXLDFLAGS)
33
30
AC_CANONICAL_TARGET
36
CXXFLAGS=${SAVE_CXXFLAGS}
38
AM_INIT_AUTOMAKE(nostdinc subdir-objects -Wall -Werror)
31
AM_INIT_AUTOMAKE(-Wall -Wno-portability -Werror)
35
# See the libtool docs for information on how to do shared lib versions.
36
SHARED_LIB_MAJOR_VERSION=1
37
SHARED_LIB_VERSION=$SHARED_LIB_MAJOR_VERSION:0:0
39
##############################################################################
40
# The below section needs to be done before AC_PROG_CC
41
##############################################################################
43
if test "x${CFLAGS-}" = x ; then
49
if test "x${CPPFLAGS-}" = x ; then
55
if test "x${LDFLAGS-}" = x ; then
41
61
if test "x${enable_dependency_tracking}" = "x"
43
63
enable_dependency_tracking=yes
46
if test -d "${srcdir}/.bzr"
66
################ End of section to be done before AC_PROG_CC #################
68
dnl Checks for programs.
70
ifdef([AC_PROG_CC_C99],[
71
dnl TODO: Need to fix this to use c99 instead of gnu99
72
AC_PROG_CC_C99([],[AC_MSG_ERROR([C99 support required for compiling Drizzle])])
74
],[C99_SUPPORT_HACK="-std=gnu99"])
76
AC_USE_SYSTEM_EXTENSIONS
55
gl_USE_SYSTEM_EXTENSIONS
78
AC_CXX_HEADER_STDCXX_98
79
if test "$ac_cv_cxx_stdcxx_98" = "no"
81
AC_MSG_ERROR([C++ Compiler required to compile Drizzle])
61
dnl Once we can use a modern autoconf, we can use this
64
AC_CXX_HEADER_STDCXX_98
65
if test "$ac_cv_cxx_stdcxx_98" = "no"
67
AC_MSG_ERROR([No working C++ Compiler has been found. Drizzle requires a C++ compiler that can handle C++98])
81
86
AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
83
# Version with no dots
84
AC_DEFINE([DRIZZLE_VERSION_ID],[RELEASE_ID],
85
[Version ID that can be easily used for numeric comparison])
87
AC_DEFINE([_BACKWARD_BACKWARD_WARNING_H],[1],[Hack to disable deprecation warning in gcc])
89
# The port that was assigned by IANA.
88
dnl AC_CANONICAL_HOST thinks it's a good idea to just set CFLAGS to
89
dnl -g -O2 if you're running gcc. We would like to use something else, thanks.
90
if test "x${CFLAGS}" = "x-g -O2"
94
if test "x${CXXFLAGS}" = "x-g -O2"
100
# Set all version vars based on $VERSION. How do we do this more elegant ?
101
# Remember that regexps needs to quote [ and ] since this is run through m4
102
# We take some made up examples
104
# VERSION 5.1.40sp1-alpha 5.0.34a
105
# DRIZZLE_NO_DASH_VERSION 5.1.40sp1 5.0.34a
106
# DRIZZLE_NUMERIC_VERSION 5.1.40 5.0.34
107
# DRIZZLE_BASE_VERSION 5.1 5.0
108
# DRIZZLE_VERSION_ID 50140 50034
110
DRIZZLE_NO_DASH_VERSION=`echo $VERSION | sed -e "s|-.*$||"`
111
DRIZZLE_NUMERIC_VERSION=`echo $DRIZZLE_NO_DASH_VERSION | sed -e "s|[[a-z]][[a-z0-9]]*$||"`
112
DRIZZLE_BASE_VERSION=`echo $DRIZZLE_NUMERIC_VERSION | sed -e "s|\.[[^.]]*$||"`
113
DRIZZLE_VERSION_ID=`echo $DRIZZLE_NUMERIC_VERSION | \
114
awk -F. '{printf "%d%0.2d%0.2d", $1, $2, $3}'`
116
# The port should be constant for a LONG time
90
117
DRIZZLE_TCP_PORT_DEFAULT=4427
92
m4_include(m4/dtrace.m4)
94
m4_include(m4/character_sets.m4)
119
sinclude(m4/dtrace.m4)
120
sinclude(m4/character_sets.m4)
121
sinclude(m4/gettext.m4)
123
AM_GNU_GETTEXT([external])
124
AM_GNU_GETTEXT_VERSION([0.17])
126
AM_CONDITIONAL([BUILD_GETTEXT],[test "x$MSGMERGE" != "x" -a "x$MSGMERGE" != "x:"])
128
AC_SUBST(DRIZZLE_NO_DASH_VERSION)
129
AC_DEFINE_UNQUOTED(DRIZZLE_BASE_VERSION,["$DRIZZLE_BASE_VERSION"],
130
[Major and minor version])
131
AC_SUBST(DRIZZLE_VERSION_ID)
132
AC_DEFINE_UNQUOTED([DRIZZLE_VERSION_ID],[$DRIZZLE_VERSION_ID],
133
[Version ID that can be easily used for numeric comparison])
134
AC_SUBST(DRIZZLE_PREVIOUS_BASE_VERSION)
135
AC_SUBST(PROTOCOL_VERSION)
136
AC_DEFINE_UNQUOTED([PROTOCOL_VERSION], [$PROTOCOL_VERSION],
137
[mysql client protocol version])
138
AC_SUBST(DOT_FRM_VERSION)
139
AC_DEFINE_UNQUOTED([FRM_VER], [$DOT_FRM_VERSION],
140
[Version of .frm files])
141
AC_DEFINE_UNQUOTED([DRIZZLE_CONFIG_NAME],["drizzled"],[Name of server config section])
143
AC_SUBST(SHARED_LIB_MAJOR_VERSION)
144
AC_SUBST(SHARED_LIB_VERSION)
95
145
AC_SUBST(AVAILABLE_LANGUAGES)
98
# Set this for plugins to use
99
ac_build_drizzle="yes"
147
dnl Ok. This is sort of lame, but we need to be nice to plugins Makefile.am's.
148
AM_CONDITIONAL(BUILD_DRIZZLE,[test "x" = "x"])
152
AC_DEFINE([IO_SIZE], [4096], [Io buffer size; Must be a power of 2 and
153
a multiple of 512. May be
154
smaller what the disk page size. This influences the speed of the
155
isam btree library. eg to big to slow.])
156
AC_DEFINE([SC_MAXWIDTH],[256], [Max width of screen (for error messages)])
157
AC_DEFINE([FN_LEN],[256 ], [Max file name len ])
158
AC_DEFINE([FN_EXTLEN],[20], [Max length of extension (part of FN_LEN) ])
159
AC_DEFINE([FN_REFLEN],[512], [Max length of full path-name ])
160
AC_DEFINE([FN_EXTCHAR],['.'], [File extension character])
161
AC_DEFINE([FN_HOMELIB],['~'], [~/ is used as abbrev for home dir ])
162
AC_DEFINE([FN_CURLIB],['.'], [./ is used as abbrev for current dir ])
163
AC_DEFINE([FN_PARENTDIR],[".."], [Parent directory; Must be a string ])
165
AC_DEFINE([MASTER],[1],[Compile without unireg])
167
AH_VERBATIM([QUOTE_ARG],[
168
/* Quote argument (before cpp) */
170
# define QUOTE_ARG(x) #x
172
/* Quote argument, (after cpp) */
173
#ifndef STRINGIFY_ARG
174
# define STRINGIFY_ARG(x) QUOTE_ARG(x)
178
AH_VERBATIM([builtin_expect],[
180
* The macros below are borrowed from include/linux/compiler.h in the
181
* Linux kernel. Use them to indicate the likelyhood of the truthfulness
182
* of a condition. This serves two purposes - newer versions of gcc will be
183
* able to optimize for branch predication, which could yield siginficant
184
* performance gains in frequently executed sections of the code, and the
185
* other reason to use them is for documentation
187
#if !defined(__GNUC__)
188
#define __builtin_expect(x, expected_value) (x)
191
#define likely(x) __builtin_expect((x),1)
192
#define unlikely(x) __builtin_expect((x),0)
195
dnl InnoDB depends on some Drizzle's internals which other plugins should not
196
dnl need. This is because of InnoDB's foreign key support, "safe" binlog
197
dnl truncation, and other similar legacy features.
199
dnl We define accessors for these internals unconditionally, but do not
200
dnl expose them in mysql/plugin.h. They are declared in ha_innodb.h for
203
AC_DEFINE([INNODB_COMPATIBILITY_HOOKS],[1],[TODO: Remove the need for this])
204
dnl TODO: Make a test for when this needs to be set.
205
AC_DEFINE([_REENTRANT],[1],[Some thread libraries require this])
207
AH_VERBATIM([posix_pthread],[
208
/* We want posix threads */
209
#ifndef _POSIX_PTHREAD_SEMANTICS
210
#define _POSIX_PTHREAD_SEMANTICS
102
215
# Canonicalize the configuration name.
104
AC_DEFINE_UNQUOTED([HOST_VENDOR], ["$host_vendor"],[Vendor of Build System])
105
AC_DEFINE_UNQUOTED([HOST_OS], ["$host_os"], [OS of Build System])
106
AC_DEFINE_UNQUOTED([HOST_CPU], ["$host_cpu"], [CPU of Build System])
108
AC_DEFINE_UNQUOTED([TARGET_VENDOR], ["$target_vendor"],[Vendor of Target System])
109
AC_DEFINE_UNQUOTED([TARGET_OS], ["$target_os"], [OS of Target System])
110
AC_DEFINE_UNQUOTED([TARGET_CPU], ["$target_cpu"], [CPU of Target System])
217
# Check whether --with-system-type or --without-system-type was given.
218
AC_ARG_WITH([system-type],
219
[AS_HELP_STRING([--with-system-type],
220
[Set the system type, like "sun-solaris10"])],
221
[SYSTEM_TYPE="$withval"],
222
[SYSTEM_TYPE="$host_vendor-$host_os"])
223
AC_ARG_WITH([machine-type],
224
[AS_HELP_STRING([--with-machine-type],
225
[Set the machine type, like "powerpc"])],
226
[MACHINE_TYPE="$withval"],
227
[MACHINE_TYPE="$host_cpu"])
228
AC_SUBST(SYSTEM_TYPE)
229
AC_DEFINE_UNQUOTED([SYSTEM_TYPE], ["$SYSTEM_TYPE"],
230
[Name of system, eg sun-solaris])
231
AC_SUBST(MACHINE_TYPE)
232
AC_DEFINE_UNQUOTED([MACHINE_TYPE], ["$MACHINE_TYPE"],
233
[Machine type name, eg sparc])
235
# Detect intel x86 like processor
236
BASE_MACHINE_TYPE=$MACHINE_TYPE
237
case $MACHINE_TYPE in
238
i?86) BASE_MACHINE_TYPE=i386 ;;
242
# This is needed is SUBDIRS is set
113
246
case "$target_os" in
266
dnl AC_CANONICAL_HOST thinks it's a good idea to just set CFLAGS to
267
dnl -g -O2 if you're running gcc. We would like to use something else, thanks.
268
if test "x${CFLAGS}" = "x-g -O2"
272
if test "x${CXXFLAGS}" = "x-g -O2"
133
277
DRIZZLE_CHECK_C_VERSION
134
278
DRIZZLE_CHECK_CXX_VERSION
138
AC_PATH_PROG(GPERF, gperf)
139
AS_IF([test "x$GPERF" = "x"],
140
AC_MSG_ERROR("Drizzle requires gperf to build."))
142
AC_PATH_PROG(LCOV, lcov)
143
AC_PATH_PROG(GENHTML, genhtml)
145
AM_CONDITIONAL(HAVE_LCOV,[test "x$LCOV" != "x"])
284
if test "$ac_cv_c_compiler_gnu" = "yes"
289
AC_PATH_PROG(AS, as, as)
292
dnl TODO: This needs to go away and be replaced with _ISOC99_SOURCE
293
if test "$ac_cv_c_compiler_gnu" = "yes" -o "$target_os" = "linux-gnu"
295
AC_DEFINE([_GNU_SOURCE],[1],[Fix problem with S_ISLNK() on Linux])
298
dnl Solaris 9 include file <sys/feature_tests.h> refers to X/Open document
300
dnl System Interfaces and Headers, Issue 5
302
dnl saying we should define _XOPEN_SOURCE=500 to get POSIX.1c prototypes,
303
dnl but apparently other systems (namely FreeBSD) don't agree.
305
dnl On a newer Solaris 10, the above file recognizes also _XOPEN_SOURCE=600.
306
dnl Furthermore, it tests that if a program requires older standard
307
dnl (_XOPEN_SOURCE<600 or _POSIX_C_SOURCE<200112L) it cannot be
308
dnl run on a new compiler (that defines _STDC_C99) and issues an #error.
309
dnl It's also an #error if a program requires new standard (_XOPEN_SOURCE=600
310
dnl or _POSIX_C_SOURCE=200112L) and a compiler does not define _STDC_C99.
312
dnl To add more to this mess, Sun Studio C compiler defines _STDC_C99 while
313
dnl C++ compiler does not!
315
dnl TODO: Can _ISOC99_SOURCE be defined on all platforms and remove the
316
dnl Need for all of this?
317
if test "$GCC" = "yes"
321
CFLAGS="${CFLAGS} -D_XOPEN_SOURCE=600"
322
CXXFLAGS="${CXXFLAGS} -D__C99FEATURES__"
330
# Ensure that we have --preserve-dup-deps defines, otherwise we get link
331
# problems of 'mysql' with CXX=g++
332
LIBTOOL="$LIBTOOL --preserve-dup-deps"
338
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
340
# Look for "(group|user)add".
341
# TODO: If the programs do not exist, inform the DBA that the user
342
# was not created at the end of the install routine.
343
AC_CHECK_PROGS(GROUPADD, groupadd addgroup)
344
AC_CHECK_PROGS(USERADD, useradd adduser)
346
dnl Needed for ltmain
349
dnl Not critical since the generated file is distributed
147
350
AC_CHECK_PROGS(YACC, ['bison -y'])
148
if test -z "$YACC" && test "$building_from_bzr" = "yes"
351
if test -z "$YACC" && test -d ".bzr"
150
353
AC_MSG_ERROR(["bison is required for Drizzle to build from a bzr branch"])
356
AC_PATH_PROG(uname_prog, uname, no)
358
# We should go through this and put all the explictly system dependent
360
AC_MSG_CHECKING(operating system)
361
AC_CACHE_VAL(mysql_cv_sys_os,
363
if test "$uname_prog" != "no"; then
364
mysql_cv_sys_os="`uname`"
366
mysql_cv_sys_os="Not Solaris"
369
AC_MSG_RESULT($mysql_cv_sys_os)
372
# The following is required for portable results of floating point calculations
373
# on PowerPC. The same must also be done for IA-64, but this options is missing
374
# in the IA-64 gcc backend.
376
if test "$GCC" = "yes"
380
AM_CFLAGS="$CFLAGS -mno-fused-madd"
381
AM_CXXFLAGS="$CXXFLAGS -mno-fused-madd"
154
385
# Build optimized or debug version ?
155
386
# First check for gcc and g++
390
DEBUG_OPTIMIZE_CXX=""
391
OPTIMIZE_CXXFLAGS="-O"
156
392
if test "$GCC" = "yes"
159
AC_DEFINE([_GNU_SOURCE],[1],[Fix problem with S_ISLNK() on Linux])
161
dnl The following is required for portable results of floating point
162
dnl calculations on PowerPC. The same must also be done for IA-64, but
163
dnl this options is missing in the IA-64 gcc backend.
164
case "$target_cpu" in
166
AM_CFLAGS="-mno-fused-madd ${AM_CFLAGS}"
167
AM_CXXFLAGS="-mno-fused-madd ${AM_CXXFLAGS}"
171
dnl Once we can use a modern autoconf, we can replace the std=gnu99 here
172
dnl with using AC_CC_STD_C99 above
173
CC="${CC} -std=gnu99"
175
AM_CFLAGS="-ggdb3 ${AM_CFLAGS}"
176
AM_CXXFLAGS="-ggdb3 ${AM_CXXFLAGS}"
394
SYMBOLS_FLAGS="-ggdb3"
395
DEBUG_OPTIMIZE_CC="-O0"
181
396
OPTIMIZE_CFLAGS="-O3"
397
DEBUG_OPTIMIZE_CXX="-O0"
182
398
OPTIMIZE_CXXFLAGS="-O3"
184
400
if test "$SUNCC" = "yes"
186
dnl Once we can use a modern autoconf, we can replace the -xc99=all here
187
dnl with using AC_CC_STD_C99 above
190
AM_CFLAGS="-g -mt ${AM_CFLAGS}"
191
AM_CXXFLAGS="-xlang=c99 -g -mt -compat=5 -library=stlport4 -template=no%extdef ${AM_CXXFLAGS}"
193
OPTIMIZE_FLAGS="-xO3 -xlibmil -xdepend -xbuiltin -lmopt"
194
OPTIMIZE_CFLAGS="${OPTIMIZE_FLAGS} -Xa -xstrconst"
195
OPTIMIZE_CXXFLAGS="${OPTIMIZE_FLAGS}"
200
AM_GNU_GETTEXT(external, need-formatstring-macros)
201
if test "x$MSGMERGE" = "x" -o "x$MSGMERGE" = "x:"
203
AM_PATH_PROG_WITH_TEST(GMSGMERGE, gmsgmerge,
204
[$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
205
MSGMERGE="${GMSGMERGE}"
207
AM_CONDITIONAL([BUILD_GETTEXT],[test "x$MSGMERGE" != "x" -a "x$MSGMERGE" != "x:"])
402
dnl I'm cheating here and sticking C99 support in SYMBOLS_FLAGS
405
OPTIMIZE_CFLAGS="-xO4 -xlibmil -xdepend -Xa -mt -xstrconst -D_FORTEC_"
406
DEBUG_OPTIMIZE_CXX=""
407
#Put back in once isnan is figured out
408
OPTIMIZE_CXXFLAGS="-xO4 -xlibmil -mt -D_FORTEC_ -xlang=c99 -compat=5 -library=stlport4"
213
411
dnl TODO: Remove this define once we are using 2.61 across the board.
214
412
# AX_HEADER_ASSERT
235
436
if test "$with_debug" = "yes"
237
# Debuging. No optimization.
238
AM_CFLAGS="${DEBUG_CFLAGS} ${AM_CFLAGS}"
239
AM_CXXFLAGS="${DEBUG_CXXFLAGS} ${AM_CXXFLAGS}"
439
CFLAGS="$DEBUG_OPTIMIZE_CC -DDEBUG $CFLAGS ${SAVE_CFLAGS}"
440
CXXFLAGS="$DEBUG_OPTIMIZE_CXX -DDEBUG $CXXFLAGS ${SAVE_CXXFLAGS}"
241
442
# Optimized version. No debug
242
AM_CFLAGS="${OPTIMIZE_CFLAGS} ${AM_CFLAGS}"
243
AM_CXXFLAGS="${OPTIMIZE_CXXFLAGS} ${AM_CXXFLAGS}"
443
CFLAGS="${OPTIMIZE_CFLAGS} ${CFLAGS} ${SAVE_CFLAGS}"
444
CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS ${SAVE_CXXFLAGS}"
453
AC_SUBST(INSTALL_SCRIPT)
456
export CC CXX CFLAGS LD LDFLAGS AR ARFLAGS
254
#--------------------------------------------------------------------
255
# Check for libpthread
256
#--------------------------------------------------------------------
258
ACX_PTHREAD(,AC_MSG_ERROR(could not find libpthread))
259
LIBS="${PTHREAD_LIBS} ${LIBS}"
260
AM_CFLAGS="${PTHREAD_CFLAGS} ${AM_CFLAGS}"
465
# libdrizzle versioning when linked with GNU ld.
466
if test "x$EGREP" != "x"
468
if test "$lt_cv_prog_gnu_ld" = "yes" -a $LD --version 2>/dev/null|${EGREP} -q GNU
470
LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_srcdir)/libdrizzle/libdrizzle.ver"
473
AC_SUBST(LD_VERSION_SCRIPT)
263
475
#--------------------------------------------------------------------
264
476
# Check for Google Proto Buffers
265
477
#--------------------------------------------------------------------
267
479
AC_LANG_PUSH([C++])
268
AC_LIB_HAVE_LINKFLAGS(protobuf,pthread,
269
[#include <google/protobuf/descriptor.h>
271
[google::protobuf::FileDescriptor* file;],system)
272
AS_IF([test x$ac_cv_libprotobuf = xno],
273
AC_MSG_ERROR([protobuf is required for Drizzle. On Debian this can be found in libprotobuf-dev. On RedHat this can be found in protobuf-devel.]))
275
AC_CACHE_CHECK([if protobuf is recent enough], [drizzle_cv_protobuf_recent],
276
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
277
#include <google/protobuf/descriptor.h>
278
#if GOOGLE_PROTOBUF_VERSION < 2000002
279
# error Your version of Protobuf is too old
282
[drizzle_cv_protobuf_recent=yes],
283
[drizzle_cv_protobuf_recent=no])])
284
if test "$drizzle_cv_protobuf_recent" = "no"
286
AC_MSG_ERROR([Your version of Google Protocol Buffers is too old. Drizzle requires at least version 2.0.2])
289
AC_PATH_PROG([PROTOC],[protoc],[no],[$LIBPROTOBUF_PREFIX/bin:$PATH])
480
SEARCH_FOR_LIB(protobuf, printf, google/protobuf/message.h,
481
AC_MSG_ERROR([protobuf is required for Drizzle]))
483
AC_PATH_PROG([PROTOC],[protoc],[no],[$PROTOBUF_PATH])
290
484
if test "x$PROTOC" = "xno"
292
AC_MSG_ERROR([Couldn't find the protoc compiler. On Debian this can be found in protobuf-compiler. On RedHat this can be found in protobuf-compiler.])
486
AC_MSG_ERROR([Couldn't find protoc. Try installing Google Protocol Buffer.])
298
492
# Check for libuuid
299
493
#--------------------------------------------------------------------
301
dnl Do this by hand. Need to check for uuid/uuid.h, but uuid may or may
302
dnl not be a lib is weird.
495
dnl Do this by hand instead of with SEARCH_FOR_LIB, because uuid is weird.
304
496
AC_CHECK_HEADERS(uuid/uuid.h)
305
497
if test "x$ac_cv_header_uuid_uuid_h" = "xno"
307
AC_MSG_ERROR([Couldn't find uuid/uuid.h. On Debian this can be found in uuid-dev. On Redhat this can be found in e2fsprogs-devel.])
499
AC_MSG_ERROR([Couldn't find uuid/uuid.h. Try installing libuuid development packages])
309
AC_LIB_HAVE_LINKFLAGS(uuid,,
311
#include <uuid/uuid.h>
501
AC_CHECK_LIB(uuid, uuid_generate)
503
#--------------------------------------------------------------------
505
#--------------------------------------------------------------------
507
SEARCH_FOR_LIB(event, event_loop, event.h,
508
AC_MSG_ERROR([libevent is required for Drizzle]))
511
AC_CACHE_CHECK([for bufferevent in libevent], ac_cv_libevent_works, [
512
save_CPPFLAGS="$CPPFLAGS"
514
CPPFLAGS="$EVENT_CFLAGS"
517
#include <sys/types.h>
518
#include <sys/time.h>
520
#include <event.h>],[
521
struct bufferevent bev;
522
bufferevent_settimeout(&bev, 1, 1);
523
], ac_cv_libevent_works=yes, [
524
AC_MSG_ERROR([you need to install a more recent version of libevent,
525
check http://www.monkey.org/~provos/libevent/])
528
CPPFLAGS="$save_CPPFLAGS"
533
#--------------------------------------------------------------------
534
# Check for libpthread
535
#--------------------------------------------------------------------
537
AC_CHECK_HEADERS(pthread.h)
538
if test "x$ac_cv_header_pthread_h" != "xyes"
540
AC_MSG_ERROR([Couldn't find pthread.h.])
542
AC_CHECK_LIB(pthread, pthread_create, [], [AC_MSG_ERROR(could not find libpthread)])
321
544
#--------------------------------------------------------------------
322
545
# Check for tcmalloc/mtmalloc
323
546
#--------------------------------------------------------------------
327
AC_ARG_ENABLE([tcmalloc],
328
[AS_HELP_STRING([--enable-tcmalloc],
329
[Enable linking with tcmalloc @<:@default=off@:>@])],
330
[ac_enable_tcmalloc="$enableval"],
331
[ac_enable_tcmalloc="no"])
333
if test "x$ac_enable_tcmalloc" != "xno"
335
AC_CHECK_LIB(tcmalloc-minimal,malloc,[],[])
337
if test "x$ac_cv_lib_tcmalloc_minimal_malloc" != "xyes"
339
AC_CHECK_LIB(tcmalloc,malloc,[],[])
345
AC_ARG_ENABLE([mtmalloc],
346
[AS_HELP_STRING([--disable-mtmalloc],
347
[Enable linking with mtmalloc @<:@default=on@:>@])],
348
[ac_enable_mtmalloc="$enableval"],
349
[ac_enable_mtmalloc="yes"])
351
if test "x$ac_enable_mtmalloc" != "xno"
353
AC_CHECK_LIB(mtmalloc,malloc,[],[])
359
#--------------------------------------------------------------------
360
# Check for libdrizzle
361
#--------------------------------------------------------------------
364
AC_LIB_HAVE_LINKFLAGS(drizzle,,
365
[#include <libdrizzle/drizzle.h>],
367
const char *version= drizzle_version()
369
AS_IF([test x$ac_cv_libdrizzle = xno],
370
AC_MSG_ERROR([libdrizzle is required for Drizzle]))
548
AC_ARG_ENABLE([tcmalloc],
549
[AS_HELP_STRING([--enable-tcmalloc],
550
[Enable linking with tcmalloc @<:@default=off@:>@])],
551
[ac_enable_tcmalloc="$enableval"],
552
[ac_enable_tcmalloc="no"])
554
if test "x$ac_enable_tcmalloc" != "xno"
556
AC_CHECK_LIB(tcmalloc,malloc,[],[])
559
if test "x$ac_cv_lib_tcmalloc_malloc" != "xyes"
561
AC_CHECK_LIB(mtmalloc,malloc,[],[])
374
564
#--------------------------------------------------------------------
376
566
#--------------------------------------------------------------------
378
AC_LIB_HAVE_LINKFLAGS(z,,
383
AS_IF([test x$ac_cv_libz = xno],
384
AC_MSG_ERROR([libz is required for Drizzle. On Debian this can be found in zlib1g-dev. On RedHat this can be found in zlib-devel.]))
386
#--------------------------------------------------------------------
388
#--------------------------------------------------------------------
391
AC_LIB_HAVE_LINKFLAGS(tbb,,
392
[#include <tbb/atomic.h>
396
tbb::atomic<uint64_t> x;
397
tbb::atomic<uint8_t> y;
568
SEARCH_FOR_LIB(z, crc32, zlib.h,
569
AC_MSG_ERROR([libz is required for Drizzle]))
571
#--------------------------------------------------------------------
572
# Check for libncurses
573
#--------------------------------------------------------------------
576
SEARCH_FOR_LIB(ncurses, tgetent, ncurses/ncurses.h, [
577
SEARCH_FOR_LIB(tinfo, tgetent, ncurses/ncurses.h,
578
AC_MSG_ERROR([Couldn't find ncurses])
405
583
#--------------------------------------------------------------------
406
584
# Check for libreadline or compatible (libedit on Mac OS X)
407
585
#--------------------------------------------------------------------
412
AS_IF([test "x$vl_cv_lib_readline" = "xno"],
413
AC_MSG_ERROR([libreadline is required for Drizzle. On Debian this can be found in libreadline5-dev. On RedHat this can be found in readline-devel.]))
414
READLINE_LIBS="${LIBS}"
416
AC_SUBST(READLINE_LIBS)
588
SEARCH_FOR_LIB(readline, rl_initialize, readline/readline.h,
589
AC_MSG_ERROR([libreadline is required for Drizzle]),
592
save_CPPFLAGS="$CPPFLAGS"
593
CPPFLAGS="$CPPFLAGS $READLINE_CFLAGS"
594
AC_CHECK_HEADERS(readline/history.h)
595
AC_CHECK_TYPES([HIST_ENTRY], [], [], [AC_INCLUDES_DEFAULT[
596
#ifdef HAVE_READLINE_HISTORY_H
597
#include <readline/history.h>
599
#include <readline/readline.h>
601
AC_CHECK_DECLS([completion_matches], [], [], [AC_INCLUDES_DEFAULT[
602
#ifdef HAVE_READLINE_HISTORY_H
603
#include <readline/history.h>
605
#include <readline/readline.h>
418
608
DRIZZLE_CHECK_NEW_RL_INTERFACE
609
CPPFLAGS="$save_CPPFLAGS"
420
612
#--------------------------------------------------------------------
421
613
# Check for libpcre
422
614
#--------------------------------------------------------------------
424
AC_LIB_HAVE_LINKFLAGS(pcre,,
430
AS_IF([test "x$ac_cv_libpcre" = "xno"],
437
AC_LIB_HAVE_LINKFLAGS(pcre,,
438
[#include <pcre/pcre.h>],
443
AS_IF([test "x$ac_cv_libpcre" = "xno"],
445
AC_MSG_ERROR([libpcre is required for Drizzle. On Debian this can be found in libpcre3-dev. On RedHat this can be found in pcre-devel.])
447
AC_DEFINE(PCRE_HEADER,[<pcre/pcre.h>],[Location of pcre header])
450
AC_DEFINE(PCRE_HEADER,[<pcre.h>],[Location of pcre header])
616
AC_PATH_PROG(PKG_CONFIG, pkg-config, AC_MSG_ERROR([pkg-config wasn't found.]))
617
PKG_CHECK_MODULES(PCRE, [libpcre >= 3], [found_pcre="yes"],[found_pcre="no"])
619
if test "$found_pcre" = "no"
621
SEARCH_FOR_LIB(pcre, pcre_compile, pcre.h,
622
AC_MSG_ERROR([libpcre is required for Drizzle]))
625
AC_SUBST(PCRE_CFLAGS)
627
dnl Find paths to some shell programs
628
AC_PATH_PROG(LN, ln, ln)
629
# This must be able to take a -f flag like normal unix ln.
630
AC_PATH_PROG(LN_CP_F, ln, ln)
632
AC_PATH_PROG(MV, mv, mv)
633
AC_PATH_PROG(RM, rm, rm)
634
AC_PATH_PROG(CP, cp, cp)
635
AC_PATH_PROG(SED, sed, sed)
636
AC_PATH_PROG(CMP, cmp, cmp)
637
AC_PATH_PROG(CHMOD, chmod, chmod)
638
AC_PATH_PROG(HOSTNAME, hostname, hostname)
639
# Check for a GNU tar named 'gtar', or 'gnutar' (MacOS X) and
640
# fall back to 'tar' otherwise and hope that it's a GNU tar as well
641
AC_CHECK_PROGS(TAR, gnutar gtar tar)
643
dnl We use a path for perl so the script startup works
644
dnl We make sure to use perl, not perl5, in hopes that the RPMs will
645
dnl not depend on the perl5 binary being installed (probably a bug in RPM)
454
646
AC_PATH_PROG(PERL, perl, no)
647
if test "$PERL" != "no" && $PERL -e 'require 5' > /dev/null 2>&1
651
AC_PATH_PROG(PERL5, perl5, no)
652
if test "$PERL5" != no
655
ac_cv_path_PERL=$ac_cv_path_PERL5
663
# icheck, used for ABI check
664
AC_PATH_PROG(ICHECK, icheck, no)
665
# "icheck" is also the name of a file system check program on Tru64.
666
# Verify the program found is really the interface checker.
667
if test "x$ICHECK" != "xno"
669
AC_MSG_CHECKING(if $ICHECK works as expected)
670
echo "int foo;" > conftest.h
671
$ICHECK --canonify -o conftest.ic conftest.h 2>/dev/null
672
if test -f "conftest.ic"
679
rm -f conftest.ic conftest.h
684
AC_PATH_PROG(PS, ps, ps)
685
AC_MSG_CHECKING("how to check if pid exists")
688
if $PS p $$ 2> /dev/null | grep `echo $0 | sed s/\-//` > /dev/null
690
FIND_PROC="$PS p \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null"
692
elif $PS -fp $$ 2> /dev/null | grep $0 > /dev/null
694
FIND_PROC="$PS -p \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null"
696
elif $PS -uaxww 2> /dev/null | grep $0 > /dev/null
698
FIND_PROC="$PS -uaxww | grep -v grep | grep \$\$MYSQLD | grep \" \$\$PID \" > /dev/null"
700
elif $PS -ef 2> /dev/null | grep $0 > /dev/null
702
FIND_PROC="$PS -ef | grep -v grep | grep \$\$MYSQLD | grep \" \$\$PID \" > /dev/null"
703
# Do anybody use this?
704
elif $PS $$ 2> /dev/null | grep $0 > /dev/null
706
FIND_PROC="$PS \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null"
709
*freebsd*|*dragonfly*|*cygwin*)
710
FIND_PROC="$PS p \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null"
713
FIND_PROC="$PS -uaxww | grep -v grep | grep \$\$MYSQLD | grep \" \$\$PID \" > /dev/null"
716
AC_MSG_ERROR([Could not find the right ps switches. Which OS is this ?. See the Installation chapter in the Reference Manual.])
721
AC_MSG_RESULT("$FIND_PROC")
723
# Check if a pid is valid
724
AC_PATH_PROG(KILL, kill, kill)
725
AC_MSG_CHECKING("for kill switches")
726
if $ac_cv_path_KILL -0 $$
728
CHECK_PID="$ac_cv_path_KILL -0 \$\$PID > /dev/null 2> /dev/null"
731
CHECK_PID="$ac_cv_path_KILL -s 0 \$\$PID > /dev/null 2> /dev/null"
733
AC_MSG_WARN([kill -0 to check for pid seems to fail])
734
CHECK_PID="$ac_cv_path_KILL -s SIGCONT \$\$PID > /dev/null 2> /dev/null"
737
AC_MSG_RESULT("$CHECK_PID")
739
# We need an ANSI C compiler
742
# We need an assembler, too
744
CCASFLAGS="$CCASFLAGS $ASFLAGS"
746
# Check if we need noexec stack for assembler
749
if test "$am_cv_prog_cc_stdc" = "no"
751
AC_MSG_ERROR([Drizzle requires an ANSI C compiler (and a C++ compiler). Try gcc. See the Installation chapter in the Reference Manual.])
457
755
AC_ARG_WITH([server-suffix],
607
907
LIBS="$my_save_LIBS"
608
908
AC_SUBST(LIBDL_LIBS)
611
AC_ARG_WITH([atomic-ops],
612
[AS_HELP_STRING([--with-atomic-ops=rwlocks|smp|up],
613
[Implement atomic operations using pthread rwlocks or atomic CPU
614
instructions for multi-processor or uniprocessor
615
configuration. By default gcc built-in sync functions are used,
616
if available and 'smp' configuration otherwise.])],
617
[with_atomic_ops="$withval"],
618
[with_atomic_ops=smp])
620
case "$with_atomic_ops" in
621
"up") AC_DEFINE([MY_ATOMIC_MODE_DUMMY], [1],
622
[Assume single-CPU mode, no concurrency]) ;;
623
"rwlocks") AC_DEFINE([MY_ATOMIC_MODE_RWLOCKS], [1],
624
[Use pthread rwlocks for atomic ops]) ;;
627
[whether the compiler provides atomic builtins],
628
[ac_cv_gcc_atomic_builtins],
630
[AC_LANG_PROGRAM([],[[
631
int foo= -10; int bar= 10;
632
if (!__sync_fetch_and_add(&foo, bar) || foo)
634
bar= __sync_lock_test_and_set(&foo, bar);
635
if (bar || foo != 10)
637
bar= __sync_val_compare_and_swap(&bar, foo, 15);
642
[ac_cv_gcc_atomic_builtins=yes],
643
[ac_cv_gcc_atomic_builtins=no])])
645
if test "x$ac_cv_gcc_atomic_builtins" = "xyes"; then
646
AC_DEFINE(HAVE_GCC_ATOMIC_BUILTINS, 1,
647
[Define to 1 if compiler provides atomic builtins.])
650
*) AC_MSG_ERROR(["$with_atomic_ops" is not a valid value for --with-atomic-ops]) ;;
910
AC_CHECK_FUNCS(strtok_r)
914
AC_ARG_WITH([fast-mutexes],
915
[AS_HELP_STRING([--with-fast-mutexes],
916
[Compile with fast mutexes @<:@default=off@:>@])],
917
[with_fast_mutexes=$withval],
918
[with_fast_mutexes=no])
920
if test "$with_fast_mutexes" != "no"
922
AC_DEFINE([MY_PTHREAD_FASTMUTEX], [1],
923
[Define to 1 if you want to use fast mutexes])
926
AM_CONDITIONAL(BUILD_FAST_MUTEX,[test "$with_fast_mutexes" != "no"])
654
928
AC_ARG_WITH([comment],
655
929
[AS_HELP_STRING([--with-comment],
1013
1317
[ac_warn_effc="$enableval"],
1014
1318
[ac_warn_effc="no"])
1016
AC_ARG_ENABLE([shadow],
1017
[AS_HELP_STRING([--disable-shadow],
1018
[Disables warnings about scope shadowing @<:@default=on@:>@])],
1019
[ac_warn_shadow="$enableval"],
1020
[ac_warn_shadow="yes"])
1022
AC_ARG_ENABLE([conversion],
1023
[AS_HELP_STRING([--enable-conversion],
1024
[Enables conversion warnings @<:@default=off@:>@])],
1025
[ac_warn_conversion="$enableval"],
1026
[ac_warn_conversion="no"])
1028
AC_ARG_ENABLE([datarace],
1029
[AS_HELP_STRING([--enable-datarace],
1030
[Enables Sun Studio data race detection @<:@default=off@:>@])],
1031
[ac_datarace="$enableval"],
1034
AC_ARG_ENABLE([exceptions],
1035
[AS_HELP_STRING([--disable-exceptions],
1036
[Disables use of Exceptions in the build @<:@default=on@:>@])],
1037
[ac_exceptions="$enableval"],
1038
[ac_exceptions="yes"])
1040
AC_ARG_ENABLE([cast-align-warnings],
1041
[AS_HELP_STRING([--enable-cast-align-warnings],
1042
[Toggle cast alignment warnings @<:@default=off@:>@])],
1043
[ac_warn_cast_align="$enableval"],
1044
[ac_warn_cast_align="yes"])
1320
AC_ARG_ENABLE([go-crazy],
1321
[AS_HELP_STRING([--enable-go-crazy],
1322
[Enables extra little warnings that might be too much @<:@default=off@:>@])],
1323
[ac_warn_go_crazy="$enableval"],
1324
[ac_warn_go_crazy="no"])
1046
1327
if test "$GCC" = "yes"
1048
if test "$ac_warn_cast_align" = "yes"
1050
W_CAST_ALIGN="-Wcast-align"
1052
W_CAST_ALIGN="-Wno-cast-align"
1055
1331
if test "$ac_warn_fail" = "yes"
1057
1333
W_FAIL="-Werror"
1059
BASE_WARNINGS="-Wall -Wextra ${W_FAIL} ${W_CAST_ALIGN} -fdiagnostics-show-option"
1335
BASE_WARNINGS="-W -Wall -Wextra ${W_FAIL}"
1061
1337
if test "$ac_warn_longlong" = "yes"
1143
1423
W_EFFC="-Weffc++"
1146
if test "$ac_warn_conversion" = "yes"
1148
W_CONVERSION="-Wconversion"
1151
CC_WARNINGS="${BASE_WARNINGS} ${GCC_PEDANTIC} ${W_UNREACHABLE} ${GPROF_PROFILING} ${GPROF_COVERAGE} ${W_SHADOW} ${W_CONVERSION}"
1152
CXX_WARNINGS="${BASE_WARNINGS} ${GXX_PEDANTIC} ${W_UNREACHABLE} ${GPROF_PROFILING} ${GPROF_COVERAGE} ${W_CAST} ${W_SHADOW} ${W_EFFC} ${W_CONVERSION}"
1154
if test "$ac_exceptions" = "no"
1156
NO_EXCEPTIONS="-fno-exceptions"
1157
W_EXCEPTIONS="-fexceptions"
1426
if test "$ac_warn_gocrazy" = "yes"
1428
W_CRAZY="-Wshadow -Wconversion -Winvalid-pch"
1431
CC_WARNINGS="${C99_SUPPORT_HACK} ${BASE_WARNINGS} ${GCC_PEDANTIC} ${W_UNREACHABLE} ${GPROF_PROFILING} ${GPROF_COVERAGE} ${W_CRAZY}"
1432
CXX_WARNINGS="${BASE_WARNINGS} ${GXX_PEDANTIC} ${W_UNREACHABLE} ${GPROF_PROFILING} ${GPROF_COVERAGE} ${W_CAST} ${W_EFFC} ${W_CRAZY}"
1434
NO_EXCEPTIONS="-fno-exceptions"
1435
W_EXCEPTIONS="-fexceptions"
1436
NO_UNUSED_MACROS="-Wno-unused-macros"
1159
1437
NO_REDUNDANT_DECLS="-Wno-redundant-decls"
1160
PROTOSKIP_WARNINGS="-Wno-effc++ -Wno-shadow"
1438
# Disable exceptions as they seams to create problems with gcc and threads.
1439
# drizzled doesn't use run-time-type-checking, so we disable it.
1440
AM_CXXFLAGS="${AM_CXXFLAGS} -fno-rtti"
1441
CPPFLAGS="${CPPFLAGS} -fpch-deps"
1162
1443
if test "$SUNCC" = "yes"
1164
if test "$ac_datarace" = "yes"
1166
AM_CFLAGS="-xinstrument=datarace ${AM_CFLAGS}"
1167
AM_CXXFLAGS="-xinstrument=datarace ${AM_CXXFLAGS}"
1170
if test "$ac_warn_fail" = "yes"
1172
W_FAIL="-errwarn=%all"
1175
CC_WARNINGS="-v -errtags=yes -erroff=E_ATTRIBUTE_NOT_VAR ${W_FAIL}"
1176
CXX_WARNINGS="+w +w2 -xport64 -errtags=yes -erroff=attrskipunsup,doubunder,reftotemp,inllargeuse,truncwarn1,signextwarn,inllargeint ${W_FAIL}"
1177
PROTOSKIP_WARNINGS="-erroff=attrskipunsup,doubunder,reftotemp,wbadinitl,identexpected,inllargeuse,truncwarn1,signextwarn"
1178
NO_UNREACHED="-erroff=E_STATEMENT_NOT_REACHED"
1179
if test "$ac_exceptions" = "no"
1181
NO_EXCEPTIONS="-features=no%except"
1182
W_EXCEPTIONS="-features=except"
1445
CC_WARNINGS="-v -xc99=all -errtags=yes"
1446
CXX_WARNINGS="+w +w2 -xport64 -errtags=yes -erroff=attrskipunsup -compat=5"
1447
NO_EXCEPTIONS="-features=no%except"
1448
W_EXCEPTIONS="-features=except"
1450
AM_CXXFLAGS="${CXX_WARNINGS} ${NO_EXCEPTIONS} ${AM_CXXFLAGS}"
1451
AM_CFLAGS="${CC_WARNINGS} ${AM_CFLAGS}"
1185
1453
AC_SUBST(NO_EXCEPTIONS)
1186
1454
AC_SUBST(W_EXCEPTIONS)
1455
AC_SUBST(NO_UNUSED_MACROS)
1189
1456
AC_SUBST(NO_REDUNDANT_DECLS)
1190
AC_SUBST(PROTOSKIP_WARNINGS)
1191
AC_SUBST(NO_UNREACHED)
1193
if test "x${gl_LIBOBJS}" != "x"
1195
if test "$GCC" = "yes"
1197
AM_CPPFLAGS="-isystem \$(top_srcdir)/gnulib -isystem \$(top_builddir)/gnulib ${AM_CPPFLAGS}"
1199
AM_CPPFLAGS="-I\$(top_srcdir)/gnulib -I\$(top_builddir)/gnulib ${AM_CPPFLAGS}"
1203
AM_CPPFLAGS="-I\$(top_srcdir) -I\$(top_builddir) ${AM_CPPFLAGS}"
1204
AM_CFLAGS="${CC_WARNINGS} ${AM_CFLAGS}"
1205
AM_CXXFLAGS="${CXX_WARNINGS} ${W_EXCEPTIONS} ${AM_CXXFLAGS}"
1207
dnl Must be done once we turn on warnings and such
1209
[whether __attribute__ visibility "hidden" is supported],
1210
[ac_cv_can_use_hidden_],[
1215
__attribute__((visibility ("hidden")))
1219
[ac_cv_can_use_hidden_=yes],
1220
[ac_cv_can_use_hidden_=no])
1222
if test "$ac_cv_can_use_hidden_" = "yes"
1224
AC_DEFINE(HAVE_ATTR_HIDDEN, 1,
1225
[Define to 1 if you have support for __attribute__((visibility("hidden")))])
1228
AC_SUBST([AM_CPPFLAGS])
1458
AC_SUBST([GLOBAL_CPPFLAGS],['-I$(top_srcdir) -I$(top_builddir)'])
1459
AC_SUBST([AM_CPPFLAGS],['${GLOBAL_CPPFLAGS}'])
1229
1460
AC_SUBST([AM_CFLAGS])
1230
1461
AC_SUBST([AM_CXXFLAGS])
1463
# Some usefull subst
1233
AC_SUBST(pkgplugindir,"\$(pkglibdir)/plugin")
1467
# Set configuration options for make_binary_distribution
1468
case $SYSTEM_TYPE in
1470
MAKE_BINARY_DISTRIBUTION_OPTIONS="$MAKE_BINARY_DISTRIBUTION_OPTIONS --no-strip"
1473
: # no change for other platforms yet
1476
AC_SUBST(MAKE_BINARY_DISTRIBUTION_OPTIONS)
1235
1478
dnl GCC Precompiled Header Support
1236
1479
dnl re-enable later
1237
1480
dnl AM_CONDITIONAL([BUILD_GCC_PCH],[test "$GCC" = "yes"])
1238
1481
AM_CONDITIONAL([BUILD_GCC_PCH],[test "no" = "yes"])
1240
AC_CONFIG_FILES(Makefile dnl
1483
AC_CONFIG_FILES(Makefile extra/Makefile mysys/Makefile dnl
1484
mystrings/Makefile storage/Makefile dnl
1242
1485
po/Makefile.in dnl
1243
drizzled/message/Makefile dnl
1486
libdrizzle/Makefile client/Makefile dnl
1244
1487
drizzled/Makefile dnl
1488
drizzled/field/Makefile dnl
1489
drizzled/item/Makefile dnl
1490
drizzled/serialize/Makefile dnl
1491
drizzled/functions/Makefile dnl
1492
drizzled/functions/str/Makefile dnl
1493
drizzled/functions/time/Makefile dnl
1494
drizzled/util/Makefile dnl
1495
drizzled/sql_builtin.cc dnl
1245
1496
support-files/Makefile dnl
1246
1497
tests/Makefile tests/install_test_db dnl
1247
support-files/drizzle.server support-files/drizzle-log-rotate
1248
support-files/smf/Makefile dnl
1249
support-files/smf/install.sh dnl
1250
support-files/smf/drizzle.xml dnl
1251
support-files/smf/drizzle)
1253
scheduling_plugins_available="
1258
for sched_plugin in $scheduling_plugins_available
1260
varname="\${with_plugin_${sched_plugin}}"
1261
result=`eval "echo $varname"`
1262
if test "x$result" = "xyes"
1264
scheduling_plugins="$sched_plugin $scheduling_plugins"
1499
drizzled/drizzled_safe support-files/libdrizzle.pc dnl
1500
support-files/drizzle.server support-files/drizzle-log-rotate)
1502
AC_CONFIG_COMMANDS([default], , test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h)
1504
# Ensure that table handlers gets all modifications to CFLAGS/CXXFLAGS
1505
AC_CONFIG_COMMANDS_POST(ac_configure_args="$ac_configure_args CFLAGS='$CFLAGS' CXXFLAGS='$CXXFLAGS' AM_CFLAGS='$AM_CFLAGS' AM_CXXFLAGS='$AM_CXXFLAGS'")
1271
echo "Configuration summary for $PACKAGE_NAME version $VERSION RELEASE_COMMENT"
1510
echo "Configuration summary for $PACKAGE_NAME version $VERSION"
1273
1512
echo " * Installation prefix: $prefix"
1274
echo " * System type: $host_vendor-$host_os"
1513
echo " * System type: $SYSTEM_TYPE"
1275
1514
echo " * Host CPU: $host_cpu"
1276
1515
echo " * C Compiler: $CC_VERSION"
1277
1516
echo " * C++ Compiler: $CXX_VERSION"