~drizzle-trunk/drizzle/development

575.4.7 by Monty Taylor
More header cleanup.
1
dnl -*- bash -*-
1 by brian
clean slate
2
dnl Process this file with autoconf to produce a configure script.
3
77.1.65 by Monty Taylor
We don't really require 2.61, 2.59 is actually fine.
4
AC_PREREQ(2.59)dnl		Minimum Autoconf version required.
1 by brian
clean slate
5
779.2.11 by Monty Taylor
General build cleanup - removed cruft, removed depreated checks.
6
AC_INIT([drizzle],[7.0.0],[http://bugs.launchpad.net/drizzle])
214 by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing).
7
AC_CONFIG_SRCDIR([drizzled/drizzled.cc])
39 by Brian Aker
Move build helper files into config
8
AC_CONFIG_AUX_DIR(config)
236.1.9 by Monty Taylor
Cleaned up configure.ac line.
9
AC_CONFIG_HEADERS([config.h])
435.1.1 by Monty Taylor
Fixed -O3 optimization for gcc.
10
722.1.3 by Monty Taylor
Cleaned up a few build things.
11
# Setting CFLAGS here prevents AC_CANONICAL_TARGET from injecting them
12
SAVE_CFLAGS=${CFLAGS}
13
SAVE_CXXFLAGS=${CXXFLAGS}
14
CFLAGS=
15
CXXFLAGS=
435.1.1 by Monty Taylor
Fixed -O3 optimization for gcc.
16
28.1.33 by Monty Taylor
Added -Wall
17
AC_CANONICAL_TARGET
722.1.3 by Monty Taylor
Cleaned up a few build things.
18
19
CFLAGS=${SAVE_CFLAGS}
20
CXXFLAGS=${SAVE_CXXFLAGS}
21
722.1.1 by Monty Taylor
Removed Gnu-Make-isms, since there were only two and we really don't need them and I'm sick of having make break when I accidentally type "make" (silly me) on Solaris.
22
AM_INIT_AUTOMAKE(nostdinc -Wall -Werror)
722.1.3 by Monty Taylor
Cleaned up a few build things.
23
if test "x${enable_dependency_tracking}" = "x"
24
then
25
  enable_dependency_tracking=yes
26
fi
27
28
1 by brian
clean slate
29
# See the libtool docs for information on how to do shared lib versions.
383.1.47 by Monty Taylor
Couple of tiny changes.
30
SHARED_LIB_MAJOR_VERSION=1
1 by brian
clean slate
31
SHARED_LIB_VERSION=$SHARED_LIB_MAJOR_VERSION:0:0
722.1.3 by Monty Taylor
Cleaned up a few build things.
32
AC_SUBST(SHARED_LIB_MAJOR_VERSION)
33
AC_SUBST(SHARED_LIB_VERSION)
34
528 by Monty Taylor
Re-arragned a few things in configure.ac.
35
36
dnl Checks for programs.
37
AC_PROG_CC
755.1.6 by Monty Taylor
One more stupid change.
38
AC_PROG_CXX
554 by Monty
Added impl of macro missing from old systems.
39
722.1.3 by Monty Taylor
Cleaned up a few build things.
40
ACX_USE_SYSTEM_EXTENSIONS
528 by Monty Taylor
Re-arragned a few things in configure.ac.
41
AC_CXX_HEADER_STDCXX_98
42
if test "$ac_cv_cxx_stdcxx_98" = "no"
43
then
44
  AC_MSG_ERROR([C++ Compiler required to compile Drizzle])
45
fi
46
AC_PROG_CPP
47
AM_PROG_CC_C_O
755.1.6 by Monty Taylor
One more stupid change.
48
# We need an ANSI C compiler
49
AM_PROG_CC_STDC
50
528 by Monty Taylor
Re-arragned a few things in configure.ac.
51
520.4.37 by Monty Taylor
Added some Sun compile flags.
52
AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
722.1.3 by Monty Taylor
Cleaned up a few build things.
53
ifdef([AC_PROG_CC_C99],[
54
    AC_PROG_CC_C99([$1],[$2],[$3])
55
],[
56
if "x$GCC" = "xyes"
57
then
58
  C99_SUPPORT_HACK="-std=gnu99"
59
fi
60
if "x$SUNCC" = "xyes"
61
then
62
  C99_SUPPORT_HACK="-xc99"
63
fi
64
])
520.4.37 by Monty Taylor
Added some Sun compile flags.
65
435.1.1 by Monty Taylor
Fixed -O3 optimization for gcc.
66
755.1.6 by Monty Taylor
One more stupid change.
67
# We need an assembler, too
68
AM_PROG_AS
69
CCASFLAGS="$CCASFLAGS $ASFLAGS"
70
1 by brian
clean slate
71
72
# Set all version vars based on $VERSION. How do we do this more elegant ?
73
# Remember that regexps needs to quote [ and ] since this is run through m4
74
# We take some made up examples
75
#
76
#  VERSION                  5.1.40sp1-alpha     5.0.34a
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
77
#  DRIZZLE_NO_DASH_VERSION    5.1.40sp1           5.0.34a
78
#  DRIZZLE_NUMERIC_VERSION    5.1.40              5.0.34
79
#  DRIZZLE_BASE_VERSION       5.1                 5.0
80
#  DRIZZLE_VERSION_ID         50140               50034
1 by brian
clean slate
81
#
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
82
DRIZZLE_NO_DASH_VERSION=`echo $VERSION | sed -e "s|-.*$||"`
83
DRIZZLE_NUMERIC_VERSION=`echo $DRIZZLE_NO_DASH_VERSION | sed -e "s|[[a-z]][[a-z0-9]]*$||"`
84
DRIZZLE_BASE_VERSION=`echo $DRIZZLE_NUMERIC_VERSION | sed -e "s|\.[[^.]]*$||"`
85
DRIZZLE_VERSION_ID=`echo $DRIZZLE_NUMERIC_VERSION | \
1 by brian
clean slate
86
    awk -F. '{printf "%d%0.2d%0.2d", $1, $2, $3}'`
722.1.3 by Monty Taylor
Cleaned up a few build things.
87
AC_DEFINE_UNQUOTED(DRIZZLE_BASE_VERSION,["$DRIZZLE_BASE_VERSION"],
88
                   [Major and minor version])
89
AC_DEFINE_UNQUOTED([DRIZZLE_VERSION_ID],[$DRIZZLE_VERSION_ID],
90
		   [Version ID that can be easily used for numeric comparison])
1 by brian
clean slate
91
92
# The port should be constant for a LONG time
301 by Brian Aker
Clean up port startup
93
DRIZZLE_TCP_PORT_DEFAULT=4427
1 by brian
clean slate
94
779.2.15 by Monty Taylor
More gettext stuff.
95
# We need to hack in some of the non-standard locations that solaris sticks
96
# stuff in. This makes me very sad.
97
case "$host_os" in
98
  solaris*)
99
    CPPFLAGS="${CPPFLAGS} -I/opt/csw/include -I/opt/local/include"
100
    LDFLAGS="${LDFLAGS} -L/opt/csw/lib -L/opt/csw/lib"
101
    ;;
102
esac
103
722.2.9 by Monty Taylor
I _think_ I've got the plug.in triggering rebuild thing going on right.
104
m4_include(m4/dtrace.m4)
722.1.3 by Monty Taylor
Cleaned up a few build things.
105
722.2.9 by Monty Taylor
I _think_ I've got the plug.in triggering rebuild thing going on right.
106
m4_include(m4/character_sets.m4)
722.1.3 by Monty Taylor
Cleaned up a few build things.
107
AC_SUBST(AVAILABLE_LANGUAGES)
108
722.2.9 by Monty Taylor
I _think_ I've got the plug.in triggering rebuild thing going on right.
109
m4_include(m4/gettext.m4)
779.2.15 by Monty Taylor
More gettext stuff.
110
AM_GNU_GETTEXT(external, need-formatstring-macros)
384 by Monty Taylor
Expanded po subdir trap to catch the case where we're setting programs to :.
111
AM_CONDITIONAL([BUILD_GETTEXT],[test "x$MSGMERGE" != "x" -a "x$MSGMERGE" != "x:"])
1 by brian
clean slate
112
722.1.3 by Monty Taylor
Cleaned up a few build things.
113
# Set this for plugins to use
114
ac_build_drizzle="yes"
441 by Monty Taylor
Move unconditional defines to config.h.
115
116
1 by brian
clean slate
117
# Canonicalize the configuration name.
118
119
# Check whether --with-system-type or --without-system-type was given.
28.1.33 by Monty Taylor
Added -Wall
120
AC_ARG_WITH([system-type],
121
    [AS_HELP_STRING([--with-system-type],
122
       [Set the system type, like "sun-solaris10"])],
1 by brian
clean slate
123
    [SYSTEM_TYPE="$withval"],
124
    [SYSTEM_TYPE="$host_vendor-$host_os"])
28.1.33 by Monty Taylor
Added -Wall
125
AC_ARG_WITH([machine-type],
126
    [AS_HELP_STRING([--with-machine-type],
127
       [Set the machine type, like "powerpc"])],
1 by brian
clean slate
128
    [MACHINE_TYPE="$withval"],
129
    [MACHINE_TYPE="$host_cpu"])
130
AC_SUBST(SYSTEM_TYPE)
131
AC_DEFINE_UNQUOTED([SYSTEM_TYPE], ["$SYSTEM_TYPE"],
132
                   [Name of system, eg sun-solaris])
133
AC_SUBST(MACHINE_TYPE)
134
AC_DEFINE_UNQUOTED([MACHINE_TYPE], ["$MACHINE_TYPE"],
135
                   [Machine type name, eg sparc])
136
137
# Detect intel x86 like processor
138
BASE_MACHINE_TYPE=$MACHINE_TYPE
139
case $MACHINE_TYPE in
140
  i?86) BASE_MACHINE_TYPE=i386 ;;
141
esac
142
143
AM_SANITY_CHECK
144
# This is needed is SUBDIRS is set
145
AC_PROG_MAKE_SET
146
481.1.9 by Monty Taylor
Added autoconf tests for location of cstdint and cinttypes. Use those in C++ programs now, so that we don't have to define _STDC_LIMIT_MACROS, etc by hand. Stop, in fact, defining those by hand.
147
520.4.41 by mordred
Fixed configure.ac to work cleanly on Solaris - and define some good compile flags.
148
case "$target_os" in
149
  *linux*)
150
  TARGET_LINUX="true"
151
  AC_SUBST(TARGET_LINUX)
152
  AC_DEFINE([TARGET_OS_LINUX], [1], [Whether we build for Linux])
153
    ;;
271 by Brian Aker
OSX fix
154
  *apple-darwin*)
520.4.41 by mordred
Fixed configure.ac to work cleanly on Solaris - and define some good compile flags.
155
    TARGET_OSX="true"
156
    AC_SUBST(TARGET_OSX)
271 by Brian Aker
OSX fix
157
    AC_DEFINE([TARGET_OS_OSX], [1], [Whether we build for OSX])
1 by brian
clean slate
158
    ;;
520.4.41 by mordred
Fixed configure.ac to work cleanly on Solaris - and define some good compile flags.
159
  *solaris*)
160
    TARGET_SOLARIS="true"
161
    AC_SUBST(TARGET_SOLARIS)
162
    AC_DEFINE([TARGET_OS_SOLARIS], [1], [Whether we are building for Solaris])
163
    ;;
1 by brian
clean slate
164
  *)
165
    ;;
166
esac
435.1.1 by Monty Taylor
Fixed -O3 optimization for gcc.
167
168
dnl AC_CANONICAL_HOST thinks it's a good idea to just set CFLAGS to 
169
dnl -g -O2 if you're running gcc. We would like to use something else, thanks.
170
if test "x${CFLAGS}" = "x-g -O2"
171
then
172
  CFLAGS=
173
fi
174
if test "x${CXXFLAGS}" = "x-g -O2"
175
then
176
  CXXFLAGS=
177
fi
178
520.4.41 by mordred
Fixed configure.ac to work cleanly on Solaris - and define some good compile flags.
179
DRIZZLE_CHECK_C_VERSION
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
180
DRIZZLE_CHECK_CXX_VERSION
1 by brian
clean slate
181
590.2.23 by Monty Taylor
Fixed a few things for solaris builds.
182
AC_SYS_LARGEFILE
183
230.3.1 by Monty Taylor
Bug 252805: ./configure not detecting missing g++
184
AC_PROG_AWK
185
28.1.33 by Monty Taylor
Added -Wall
186
if test "$ac_cv_c_compiler_gnu" = "yes"
1 by brian
clean slate
187
then
188
  AS="$CC -c"
189
  AC_SUBST(AS)
190
else
191
  AC_PATH_PROG(AS, as, as)
192
fi
193
779.1.25 by Monty Taylor
Put in LCOV checks. Put output in subdir.
194
AC_PATH_PROG(LCOV, lcov, lcov)
195
AC_PATH_PROG(GENHTML, genhtml, genhtml)
196
197
AM_CONDITIONAL(HAVE_LCOV,[test "$ac_cv_prog_lcov" != "no"])
198
446 by Monty Taylor
Moved GNU_SOURCE define to configure.
199
dnl TODO: This needs to go away and be replaced with _ISOC99_SOURCE
520.4.41 by mordred
Fixed configure.ac to work cleanly on Solaris - and define some good compile flags.
200
if test "$ac_cv_c_compiler_gnu" = "yes" -o "$target_os" = "linux-gnu"
446 by Monty Taylor
Moved GNU_SOURCE define to configure.
201
then
202
  AC_DEFINE([_GNU_SOURCE],[1],[Fix problem with S_ISLNK() on Linux])
203
fi
204
445 by Monty Taylor
Moved sun defines to configure.ac.
205
dnl  Solaris 9 include file <sys/feature_tests.h> refers to X/Open document
206
207
dnl  System Interfaces and Headers, Issue 5
208
209
dnl  saying we should define _XOPEN_SOURCE=500 to get POSIX.1c prototypes,
210
dnl  but apparently other systems (namely FreeBSD) don't agree.
211
212
dnl  On a newer Solaris 10, the above file recognizes also _XOPEN_SOURCE=600.
213
dnl  Furthermore, it tests that if a program requires older standard
214
dnl  (_XOPEN_SOURCE<600 or _POSIX_C_SOURCE<200112L) it cannot be
215
dnl  run on a new compiler (that defines _STDC_C99) and issues an #error.
216
dnl  It's also an #error if a program requires new standard (_XOPEN_SOURCE=600
217
dnl  or _POSIX_C_SOURCE=200112L) and a compiler does not define _STDC_C99.
218
219
dnl  To add more to this mess, Sun Studio C compiler defines _STDC_C99 while
220
dnl  C++ compiler does not!
221
455 by Monty Taylor
Rewored Sun C99 stuff in autoconf. (Trond... will this work?)
222
dnl TODO: Can _ISOC99_SOURCE be defined on all platforms and remove the 
223
dnl       Need for all of this? 
520.9.3 by mordred
zomg. Solaris actually builds all the way!!!
224
if test "$GCC" = "yes"
225
then
226
  case "$target_os" in
227
    *solaris*)
228
    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE=600"
229
    CXXFLAGS="${CXXFLAGS} -D__C99FEATURES__"
230
    ;;
231
  esac
232
fi
445 by Monty Taylor
Moved sun defines to configure.ac.
233
1 by brian
clean slate
234
AC_SUBST(NM)dnl
235
236
AC_PROG_INSTALL
237
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
238
579.1.1 by Toru Maesaka
Added tests for groupaad and useradd
239
# Look for "(group|user)add". 
240
# TODO: If the programs do not exist, inform the DBA that the user
241
#       was not created at the end of the install routine.
242
AC_CHECK_PROGS(GROUPADD, groupadd addgroup)
243
AC_CHECK_PROGS(USERADD, useradd adduser)
244
590.2.2 by Monty Taylor
Configure cleanups. Added generic search_for_lib m4 macro.
245
dnl Not critical since the generated file is distributed
629.1.1 by Monty Taylor
More solaris fixes.
246
AC_CHECK_PROGS(YACC, ['bison -y'])
77.1.70 by Monty Taylor
Added a failure if you don't have bison and you're building from a .bzr branch.
247
if test -z "$YACC" && test -d ".bzr"
248
then
249
  AC_MSG_ERROR(["bison is required for Drizzle to build from a bzr branch"])
250
fi
1 by brian
clean slate
251
779.2.7 by Monty Taylor
Removed search_for_lib. Now totally using AC_LIB_HAVE_LINKFLAGS.
252
1 by brian
clean slate
253
# The following is required for portable results of floating point calculations
254
# on PowerPC. The same must also be done for IA-64, but this options is missing
255
# in the IA-64 gcc backend.
256
257
if test "$GCC" = "yes"
258
then
259
  case "$host_cpu" in
260
    *ppc* | *powerpc*)
287.3.28 by Monty Taylor
Expanded the move to AM_CFLAGS and AM_CXXFLAGS. Now we should be more correct.
261
      AM_CFLAGS="$CFLAGS -mno-fused-madd"
262
      AM_CXXFLAGS="$CXXFLAGS -mno-fused-madd"
1 by brian
clean slate
263
    ;;
264
  esac
265
fi
520.4.40 by mordred
Added an option to specify --with-probuf=<location>
266
# Build optimized or debug version ?
267
# First check for gcc and g++
268
SYMBOLS_FLAGS="-g"
269
DEBUG_OPTIMIZE_CC=""
270
OPTIMIZE_CFLAGS="-O"
271
DEBUG_OPTIMIZE_CXX=""
272
OPTIMIZE_CXXFLAGS="-O"
273
if test "$GCC" = "yes"
274
then
275
  SYMBOLS_FLAGS="-ggdb3"
276
  DEBUG_OPTIMIZE_CC="-O0"
277
  OPTIMIZE_CFLAGS="-O3"
278
  DEBUG_OPTIMIZE_CXX="-O0"
279
  OPTIMIZE_CXXFLAGS="-O3"
280
fi
281
if test "$SUNCC" = "yes"
282
then
283
  DEBUG_OPTIMIZE_CC=""
685.1.20 by Monty Taylor
Fixed memalign for only on sparc.
284
  if test "$target_cpu" = "sparc"
285
  then
286
    MEMALIGN_FLAGS="-xmemalign=8s"
287
  fi
779.3.18 by Monty Taylor
Cleaned up warnings up through innodb.
288
  CXXFLAGS="${CXXFLAGS} -compat=5 -library=stlport4 -template=no%extdef -xlang=c99 ${MEMALIGN_FLAGS}"
779.1.12 by Monty Taylor
Possible build fixes for Solaris.
289
  CFLAGS="${CFLAGS} -xstrconst ${MEMALIGN_FLAGS}"
290
  SYMBOLS_FLAGS="-g"
291
  OPTIMIZE_FLAGS="-xO4 -xlibmil -xdepend"
292
  OPTIMIZE_CFLAGS="${OPTIMIZE_FLAGS}"
293
  OPTIMIZE_CXXFLAGS="${OPTIMIZE_FLAGS}"
520.4.40 by mordred
Added an option to specify --with-probuf=<location>
294
  DEBUG_OPTIMIZE_CXX=""
295
fi
296
779.3.18 by Monty Taylor
Cleaned up warnings up through innodb.
297
# We use libtool
298
AC_PROG_LIBTOOL
299
520.4.40 by mordred
Added an option to specify --with-probuf=<location>
300
dnl TODO: Remove this define once we are using 2.61 across the board.
301
# AX_HEADER_ASSERT
302
# ----------------
303
# Check whether to enable assertions.
304
AC_DEFUN([AX_HEADER_ASSERT],
305
[
306
  AC_MSG_CHECKING([whether to enable assertions])
307
  AC_ARG_ENABLE([assert],
308
    [AS_HELP_STRING([--disable-assert],
309
       [Turn off assertions])],
310
    [ac_cv_assert="no"],
311
    [ac_cv_assert="yes"])
312
  AC_MSG_RESULT([$ac_cv_assert])
313
])
314
315
AX_HEADER_ASSERT
316
317
CFLAGS="${SYMBOLS_FLAGS} ${CFLAGS}"
318
CXXFLAGS="${SYMBOLS_FLAGS} ${CXXFLAGS}"
319
320
AC_ARG_WITH([debug],
321
    [AS_HELP_STRING([--with-debug],
322
       [Add debug code/turns off optimizations (yes|no) @<:@default=no@:>@])],
323
    [with_debug=$withval],
324
    [with_debug=no])
325
if test "$with_debug" = "yes"
326
then
327
  # Medium debug.
328
  CFLAGS="$DEBUG_OPTIMIZE_CC -DDEBUG $CFLAGS ${SAVE_CFLAGS}"
329
  CXXFLAGS="$DEBUG_OPTIMIZE_CXX -DDEBUG $CXXFLAGS ${SAVE_CXXFLAGS}"
330
else
331
  # Optimized version. No debug
332
  CFLAGS="${OPTIMIZE_CFLAGS} ${CFLAGS} ${SAVE_CFLAGS}"
333
  CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS ${SAVE_CXXFLAGS}"
334
fi
1 by brian
clean slate
335
336
AC_SUBST(CC)
337
AC_SUBST(CFLAGS)
338
AC_SUBST(CXX)
339
AC_SUBST(CXXFLAGS)
340
AC_SUBST(ASFLAGS)
341
AC_SUBST(LD)
342
AC_SUBST(INSTALL_SCRIPT)
343
53.2.1 by Monty Taylor
Added --disable-pedantic-warnings and --enable-fail.
344
1 by brian
clean slate
345
export CC CXX CFLAGS LD LDFLAGS AR ARFLAGS
346
520.4.44 by mordred
A whole bunch of solaris/sun studio compile fixes.
347
AC_CXX_STL_HASH
348
AC_CXX_CSTDINT
349
AC_CXX_CINTTYPES
350
AC_CXX_CMATH
1 by brian
clean slate
351
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
352
DRIZZLE_PROG_AR
1 by brian
clean slate
353
261.2.3 by Monty Taylor
Moved libdrizzle.ver.in to libdrizzle.ver.
354
# libdrizzle versioning when linked with GNU ld.
632.1.7 by Monty
Reworked grep change to work with old crappy autoconfs.
355
if test "x$EGREP" != "x"
356
then
357
  if test "$lt_cv_prog_gnu_ld" = "yes" -a $LD --version 2>/dev/null|${EGREP} -q GNU
358
  then
359
    LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_srcdir)/libdrizzle/libdrizzle.ver"
360
  fi
1 by brian
clean slate
361
fi
362
AC_SUBST(LD_VERSION_SCRIPT)
363
779.2.1 by Monty Taylor
Added new pthread m4 file. Changing lib checks to use AC_LIB_HAVE_LINKFLAGS
364
AC_LIB_PREFIX
365
287.3.30 by Monty Taylor
Added step one of finding libprotobuf.
366
#--------------------------------------------------------------------
367
# Check for Google Proto Buffers
368
#--------------------------------------------------------------------
369
629.2.4 by Monty Taylor
Cleaned up the lib searching - now base some searches off of the prefix.
370
AC_LANG_PUSH([C++])
779.2.1 by Monty Taylor
Added new pthread m4 file. Changing lib checks to use AC_LIB_HAVE_LINKFLAGS
371
AC_LIB_HAVE_LINKFLAGS(protobuf,,
372
[#include <google/protobuf/descriptor.h>
373
#if GOOGLE_PROTOBUF_VERSION < 2000002
374
# error Your version of Protobuf is too old
375
#endif
376
],
377
[google::protobuf::FileDescriptor* file;])
378
AS_IF([test x$ac_cv_libprotobuf = xno],
379
      AC_MSG_ERROR([protobuf is required for Drizzle]))
629.2.4 by Monty Taylor
Cleaned up the lib searching - now base some searches off of the prefix.
380
779.2.1 by Monty Taylor
Added new pthread m4 file. Changing lib checks to use AC_LIB_HAVE_LINKFLAGS
381
AC_PATH_PROG([PROTOC],[protoc],[no],[$LIBPROTOBUF_PREFIX/bin:$PATH])
520.4.47 by Monty Taylor
Added check for protoc to protobuf checks.
382
if test "x$PROTOC" = "xno"
383
then
384
  AC_MSG_ERROR([Couldn't find protoc. Try installing Google Protocol Buffer.])
385
fi
386
287.3.30 by Monty Taylor
Added step one of finding libprotobuf.
387
AC_LANG_POP()
77.1.111 by Monty Taylor
Added --enable-tcmalloc which will enable searching for and linking with tcmalloc if you have it.
388
77.1.63 by Monty Taylor
Fail also if we can't find libevent or pthread.h.
389
#--------------------------------------------------------------------
520.4.27 by Monty Taylor
Fail if we don't find uuid/uuid.h.
390
# Check for libuuid
391
#--------------------------------------------------------------------
392
779.2.1 by Monty Taylor
Added new pthread m4 file. Changing lib checks to use AC_LIB_HAVE_LINKFLAGS
393
dnl Do this by hand. Need to check for uuid/uuid.h, but uuid may or may
394
dnl not be a lib is weird.
395
590.2.13 by Monty Taylor
Reverted libuuid check code.
396
AC_CHECK_HEADERS(uuid/uuid.h)
397
if test "x$ac_cv_header_uuid_uuid_h" = "xno"
398
then
399
  AC_MSG_ERROR([Couldn't find uuid/uuid.h. Try installing libuuid development packages])
400
fi
779.2.3 by Monty Taylor
Added stdlib.h depend for readline.
401
AC_LIB_HAVE_LINKFLAGS(uuid,,
402
[
403
#include <uuid/uuid.h>
404
],
405
[
406
  uuid_t uout;
407
  uuid_generate(uout);
408
])
409
520.4.27 by Monty Taylor
Fail if we don't find uuid/uuid.h.
410
#--------------------------------------------------------------------
77.1.63 by Monty Taylor
Fail also if we can't find libevent or pthread.h.
411
# Check for libevent
412
#--------------------------------------------------------------------
413
779.2.1 by Monty Taylor
Added new pthread m4 file. Changing lib checks to use AC_LIB_HAVE_LINKFLAGS
414
AC_LIB_HAVE_LINKFLAGS(event,,
415
[
134.2.1 by Antony Curtis
Changes for proper detection of libraries
416
#include <sys/types.h>
417
#include <sys/time.h>
418
#include <stdlib.h>
779.2.1 by Monty Taylor
Added new pthread m4 file. Changing lib checks to use AC_LIB_HAVE_LINKFLAGS
419
#include <event.h>
420
],[
421
  struct bufferevent bev;
422
  bufferevent_settimeout(&bev, 1, 1);
423
  event_init();
424
  event_loop(EVLOOP_ONCE);
425
]) 
426
AS_IF([test x$ac_cv_libevent = xno],
427
      AC_MSG_ERROR([A recent libevent is required for Drizzle. Check http://www.monkey.org/~provos/libevent ]))
134.2.1 by Antony Curtis
Changes for proper detection of libraries
428
429
77.1.63 by Monty Taylor
Fail also if we can't find libevent or pthread.h.
430
431
#--------------------------------------------------------------------
432
# Check for libpthread
433
#--------------------------------------------------------------------
434
779.2.1 by Monty Taylor
Added new pthread m4 file. Changing lib checks to use AC_LIB_HAVE_LINKFLAGS
435
ACX_PTHREAD(,AC_MSG_ERROR(could not find libpthread))
436
LIBS="$PTHREAD_LIBS $LIBS"
437
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
438
CC="$PTHREAD_CC"
77.1.63 by Monty Taylor
Fail also if we can't find libevent or pthread.h.
439
440
#--------------------------------------------------------------------
612.2.5 by Monty Taylor
Added test for mtmalloc, if we haven't explicitly asked for tcmalloc.
441
# Check for tcmalloc/mtmalloc
77.1.111 by Monty Taylor
Added --enable-tcmalloc which will enable searching for and linking with tcmalloc if you have it.
442
#--------------------------------------------------------------------
443
444
AC_ARG_ENABLE([tcmalloc],
445
    [AS_HELP_STRING([--enable-tcmalloc],
446
       [Enable linking with tcmalloc @<:@default=off@:>@])],
236.1.14 by Monty Taylor
Merged build changes from Antony.
447
    [ac_enable_tcmalloc="$enableval"],
448
    [ac_enable_tcmalloc="no"])
77.1.111 by Monty Taylor
Added --enable-tcmalloc which will enable searching for and linking with tcmalloc if you have it.
449
612.2.5 by Monty Taylor
Added test for mtmalloc, if we haven't explicitly asked for tcmalloc.
450
if test "x$ac_enable_tcmalloc" != "xno"
77.1.111 by Monty Taylor
Added --enable-tcmalloc which will enable searching for and linking with tcmalloc if you have it.
451
then
452
  AC_CHECK_LIB(tcmalloc,malloc,[],[])
453
fi
454
612.2.5 by Monty Taylor
Added test for mtmalloc, if we haven't explicitly asked for tcmalloc.
455
if test "x$ac_cv_lib_tcmalloc_malloc" != "xyes"
456
then
457
  AC_CHECK_LIB(mtmalloc,malloc,[],[])
458
fi
459
779.2.1 by Monty Taylor
Added new pthread m4 file. Changing lib checks to use AC_LIB_HAVE_LINKFLAGS
460
77.1.111 by Monty Taylor
Added --enable-tcmalloc which will enable searching for and linking with tcmalloc if you have it.
461
#--------------------------------------------------------------------
779.1.15 by Monty Taylor
Added libdrizzle configure support.
462
# Check for libdrizzle
463
#--------------------------------------------------------------------
464
465
AC_LIB_HAVE_LINKFLAGS(drizzle,,
466
[#include <libdrizzle/drizzle.h>],
467
[
468
  const char *version= drizzle_version()
469
])
470
dnl AS_IF([test x$ac_cv_libdrizzle = xno],
471
dnl       AC_MSG_ERROR([libdrizzle is required for Drizzle])
472
473
474
#--------------------------------------------------------------------
77.1.63 by Monty Taylor
Fail also if we can't find libevent or pthread.h.
475
# Check for libz
476
#--------------------------------------------------------------------
477
779.2.1 by Monty Taylor
Added new pthread m4 file. Changing lib checks to use AC_LIB_HAVE_LINKFLAGS
478
AC_LIB_HAVE_LINKFLAGS(z,,
479
[#include <zlib.h>],
480
[
481
  crc32(0, Z_NULL, 0);
482
])
483
AS_IF([test x$ac_cv_libz = xno],
484
      AC_MSG_ERROR([libz is required for Drizzle]))
201.2.3 by Monty Taylor
Cleaned up some LIBS bits in the build.
485
612.2.9 by Monty Taylor
Woot. No more extra CFLAGS on the command line!
486
#--------------------------------------------------------------------
182.1.5 by Jim Winstead
Detect and make the Mac OS X libedit readline interface look like the
487
# Check for libreadline or compatible (libedit on Mac OS X)
488
#--------------------------------------------------------------------
77.1.63 by Monty Taylor
Fail also if we can't find libevent or pthread.h.
489
779.2.5 by Monty Taylor
Split out readline.
490
save_LIBS="${LIBS}"
491
LIBS=""
779.2.4 by Monty Taylor
Updated some more build stuff.
492
VL_LIB_READLINE
779.2.5 by Monty Taylor
Split out readline.
493
READLINE_LIBS="${LIBS}"
494
LIBS="${save_LIBS}"
495
AC_SUBST(READLINE_LIBS)
207.1.2 by Jim Winstead
Fix test for libreadline to test a function that exists in all usable
496
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
497
DRIZZLE_CHECK_NEW_RL_INTERFACE
287.3.30 by Monty Taylor
Added step one of finding libprotobuf.
498
77.1.63 by Monty Taylor
Fail also if we can't find libevent or pthread.h.
499
#--------------------------------------------------------------------
500
# Check for libpcre
501
#--------------------------------------------------------------------
502
779.2.9 by Monty Taylor
Put back in pkg-config check- pcre.h is in /usr/include for older versions and
503
AC_PATH_PROG(PKG_CONFIG, pkg-config, AC_MSG_ERROR([pkg-config wasn't found.]))
504
PKG_CHECK_MODULES(PCRE, [libpcre >= 3], [found_pcre="yes"],[found_pcre="no"])
505
506
if test "$found_pcre" = "no"
507
then
508
  save_LIBS="${LIBS}"
509
  AC_LIB_HAVE_LINKFLAGS(pcre,, [#include <pcre.h>], [pcre *re= NULL])
510
  AS_IF([test "x$ac_cv_libpcre" = "xno"],
511
        AC_MSG_ERROR([libpcre is required for Drizzle]))
779.2.10 by Monty Taylor
Fixed a sillyness.
512
  PCRE_LIBS="${LTLIBPCRE}"
779.2.9 by Monty Taylor
Put back in pkg-config check- pcre.h is in /usr/include for older versions and
513
  LIBS="${save_LIBS}"
514
fi
515
AC_SUBST(PCRE_LIBS)
516
AC_SUBST(PCRE_CFLAGS)
517
77.1.63 by Monty Taylor
Fail also if we can't find libevent or pthread.h.
518
1 by brian
clean slate
519
dnl Find paths to some shell programs
520
AC_PATH_PROG(LN, ln, ln)
521
# This must be able to take a -f flag like normal unix ln.
522
AC_PATH_PROG(LN_CP_F, ln, ln)
523
524
AC_PATH_PROG(MV, mv, mv)
525
AC_PATH_PROG(RM, rm, rm)
526
AC_PATH_PROG(CP, cp, cp)
527
AC_PATH_PROG(SED, sed, sed)
528
AC_PATH_PROG(CMP, cmp, cmp)
529
AC_PATH_PROG(CHMOD, chmod, chmod)
530
AC_PATH_PROG(HOSTNAME, hostname, hostname)
531
# Check for a GNU tar named 'gtar', or 'gnutar' (MacOS X) and
532
# fall back to 'tar' otherwise and hope that it's a GNU tar as well
533
AC_CHECK_PROGS(TAR, gnutar gtar tar)
534
535
dnl We use a path for perl so the script startup works
536
dnl We make sure to use perl, not perl5, in hopes that the RPMs will
537
dnl not depend on the perl5 binary being installed (probably a bug in RPM)
538
AC_PATH_PROG(PERL, perl, no)
539
if test "$PERL" != "no" && $PERL -e 'require 5' > /dev/null 2>&1
540
then
541
  PERL5=$PERL
542
else
543
  AC_PATH_PROG(PERL5, perl5, no)
544
  if test "$PERL5" != no
545
  then
546
    PERL=$PERL5
547
    ac_cv_path_PERL=$ac_cv_path_PERL5
548
  fi
549
fi
550
551
AC_SUBST(HOSTNAME)
552
AC_SUBST(PERL)
553
AC_SUBST(PERL5)
554
555
# icheck, used for ABI check
556
AC_PATH_PROG(ICHECK, icheck, no)
557
# "icheck" is also the name of a file system check program on Tru64.
558
# Verify the program found is really the interface checker.
559
if test "x$ICHECK" != "xno"
560
then
561
  AC_MSG_CHECKING(if $ICHECK works as expected)
562
  echo "int foo;" > conftest.h
563
  $ICHECK --canonify -o conftest.ic conftest.h 2>/dev/null
564
  if test -f "conftest.ic"
565
  then
566
    AC_MSG_RESULT(yes)
567
  else
568
    AC_MSG_RESULT(no)
569
    ICHECK=no
570
  fi
571
  rm -f conftest.ic conftest.h
572
fi
573
AC_SUBST(ICHECK)
574
575
# Lock for PS
576
AC_PATH_PROG(PS, ps, ps)
577
AC_MSG_CHECKING("how to check if pid exists")
578
PS=$ac_cv_path_PS
579
# Linux style
632.1.7 by Monty
Reworked grep change to work with old crappy autoconfs.
580
if $PS p $$ 2> /dev/null | grep `echo $0 | sed s/\-//` > /dev/null
1 by brian
clean slate
581
then
632.1.7 by Monty
Reworked grep change to work with old crappy autoconfs.
582
  FIND_PROC="$PS p \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null"
1 by brian
clean slate
583
# Solaris
632.1.7 by Monty
Reworked grep change to work with old crappy autoconfs.
584
elif $PS -fp $$ 2> /dev/null | grep $0 > /dev/null
1 by brian
clean slate
585
then
632.1.7 by Monty
Reworked grep change to work with old crappy autoconfs.
586
  FIND_PROC="$PS -p \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null"
1 by brian
clean slate
587
# BSD style
632.1.7 by Monty
Reworked grep change to work with old crappy autoconfs.
588
elif $PS -uaxww 2> /dev/null | grep $0 > /dev/null
1 by brian
clean slate
589
then
632.1.7 by Monty
Reworked grep change to work with old crappy autoconfs.
590
  FIND_PROC="$PS -uaxww | grep -v grep | grep \$\$MYSQLD | grep \" \$\$PID \" > /dev/null"
1 by brian
clean slate
591
# SysV style
632.1.7 by Monty
Reworked grep change to work with old crappy autoconfs.
592
elif $PS -ef 2> /dev/null | grep $0 > /dev/null
1 by brian
clean slate
593
then
632.1.7 by Monty
Reworked grep change to work with old crappy autoconfs.
594
  FIND_PROC="$PS -ef | grep -v grep | grep \$\$MYSQLD | grep \" \$\$PID \" > /dev/null"
1 by brian
clean slate
595
# Do anybody use this?
632.1.7 by Monty
Reworked grep change to work with old crappy autoconfs.
596
elif $PS $$ 2> /dev/null | grep $0 > /dev/null
1 by brian
clean slate
597
then
632.1.7 by Monty
Reworked grep change to work with old crappy autoconfs.
598
  FIND_PROC="$PS \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null"
1 by brian
clean slate
599
else
600
  case $SYSTEM_TYPE in
394 by Monty Taylor
Fix configure problem on cygwin. Thanks awfief.
601
    *freebsd*|*dragonfly*|*cygwin*)
632.1.7 by Monty
Reworked grep change to work with old crappy autoconfs.
602
      FIND_PROC="$PS p \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null"
1 by brian
clean slate
603
      ;;
604
    *darwin*)
632.1.7 by Monty
Reworked grep change to work with old crappy autoconfs.
605
      FIND_PROC="$PS -uaxww | grep -v grep | grep \$\$MYSQLD | grep \" \$\$PID \" > /dev/null"
1 by brian
clean slate
606
      ;;
607
    *)
608
      AC_MSG_ERROR([Could not find the right ps switches. Which OS is this ?. See the Installation chapter in the Reference Manual.])
236.1.39 by Monty Taylor
autoconf warning cleanups.
609
      ;;
1 by brian
clean slate
610
  esac
611
fi
612
AC_SUBST(FIND_PROC)
613
AC_MSG_RESULT("$FIND_PROC")
614
615
# Check if a pid is valid
616
AC_PATH_PROG(KILL, kill, kill)
617
AC_MSG_CHECKING("for kill switches")
618
if $ac_cv_path_KILL -0 $$
619
then
620
  CHECK_PID="$ac_cv_path_KILL -0 \$\$PID > /dev/null 2> /dev/null"
621
elif kill -s 0 $$
622
then
623
  CHECK_PID="$ac_cv_path_KILL -s 0 \$\$PID > /dev/null 2> /dev/null"
624
else
625
  AC_MSG_WARN([kill -0 to check for pid seems to fail])
626
    CHECK_PID="$ac_cv_path_KILL -s SIGCONT \$\$PID > /dev/null 2> /dev/null"
627
fi
628
AC_SUBST(CHECK_PID)
629
AC_MSG_RESULT("$CHECK_PID")
630
631
632
# Check if we need noexec stack for assembler
633
AC_CHECK_NOEXECSTACK
634
635
if test "$am_cv_prog_cc_stdc" = "no"
636
then
91 by Brian Aker
Main binary now named drizzled
637
  AC_MSG_ERROR([Drizzle requires an ANSI C compiler (and a C++ compiler). Try gcc. See the Installation chapter in the Reference Manual.])
1 by brian
clean slate
638
fi
639
640
28.1.39 by Monty Taylor
Made everything use AS_HELP_STRING (except for charsets, which are dying anyway)
641
AC_ARG_WITH([server-suffix],
642
    [AS_HELP_STRING([--with-server-suffix],
643
      [Append value to the version string.])],
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
644
    [ DRIZZLE_SERVER_SUFFIX=`echo "$withval" | sed -e  's/^\(...................................\)..*$/\1/'` ],
645
    [ DRIZZLE_SERVER_SUFFIX= ]
1 by brian
clean slate
646
    )
546 by Monty Taylor
Cleaned up version.h. (And by cleaned, I mean removed)
647
AC_DEFINE_UNQUOTED([DRIZZLE_SERVER_SUFFIX],[$DRIZZLE_SERVER_SUFFIX],
648
                   [Append value to the version string])
1 by brian
clean slate
649
650
# Force use of a curses libs
28.1.39 by Monty Taylor
Made everything use AS_HELP_STRING (except for charsets, which are dying anyway)
651
AC_ARG_WITH([named-curses-libs],
652
    [AS_HELP_STRING([--with-named-curses-libs=ARG],
653
            [Use specified curses libraries instead of those
654
		automatically found by configure.])],
1 by brian
clean slate
655
    [ with_named_curses=$withval ],
656
    [ with_named_curses=no ]
657
    )
658
28.1.39 by Monty Taylor
Made everything use AS_HELP_STRING (except for charsets, which are dying anyway)
659
AC_ARG_WITH([tcp-port],
660
    [AS_HELP_STRING([--with-tcp-port=port-number],
165.1.1 by Elliot Murphy
new port number from IANA
661
            [Which port to use for Drizzle services @<:@default=4427@:>@])],
301 by Brian Aker
Clean up port startup
662
    [ DRIZZLE_TCP_PORT=$withval ],
663
    [ DRIZZLE_TCP_PORT=$DRIZZLE_TCP_PORT_DEFAULT
1 by brian
clean slate
664
      # if we actually defaulted (as opposed to the pathological case of
301 by Brian Aker
Clean up port startup
665
      # --with-tcp-port=<DRIZZLE_TCP_PORT_DEFAULT> which might in theory
1 by brian
clean slate
666
      # happen if whole batch of servers was built from a script), set
667
      # the default to zero to indicate that; we don't lose information
668
      # that way, because 0 obviously indicates that we can get the
301 by Brian Aker
Clean up port startup
669
      # default value from DRIZZLE_TCP_PORT. this seems really evil, but
670
      # testing for DRIZZLE_TCP_PORT==DRIZZLE_TCP_PORT_DEFAULT would make a
671
      # a port of DRIZZLE_TCP_PORT_DEFAULT magic even if the builder did not
1 by brian
clean slate
672
      # intend it to mean "use the default, in fact, look up a good default
165.1.1 by Elliot Murphy
new port number from IANA
673
      # from /etc/services if you can", but really, really meant 4427 when
674
      # they passed in 4427. When they pass in a specific value, let them
1 by brian
clean slate
675
      # have it; don't second guess user and think we know better, this will
676
      # just make people cross.  this makes the the logic work like this
677
      # (which is complicated enough):
678
      #
679
      # - if a port was set during build, use that as a default.
680
      #
681
      # - otherwise, try to look up a port in /etc/services; if that fails,
301 by Brian Aker
Clean up port startup
682
      #   use DRIZZLE_TCP_PORT_DEFAULT (at the time of this writing 4427)
1 by brian
clean slate
683
      #
301 by Brian Aker
Clean up port startup
684
      # - allow the DRIZZLE_TCP_PORT environment variable to override that.
1 by brian
clean slate
685
      #
686
      # - allow command-line parameters to override all of the above.
687
      #
301 by Brian Aker
Clean up port startup
688
      # the top-most DRIZZLE_TCP_PORT_DEFAULT is read from win/configure.js,
1 by brian
clean slate
689
      # so don't mess with that.
301 by Brian Aker
Clean up port startup
690
      DRIZZLE_TCP_PORT_DEFAULT=0 ]
1 by brian
clean slate
691
    )
301 by Brian Aker
Clean up port startup
692
AC_SUBST(DRIZZLE_TCP_PORT)
1 by brian
clean slate
693
# We might want to document the assigned port in the manual.
301 by Brian Aker
Clean up port startup
694
AC_SUBST(DRIZZLE_TCP_PORT_DEFAULT)
546 by Monty Taylor
Cleaned up version.h. (And by cleaned, I mean removed)
695
AC_DEFINE_UNQUOTED([DRIZZLE_PORT],[$DRIZZLE_TCP_PORT],
696
                   [Drizzle port to use])
697
AC_DEFINE_UNQUOTED([DRIZZLE_PORT_DEFAULT],[$DRIZZLE_TCP_PORT_DEFAULT],
698
		   [If we defaulted to DRIZZLE_PORT, then this will be zero])
1 by brian
clean slate
699
700
# Use this to set the place used for unix socket used to local communication.
572.2.1 by ysano
Replace --with-mysqld-user configure option with --with-drizzled-user.
701
AC_ARG_WITH([drizzled-user],
702
    [AS_HELP_STRING([--with-drizzled-user=username],
703
            [What user the drizzled daemon shall be run as.
704
		@<:@default=drizzle@:>@])],
705
    [ DRIZZLED_USER=$withval ],
706
    [ DRIZZLED_USER=drizzle ]
1 by brian
clean slate
707
    )
572.2.1 by ysano
Replace --with-mysqld-user configure option with --with-drizzled-user.
708
AC_SUBST(DRIZZLED_USER)
1 by brian
clean slate
709
710
# If we should allow LOAD DATA LOCAL
711
AC_MSG_CHECKING(If we should should enable LOAD DATA LOCAL by default)
712
AC_ARG_ENABLE(local-infile,
713
    [  --enable-local-infile   Enable LOAD DATA LOCAL INFILE (default: disabled)],
714
    [ ENABLED_LOCAL_INFILE=$enableval ],
715
    [ ENABLED_LOCAL_INFILE=no ]
716
    )
717
if test "$ENABLED_LOCAL_INFILE" = "yes"
718
then
719
  AC_MSG_RESULT([yes])
720
  AC_DEFINE([ENABLED_LOCAL_INFILE], [1],
721
            [If LOAD DATA LOCAL INFILE should be enabled by default])
722
else
723
  AC_MSG_RESULT([no])
724
fi
725
726
# Types that must be checked AFTER large file support is checked
727
AC_TYPE_SIZE_T
728
729
#--------------------------------------------------------------------
730
# Check for system header files
731
#--------------------------------------------------------------------
732
733
AC_HEADER_DIRENT
734
AC_HEADER_STDC
735
AC_HEADER_SYS_WAIT
53.2.2 by Monty Taylor
Updated everything that needs updating to compile with -std=gnu99 -pedantic
736
AC_HEADER_STDBOOL
77.1.22 by Monty Taylor
Removed refs to floatingpoint.h (which we only used for fconvert) and fconvert
737
AC_CHECK_HEADERS(fcntl.h float.h fpu_control.h ieeefp.h)
53.2.29 by Monty Taylor
Cleaned up headers a little more.
738
AC_CHECK_HEADERS(limits.h pwd.h select.h linux/config.h)
739
AC_CHECK_HEADERS(sys/fpu.h utime.h sys/utime.h )
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
740
AC_CHECK_HEADERS(synch.h sys/mman.h sys/socket.h)
520.4.41 by mordred
Fixed configure.ac to work cleanly on Solaris - and define some good compile flags.
741
AC_CHECK_HEADERS([curses.h term.h],[],[],
742
[[#ifdef HAVE_CURSES_H
743
# include <curses.h>
744
#endif
745
]])
202.1.4 by Monty Taylor
Removed openssl refs.
746
AC_CHECK_HEADERS(termio.h termios.h sched.h alloca.h)
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
747
AC_CHECK_HEADERS(sys/prctl.h ieeefp.h)
53.2.29 by Monty Taylor
Cleaned up headers a little more.
748
AC_CHECK_HEADERS(execinfo.h)
1 by brian
clean slate
749
77.1.31 by Monty Taylor
Replaced regex lib with pcre. Reworked mysqltest to use it.
750
#--------------------------------------------------------------------
1 by brian
clean slate
751
# Check for system libraries. Adds the library to $LIBS
752
# and defines HAVE_LIBM etc
753
#--------------------------------------------------------------------
754
755
AC_CHECK_LIB(m, floor, [], AC_CHECK_LIB(m, __infinity))
756
236.1.39 by Monty Taylor
autoconf warning cleanups.
757
AC_CHECK_FUNC(setsockopt, [], [AC_CHECK_LIB(socket, setsockopt)])
758
AC_CHECK_FUNC(yp_get_default_domain, [],
759
  [AC_CHECK_LIB(nsl, yp_get_default_domain)])
760
AC_CHECK_FUNC(p2open, [], [AC_CHECK_LIB(gen, p2open)])
1 by brian
clean slate
761
# This may get things to compile even if bind-8 is installed
236.1.39 by Monty Taylor
autoconf warning cleanups.
762
AC_CHECK_FUNC(bind, [], [AC_CHECK_LIB(bind, bind)])
1 by brian
clean slate
763
# Check if crypt() exists in libc or libcrypt, sets LIBS if needed
764
AC_SEARCH_LIBS(crypt, crypt, AC_DEFINE(HAVE_CRYPT, 1, [crypt]))
765
766
# Check rt for aio_read
767
AC_CHECK_LIB(rt, aio_read)
768
769
# For the sched_yield() function on Solaris
236.1.39 by Monty Taylor
autoconf warning cleanups.
770
AC_CHECK_FUNC(sched_yield, [],
771
  [AC_CHECK_LIB(posix4, [sched_yield],
772
    [AC_DEFINE(HAVE_SCHED_YIELD) LIBS="$LIBS -lposix4"])])
1 by brian
clean slate
773
774
if test "$ac_cv_header_termio_h" = "no" -a "$ac_cv_header_termios_h" = "no"
775
then
236.1.39 by Monty Taylor
autoconf warning cleanups.
776
  AC_CHECK_FUNC(gtty, [], [AC_CHECK_LIB(compat, gtty)])
1 by brian
clean slate
777
fi
778
779
AC_CHECK_TYPES([fp_except], [], [], [
780
#include <sys/types.h>
781
#include <ieeefp.h>
782
])
783
25 by Brian Aker
Clean up of configure.in
784
my_save_LIBS="$LIBS"
785
LIBS=""
786
AC_CHECK_LIB(dl,dlopen)
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
787
AC_CHECK_FUNCS(dlopen)
177.3.1 by mark
remove ifdef HAVE_DLOPEN, make configure require dlopen()
788
if test "$ac_cv_func_dlopen" != "yes"
789
then
790
  AC_MSG_ERROR([Drizzle requires dlopen])
791
fi
201.2.3 by Monty Taylor
Cleaned up some LIBS bits in the build.
792
LIBDL_LIBS="$LIBS"
25 by Brian Aker
Clean up of configure.in
793
LIBS="$my_save_LIBS"
201.2.3 by Monty Taylor
Cleaned up some LIBS bits in the build.
794
AC_SUBST(LIBDL_LIBS)
25 by Brian Aker
Clean up of configure.in
795
796
AC_CHECK_FUNCS(strtok_r)
1 by brian
clean slate
797
201.2.4 by Monty Taylor
Re-enabled optimizations for the normal build, and added back the --with-debug option to turn them off.
798
799
1 by brian
clean slate
800
AC_ARG_WITH([fast-mutexes],
28.1.39 by Monty Taylor
Made everything use AS_HELP_STRING (except for charsets, which are dying anyway)
801
    [AS_HELP_STRING([--with-fast-mutexes],
802
	    [Compile with fast mutexes  @<:@default=off@:>@])],
803
    [with_fast_mutexes=$withval],
804
    [with_fast_mutexes=no])
1 by brian
clean slate
805
806
if test "$with_fast_mutexes" != "no"
807
then
51.3.26 by Jay Pipes
Final removal of DBUG library and cleanup of Makefiles
808
	AC_DEFINE([MY_PTHREAD_FASTMUTEX], [1], 
809
			[Define to 1 if you want to use fast mutexes])
1 by brian
clean slate
810
fi
811
236.1.56 by Monty Taylor
Made build of thr_mutex.c conditional on --with-fast-mutexes, since that's
812
AM_CONDITIONAL(BUILD_FAST_MUTEX,[test "$with_fast_mutexes" != "no"])
813
28.1.39 by Monty Taylor
Made everything use AS_HELP_STRING (except for charsets, which are dying anyway)
814
AC_ARG_WITH([comment],
815
    [AS_HELP_STRING([--with-comment],
816
            [Comment about compilation environment. @<:@default=off@:>@])],
1 by brian
clean slate
817
    [with_comment=$withval],
818
    [with_comment=no])
819
if test "$with_comment" != "no"
820
then
821
  COMPILATION_COMMENT=$with_comment
822
else
823
  COMPILATION_COMMENT="Source distribution"
824
fi
546 by Monty Taylor
Cleaned up version.h. (And by cleaned, I mean removed)
825
AC_DEFINE_UNQUOTED([COMPILATION_COMMENT],["$COMPILATION_COMMENT"],
826
                   [Comment about compilation environment])
1 by brian
clean slate
827
828
dnl Checks for typedefs, structures, and compiler characteristics.
829
AC_C_CONST
830
AC_C_INLINE
590.2.2 by Monty Taylor
Configure cleanups. Added generic search_for_lib m4 macro.
831
AC_C_VOLATILE
1 by brian
clean slate
832
AC_TYPE_OFF_T
833
AC_HEADER_TIME
834
AC_STRUCT_TM
835
# off_t is not a builtin type
836
AC_CHECK_SIZEOF(off_t, 4)
837
if test "$ac_cv_sizeof_off_t" -eq 0
838
then
91 by Brian Aker
Main binary now named drizzled
839
  AC_MSG_ERROR("Drizzle needs a off_t type.")
1 by brian
clean slate
840
fi
841
842
dnl
843
dnl check if time_t is unsigned
844
dnl
845
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
846
DRIZZLE_CHECK_TIME_T
1 by brian
clean slate
847
848
849
# This always gives a warning. Ignore it unless you are cross compiling
850
AC_C_BIGENDIAN
851
#---START: Used in for client configure
852
# Check base type of last arg to accept
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
853
DRIZZLE_TYPE_ACCEPT
1 by brian
clean slate
854
#---END:
855
# Figure out what type of struct rlimit to use with setrlimit
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
856
DRIZZLE_TYPE_STRUCT_RLIMIT
1 by brian
clean slate
857
# Find where the stack goes
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
858
DRIZZLE_STACK_DIRECTION
1 by brian
clean slate
859
# We want to skip alloca on irix unconditionally. It may work on some version..
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
860
DRIZZLE_FUNC_ALLOCA
1 by brian
clean slate
861
# Do struct timespec have members tv_sec or ts_sec
236.1.24 by Monty Taylor
Renamed MYSQL_TIME to DRIZZLE_TIME.
862
DRIZZLE_TIMESPEC_TS
1 by brian
clean slate
863
# Do we have the tzname variable
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
864
DRIZZLE_TZNAME
1 by brian
clean slate
865
AC_CHECK_TYPES([sigset_t, off_t], [], [], [#include <sys/types.h>])
520.4.43 by mordred
A set of Solaris fixes.
866
AC_CHECK_TYPES([uint, ulong])
1 by brian
clean slate
867
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
868
DRIZZLE_PTHREAD_YIELD
1 by brian
clean slate
869
134.2.1 by Antony Curtis
Changes for proper detection of libraries
870
1 by brian
clean slate
871
dnl Checks for header files.
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
872
AC_CHECK_HEADERS(malloc.h)
1 by brian
clean slate
873
874
dnl Checks for library functions.
875
AC_FUNC_ALLOCA
876
AC_PROG_GCC_TRADITIONAL
877
AC_TYPE_SIGNAL
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
878
1 by brian
clean slate
879
AC_CHECK_FUNCS(issetugid)
880
881
# from old readline settting:
882
883
MAKE_SHELL=/bin/sh
884
AC_SUBST(MAKE_SHELL)
885
886
# Already-done: stdlib.h string.h unistd.h termios.h
398.1.9 by Monty Taylor
Cleaned up stuff out of global.h.
887
AC_CHECK_HEADERS(stdarg.h dirent.h locale.h ndir.h sys/dir.h \
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
888
 sys/ndir.h sys/select.h \
889
 sys/mman.h termcap.h termio.h asm/termbits.h grp.h \
890
 paths.h)
1 by brian
clean slate
891
892
# Already-done: strcasecmp
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
893
AC_CHECK_FUNCS(lstat select)
1 by brian
clean slate
894
28.1.33 by Monty Taylor
Added -Wall
895
AC_HEADER_STAT
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
896
DRIZZLE_SIGNAL_CHECK
897
DRIZZLE_CHECK_GETPW_FUNCS
898
DRIZZLE_HAVE_TIOCGWINSZ
899
DRIZZLE_HAVE_TIOCSTAT
1 by brian
clean slate
900
901
#########################################################################
902
903
dnl Checks for library functions.
904
905
AC_FUNC_UTIME_NULL
906
AC_FUNC_VPRINTF
907
77.1.24 by Monty Taylor
Removed non-fcntl code and made it a fatal configure error if it's not there.
908
AC_CHECK_FUNCS(fcntl)
909
if test "x$ac_cv_func_fcntl" != "xyes"
910
then
911
  AC_MSG_ERROR("Drizzle requires fcntl.")
912
fi
913
236.1.50 by Monty Taylor
Added automake conditional compilation of distributed system replacement functions.
914
AC_CONFIG_LIBOBJ_DIR([mystrings])
915
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
916
AC_CHECK_FUNCS( \
77.1.24 by Monty Taylor
Removed non-fcntl code and made it a fatal configure error if it's not there.
917
  cuserid fchmod \
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
918
  fdatasync fpresetsticky fpsetmask fsync \
575.4.6 by Monty Taylor
Removed my_getwd.
919
  getpassphrase getpwnam \
920
  getpwuid getrlimit getrusage index initgroups isnan \
1 by brian
clean slate
921
  localtime_r gethrtime gmtime_r \
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
922
  madvise \
923
  mkstemp mlockall poll pread pthread_attr_create mmap mmap64 \
1 by brian
clean slate
924
  pthread_attr_getstacksize pthread_attr_setprio pthread_attr_setschedparam \
925
  pthread_attr_setstacksize pthread_condattr_create pthread_getsequence_np \
926
  pthread_key_delete pthread_rwlock_rdlock pthread_setprio \
927
  pthread_setprio_np pthread_setschedparam pthread_sigmask readlink \
449 by Monty Taylor
Removed rint check - rint is part of C99.
928
  realpath rename rwlock_init setupterm \
572.1.4 by Monty Taylor
Removed a bunch of unusued tests and defines from autoconf.
929
  sigaction \
930
  sigthreadmask \
931
  snprintf strpbrk \
932
  tell tempnam \
933
  backtrace backtrace_symbols backtrace_symbols_fd)
1 by brian
clean slate
934
287.3.18 by Monty Taylor
Put -fno-exceptions flag in selectively. Add back HAVE_DECL_MADVISE check so
935
AC_LANG_PUSH(C++)
936
# Test whether madvise() is declared in C++ code -- it is not on some
937
# systems, such as Solaris
373.1.3 by Monty Taylor
Fixed test for HAVE_DECL_MADVISE to actually work.
938
AC_CHECK_DECLS([madvise], [], [], [AC_INCLUDES_DEFAULT[
939
#if HAVE_SYS_MMAN_H
287.3.18 by Monty Taylor
Put -fno-exceptions flag in selectively. Add back HAVE_DECL_MADVISE check so
940
#include <sys/types.h>
941
#include <sys/mman.h>
373.1.3 by Monty Taylor
Fixed test for HAVE_DECL_MADVISE to actually work.
942
#endif
943
]])
287.3.18 by Monty Taylor
Put -fno-exceptions flag in selectively. Add back HAVE_DECL_MADVISE check so
944
AC_LANG_POP()
945
946
236.1.59 by Monty Taylor
Turn thr_rwlock.c into a conditionally built source file.
947
AM_CONDITIONAL(BUILD_THR_RWLOCK,[test "$ac_cv_func_rwlock_init" -a "$ac_cv_funn_pthread_rwlock_rdlock"])
948
28.1.33 by Monty Taylor
Added -Wall
949
1 by brian
clean slate
950
CFLAGS="$ORG_CFLAGS"
951
952
# Sanity check: We chould not have any fseeko symbol unless
953
# large_file_support=yes
954
AC_CHECK_FUNC(fseeko,
520.4.41 by mordred
Fixed configure.ac to work cleanly on Solaris - and define some good compile flags.
955
[if test "$large_file_support" = no -a "x$TARGET_LINUX" = "xtrue";
1 by brian
clean slate
956
then
957
  AC_MSG_ERROR("Found fseeko symbol but large_file_support is not enabled!")
958
fi]
959
)
960
961
# Check definition of pthread_getspecific
236.1.39 by Monty Taylor
autoconf warning cleanups.
962
AC_CACHE_CHECK([args to pthread_getspecific], [mysql_cv_getspecific_args],
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
963
  [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
964
#if !defined(_REENTRANT)
1 by brian
clean slate
965
#define _REENTRANT
966
#endif
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
967
#ifndef _POSIX_PTHREAD_SEMANTICS 
1 by brian
clean slate
968
#define _POSIX_PTHREAD_SEMANTICS 
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
969
#endif
28.1.33 by Monty Taylor
Added -Wall
970
#include <pthread.h> ]], [[ void *pthread_getspecific(pthread_key_t key);
236.1.39 by Monty Taylor
autoconf warning cleanups.
971
pthread_getspecific((pthread_key_t) NULL); ]])],
972
    [mysql_cv_getspecific_args=POSIX],
973
    [mysql_cv_getspecific_args=other])])
1 by brian
clean slate
974
  if test "$mysql_cv_getspecific_args" = "other"
975
  then
976
    AC_DEFINE([HAVE_NONPOSIX_PTHREAD_GETSPECIFIC], [1],
977
              [For some non posix threads])
978
  fi
979
980
  # Check definition of pthread_mutex_init
236.1.39 by Monty Taylor
autoconf warning cleanups.
981
  AC_CACHE_CHECK([args to pthread_mutex_init], [mysql_cv_mutex_init_args],
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
982
    [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
983
#ifndef _REENTRANT
984
#define _REENTRANT
985
#endif
986
#ifndef _POSIX_PTHREAD_SEMANTICS
1 by brian
clean slate
987
#define _POSIX_PTHREAD_SEMANTICS 
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
988
#endif
28.1.33 by Monty Taylor
Added -Wall
989
#include <pthread.h> ]], [[ 
1 by brian
clean slate
990
  pthread_mutexattr_t attr;
991
  pthread_mutex_t mp;
236.1.39 by Monty Taylor
autoconf warning cleanups.
992
  pthread_mutex_init(&mp,&attr); ]])],
993
      [mysql_cv_mutex_init_args=POSIX],
994
      [mysql_cv_mutex_init_args=other])])
1 by brian
clean slate
995
  if test "$mysql_cv_mutex_init_args" = "other"
996
  then
997
    AC_DEFINE([HAVE_NONPOSIX_PTHREAD_MUTEX_INIT], [1],
998
              [For some non posix threads])
999
  fi
1000
#---END:
1001
1002
#---START: Used in for client configure
1003
# Check definition of readdir_r
236.1.39 by Monty Taylor
autoconf warning cleanups.
1004
AC_CACHE_CHECK([args to readdir_r], [mysql_cv_readdir_r],
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
1005
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
1006
#ifndef _REENTRANT
1007
#define _REENTRANT
1008
#endif
1009
#ifndef _POSIX_PTHREAD_SEMANTICS 
1 by brian
clean slate
1010
#define _POSIX_PTHREAD_SEMANTICS 
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
1011
#endif
1 by brian
clean slate
1012
#include <pthread.h>
28.1.33 by Monty Taylor
Added -Wall
1013
#include <dirent.h>]], [[ int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
236.1.39 by Monty Taylor
autoconf warning cleanups.
1014
readdir_r((DIR *) NULL, (struct dirent *) NULL, (struct dirent **) NULL); ]])],
1015
    [mysql_cv_readdir_r=POSIX],
1016
    [mysql_cv_readdir_r=other])])
1 by brian
clean slate
1017
if test "$mysql_cv_readdir_r" = "POSIX"
1018
then
1019
  AC_DEFINE([HAVE_READDIR_R], [1], [POSIX readdir_r])
1020
fi
1021
1022
# Check definition of posix sigwait()
236.1.39 by Monty Taylor
autoconf warning cleanups.
1023
AC_CACHE_CHECK([style of sigwait], [mysql_cv_sigwait],
1024
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
1025
#ifndef _REENTRANT
236.1.39 by Monty Taylor
autoconf warning cleanups.
1026
#define _REENTRANT
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
1027
#endif
1028
#ifndef _POSIX_PTHREAD_SEMANTICS
1 by brian
clean slate
1029
#define _POSIX_PTHREAD_SEMANTICS 
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
1030
#endif
1 by brian
clean slate
1031
#include <pthread.h>
236.1.39 by Monty Taylor
autoconf warning cleanups.
1032
#include <signal.h>
1033
      ]], [[
1034
#ifndef _AIX
1 by brian
clean slate
1035
sigset_t set;
1036
int sig;
1037
sigwait(&set,&sig);
236.1.39 by Monty Taylor
autoconf warning cleanups.
1038
#endif
1039
      ]])],
1040
    [mysql_cv_sigwait=POSIX],
1041
    [mysql_cv_sigwait=other])])
1 by brian
clean slate
1042
if test "$mysql_cv_sigwait" = "POSIX"
1043
then
1044
  AC_DEFINE([HAVE_SIGWAIT], [1], [POSIX sigwait])
1045
fi
1046
1047
if test "$mysql_cv_sigwait" != "POSIX"
1048
then
1049
unset mysql_cv_sigwait
1050
# Check definition of posix sigwait()
236.1.39 by Monty Taylor
autoconf warning cleanups.
1051
AC_CACHE_CHECK([style of sigwait], [mysql_cv_sigwait],
1052
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
1053
#ifndef _REENTRANT
236.1.39 by Monty Taylor
autoconf warning cleanups.
1054
#define _REENTRANT
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
1055
#endif
1056
#ifndef _POSIX_PTHREAD_SEMANTICS
1 by brian
clean slate
1057
#define _POSIX_PTHREAD_SEMANTICS 
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
1058
#endif
1 by brian
clean slate
1059
#include <pthread.h>
236.1.39 by Monty Taylor
autoconf warning cleanups.
1060
#include <signal.h>
1061
      ]], [[
1062
sigset_t set;
1 by brian
clean slate
1063
int sig;
236.1.39 by Monty Taylor
autoconf warning cleanups.
1064
sigwait(&set);
1065
      ]])],
1066
    [mysql_cv_sigwait=NONPOSIX],
1067
    [mysql_cv_sigwait=other])])
1 by brian
clean slate
1068
if test "$mysql_cv_sigwait" = "NONPOSIX"
1069
then
1070
  AC_DEFINE([HAVE_NONPOSIX_SIGWAIT], [1], [sigwait with one argument])
1071
fi
1072
fi
1073
#---END:
1074
1075
# Check if pthread_attr_setscope() exists
236.1.39 by Monty Taylor
autoconf warning cleanups.
1076
AC_CACHE_CHECK([for pthread_attr_setscope], [mysql_cv_pthread_attr_setscope],
1077
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
1078
#ifndef _REENTRANT
236.1.39 by Monty Taylor
autoconf warning cleanups.
1079
#define _REENTRANT
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
1080
#endif
1081
#ifndef _POSIX_PTHREAD_SEMANTICS
1 by brian
clean slate
1082
#define _POSIX_PTHREAD_SEMANTICS 
632.1.11 by Monty Taylor
Fixed Sun Studio warnings in mysys.
1083
#endif
236.1.39 by Monty Taylor
autoconf warning cleanups.
1084
#include <pthread.h>
1085
      ]], [[
1086
pthread_attr_t thr_attr;
1087
pthread_attr_setscope(&thr_attr,0);
1088
      ]])],
1089
    [mysql_cv_pthread_attr_setscope=yes],
1090
    [mysql_cv_pthread_attr_setscope=no])])
1 by brian
clean slate
1091
if test "$mysql_cv_pthread_attr_setscope" = "yes"
1092
then
1093
  AC_DEFINE([HAVE_PTHREAD_ATTR_SETSCOPE], [1], [pthread_attr_setscope])
1094
fi
1095
28.1.33 by Monty Taylor
Added -Wall
1096
AC_LANG_PUSH([C++])
1 by brian
clean slate
1097
AC_CHECK_HEADERS(cxxabi.h)
1098
AC_CACHE_CHECK([checking for abi::__cxa_demangle], mysql_cv_cxa_demangle,
28.1.33 by Monty Taylor
Added -Wall
1099
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <cxxabi.h>]], [[
1 by brian
clean slate
1100
  char *foo= 0; int bar= 0;
1101
  foo= abi::__cxa_demangle(foo, foo, 0, &bar);
28.1.33 by Monty Taylor
Added -Wall
1102
]])],[mysql_cv_cxa_demangle=yes],[mysql_cv_cxa_demangle=no])])
1103
AC_LANG_POP([])
1 by brian
clean slate
1104
1105
if test "x$mysql_cv_cxa_demangle" = xyes; then
1106
  AC_DEFINE(HAVE_ABI_CXA_DEMANGLE, 1,
1107
            [Define to 1 if you have the `abi::__cxa_demangle' function.])
1108
fi
1109
1110
#--------------------------------------------------------------------
1111
# Check for requested features
1112
#--------------------------------------------------------------------
1113
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
1114
DRIZZLE_CHECK_MAX_INDEXES
1115
DRIZZLE_CHECK_VIO
1 by brian
clean slate
1116
1117
#--------------------------------------------------------------------
1118
# Declare our plugin modules
1119
# Has to be done late, as the plugin may need to check for existence of
1120
# functions tested above
1121
#--------------------------------------------------------------------
1122
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
1123
DRIZZLE_CONFIGURE_PLUGINS([none])
1 by brian
clean slate
1124
1125
AC_SUBST(mysql_plugin_dirs)
1126
AC_SUBST(mysql_plugin_libs)
1127
AC_SUBST(mysql_plugin_defs)
722.2.7 by Monty Taylor
Fixed the stupid build problem
1128
AC_SUBST(DRIZZLED_PLUGIN_DEP_LIBS)
1 by brian
clean slate
1129
435.1.1 by Monty Taylor
Fixed -O3 optimization for gcc.
1130
189 by Brian Aker
Refactor of configure.ac. Added profile. One note... I believe this should
1131
AC_ARG_ENABLE([profiling],
1132
    [AS_HELP_STRING([--enable-profiling],
1133
       [Toggle profiling @<:@default=off@:>@])],
1134
    [ac_profiling="$enableval"],
1135
    [ac_profiling="no"])
1136
1137
AC_ARG_ENABLE([coverage],
1138
    [AS_HELP_STRING([--enable-coverage],
1139
       [Toggle coverage @<:@default=off@:>@])],
1140
    [ac_coverage="$enableval"],
1141
    [ac_coverage="no"])
1142
53.2.1 by Monty Taylor
Added --disable-pedantic-warnings and --enable-fail.
1143
AC_ARG_ENABLE([pedantic-warnings],
1144
    [AS_HELP_STRING([--disable-pedantic-warnings],
1145
       [Toggle pedanticness @<:@default=on@:>@])],
1146
    [ac_warn_pedantic="$enableval"],
1147
    [ac_warn_pedantic="yes"])
1148
1149
AC_ARG_ENABLE([fail],
77.1.112 by Monty Taylor
Fixed comment on --enable-fail -> --disable-fail.
1150
    [AS_HELP_STRING([--disable-fail],
1151
       [Turn warnings into failures @<:@default=on@:>@])],
53.2.1 by Monty Taylor
Added --disable-pedantic-warnings and --enable-fail.
1152
    [ac_warn_fail="$enableval"],
77.1.108 by Monty Taylor
Turn on -Werror again by default.
1153
    [ac_warn_fail="yes"])
53.2.1 by Monty Taylor
Added --disable-pedantic-warnings and --enable-fail.
1154
53.2.6 by Monty Taylor
Turned unreachable code warnings into a configure option.
1155
AC_ARG_ENABLE([unreachable],
1156
    [AS_HELP_STRING([--enable-unreachable],
1157
       [Enable warnings about unreachable code @<:@default=off@:>@])],
1158
    [ac_warn_unreachable="$enableval"],
1159
    [ac_warn_unreachable="no"])
1160
77.1.109 by Monty Taylor
Made --disable-pedantic-warnings only disable the pedantic warnings, rather than also removing the -std=gnu99 part.
1161
AC_ARG_ENABLE([longlong-warnings],
1162
    [AS_HELP_STRING([--enable-longlong-warnings],
1163
       [Enable warnings about longlong in C++ @<:@default=off@:>@])],
1164
    [ac_warn_longlong="$enableval"],
421 by Monty
Made including stdint.h work.
1165
    [ac_warn_longlong="no"])
77.1.109 by Monty Taylor
Made --disable-pedantic-warnings only disable the pedantic warnings, rather than also removing the -std=gnu99 part.
1166
1167
AC_ARG_ENABLE([strict-aliasing],
1168
    [AS_HELP_STRING([--enable-strict-aliasing],
1169
       [Enable warnings about stict-aliasing @<:@default=off@:>@])],
1170
    [ac_warn_strict_aliasing="$enableval"],
1171
    [ac_warn_strict_aliasing="no"])
1172
509.2.1 by Monty Taylor
Added some more warning options to configure.
1173
AC_ARG_ENABLE([cast-warnings],
1174
    [AS_HELP_STRING([--enable-cast-warnings],
1175
       [Enable warnings about use of old C-style casts @<:@default=off@:>@])],
1176
    [ac_warn_cast="$enableval"],
1177
    [ac_warn_cast="no"])
1178
1179
AC_ARG_ENABLE([effective-style],
1180
    [AS_HELP_STRING([--enable-effective-style],
1181
       [Enable warnings violating Effective C++ Style Guidelines @<:@default=off@:>@])],
1182
    [ac_warn_effc="$enableval"],
1183
    [ac_warn_effc="no"])
1184
779.3.10 by Monty Taylor
Turned on -Wshadow.
1185
AC_ARG_ENABLE([shadow],
1186
    [AS_HELP_STRING([--disable-shadow],
1187
       [Disables warnings about scope shadowing @<:@default=on@:>@])],
1188
    [ac_warn_shadow="$enableval"],
1189
    [ac_warn_shadow="yes"])
1190
509.2.2 by Monty Taylor
Added one more set of possible warnings.
1191
AC_ARG_ENABLE([go-crazy],
1192
    [AS_HELP_STRING([--enable-go-crazy],
1193
       [Enables extra little warnings that might be too much @<:@default=off@:>@])],
1194
    [ac_warn_go_crazy="$enableval"],
1195
    [ac_warn_go_crazy="no"])
1196
713.1.8 by Monty Taylor
Moved a little code...
1197
AC_ARG_ENABLE([datarace],
1198
    [AS_HELP_STRING([--enable-datarace],
1199
       [Enables Sun Studio data race detection @<:@default=off@:>@])],
1200
    [ac_datarace="$enableval"],
1201
    [ac_datarace="no"])
53.2.2 by Monty Taylor
Updated everything that needs updating to compile with -std=gnu99 -pedantic
1202
779.1.16 by Monty Taylor
Turned on exceptions, but made it configurable.
1203
AC_ARG_ENABLE([exceptions],
1204
    [AS_HELP_STRING([--disable-exceptions],
1205
        [Disables use of Exceptions in the build @<:@default=on@:>@])],
1206
    [ac_exceptions="$enableval"],
1207
    [ac_exceptions="yes"])
713.1.7 by Monty Taylor
Added support for thread data tracing to the build for Sun Studio.
1208
53.2.1 by Monty Taylor
Added --disable-pedantic-warnings and --enable-fail.
1209
if test "$GCC" = "yes"
1210
then
53.2.2 by Monty Taylor
Updated everything that needs updating to compile with -std=gnu99 -pedantic
1211
558 by Monty Taylor
Added autoconf test to turn off -Wredundant-decls if it doesn't work right.
1212
  if test "$ac_warn_fail" = "yes"
1213
  then
1214
    W_FAIL="-Werror"
1215
  fi
722.1.4 by Monty Taylor
Removed all the setting of DEFS everywhere. Use configmake.h to get the values
1216
  BASE_WARNINGS="-Wall -Wextra ${W_FAIL}"
558 by Monty Taylor
Added autoconf test to turn off -Wredundant-decls if it doesn't work right.
1217
77.1.109 by Monty Taylor
Made --disable-pedantic-warnings only disable the pedantic warnings, rather than also removing the -std=gnu99 part.
1218
  if test "$ac_warn_longlong" = "yes"
1219
  then
1220
    W_LONGLONG="-Wlong-long"
1221
  else
1222
    W_LONGLONG="-Wno-long-long"
1223
  fi
53.2.1 by Monty Taylor
Added --disable-pedantic-warnings and --enable-fail.
1224
77.1.109 by Monty Taylor
Made --disable-pedantic-warnings only disable the pedantic warnings, rather than also removing the -std=gnu99 part.
1225
  if test "$ac_warn_strict_aliasing" = "yes"
1226
  then
1227
    W_STRICT_ALIASING="-Wstrict-aliasing"
1228
  else
509.2.3 by Monty Taylor
Re-worked strict-aliasing again.
1229
    W_STRICT_ALIASING="-Wno-strict-aliasing"
77.1.109 by Monty Taylor
Made --disable-pedantic-warnings only disable the pedantic warnings, rather than also removing the -std=gnu99 part.
1230
  fi
53.2.1 by Monty Taylor
Added --disable-pedantic-warnings and --enable-fail.
1231
779.3.10 by Monty Taylor
Turned on -Wshadow.
1232
  if test "$ac_warn_shadow" = "yes"
1233
  then
1234
    W_SHADOW="-Wshadow"
1235
    NO_SHADOW="-Wno-shadow"
1236
  else
1237
    W_SHADOW="-Wno-shadow"
1238
    NO_SHADOW=""
1239
  fi
1240
189 by Brian Aker
Refactor of configure.ac. Added profile. One note... I believe this should
1241
  if test "$ac_profiling" = "yes"
1242
  then
1243
    GPROF_PROFILING="-pg"
1244
  else
1245
    GPROF_PROFILING=" "
1246
  fi
1247
1248
  if test "$ac_coverage" = "yes"
1249
  then
1250
    GPROF_COVERAGE="-fprofile-arcs -ftest-coverage"
1251
  else
1252
    GPROF_COVERAGE=" "
1253
  fi
1254
53.2.1 by Monty Taylor
Added --disable-pedantic-warnings and --enable-fail.
1255
  if test "$ac_warn_pedantic" = "yes"
1256
  then
520.4.36 by Monty Taylor
Added autoconf check for usability of __attribute__((visibility("hidden"))).
1257
    save_CXXFLAGS="${CXXFLAGS}"
1258
    CXXFLAGS="${CXXFLAGS} ${W_FAIL} -Wredundant-decls"
1259
    AC_CACHE_CHECK([whether it is safe to use -Wredundant-decls],
1260
      [ac_cv_safe_to_use_Wredundant_decls_],
1261
      [AC_LANG_PUSH(C++)
1262
       AC_COMPILE_IFELSE(
1263
         [AC_LANG_PROGRAM([
558 by Monty Taylor
Added autoconf test to turn off -Wredundant-decls if it doesn't work right.
1264
template <typename E> struct C { void foo(); };
1265
template <typename E> void C<E>::foo() { }
1266
template <> void C<int>::foo();
520.4.36 by Monty Taylor
Added autoconf check for usability of __attribute__((visibility("hidden"))).
1267
            AC_INCLUDES_DEFAULT])],
1268
          [ac_cv_safe_to_use_Wredundant_decls_=yes],
1269
          [ac_cv_safe_to_use_Wredundant_decls_=no])
1270
        AC_LANG_POP()])
559.1.1 by Kristian Nielsen
Fix a few problems with the -Wredundant-decls configure check.
1271
    if test $ac_cv_safe_to_use_Wredundant_decls_ = yes
558 by Monty Taylor
Added autoconf test to turn off -Wredundant-decls if it doesn't work right.
1272
    then
559.1.1 by Kristian Nielsen
Fix a few problems with the -Wredundant-decls configure check.
1273
      GXX_W_REDUNDANT_DECLS="-Wredundant-decls"
558 by Monty Taylor
Added autoconf test to turn off -Wredundant-decls if it doesn't work right.
1274
    else
559.1.1 by Kristian Nielsen
Fix a few problems with the -Wredundant-decls configure check.
1275
      GXX_W_REDUNDANT_DECLS="-Wno-redundant-decls"
558 by Monty Taylor
Added autoconf test to turn off -Wredundant-decls if it doesn't work right.
1276
    fi
520.4.36 by Monty Taylor
Added autoconf check for usability of __attribute__((visibility("hidden"))).
1277
    
559.1.1 by Kristian Nielsen
Fix a few problems with the -Wredundant-decls configure check.
1278
    GCC_PEDANTIC="-pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls ${W_STRICT_ALIASING}"
1279
    GXX_PEDANTIC="-pedantic -Wundef ${GXX_W_REDUNDANT_DECLS} ${W_LONGLONG} ${W_STRICT_ALIASING}"
520.4.36 by Monty Taylor
Added autoconf check for usability of __attribute__((visibility("hidden"))).
1280
1281
    AC_CACHE_CHECK([whether __attribute__ visibility "hidden" is supported],
1282
      [ac_cv_can_use_hidden_],
1283
      [AC_LANG_PUSH(C++)
1284
       AC_COMPILE_IFELSE(
1285
         [AC_LANG_PROGRAM([
1286
          AC_INCLUDES_DEFAULT
1287
__attribute__((visibility ("hidden")))
1288
void testme() {  };],[
1289
     testme();])],  
1290
         [ac_cv_can_use_hidden_=yes],
1291
         [ac_cv_can_use_hidden_=no])
1292
       AC_LANG_POP()])
1293
    if test "$ac_cv_can_use_hidden_" = "yes"
1294
    then
1295
      AC_DEFINE(HAVE_ATTR_HIDDEN, 1,
1296
                [Define to 1 if you have support for __attribute__((visibility("hidden")))])
1297
    fi
1298
559 by Monty Taylor
Fixed syntax errors.
1299
    CXXFLAGS="${save_CXXFLAGS}"
53.2.1 by Monty Taylor
Added --disable-pedantic-warnings and --enable-fail.
1300
  fi
1301
53.2.6 by Monty Taylor
Turned unreachable code warnings into a configure option.
1302
  if test "$ac_warn_unreachable" = "yes"
1303
  then
77.1.109 by Monty Taylor
Made --disable-pedantic-warnings only disable the pedantic warnings, rather than also removing the -std=gnu99 part.
1304
    W_UNREACHABLE="-Wunreachable-code"
53.2.6 by Monty Taylor
Turned unreachable code warnings into a configure option.
1305
  fi
509.2.1 by Monty Taylor
Added some more warning options to configure.
1306
  if test "$ac_warn_cast" = "yes"
1307
  then
1308
    W_CAST="-Wold-style-cast"
1309
  fi
1310
1311
  if test "$ac_warn_effc" = "yes"
1312
  then
1313
    W_EFFC="-Weffc++"
1314
  fi
1315
509.2.2 by Monty Taylor
Added one more set of possible warnings.
1316
  if test "$ac_warn_gocrazy" = "yes"
1317
  then
779.3.10 by Monty Taylor
Turned on -Wshadow.
1318
    W_CRAZY="-Wconversion -Winvalid-pch"
509.2.2 by Monty Taylor
Added one more set of possible warnings.
1319
  fi
1320
779.3.10 by Monty Taylor
Turned on -Wshadow.
1321
  CC_WARNINGS="${C99_SUPPORT_HACK} ${BASE_WARNINGS} ${GCC_PEDANTIC} ${W_UNREACHABLE} ${GPROF_PROFILING} ${GPROF_COVERAGE} ${W_SHADOW} ${W_CRAZY}"
1322
  CXX_WARNINGS="${BASE_WARNINGS} ${GXX_PEDANTIC} ${W_UNREACHABLE} ${GPROF_PROFILING} ${GPROF_COVERAGE} ${W_CAST} ${W_SHADOW} ${W_EFFC} ${W_CRAZY}"
77.1.109 by Monty Taylor
Made --disable-pedantic-warnings only disable the pedantic warnings, rather than also removing the -std=gnu99 part.
1323
779.1.16 by Monty Taylor
Turned on exceptions, but made it configurable.
1324
  if test "$ac_exceptions" = "no"
1325
  then
1326
    NO_EXCEPTIONS="-fno-exceptions"
1327
    W_EXCEPTIONS="-fexceptions"
1328
  fi
520.4.44 by mordred
A whole bunch of solaris/sun studio compile fixes.
1329
  NO_REDUNDANT_DECLS="-Wno-redundant-decls"
1330
  # Disable exceptions as they seams to create problems with gcc and threads.
1331
  # drizzled doesn't use run-time-type-checking, so we disable it.
1332
  AM_CXXFLAGS="${AM_CXXFLAGS} -fno-rtti"
575.1.6 by Monty Taylor
Cleaned up some headers for PCH.
1333
  CPPFLAGS="${CPPFLAGS} -fpch-deps"
779.3.16 by Monty Taylor
Some Sun warning fixes.
1334
  PROTOSKIP_WARNINGS="${NO_SHADOW}"
53.2.1 by Monty Taylor
Added --disable-pedantic-warnings and --enable-fail.
1335
fi
520.4.37 by Monty Taylor
Added some Sun compile flags.
1336
if test "$SUNCC" = "yes"
1337
then
713.1.7 by Monty Taylor
Added support for thread data tracing to the build for Sun Studio.
1338
  if test "$ac_datarace" = "yes"
1339
  then
713.1.9 by Monty Taylor
Fixed datarace.
1340
    CFLAGS="${CFLAGS} -xinstrument=datarace"
1341
    CXXFLAGS="${CXXFLAGS} -xinstrument=datarace"
713.1.7 by Monty Taylor
Added support for thread data tracing to the build for Sun Studio.
1342
  fi
779.3.18 by Monty Taylor
Cleaned up warnings up through innodb.
1343
  CC_WARNINGS="-v -xc99=all -errtags=yes -errwarn=%all -erroff=E_ATTRIBUTE_NOT_VAR"
779.3.14 by Monty Taylor
Turned on warnings-as-errors on solaris.
1344
  CXX_WARNINGS="+w +w2 -xport64 -errtags=yes -errwarn=%all -erroff=attrskipunsup,doubunder -compat=5"
779.3.18 by Monty Taylor
Cleaned up warnings up through innodb.
1345
  PROTOSKIP_WARNINGS="-erroff=attrskipunsup,doubunder,reftotemp,wbadinitl"
1346
  NO_UNREACHED="-erroff=E_STATEMENT_NOT_REACHED"
779.1.16 by Monty Taylor
Turned on exceptions, but made it configurable.
1347
  if test "$ac_exceptions" = "no"
1348
  then
1349
    NO_EXCEPTIONS="-features=no%except"
1350
    W_EXCEPTIONS="-features=except"
1351
  fi
520.4.37 by Monty Taylor
Added some Sun compile flags.
1352
fi
520.4.44 by mordred
A whole bunch of solaris/sun studio compile fixes.
1353
AM_CXXFLAGS="${CXX_WARNINGS} ${NO_EXCEPTIONS}  ${AM_CXXFLAGS}"
1354
AM_CFLAGS="${CC_WARNINGS} ${AM_CFLAGS}"
1355
1356
AC_SUBST(NO_EXCEPTIONS)
1357
AC_SUBST(W_EXCEPTIONS)
779.3.10 by Monty Taylor
Turned on -Wshadow.
1358
AC_SUBST(NO_SHADOW)
1359
AC_SUBST(W_SHADOW)
520.4.44 by mordred
A whole bunch of solaris/sun studio compile fixes.
1360
AC_SUBST(NO_REDUNDANT_DECLS)
779.3.16 by Monty Taylor
Some Sun warning fixes.
1361
AC_SUBST(PROTOSKIP_WARNINGS)
779.3.18 by Monty Taylor
Cleaned up warnings up through innodb.
1362
AC_SUBST(NO_UNREACHED)
53.2.1 by Monty Taylor
Added --disable-pedantic-warnings and --enable-fail.
1363
656.1.30 by Monty Taylor
Reverted gnulib changes.
1364
AC_SUBST([GLOBAL_CPPFLAGS],['-I$(top_srcdir) -I$(top_builddir)'])
202.1.23 by Monty Taylor
Moved the includes we use everywhere to to GLOBAL_CPPFLAGS and added AM_CPPFLAGS to an AC_SUBST, so that we could take out the redundant declaration from most fof the Makefiles.
1365
AC_SUBST([AM_CPPFLAGS],['${GLOBAL_CPPFLAGS}'])
779.3.10 by Monty Taylor
Turned on -Wshadow.
1366
AC_SUBST([GLOBAL_CXXFLAGS],[${AM_CXXFLAGS}])
287.3.26 by Monty Taylor
Put warnings into AM_C*FLAGS so they can be overridden per lib.
1367
AC_SUBST([AM_CFLAGS])
1368
AC_SUBST([AM_CXXFLAGS])
202.1.23 by Monty Taylor
Moved the includes we use everywhere to to GLOBAL_CPPFLAGS and added AM_CPPFLAGS to an AC_SUBST, so that we could take out the redundant declaration from most fof the Makefiles.
1369
779.3.10 by Monty Taylor
Turned on -Wshadow.
1370
1 by brian
clean slate
1371
# Some usefull subst
1372
AC_SUBST(CC)
1373
AC_SUBST(GXX)
1374
1375
# Set configuration options for make_binary_distribution
1376
case $SYSTEM_TYPE in
1377
  *netware*)
1378
    MAKE_BINARY_DISTRIBUTION_OPTIONS="$MAKE_BINARY_DISTRIBUTION_OPTIONS --no-strip"
1379
    ;;
1380
  *)
1381
    : # no change for other platforms yet
1382
    ;;
1383
esac
1384
AC_SUBST(MAKE_BINARY_DISTRIBUTION_OPTIONS)
1385
722.1.4 by Monty Taylor
Removed all the setting of DEFS everywhere. Use configmake.h to get the values
1386
AC_SUBST(pkgplugindir,"\$(pkglibdir)/plugin")
1387
492.1.7 by Monty Taylor
Moved test() to its own file.
1388
dnl GCC Precompiled Header Support
584.4.3 by Monty Taylor
Disabled pre-compiled headers for now.
1389
dnl re-enable later
632.1.25 by Monty Taylor
Removed AM_CONDITIONAL from SEARCH_FOR_LIB. Aligned naming of AM_CONDITIONALS.
1390
dnl AM_CONDITIONAL([BUILD_GCC_PCH],[test "$GCC" = "yes"])
1391
AM_CONDITIONAL([BUILD_GCC_PCH],[test "no" = "yes"])
492.1.7 by Monty Taylor
Moved test() to its own file.
1392
287.3.1 by Monty Taylor
Removed mysys/tests.
1393
AC_CONFIG_FILES(Makefile extra/Makefile mysys/Makefile dnl
264.1.15 by Monty Taylor
Removed a bunch of files from mystrings that aren't build or used at all.
1394
 mystrings/Makefile storage/Makefile dnl
575.2.2 by Monty Taylor
Moved vio stuff into libdrizzle.
1395
 po/Makefile.in dnl
77.1.38 by Monty Taylor
Renamed more stuff to drizzle.
1396
 libdrizzle/Makefile client/Makefile dnl
214 by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing).
1397
 drizzled/Makefile dnl
316 by Brian Aker
First pass of new sql_db.cc work
1398
 drizzled/serialize/Makefile dnl
214 by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing).
1399
 drizzled/sql_builtin.cc dnl
28.1.31 by Monty Taylor
Deleted tons of pointless garbage from scripts.
1400
 support-files/Makefile dnl
77.1.47 by Monty Taylor
Moved test to tests...
1401
 tests/Makefile tests/install_test_db dnl
546 by Monty Taylor
Cleaned up version.h. (And by cleaned, I mean removed)
1402
 plugin/Makefile dnl
214 by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing).
1403
 drizzled/drizzled_safe support-files/libdrizzle.pc dnl
77.1.38 by Monty Taylor
Renamed more stuff to drizzle.
1404
 support-files/drizzle.server support-files/drizzle-log-rotate)
1 by brian
clean slate
1405
1406
AC_CONFIG_COMMANDS([default], , test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h)
1407
1408
# Ensure that table handlers gets all modifications to CFLAGS/CXXFLAGS
287.3.28 by Monty Taylor
Expanded the move to AM_CFLAGS and AM_CXXFLAGS. Now we should be more correct.
1409
AC_CONFIG_COMMANDS_POST(ac_configure_args="$ac_configure_args CFLAGS='$CFLAGS' CXXFLAGS='$CXXFLAGS' AM_CFLAGS='$AM_CFLAGS' AM_CXXFLAGS='$AM_CXXFLAGS'")
1 by brian
clean slate
1410
1411
AC_OUTPUT
489.2.1 by C.J. Adams-Collier
2008-10-07T1437 C.J. Adams-Collier <cjac@colliertech.org>
1412
1413
echo "---"
1414
echo "Configuration summary for $PACKAGE_NAME version $VERSION"
1415
echo ""
1416
echo "   * Installation prefix:       $prefix"
1417
echo "   * System type:               $SYSTEM_TYPE"
492.2.1 by C.J. Adams-Collier
* fixed --disable-assert code (thanks Monty)
1418
echo "   * Host CPU:                  $host_cpu"
489.2.1 by C.J. Adams-Collier
2008-10-07T1437 C.J. Adams-Collier <cjac@colliertech.org>
1419
echo "   * C Compiler:                $CC_VERSION"
632.1.21 by Monty Taylor
Cleaned up compiler version checking.
1420
echo "   * C++ Compiler:              $CXX_VERSION"
492.2.1 by C.J. Adams-Collier
* fixed --disable-assert code (thanks Monty)
1421
echo "   * Build auth_pam:            $ac_cv_header_security_pam_appl_h"
1422
echo "   * Assertions enabled:        $ac_cv_assert"
489.2.1 by C.J. Adams-Collier
2008-10-07T1437 C.J. Adams-Collier <cjac@colliertech.org>
1423
echo "   * Debug enabled:             $with_debug"
1424
echo "   * Profiling enabled:         $ac_profiling"
1425
echo "   * Coverage enabled:          $ac_coverage"
1426
echo "   * Warnings as failure:       $ac_warn_fail"
492.2.1 by C.J. Adams-Collier
* fixed --disable-assert code (thanks Monty)
1427
echo "   * C++ cstdint location:      $ac_cv_cxx_cstdint"
1428
echo "   * C++ hash_map location:     $ac_cv_cxx_hash_map"
1429
echo "   * C++ hash namespace:        $ac_cv_cxx_hash_namespace"
1430
echo "   * C++ cmath location:        $ac_cv_cxx_cmath"
1431
echo "   * C++ cmath namespace:       $ac_cv_cxx_cmath_namespace"
489.2.1 by C.J. Adams-Collier
2008-10-07T1437 C.J. Adams-Collier <cjac@colliertech.org>
1432
echo ""
1433
echo "---"