Mercurial > octave
comparison m4/acinclude.m4 @ 21150:f090661930ba
eliminate obsolete OCTAVE_CXX_PLACEMENT_DELETE autoconf macro
* acinclude.m4 (OCTAVE_CXX_PLACEMENT_DELETE):
Delete macro definition.
* configure.ac: Don't use it.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 29 Jan 2016 12:25:39 -0500 |
parents | 7962dbca527f |
children | b5b531ba93ce |
comparison
equal
deleted
inserted
replaced
21149:7962dbca527f | 21150:f090661930ba |
---|---|
1455 ]) | 1455 ]) |
1456 AC_MSG_RESULT([$octave_cv_cxx_iso_compliant_library]) | 1456 AC_MSG_RESULT([$octave_cv_cxx_iso_compliant_library]) |
1457 if test $octave_cv_cxx_iso_compliant_library = yes; then | 1457 if test $octave_cv_cxx_iso_compliant_library = yes; then |
1458 AC_DEFINE(CXX_ISO_COMPLIANT_LIBRARY, 1, | 1458 AC_DEFINE(CXX_ISO_COMPLIANT_LIBRARY, 1, |
1459 [Define to 1 if your C++ runtime library is ISO compliant.]) | 1459 [Define to 1 if your C++ runtime library is ISO compliant.]) |
1460 fi | |
1461 ]) | |
1462 dnl | |
1463 dnl Check if the compiler supports placement delete. | |
1464 dnl | |
1465 AC_DEFUN([OCTAVE_CXX_PLACEMENT_DELETE], [ | |
1466 AC_CACHE_CHECK([whether <new> defines placement delete operator], | |
1467 [octave_cv_cxx_placement_delete], | |
1468 [AC_LANG_PUSH(C++) | |
1469 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | |
1470 #include <new> | |
1471 ]], [[ | |
1472 operator delete((void *)0, (void *)0); | |
1473 ]])], | |
1474 octave_cv_cxx_placement_delete=yes, | |
1475 octave_cv_cxx_placement_delete=no) | |
1476 AC_LANG_POP(C++) | |
1477 ]) | |
1478 if test $octave_cv_cxx_placement_delete = yes; then | |
1479 AC_DEFINE(HAVE_PLACEMENT_DELETE, 1, | |
1480 [Define to 1 if C++ supports operator delete(void *, void *).]) | |
1481 fi | 1460 fi |
1482 ]) | 1461 ]) |
1483 dnl | 1462 dnl |
1484 dnl Allow the user disable support for command line editing using GNU | 1463 dnl Allow the user disable support for command line editing using GNU |
1485 dnl readline. | 1464 dnl readline. |