diff options
author | unknown <monty@narttu.mysql.fi> | 2003-07-15 13:10:20 +0300 |
---|---|---|
committer | unknown <monty@narttu.mysql.fi> | 2003-07-15 13:10:20 +0300 |
commit | eca79196e3de5ca7e4ce212acc3138bc0e7758d8 (patch) | |
tree | fa2301a17d499ad2f714aee503690422d6e8e086 /acinclude.m4 | |
parent | 21721b97f1012121b38e58abf9035485e00ecd8e (diff) | |
download | mariadb-git-eca79196e3de5ca7e4ce212acc3138bc0e7758d8.tar.gz |
Portability fixes
acinclude.m4:
Made test for compress more reliable (for Solaris)
sql/item_strfunc.cc:
Portability fix (for Linux Alpha)
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index abeb2024f4a..f7d89ecf35a 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -126,12 +126,19 @@ AC_DEFUN(MYSQL_CHECK_ZLIB_WITH_COMPRESS, [ save_LIBS="$LIBS" LIBS="-l$1 $LIBS" AC_CACHE_CHECK([if libz with compress], mysql_cv_compress, -[AC_TRY_LINK([#include <zlib.h> +[AC_TRY_RUN([#include <zlib.h> #ifdef __cplusplus extern "C" #endif -], -[ return compress(0, (unsigned long*) 0, "", 0); +int main(int argv, char **argc) +{ + return 0; +} + +int link_test() +{ + return compress(0, (unsigned long*) 0, "", 0); +} ], mysql_cv_compress=yes, mysql_cv_compress=no)]) if test "$mysql_cv_compress" = "yes" then |