24
24
AC_CONFIG_SRCDIR([drizzled/drizzled.cc])
25
25
AC_CONFIG_AUX_DIR([config])
27
PANDORA_CANONICAL_TARGET(less-warnings, require-cxx, force-gcc42, version-from-vc)
27
PANDORA_CANONICAL_TARGET(less-warnings, warnings-always-on, require-cxx, force-gcc42, version-from-vc)
29
LIBDRIZZLE_LIBRARY_VERSION=3:0:0
29
LIBDRIZZLE_LIBRARY_VERSION=1:0:0
40
40
# +- increment if interfaces have been added, removed or
42
42
AC_SUBST(LIBDRIZZLE_LIBRARY_VERSION)
43
OLDLIBDRIZZLE_LIBRARY_VERSION=2:0:1
47
# current:revision:age
49
# | | +- increment if interfaces have been added
50
# | | set to zero if interfaces have been
51
# | | removed or changed
52
# | +- increment if source code has changed
53
# | set to zero if current is incremented
54
# +- increment if interfaces have been added, removed or
56
AC_SUBST(OLDLIBDRIZZLE_LIBRARY_VERSION)
58
libdrizzleincludedir='${includedir}/libdrizzle-2.0'
59
libdrizzleinstalldir='${libdrizzleincludedir}/libdrizzle'
60
AC_SUBST(libdrizzleinstalldir)
61
AC_SUBST(libdrizzleincludedir)
63
oldlibdrizzleincludedir='${includedir}/libdrizzle-1.0'
64
oldlibdrizzleinstalldir='${oldlibdrizzleincludedir}/libdrizzle'
65
AC_SUBST(oldlibdrizzleinstalldir)
66
AC_SUBST(oldlibdrizzleincludedir)
68
44
# libdrizzle versioning when linked with GNU ld.
69
45
AS_IF([test "$lt_cv_prog_gnu_ld" = "yes"],[
77
53
localstatedir='${prefix}/var/drizzle'
81
[AS_HELP_STRING([--without-server],
82
[Do not build the drizzled server.])],
83
[ pandora_cv_skip_requires="$withval" ]
84
[ pandora_cv_skip_requires=no ])
86
AS_IF([test "x${pandora_cv_skip_requires}" != "xno"],[
88
AC_PATH_PROG(GPERF, gperf)
89
AS_IF([test "x$GPERF" = "x"],
90
AC_MSG_ERROR("Drizzle requires gperf to build."))
92
# libexecinfo provides backtrace_symbols on FreeBSD
93
AC_SEARCH_LIBS(backtrace_symbols, [execinfo])
97
DRIZZLE_STACK_DIRECTION
99
PANDORA_USE_BETTER_MALLOC
100
AC_CHECK_FUNC(inet_ntoa, [], [AC_CHECK_LIB(nsl, inet_ntoa)])
103
AC_ARG_WITH([server-suffix],
104
[AS_HELP_STRING([--with-server-suffix],
105
[Append value to the version string.])],
106
[ DRIZZLE_SERVER_SUFFIX="$withval" ]
107
[ DRIZZLE_SERVER_SUFFIX= ])
109
AC_DEFINE_UNQUOTED([DRIZZLE_SERVER_SUFFIX],[$DRIZZLE_SERVER_SUFFIX],
110
[Append value to the version string])
112
AC_DEFINE([BUILDING_DRIZZLED],[1],
113
[Define indicating we are building and not consuming drizzle.])
116
AC_ARG_WITH([drizzled-user],
117
[AS_HELP_STRING([--with-drizzled-user=username],
118
[What user the drizzled daemon shall be run as.
119
@<:@default=drizzle@:>@])],
120
[ DRIZZLED_USER="$withval" ],
121
[ DRIZZLED_USER=drizzle ])
122
AC_SUBST(DRIZZLED_USER)
125
AC_ARG_WITH([comment],
126
[AS_HELP_STRING([--with-comment],
127
[Comment about compilation environment. @<:@default=off@:>@])],
128
[with_comment=$withval],
130
AS_IF([test "$with_comment" != "no"],[
131
COMPILATION_COMMENT=$with_comment
133
COMPILATION_COMMENT="Source distribution (${PANDORA_RELEASE_COMMENT})"
135
AC_DEFINE_UNQUOTED([COMPILATION_COMMENT],["$COMPILATION_COMMENT"],
136
[Comment about compilation environment])
56
AC_PATH_PROG(GPERF, gperf)
57
AS_IF([test "x$GPERF" = "x"],
58
AC_MSG_ERROR("Drizzle requires gperf to build."))
60
# libexecinfo provides backtrace_symbols on FreeBSD
61
AC_SEARCH_LIBS(backtrace_symbols, [execinfo])
139
65
PANDORA_REQUIRE_LIBPROTOBUF
140
66
PANDORA_PROTOBUF_REQUIRE_VERSION([2.1.0])
149
75
PANDORA_REQUIRE_LIBDL
78
DRIZZLE_STACK_DIRECTION
80
PANDORA_USE_BETTER_MALLOC
152
82
PANDORA_DRIZZLE_BUILD
83
AC_DEFINE([BUILDING_DRIZZLED],[1],
84
[Define indicating we are building and not consuming drizzle.])
153
86
PANDORA_HAVE_BOOST_TEST
154
87
PANDORA_HAVE_LIBSQLITE3
89
AC_CHECK_FUNC(inet_ntoa, [], [AC_CHECK_LIB(nsl, inet_ntoa)])
92
AC_ARG_WITH([server-suffix],
93
[AS_HELP_STRING([--with-server-suffix],
94
[Append value to the version string.])],
95
[ DRIZZLE_SERVER_SUFFIX="$withval" ]
96
[ DRIZZLE_SERVER_SUFFIX= ])
98
AC_DEFINE_UNQUOTED([DRIZZLE_SERVER_SUFFIX],[$DRIZZLE_SERVER_SUFFIX],
99
[Append value to the version string])
102
AC_ARG_WITH([drizzled-user],
103
[AS_HELP_STRING([--with-drizzled-user=username],
104
[What user the drizzled daemon shall be run as.
105
@<:@default=drizzle@:>@])],
106
[ DRIZZLED_USER="$withval" ],
107
[ DRIZZLED_USER=drizzle ])
108
AC_SUBST(DRIZZLED_USER)
111
AC_ARG_WITH([comment],
112
[AS_HELP_STRING([--with-comment],
113
[Comment about compilation environment. @<:@default=off@:>@])],
114
[with_comment=$withval],
116
AS_IF([test "$with_comment" != "no"],[
117
COMPILATION_COMMENT=$with_comment
119
COMPILATION_COMMENT="Source distribution (${PANDORA_RELEASE_COMMENT})"
121
AC_DEFINE_UNQUOTED([COMPILATION_COMMENT],["$COMPILATION_COMMENT"],
122
[Comment about compilation environment])
158
125
#########################################################################
179
147
AC_CONFIG_FILES(Makefile dnl
180
148
tests/Makefile dnl
181
149
drizzled/plugin/version.h dnl
182
support-files/drizzle7.pc dnl
183
support-files/libdrizzle-1.0.pc dnl
184
support-files/libdrizzle-2.0.pc dnl
185
150
support-files/smf/install.sh dnl
186
151
support-files/smf/drizzle.xml dnl
187
152
support-files/smf/drizzle)