Mercurial > octave-nkf
comparison configure.in @ 4726:14dc2267c343
[project @ 2004-01-23 20:04:35 by jwe]
author | jwe |
---|---|
date | Fri, 23 Jan 2004 20:04:36 +0000 |
parents | fcab389ad291 |
children | 364bbf35dbfa |
comparison
equal
deleted
inserted
replaced
4725:fa612b2cbfe9 | 4726:14dc2267c343 |
---|---|
27 | 27 |
28 EXTERN_CFLAGS="$CFLAGS" | 28 EXTERN_CFLAGS="$CFLAGS" |
29 EXTERN_CXXFLAGS="$CXXFLAGS" | 29 EXTERN_CXXFLAGS="$CXXFLAGS" |
30 | 30 |
31 AC_INIT | 31 AC_INIT |
32 AC_REVISION($Revision: 1.442 $) | 32 AC_REVISION($Revision: 1.443 $) |
33 AC_PREREQ(2.57) | 33 AC_PREREQ(2.57) |
34 AC_CONFIG_SRCDIR([src/octave.cc]) | 34 AC_CONFIG_SRCDIR([src/octave.cc]) |
35 AC_CONFIG_HEADER(config.h) | 35 AC_CONFIG_HEADER(config.h) |
36 | 36 |
37 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.]) | 37 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.]) |
1428 /* sigsetjmp is a macro, not a function. */ | 1428 /* sigsetjmp is a macro, not a function. */ |
1429 #if defined (sigsetjmp) && defined (HAVE_SIGLONGJMP) | 1429 #if defined (sigsetjmp) && defined (HAVE_SIGLONGJMP) |
1430 #define OCTAVE_HAVE_SIG_JUMP | 1430 #define OCTAVE_HAVE_SIG_JUMP |
1431 #endif | 1431 #endif |
1432 | 1432 |
1433 /* Always use new, since we sometimes allocate large chunks of memory | 1433 /* Always use vector<T>, since we sometimes allocate large chunks |
1434 and that can cause trouble due to stack size limits. | 1434 of memory and that can cause trouble due to stack size limits. |
1435 | |
1436 Note that using auto_ptr is not appropriate because it uses delete, | |
1437 not delete[] and we need the latter to properly handle arrays | |
1438 allocated with new[size]. | |
1439 | |
1435 #if defined (HAVE_DYNAMIC_AUTO_ARRAYS) | 1440 #if defined (HAVE_DYNAMIC_AUTO_ARRAYS) |
1436 #define OCTAVE_LOCAL_BUFFER(T, buf, size) \ | 1441 #define OCTAVE_LOCAL_BUFFER(T, buf, size) \ |
1437 T buf[size] | 1442 T buf[size] |
1438 #else */ | 1443 #else */ |
1439 #define OCTAVE_LOCAL_BUFFER(T, buf, size) \ | 1444 #define OCTAVE_LOCAL_BUFFER(T, buf, size) \ |
1440 std::auto_ptr<T> buf ## _auto_ptr (new T [size]); \ | 1445 std::vector<T> buf ## _vector (size); \ |
1441 T *buf = buf ## _auto_ptr.get () | 1446 T *buf = &(buf ## _vector[0]) |
1442 /* #endif */ | 1447 /* #endif */ |
1443 | 1448 |
1444 #if defined (__DECCXX) | 1449 #if defined (__DECCXX) |
1445 #define __USE_STD_IOSTREAM | 1450 #define __USE_STD_IOSTREAM |
1446 #endif | 1451 #endif |