blob: 74c47e3a860b55f72321ad0cafc9033ea70168fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# $Id$
PACKAGE=wiredtiger
AC_INIT(WiredTiger, [__EDIT_WIREDTIGER_VERSION__],
[support@wiredtiger.com],
wt-__EDIT_WIREDTIGER_VERSION__)
AC_CONFIG_SRCDIR([../dist/RELEASE])
AC_CONFIG_HEADERS([wiredtiger_config.h:config.hin])
AC_CONFIG_AUX_DIR(gnu-support, aclocal)
AC_SUBST(WIREDTIGER_VERSION_MAJOR)
WIREDTIGER_VERSION_MAJOR="__EDIT_WIREDTIGER_VERSION_MAJOR__"
AC_SUBST(WIREDTIGER_VERSION_MINOR)
WIREDTIGER_VERSION_MINOR="__EDIT_WIREDTIGER_VERSION_MINOR__"
AC_SUBST(WIREDTIGER_VERSION_PATCH)
WIREDTIGER_VERSION_PATCH="__EDIT_WIREDTIGER_VERSION_PATCH__"
AC_SUBST(WIREDTIGER_VERSION_STRING)
WIREDTIGER_VERSION_STRING='"__EDIT_WIREDTIGER_VERSION_STRING__"'
AC_SUBST(WIREDTIGER_VERSION_UNIQUE_NAME)
AM_INIT_AUTOMAKE
AM_OPTIONS
AC_PROG_CC(cc gcc)
if test "$GCC" = "yes"; then
# Automake configures gcc's CFLAGS to be -g -O2.
#
# If we're using gcc, change the optimization to -O3, unless we're
# doing a small build, in which case we use -Os.
if test "$db_cv_enable_smallbuild" = "yes"; then
CFLAGS=`echo "$CFLAGS" | sed 's/-O./-Os /g'`
else
CFLAGS=`echo "$CFLAGS" | sed 's/-O./-O3 /g'`
fi
# The Solaris gcc compiler gets the additional -pthreads flag.
if test "`uname -s`" = "SunOS"; then
CFLAGS="$CFLAGS -pthreads"
fi
else
# Automake configures non-gcc compiler CFLAGS to be -g.
#
# If not using gcc, use -O (which is specifically correct for Solaris,
# the -O flag configures the compiler to use the "default" optimization).
CFLAGS=`echo "$CFLAGS" | sed 's/-g/-O/g'`
# The Solaris native compiler gets the additional -mt flag.
if test "`uname -s`" = "SunOS"; then
CFLAGS="$CFLAGS -mt"
fi
fi
# A debug build turns on debugging symbols -- pretty much everybody uses -g.
# Leave optimization alone, although that can make debugging more difficult.
if test "$db_cv_enable_debug" = "yes"; then
CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
CFLAGS="$CFLAGS -g"
fi
AM_TYPES
AC_PROG_RANLIB
AC_PROG_INSTALL
AC_CHECK_LIB(pthread, pthread_create)
AC_CHECK_LIB(rt, sched_yield)
AC_CHECK_FUNCS(fcntl pthread_yield)
AC_CONFIG_FILES([
Makefile
wiredtiger.h:../include/wiredtiger.in
wt_internal.h:../include/wt_internal.in])
AC_OUTPUT
|