Mercurial > hg > octave-lyh
changeset 4095:60abc5f86565
[project @ 2002-10-09 14:44:44 by jwe]
author | jwe |
---|---|
date | Wed, 09 Oct 2002 14:44:44 +0000 |
parents | 3e631060ab8f |
children | 66d7394f5822 |
files | ChangeLog aclocal.m4 |
diffstat | 2 files changed, 20 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-10-09 John W. Eaton <jwe@bevo.che.wisc.edu> + + * aclocal.m4 (OCTAVE_CXX_PRAGMA_INTERFACE_IMPLEMENTATION): + Add second test for OS X. + 2002-10-08 John W. Eaton <jwe@bevo.che.wisc.edu> * aclocal.m4 (OCTAVE_CXX_PRAGMA_INTERFACE_IMPLEMENTATION): New macro.
--- a/aclocal.m4 +++ b/aclocal.m4 @@ -381,9 +381,21 @@ B (void) : A<int> () { } }; EOB - AC_TRY_LINK([#include "conftest.h"], [ - ], - octave_cv_cxx_pragma_interface_implementation=yes, + AC_TRY_LINK([#include "conftest.h"], [], [ + rm -f conftest.h + cat > conftest.h <<EOB +#pragma interface +class A +{ +public: + virtual ~A (void) {} +}; +EOB + AC_TRY_COMPILE([#pragma implementation +#include "confdefs.h"], [], + octave_cv_cxx_pragma_interface_implementation=yes, + octave_cv_cxx_pragma_interface_implementation=no + )], octave_cv_cxx_pragma_interface_implementation=no ) AC_LANG_POP(C++)