3
# Process user-specified options.
4
AC_DEFUN(AM_OPTIONS_SET, [
6
# --enable-bigfile was the configuration option that Berkeley DB used before
7
# autoconf 2.50 was released (which had --enable-largefile integrated in).
9
[AC_HELP_STRING([--disable-bigfile],
10
[Obsolete; use --disable-largefile instead.])],
12
[--enable-bigfile no longer supported, use --enable-largefile])])
14
AC_MSG_CHECKING(if --enable-compat185 option specified)
15
AC_ARG_ENABLE(compat185,
16
[AC_HELP_STRING([--enable-compat185],
17
[Build DB 1.85 compatibility API.])],
18
[db_cv_compat185="$enable_compat185"], [db_cv_compat185="no"])
19
AC_MSG_RESULT($db_cv_compat185)
21
AC_MSG_CHECKING(if --enable-cxx option specified)
23
[AC_HELP_STRING([--enable-cxx],
25
[db_cv_cxx="$enable_cxx"], [db_cv_cxx="no"])
26
AC_MSG_RESULT($db_cv_cxx)
28
AC_MSG_CHECKING(if --enable-debug option specified)
30
[AC_HELP_STRING([--enable-debug],
31
[Build a debugging version.])],
32
[db_cv_debug="$enable_debug"], [db_cv_debug="no"])
33
AC_MSG_RESULT($db_cv_debug)
35
AC_MSG_CHECKING(if --enable-debug_rop option specified)
36
AC_ARG_ENABLE(debug_rop,
37
[AC_HELP_STRING([--enable-debug_rop],
38
[Build a version that logs read operations.])],
39
[db_cv_debug_rop="$enable_debug_rop"], [db_cv_debug_rop="no"])
40
AC_MSG_RESULT($db_cv_debug_rop)
42
AC_MSG_CHECKING(if --enable-debug_wop option specified)
43
AC_ARG_ENABLE(debug_wop,
44
[AC_HELP_STRING([--enable-debug_wop],
45
[Build a version that logs write operations.])],
46
[db_cv_debug_wop="$enable_debug_wop"], [db_cv_debug_wop="no"])
47
AC_MSG_RESULT($db_cv_debug_wop)
49
AC_MSG_CHECKING(if --enable-diagnostic option specified)
50
AC_ARG_ENABLE(diagnostic,
51
[AC_HELP_STRING([--enable-diagnostic],
52
[Build a version with run-time diagnostics.])],
53
[db_cv_diagnostic="$enable_diagnostic"], [db_cv_diagnostic="no"])
54
AC_MSG_RESULT($db_cv_diagnostic)
56
AC_MSG_CHECKING(if --enable-dump185 option specified)
57
AC_ARG_ENABLE(dump185,
58
[AC_HELP_STRING([--enable-dump185],
59
[Build db_dump185(1) to dump 1.85 databases.])],
60
[db_cv_dump185="$enable_dump185"], [db_cv_dump185="no"])
61
AC_MSG_RESULT($db_cv_dump185)
63
AC_MSG_CHECKING(if --enable-java option specified)
65
[AC_HELP_STRING([--enable-java],
67
[db_cv_java="$enable_java"], [db_cv_java="no"])
68
AC_MSG_RESULT($db_cv_java)
70
AC_MSG_CHECKING(if --enable-pthreadsmutexes option specified)
71
AC_ARG_ENABLE(pthreadsmutexes,
72
AC_HELP_STRING([--enable-pthreadsmutexes],
73
[Use POSIX pthreads mutexes.]),, enableval="no")
74
db_cv_pthreadsmutexes="$enableval"
76
no) AC_MSG_RESULT(yes);;
77
yes) AC_MSG_RESULT(no);;
80
AC_MSG_CHECKING(if --enable-posixmutexes option specified)
81
AC_ARG_ENABLE(posixmutexes,
82
[AC_HELP_STRING([--enable-posixmutexes],
83
[Force use of POSIX standard mutexes.])],
84
[db_cv_posixmutexes="$enable_posixmutexes"], [db_cv_posixmutexes="no"])
85
AC_MSG_RESULT($db_cv_posixmutexes)
87
AC_MSG_CHECKING(if --enable-rpc option specified)
89
[AC_HELP_STRING([--enable-rpc],
90
[Build RPC client/server.])],
91
[db_cv_rpc="$enable_rpc"], [db_cv_rpc="no"])
92
AC_MSG_RESULT($db_cv_rpc)
94
AC_MSG_CHECKING(if --enable-tcl option specified)
96
[AC_HELP_STRING([--enable-tcl],
98
[db_cv_tcl="$enable_tcl"], [db_cv_tcl="no"])
99
AC_MSG_RESULT($db_cv_tcl)
101
AC_MSG_CHECKING(if --enable-test option specified)
103
[AC_HELP_STRING([--enable-test],
104
[Configure to run the test suite.])],
105
[db_cv_test="$enable_test"], [db_cv_test="no"])
106
AC_MSG_RESULT($db_cv_test)
108
AC_MSG_CHECKING(if --enable-uimutexes option specified)
109
AC_ARG_ENABLE(uimutexes,
110
[AC_HELP_STRING([--enable-uimutexes],
111
[Force use of Unix International mutexes.])],
112
[db_cv_uimutexes="$enable_uimutexes"], [db_cv_uimutexes="no"])
113
AC_MSG_RESULT($db_cv_uimutexes)
115
AC_MSG_CHECKING(if --enable-umrw option specified)
117
[AC_HELP_STRING([--enable-umrw],
118
[Mask harmless unitialized memory read/writes.])],
119
[db_cv_umrw="$enable_umrw"], [db_cv_umrw="no"])
120
AC_MSG_RESULT($db_cv_umrw)
122
AC_MSG_CHECKING([if --with-embedix=DIR option specified])
124
[AC_HELP_STRING([--with-embedix=DIR],
125
[Embedix install directory location.])],
126
[with_embedix="$withval"], [with_embedix="no"])
127
if test "$with_embedix" = "no"; then
129
AC_MSG_RESULT($with_embedix)
132
if test "$with_embedix" = "yes"; then
133
db_cv_path_embedix_install="/opt/Embedix"
135
db_cv_path_embedix_install="$with_embedix"
137
AC_MSG_RESULT($db_cv_path_embedix_install)
140
AC_MSG_CHECKING(if --with-mutex=MUTEX option specified)
142
[AC_HELP_STRING([--with-mutex=MUTEX],
143
[Selection of non-standard mutexes.])],
144
[with_mutex="$withval"], [with_mutex="no"])
145
if test "$with_mutex" = "yes"; then
146
AC_MSG_ERROR([--with-mutex requires a mutex name argument])
148
if test "$with_mutex" != "no"; then
149
db_cv_mutex="$with_mutex"
151
AC_MSG_RESULT($with_mutex)
153
AC_MSG_CHECKING(if --with-rpm=DIR option specified)
155
[AC_HELP_STRING([--with-rpm=DIR],
156
[Directory location of RPM archive.])],
157
[with_rpm="$withval"], [with_rpm="no"])
158
if test "$with_rpm" = "no"; then
161
if test "$with_rpm" = "yes"; then
162
AC_MSG_ERROR([--with-rpm requires a directory argument])
165
db_cv_path_rpm_archive="$with_rpm"
167
AC_MSG_RESULT($with_rpm)
169
AC_MSG_CHECKING([if --with-tcl=DIR option specified])
171
[AC_HELP_STRING([--with-tcl=DIR],
172
[Directory location of tclConfig.sh.])],
173
[with_tclconfig="$withval"], [with_tclconfig="no"])
174
AC_MSG_RESULT($with_tclconfig)
175
if test "$with_tclconfig" != "no"; then
179
AC_MSG_CHECKING([if --with-uniquename=NAME option specified])
180
AC_ARG_WITH(uniquename,
181
[AC_HELP_STRING([--with-uniquename=NAME],
182
[Build a uniquely named library.])],
183
[with_uniquename="$withval"], [with_uniquename="_eds"])
184
if test "$with_uniquename" = "no"; then
185
db_cv_uniquename="no"
186
AC_MSG_RESULT($with_uniquename)
188
db_cv_uniquename="yes"
189
if test "$with_uniquename" != "yes"; then
190
DB_VERSION_UNIQUE_NAME="$with_uniquename"
192
AC_MSG_RESULT($DB_VERSION_UNIQUE_NAME)
195
# Embedix requires RPM.
196
if test "$db_cv_embedix" = "yes"; then
197
if test "$db_cv_rpm" = "no"; then
198
AC_MSG_ERROR([--with-embedix requires --with-rpm])
203
if test "$db_cv_test" = "yes"; then
204
if test "$db_cv_tcl" = "no"; then
205
AC_MSG_ERROR([--enable-test requires --enable-tcl])