Mercurial > hg > octave-lyh
changeset 4360:1d7180ab9df1
[project @ 2003-02-24 02:57:24 by jwe]
author | jwe |
---|---|
date | Mon, 24 Feb 2003 02:57:24 +0000 |
parents | 77605935a783 |
children | 34014c0fb2ce |
files | ChangeLog aclocal.m4 configure.in |
diffstat | 3 files changed, 26 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-02-23 Paul Kienzle <pkienzle@users.sf.net> + + * aclocal.m4 (OCTAVE_PLACEMENT_DELETE): New macro. + * configure.in: Use it. + (AH_BOTTOM): Don't define HAVE_PLACEMENT_DELETE here. + 2003-02-21 John W. Eaton <jwe@bevo.che.wisc.edu> * configure.in: Allow RLD_FLAG to be set using --enable-rpath arg.
--- a/aclocal.m4 +++ b/aclocal.m4 @@ -87,6 +87,21 @@ AC_LANG_POP(C++) ]) dnl +dnl See if the compiler supports placement delete +dnl +AC_DEFUN(OCTAVE_PLACEMENT_DELETE, +[AC_CACHE_CHECK([whether <new> defines placement delete operator], +octave_cv_placement_delete, +[AC_LANG_PUSH(C++) +AC_TRY_COMPILE([#include <new>], +[operator delete((void *)0, (void *)0);], +octave_cv_placement_delete=yes, octave_cv_placement_delete=no)]) +if test $octave_cv_placement_delete = yes; then +AC_DEFINE(HAVE_PLACEMENT_DELETE,1,[Define if C++ supports operator delete(void *, void *)]) +fi +AC_LANG_POP(C++) +]) +dnl dnl The following test is from Karl Berry's Kpathseach library. I'm dnl including it here in case we someday want to make the use of dnl kpathsea optional.
--- a/configure.in +++ b/configure.in @@ -22,7 +22,7 @@ ### 02111-1307, USA. AC_INIT -AC_REVISION($Revision: 1.417 $) +AC_REVISION($Revision: 1.418 $) AC_PREREQ(2.52) AC_CONFIG_SRCDIR([src/octave.cc]) AC_CONFIG_HEADER(config.h) @@ -863,6 +863,10 @@ OCTAVE_STRING_NPOS +### See if we should use placement delete. + +OCTAVE_PLACEMENT_DELETE + ### Checks for header files. AC_HEADER_STDC @@ -1396,10 +1400,6 @@ #if defined (__DECCXX) #define __USE_STD_IOSTREAM #endif - -#if defined (__GNUG__) && __GNUC__ >= 3 && __GNUC_MINOR__ >= 2 -#define HAVE_PLACEMENT_DELETE 1 -#endif ]) ### Do the substitutions in all the Makefiles.