Mercurial > octave-nkf
comparison aclocal.m4 @ 4366:ad851d04b396
[project @ 2003-03-05 09:49:18 by jwe]
author | jwe |
---|---|
date | Wed, 05 Mar 2003 09:49:18 +0000 |
parents | 1d7180ab9df1 |
children | de2bc66c709f |
comparison
equal
deleted
inserted
replaced
4365:4dfce8f9ee98 | 4366:ad851d04b396 |
---|---|
96 AC_TRY_COMPILE([#include <new>], | 96 AC_TRY_COMPILE([#include <new>], |
97 [operator delete((void *)0, (void *)0);], | 97 [operator delete((void *)0, (void *)0);], |
98 octave_cv_placement_delete=yes, octave_cv_placement_delete=no)]) | 98 octave_cv_placement_delete=yes, octave_cv_placement_delete=no)]) |
99 if test $octave_cv_placement_delete = yes; then | 99 if test $octave_cv_placement_delete = yes; then |
100 AC_DEFINE(HAVE_PLACEMENT_DELETE,1,[Define if C++ supports operator delete(void *, void *)]) | 100 AC_DEFINE(HAVE_PLACEMENT_DELETE,1,[Define if C++ supports operator delete(void *, void *)]) |
101 fi | |
102 AC_LANG_POP(C++) | |
103 ]) | |
104 dnl | |
105 dnl See if the compiler dynamic auto arrays | |
106 dnl | |
107 AC_DEFUN(OCTAVE_DYNAMIC_AUTO_ARRAYS, | |
108 [AC_CACHE_CHECK([whether C++ supports dynamic auto arrays], | |
109 octave_cv_dynamic_auto_arrays, | |
110 [AC_LANG_PUSH(C++) | |
111 AC_TRY_COMPILE(, | |
112 [void test(char *); int length(); char x[length()]; test(x);], | |
113 octave_cv_dynamic_auto_arrays=yes, octave_cv_dynamic_auto_arrays=no)]) | |
114 if test $octave_cv_dynamic_auto_arrays = yes; then | |
115 AC_DEFINE(HAVE_DYNAMIC_AUTO_ARRAYS,1,[Define if C++ supports dynamic auto arrays]) | |
101 fi | 116 fi |
102 AC_LANG_POP(C++) | 117 AC_LANG_POP(C++) |
103 ]) | 118 ]) |
104 dnl | 119 dnl |
105 dnl The following test is from Karl Berry's Kpathseach library. I'm | 120 dnl The following test is from Karl Berry's Kpathseach library. I'm |