diff options
author | unknown <serg@janus.mylan> | 2006-08-01 14:02:19 +0200 |
---|---|---|
committer | unknown <serg@janus.mylan> | 2006-08-01 14:02:19 +0200 |
commit | fe84903b15772782aa3bfbaa5fee60d480eaa4f2 (patch) | |
tree | fa9a52e1594e40970c22cd0c3f33519897c39fc0 /config | |
parent | b2768ee6810e5bc6e0bf4007859dbe1af3afade5 (diff) | |
download | mariadb-git-fe84903b15772782aa3bfbaa5fee60d480eaa4f2.tar.gz |
compile-time definition of intptr type
config/ac-macros/misc.m4:
remove unnecessary macro
configure.in:
use AC_CHECK_SIZEOF when appropriate
Diffstat (limited to 'config')
-rw-r--r-- | config/ac-macros/misc.m4 | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/config/ac-macros/misc.m4 b/config/ac-macros/misc.m4 index 3ed64b5625b..fdce85aa136 100644 --- a/config/ac-macros/misc.m4 +++ b/config/ac-macros/misc.m4 @@ -1,35 +1,5 @@ # Local macros for automake & autoconf -# A local version of AC_CHECK_SIZEOF that includes sys/types.h -dnl MYSQL_CHECK_SIZEOF(TYPE [, CROSS-SIZE]) -AC_DEFUN([MYSQL_CHECK_SIZEOF], -[changequote(<<, >>)dnl -dnl The name to #define. -define(<<AC_TYPE_NAME>>, translit(sizeof_$1, [a-z *], [A-Z_P]))dnl -dnl The cache variable name. -define(<<AC_CV_NAME>>, translit(ac_cv_sizeof_$1, [ *], [_p]))dnl -changequote([, ])dnl -AC_MSG_CHECKING(size of $1) -AC_CACHE_VAL(AC_CV_NAME, -[AC_TRY_RUN([#include <stdio.h> -#include <sys/types.h> -#if STDC_HEADERS -#include <stdlib.h> -#include <stddef.h> -#endif -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof($1)); - exit(0); -}], AC_CV_NAME=`cat conftestval`, AC_CV_NAME=0, ifelse([$2], , , AC_CV_NAME=$2))])dnl -AC_MSG_RESULT($AC_CV_NAME) -AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME, [ ]) -undefine([AC_TYPE_NAME])dnl -undefine([AC_CV_NAME])dnl -]) - #---START: Used in for client configure AC_DEFUN([MYSQL_TYPE_ACCEPT], [ac_save_CXXFLAGS="$CXXFLAGS" |