20
20
AC_PREREQ(2.59)dnl Minimum Autoconf version required.
21
21
dnl Version from the AC_INIT call below is overridden later
22
22
dnl So don't update it here
23
AC_INIT([drizzle7],[7],[http://bugs.launchpad.net/drizzle])
23
AC_INIT([drizzle],[7],[http://bugs.launchpad.net/drizzle])
24
24
AC_CONFIG_SRCDIR([drizzled/drizzled.cc])
25
AC_CONFIG_AUX_DIR([config])
27
PANDORA_CANONICAL_TARGET(less-warnings, warnings-always-on, require-cxx, force-gcc42, version-from-vc, skip-visibility)
29
LIBDRIZZLE_LIBRARY_VERSION=1:0:0
33
# current:revision:age
35
# | | +- increment if interfaces have been added
36
# | | set to zero if interfaces have been
37
# | | removed or changed
38
# | +- increment if source code has changed
39
# | set to zero if current is incremented
40
# +- increment if interfaces have been added, removed or
42
AC_SUBST(LIBDRIZZLE_LIBRARY_VERSION)
44
# libdrizzle versioning when linked with GNU ld.
45
AS_IF([test "$lt_cv_prog_gnu_ld" = "yes"],[
46
LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_srcdir)/config/drizzle.ver"
48
AC_SUBST(LD_VERSION_SCRIPT)
25
AC_CONFIG_AUX_DIR(config)
26
AC_CONFIG_HEADERS([config.h])
27
AC_CONFIG_MACRO_DIR([m4])
29
PANDORA_CANONICAL_TARGET(less-warnings, warnings-always-on, use-gnulib, require-cxx, force-gcc42, skip-visibility, version-from-vc)
50
31
dnl Set the default datadir location to /usr/local/var/drizzle. If a
51
32
dnl localstatedir is explicitly given, just use that.
57
38
AS_IF([test "x$GPERF" = "x"],
58
39
AC_MSG_ERROR("Drizzle requires gperf to build."))
60
# libexecinfo provides backtrace_symbols on FreeBSD
61
AC_SEARCH_LIBS(backtrace_symbols, [execinfo])
41
AC_CHECK_PROGS(YACC, ['bison -y'])
42
AS_IF([test "x$YACC" = "x" -a "$ac_cv_building_from_bzr" = "yes"],[
43
AC_MSG_ERROR(["bison is required for Drizzle to build from a bzr branch"])
63
48
PANDORA_RUN_CPPLINT
65
50
PANDORA_REQUIRE_LIBPROTOBUF
70
55
PANDORA_REQUIRE_PTHREAD
71
56
PANDORA_REQUIRE_LIBUUID
57
PANDORA_REQUIRE_LIBDRIZZLE
72
58
PANDORA_REQUIRE_LIBZ
73
59
PANDORA_REQUIRE_LIBPCRE
74
60
PANDORA_REQUIRE_LIBREADLINE
75
61
PANDORA_REQUIRE_LIBDL
78
DRIZZLE_STACK_DIRECTION
80
64
PANDORA_USE_BETTER_MALLOC
82
66
PANDORA_DRIZZLE_BUILD
83
AC_DEFINE([BUILDING_DRIZZLED],[1],
84
[Define indicating we are building and not consuming drizzle.])
87
PANDORA_HAVE_LIBSQLITE3
89
AC_CHECK_FUNC(inet_ntoa, [], [AC_CHECK_LIB(nsl, inet_ntoa)])
92
69
AC_ARG_WITH([server-suffix],
122
99
[Comment about compilation environment])
102
AC_ARG_WITH([max-indexes],
103
AS_HELP_STRING([--with-max-indexes=N],
104
[Sets the maximum number of indexes per table, default 64]),
105
[max_indexes="$withval"],
107
AC_MSG_CHECKING([max indexes per table])
108
AC_DEFINE_UNQUOTED([MAX_INDEXES], [$max_indexes],
109
[Maximum number of indexes per table])
110
AC_MSG_RESULT([$max_indexes])
125
113
#########################################################################
128
116
dnl Has to be done late, as the plugin may need to check for existence of
129
117
dnl functions tested above
130
PANDORA_PLUGINS([drizzled/module/load_list.h])
118
PANDORA_PLUGINS([drizzled/plugin/config.h])
132
120
dnl GCC Precompiled Header Support
133
121
dnl re-enable later
134
122
dnl AM_CONDITIONAL([BUILD_GCC_PCH],[test "$GCC" = "yes"])
135
123
AM_CONDITIONAL([BUILD_GCC_PCH],[test "no" = "yes"])
137
AS_IF([test "$lt_cv_prog_gnu_ld" = "yes"],[
138
LDFLAGS="${LDFLAGS} ${LD_VERSION_SCRIPT}"
143
125
AC_CONFIG_FILES(Makefile dnl
144
128
tests/Makefile dnl
145
drizzled/plugin/version.h dnl
146
support-files/libdrizzle.pc dnl
147
129
support-files/drizzle.server support-files/drizzle-log-rotate
148
130
support-files/smf/install.sh dnl
149
support-files/drizzle.spec dnl
150
131
support-files/smf/drizzle.xml dnl
151
132
support-files/smf/drizzle)
173
154
echo " * Installation prefix: $prefix"
174
155
echo " * System type: $host_vendor-$host_os"
175
echo " * pandora-build version: PANDORA_CANONICAL_VERSION"
176
156
echo " * Host CPU: $host_cpu"
177
157
echo " * C Compiler: $CC_VERSION"
178
158
echo " * C++ Compiler: $CXX_VERSION"
159
echo " * Build auth_pam: $ac_cv_libpam"
179
160
echo " * Assertions enabled: $ac_cv_assert"
180
161
echo " * Debug enabled: $with_debug"
181
162
echo " * Profiling enabled: $ac_profiling"
182
163
echo " * Coverage enabled: $ac_coverage"
183
164
echo " * Warnings as failure: $ac_cv_warnings_as_errors"
165
echo " * C++ cstdint location: $ac_cv_cxx_cstdint"
166
echo " * C++ hash_map location: $ac_cv_cxx_hash_map"
167
echo " * C++ hash namespace: $ac_cv_cxx_hash_namespace"
168
echo " * C++ shared_ptr namespace: $ac_cv_shared_ptr_namespace"
191
echo "* NOTE: You are on FreeBSD. BSD make will not work."
193
echo "* use 'gmake' To build Drizzle"
195
echo "* And ensure that /usr/local/lib/gcc44 is in your LD_LIBRARY_PATH"
202
172
dnl libtoolize scans configure.ac and needs to see some text
203
173
m4_define([LIBTOOLIZE_AC_INIT], [])