Mercurial > octave-nkf
comparison configure.ac @ 13838:a35d381e22b0
make octave_allocator optional and disable by default
* configure.ac: Provide --enable-octave-allocator option.
* oct-alloc.h: Conditionally define OCTAVE_ALLOCATOR macros.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 07 Nov 2011 03:20:10 -0500 |
parents | 3c3b74677fa0 |
children | bdad80f28d5c 43cc49c7abd1 |
comparison
equal
deleted
inserted
replaced
13837:2c80bbd87f5d | 13838:a35d381e22b0 |
---|---|
163 [AS_HELP_STRING([--enable-bounds-check], | 163 [AS_HELP_STRING([--enable-bounds-check], |
164 [bounds checking for indexing in internal array classes (default is no)])], | 164 [bounds checking for indexing in internal array classes (default is no)])], |
165 [if test "$enableval" = yes; then BOUNDS_CHECKING=true; fi], []) | 165 [if test "$enableval" = yes; then BOUNDS_CHECKING=true; fi], []) |
166 if $BOUNDS_CHECKING; then | 166 if $BOUNDS_CHECKING; then |
167 AC_DEFINE(BOUNDS_CHECKING, 1, [Define to use internal bounds checking.]) | 167 AC_DEFINE(BOUNDS_CHECKING, 1, [Define to use internal bounds checking.]) |
168 fi | |
169 | |
170 USE_OCTAVE_ALLOCATOR=false | |
171 AC_ARG_ENABLE(octave-allocator, | |
172 [AS_HELP_STRING([--enable-octave-allocator], | |
173 [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. (default is no)])], | |
174 [if test "$enableval" = yes; then USE_ALLOCATOR=true; fi], []) | |
175 if $USE_OCTAVE_ALLOCATOR; then | |
176 AC_DEFINE(USE_OCTAVE_ALLOCATOR, 1, [Define to use octave_allocator class.]) | |
168 fi | 177 fi |
169 | 178 |
170 ### Make it possible to disable running Make in the doc directory. | 179 ### Make it possible to disable running Make in the doc directory. |
171 ### Useful for building on systems without TeX, for example. | 180 ### Useful for building on systems without TeX, for example. |
172 DOCDIR=doc | 181 DOCDIR=doc |
2186 | 2195 |
2187 Default pager: $DEFAULT_PAGER | 2196 Default pager: $DEFAULT_PAGER |
2188 gnuplot: $GNUPLOT | 2197 gnuplot: $GNUPLOT |
2189 | 2198 |
2190 Do internal array bounds checking: $BOUNDS_CHECKING | 2199 Do internal array bounds checking: $BOUNDS_CHECKING |
2200 Use octave_allocator: $USE_OCTAVE_ALLOCATOR | |
2191 Build static libraries: $STATIC_LIBS | 2201 Build static libraries: $STATIC_LIBS |
2192 Build shared libraries: $SHARED_LIBS | 2202 Build shared libraries: $SHARED_LIBS |
2193 Dynamic Linking: $ENABLE_DYNAMIC_LINKING $DL_API_MSG | 2203 Dynamic Linking: $ENABLE_DYNAMIC_LINKING $DL_API_MSG |
2194 Include support for GNU readline: $USE_READLINE | 2204 Include support for GNU readline: $USE_READLINE |
2195 64-bit array dims and indexing: $USE_64_BIT_IDX_T | 2205 64-bit array dims and indexing: $USE_64_BIT_IDX_T |