diff options
author | unknown <serg@sergbook.mylan> | 2005-05-05 16:21:17 +0200 |
---|---|---|
committer | unknown <serg@sergbook.mylan> | 2005-05-05 16:21:17 +0200 |
commit | cba5abe650ae4d1dce5bd85a4e77beae2730bce8 (patch) | |
tree | a159160b54a9b49abb7b3833c961b61240f85878 /config | |
parent | a001bb2b9d6cb458b53b1ceb3d10be4d8dab2cbf (diff) | |
download | mariadb-git-cba5abe650ae4d1dce5bd85a4e77beae2730bce8.tar.gz |
gcc 2.92 compatibility
config/ac-macros/misc.m4:
better USE_MYSYS_NEW detection
configure.in:
better USE_MYSYS_NEW detection
extra/yassl/src/Makefile.am:
better USE_MYSYS_NEW detection
extra/yassl/taocrypt/include/runtime.hpp:
better USE_MYSYS_NEW detection
Diffstat (limited to 'config')
-rw-r--r-- | config/ac-macros/misc.m4 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/config/ac-macros/misc.m4 b/config/ac-macros/misc.m4 index d75dedafa2a..8c961ef84e0 100644 --- a/config/ac-macros/misc.m4 +++ b/config/ac-macros/misc.m4 @@ -693,3 +693,20 @@ dnl --------------------------------------------------------------------------- dnl END OF MYSQL_CHECK_BIG_TABLES SECTION dnl --------------------------------------------------------------------------- +dnl MYSQL_NEEDS_MYSYS_NEW +AC_DEFUN([MYSQL_NEEDS_MYSYS_NEW], +[AC_CACHE_CHECK([needs mysys_new helpers], mysql_use_mysys_new, +[ +AC_LANG_PUSH(C++) +AC_TRY_LINK([], [ +class A { public: int b; }; A *a=new A; a->b=10; delete a; +], mysql_use_mysys_new=no, mysql_use_mysys_new=yes) +AC_LANG_POP(C++) +]) +if test "$mysql_use_mysys_new" = "yes" +then + AC_DEFINE([USE_MYSYS_NEW], [1], [Needs to use mysys_new helpers]) +fi +]) + + |