126
# Get erts version from erts/vsn.mk
183
# Get erts version and otp release from erts/vsn.mk
128
[ERTS=erts-`sed -n 's/^VSN[ ]*=[ ]*\([0-9.]\)/\1/p' < erts/vsn.mk`]
185
AC_MSG_CHECKING([ERTS version])
186
[ERTS_VSN=`sed -n "s/^VSN[ ]*=[ ]*\(.*\)/\1/p" < $ERL_TOP/erts/vsn.mk`]
187
AC_MSG_RESULT([$ERTS_VSN])
190
AC_MSG_CHECKING([OTP release])
191
[OTP_REL=`sed -n "s/^SYSTEM_VSN[ ]*=[ ]*\(.*\)/\1/p" < $ERL_TOP/erts/vsn.mk`]
192
AC_MSG_RESULT([$OTP_REL])
132
195
AC_ARG_ENABLE(threads,
133
[ --enable-threads enable async thread support
134
--disable-threads disable async thread support])
196
AS_HELP_STRING([--enable-threads], [enable async thread support])
197
AS_HELP_STRING([--disable-threads], [disable async thread support]))
199
AC_ARG_ENABLE(halfword-emulator,
200
AS_HELP_STRING([--enable-halfword-emulator],
201
[enable halfword emulator (only for 64bit builds)]))
136
203
AC_ARG_ENABLE(smp-support,
137
[ --enable-smp-support enable smp support
138
--disable-smp-support disable smp support])
204
AS_HELP_STRING([--enable-smp-support], [enable smp support])
205
AS_HELP_STRING([--disable-smp-support], [disable smp support]))
140
207
AC_ARG_WITH(termcap,
141
[ --with-termcap use termcap (default)
142
--without-termcap do not use any termcap libraries (ncurses,curses,termcap,termlib)])
208
AS_HELP_STRING([--with-termcap], [use termcap (default)])
209
AS_HELP_STRING([--without-termcap],
210
[do not use any termcap libraries (ncurses,curses,termcap,termlib)]))
144
212
AC_ARG_ENABLE(kernel-poll,
145
[ --enable-kernel-poll enable kernel poll support])
213
AS_HELP_STRING([--enable-kernel-poll], [enable kernel poll support])
214
AS_HELP_STRING([--disable-kernel-poll], [disable kernel poll support]))
217
AS_HELP_STRING([--enable-sctp], [enable sctp support])
218
AS_HELP_STRING([--disable-sctp], [disable sctp support]))
147
220
AC_ARG_ENABLE(hipe,
148
[ --enable-hipe enable hipe support
149
--disable-hipe disable hipe support])
221
AS_HELP_STRING([--enable-hipe], [enable hipe support])
222
AS_HELP_STRING([--disable-hipe], [disable hipe support]))
224
AC_ARG_ENABLE(native-libs,
225
AS_HELP_STRING([--enable-native-libs],
226
[compile Erlang libraries to native code]))
229
AS_HELP_STRING([--with-javac=JAVAC], [specify Java compiler to use])
230
AS_HELP_STRING([--with-javac], [use a Java compiler if found (default)])
231
AS_HELP_STRING([--without-javac], [don't use any Java compiler]))
151
233
AC_ARG_ENABLE(megaco_flex_scanner_lineno,
152
[ --enable-megaco-flex-scanner-lineno enable megaco flex scanner lineno
153
--disable-megaco-flex-scanner-lineno disable megaco flex scanner lineno])
234
AS_HELP_STRING([--disable-megaco-flex-scanner-lineno],
235
[disable megaco flex scanner lineno]))
155
237
AC_ARG_ENABLE(megaco_reentrant_flex_scanner,
156
[ --enable-megaco-reentrant-flex-scanner enable reentrans megaco flex scanner
157
--disable-megaco-reentrant-flex-scanner disable reentrans megaco flex scanner])
238
AS_HELP_STRING([--disable-megaco-reentrant-flex-scanner],
239
[disable reentrant megaco flex scanner]))
160
[ --with-ssl=PATH specify location of OpenSSL include and lib
161
--with-ssl use SSL (default)
162
--without-ssl don't use SSL])
242
AS_HELP_STRING([--with-ssl=PATH], [specify location of OpenSSL include and lib])
243
AS_HELP_STRING([--with-ssl], [use SSL (default)])
244
AS_HELP_STRING([--without-ssl], [don't use SSL]))
164
246
AC_ARG_ENABLE(dynamic-ssl-lib,
165
[ --enable-dynamic-ssl-lib force using dynamic openssl libraries
166
--disable-dynamic-ssl-lib disable using dynamic openssl libraries])
247
AS_HELP_STRING([--disable-dynamic-ssl-lib],
248
[disable using dynamic openssl libraries]))
168
250
AC_ARG_ENABLE(shared-zlib,
169
[ --enable-shared-zlib enable using shared zlib library
170
--disable-shared-zlib disable shared zlib, compile own zlib source (default)])
251
AS_HELP_STRING([--enable-shared-zlib], [enable using shared zlib library]))
173
# Set Erlang man page directory
175
AC_ARG_ENABLE(erlang-mandir,
176
[ --disable-erlang-mandir do not install Erlang man pages in a private directory],
177
[ case "$enableval" in
178
no) erl_mandir=$mandir ;;
179
*) erl_mandir='$(ERLANG_ILIBDIR)/man' ;;
180
esac ], erl_mandir='$(ERLANG_ILIBDIR)/man')
253
dnl This functionality has been lost along the way... :(
254
dnl It could perhaps be nice to reintroduce some day; therefore,
255
dnl it is not removed just commented out.
258
dnl # Set Erlang man page directory
260
dnl AC_ARG_ENABLE(erlang-mandir,
261
dnl [ --disable-erlang-mandir do not install Erlang man pages in a private directory],
262
dnl [ case "$enableval" in
263
dnl no) erl_mandir=$mandir ;;
264
dnl *) erl_mandir='$(erlang_libdir)/man' ;;
265
dnl esac ], erl_mandir='$(erlang_libdir)/man')
266
dnl AC_SUBST(erl_mandir)
183
268
AC_ARG_ENABLE(darwin-universal,
184
[ --enable-darwin-universal build universal binaries on darwin i386],
269
AS_HELP_STRING([--enable-darwin-universal],
270
[build universal binaries on darwin i386]),
185
271
[ case "$enableval" in
186
272
no) enable_darwin_universal=no ;;
187
273
*) enable_darwin_univeral=yes ;;
198
284
],enable_darwin_64bit=no)
200
286
AC_ARG_ENABLE(m64-build,
201
[ --enable-m64-build build 64bit binaries using the -m64 flag to (g)cc],
287
AS_HELP_STRING([--enable-m64-build],
288
[build 64bit binaries using the -m64 flag to (g)cc]),
202
289
[ case "$enableval" in
203
290
no) enable_m64_build=no ;;
204
291
*) enable_m64_build=yes ;;
206
293
],enable_m64_build=no)
295
AC_ARG_ENABLE(m32-build,
296
AS_HELP_STRING([--enable-m32-build],
297
[build 32bit binaries using the -m32 flag to (g)cc]),
298
[ case "$enableval" in
299
no) enable_m32_build=no ;;
301
if test X${enable_darwin_64bit} = Xyes -o X${enable_m64_build} = Xyes;
303
AC_MSG_ERROR([(--enable-darwin-64bit or --enable-m64-build) and --enable-m32-build are mutually exclusive]) ;
305
enable_m32_build=yes ;;
307
],enable_m32_build=no)
309
AC_ARG_ENABLE(ethread-pre-pentium4-compatibility,
310
AS_HELP_STRING([--enable-ethread-pre-pentium4-compatibility],
311
[enable compatibility with x86 processors before pentium 4 (back to 486) in the ethread library]))
313
AC_ARG_WITH(libatomic_ops,
314
AS_HELP_STRING([--with-libatomic_ops=PATH],
315
[specify and prefer usage of libatomic_ops in the ethread library]))
208
317
dnl OK, we might have darwin switches off different kinds, lets
209
318
dnl check it all before continuing.
210
319
TMPSYS=`uname -s`-`uname -m`