comparison configure.ac @ 19632:76478d2da117

unconditionally disable the octave_allocator class * configure.ac: Delete the --enable-octave-allocator option. * oct-alloc.h: Delete octave_allocator class. Warn if file is included. Unconditionally define macros to be empty. * NEWS: Make note of these changes. * oct-alloc.cc: Delete. * liboctave/util/module.mk (UTIL_SRC): Remove it from the list. * make_int.cc, Cell.h, oct-obj.cc, oct-obj.h, audiodevinfo.cc, ov-base-int.h, ov-base-scalar.h, ov-bool-mat.cc, ov-bool-mat.h, ov-bool-sparse.cc, ov-bool-sparse.h, ov-bool.cc, ov-bool.h, ov-builtin.cc, ov-builtin.h, ov-cell.cc, ov-cell.h, ov-ch-mat.h, ov-class.cc, ov-class.h, ov-classdef.cc, ov-classdef.h, ov-complex.cc, ov-complex.h, ov-cs-list.cc, ov-cs-list.h, ov-cx-diag.cc, ov-cx-diag.h, ov-cx-mat.cc, ov-cx-mat.h, ov-cx-sparse.cc, ov-cx-sparse.h, ov-dld-fcn.cc, ov-dld-fcn.h, ov-fcn-handle.cc, ov-fcn-handle.h, ov-fcn-inline.cc, ov-fcn-inline.h, ov-fcn.cc, ov-fcn.h, ov-float.cc, ov-float.h, ov-flt-complex.cc, ov-flt-complex.h, ov-flt-cx-diag.cc, ov-flt-cx-diag.h, ov-flt-cx-mat.cc, ov-flt-cx-mat.h, ov-flt-re-diag.cc, ov-flt-re-diag.h, ov-flt-re-mat.cc, ov-flt-re-mat.h, ov-int16.cc, ov-int32.cc, ov-int64.cc, ov-int8.cc, ov-intx.h, ov-java.cc, ov-java.h, ov-mex-fcn.cc, ov-mex-fcn.h, ov-perm.cc, ov-perm.h, ov-range.cc, ov-range.h, ov-re-diag.cc, ov-re-diag.h, ov-re-mat.cc, ov-re-mat.h, ov-re-sparse.cc, ov-re-sparse.h, ov-scalar.cc, ov-scalar.h, ov-str-mat.cc, ov-str-mat.h, ov-struct.cc, ov-struct.h, ov-uint16.cc, ov-uint32.cc, ov-uint64.cc, ov-uint8.cc, ov-usr-fcn.cc, ov-usr-fcn.h, ov.cc, ov.h, pt-const.cc, pt-const.h, idx-vector.cc, idx-vector.h: Delete uses of oct-alloc.h and OCTAVE_ALLOCATOR macros.
author John W. Eaton <jwe@octave.org>
date Tue, 20 Jan 2015 13:43:29 -0500
parents 0e1f5a750d00
children ebd27d8c63fd
comparison
equal deleted inserted replaced
19631:db92e7e28e1f 19632:76478d2da117
228 [AS_HELP_STRING([--enable-bounds-check], 228 [AS_HELP_STRING([--enable-bounds-check],
229 [enable bounds checking for indexing in internal array classes])], 229 [enable bounds checking for indexing in internal array classes])],
230 [if test "$enableval" = yes; then BOUNDS_CHECKING=yes; fi], []) 230 [if test "$enableval" = yes; then BOUNDS_CHECKING=yes; fi], [])
231 if test $BOUNDS_CHECKING = yes; then 231 if test $BOUNDS_CHECKING = yes; then
232 AC_DEFINE(BOUNDS_CHECKING, 1, [Define to 1 to use internal bounds checking.]) 232 AC_DEFINE(BOUNDS_CHECKING, 1, [Define to 1 to use internal bounds checking.])
233 fi
234
235 ### Use Octave's built-in memory allocator rather than straightforward malloc.
236 ### Disabled by default.
237
238 USE_OCTAVE_ALLOCATOR=no
239 AC_ARG_ENABLE([octave-allocator],
240 [AS_HELP_STRING([--enable-octave-allocator],
241 [use the obsolete octave_allocator class for many of Octave's objects (mostly octave_value types). You probably do NOT want to enable this feature.])],
242 [if test "$enableval" = yes; then USE_OCTAVE_ALLOCATOR=yes; fi], [])
243 if test $USE_OCTAVE_ALLOCATOR = yes; then
244 AC_DEFINE(USE_OCTAVE_ALLOCATOR, 1,
245 [Define to 1 to use octave_allocator class.])
246 fi 233 fi
247 234
248 ### Use atomic operations for internal reference counting. This is required 235 ### Use atomic operations for internal reference counting. This is required
249 ### for thread-safe behavior (Qt Handles) but incurs a significant slowdown. 236 ### for thread-safe behavior (Qt Handles) but incurs a significant slowdown.
250 ### Enabled by default until a higher performing solution can be found. 237 ### Enabled by default until a higher performing solution can be found.
3091 3078
3092 Build Octave GUI: $build_gui 3079 Build Octave GUI: $build_gui
3093 JIT compiler for loops: $build_jit 3080 JIT compiler for loops: $build_jit
3094 Build Java interface: $build_java 3081 Build Java interface: $build_java
3095 Do internal array bounds checking: $BOUNDS_CHECKING 3082 Do internal array bounds checking: $BOUNDS_CHECKING
3096 Use octave_allocator: $USE_OCTAVE_ALLOCATOR
3097 Build static libraries: $STATIC_LIBS 3083 Build static libraries: $STATIC_LIBS
3098 Build shared libraries: $SHARED_LIBS 3084 Build shared libraries: $SHARED_LIBS
3099 Dynamic Linking: $ENABLE_DYNAMIC_LINKING $DL_API_MSG 3085 Dynamic Linking: $ENABLE_DYNAMIC_LINKING $DL_API_MSG
3100 Include support for GNU readline: $USE_READLINE 3086 Include support for GNU readline: $USE_READLINE
3101 64-bit array dims and indexing: $USE_64_BIT_IDX_T 3087 64-bit array dims and indexing: $USE_64_BIT_IDX_T
3185 AC_MSG_WARN([This feature allows access to Octave data safely from]) 3171 AC_MSG_WARN([This feature allows access to Octave data safely from])
3186 AC_MSG_WARN([another thread, and is required when using the GUI's Qt toolkit]) 3172 AC_MSG_WARN([another thread, and is required when using the GUI's Qt toolkit])
3187 AC_MSG_WARN([for plotting.]) 3173 AC_MSG_WARN([for plotting.])
3188 AC_MSG_WARN([]) 3174 AC_MSG_WARN([])
3189 fi 3175 fi
3190 if test $USE_ATOMIC_REFCOUNT = yes; then
3191 if test $USE_OCTAVE_ALLOCATOR = yes; then
3192 AC_MSG_WARN([Using atomic reference counting.])
3193 AC_MSG_WARN([Thread-safe behavior is not guaranteed unless the])
3194 AC_MSG_WARN([octave_allocator class is also disabled.])
3195 AC_MSG_WARN([])
3196 fi
3197 warn_msg_printed=true
3198 fi
3199 3176
3200 if $warn_msg_printed; then 3177 if $warn_msg_printed; then
3201 AC_MSG_NOTICE([]) 3178 AC_MSG_NOTICE([])
3202 AC_MSG_NOTICE([NOTE: Libraries or auxiliary programs may be skipped if they are]) 3179 AC_MSG_NOTICE([NOTE: Libraries or auxiliary programs may be skipped if they are])
3203 AC_MSG_NOTICE([NOTE: not found OR if they are missing required features on your]) 3180 AC_MSG_NOTICE([NOTE: not found OR if they are missing required features on your])