39
39
ac_build_drizzle="yes"
42
# Canonicalize the configuration name.
44
AC_DEFINE_UNQUOTED([HOST_VENDOR], ["$host_vendor"],[Vendor of Build System])
45
AC_DEFINE_UNQUOTED([HOST_OS], ["$host_os"], [OS of Build System])
46
AC_DEFINE_UNQUOTED([HOST_CPU], ["$host_cpu"], [CPU of Build System])
48
AC_DEFINE_UNQUOTED([TARGET_VENDOR], ["$target_vendor"],[Vendor of Target System])
49
AC_DEFINE_UNQUOTED([TARGET_OS], ["$target_os"], [OS of Target System])
50
AC_DEFINE_UNQUOTED([TARGET_CPU], ["$target_cpu"], [CPU of Target System])
56
AC_SUBST(TARGET_LINUX)
57
AC_DEFINE([TARGET_OS_LINUX], [1], [Whether we build for Linux])
62
AC_DEFINE([TARGET_OS_OSX], [1], [Whether we build for OSX])
66
AC_SUBST(TARGET_SOLARIS)
67
AC_DEFINE([TARGET_OS_SOLARIS], [1], [Whether we are building for Solaris])
73
42
AC_PATH_PROG(GPERF, gperf)
74
43
AS_IF([test "x$GPERF" = "x"],
75
44
AC_MSG_ERROR("Drizzle requires gperf to build."))
103
#--------------------------------------------------------------------
104
# Check for libpthread
105
#--------------------------------------------------------------------
107
ACX_PTHREAD(,AC_MSG_ERROR(could not find libpthread))
108
LIBS="${PTHREAD_LIBS} ${LIBS}"
109
AM_CFLAGS="${PTHREAD_CFLAGS} ${AM_CFLAGS}"
112
#--------------------------------------------------------------------
113
# Check for Google Proto Buffers
114
#--------------------------------------------------------------------
117
AC_LIB_HAVE_LINKFLAGS(protobuf,pthread,
118
[#include <google/protobuf/descriptor.h>
120
[google::protobuf::FileDescriptor* file;],system)
121
AS_IF([test x$ac_cv_libprotobuf = xno],
122
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.]))
124
AC_CACHE_CHECK([if protobuf is recent enough], [drizzle_cv_protobuf_recent],
125
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
126
#include <google/protobuf/descriptor.h>
127
#if GOOGLE_PROTOBUF_VERSION < 2000002
128
# error Your version of Protobuf is too old
131
[drizzle_cv_protobuf_recent=yes],
132
[drizzle_cv_protobuf_recent=no])])
133
if test "$drizzle_cv_protobuf_recent" = "no"
135
AC_MSG_ERROR([Your version of Google Protocol Buffers is too old. Drizzle requires at least version 2.0.2])
138
AC_PATH_PROG([PROTOC],[protoc],[no],[$LIBPROTOBUF_PREFIX/bin:$PATH])
139
if test "x$PROTOC" = "xno"
141
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.])
72
PANDORA_REQUIRE_PTHREAD
74
PANDORA_REQUIRE_LIBPROTOBUF
75
PANDORA_PROTOBUF_RECENT
76
PANDORA_REQUIRE_PROTOC
146
78
#--------------------------------------------------------------------
147
79
# Check for libuuid
546
478
fdatasync fpresetsticky fpsetmask fsync \
547
479
getpassphrase getpwnam \
548
480
getpwuid getrlimit getrusage index initgroups isnan \
549
localtime_r gethrtime gmtime_r \
481
localtime_r log log2 gethrtime gmtime_r \
551
483
mkstemp mlockall poll pread pthread_attr_create mmap mmap64 \
552
484
pthread_attr_getstacksize pthread_attr_setprio pthread_attr_setschedparam \
757
689
drizzled_builtin_list=`echo $drizzled_builtin_list | sed 's/, *$//'`
758
690
AC_DEFINE_UNQUOTED([DRIZZLED_BUILTIN_LIST],[$drizzled_builtin_list],
759
691
[List of plugins to be loaded in sql_builtin.cc])
692
AC_SUBST(drizzled_plugin_test_list)
760
693
AC_SUBST(drizzled_plugin_libs)
762
695
AC_SUBST(mysql_plugin_dirs)