Commit 99b575a2 authored by tim@localhost.polyesthetic.msg's avatar tim@localhost.polyesthetic.msg
Browse files

Automatically detect HAVE_INT_8_16_32.

parent 621c7db2
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -6687,8 +6687,8 @@ Automatic detection of @code{xlC} is missing from Autoconf, so a
@strong{MySQL}: (The example uses the IBM compiler)
@example
shell> CC="xlc_r" CFLAGS="-ma -O3 -qstrict -DHAVE_INT_8_16_32" \
       CXX="xlC_r" CXXFLAGS="-ma -O3 -qstrict -DHAVE_INT_8_16_32" \
shell> CC="xlc_r" CFLAGS="-ma -O3 -qstrict" \
       CXX="xlC_r" CXXFLAGS="-ma -O3 -qstrict" \
       ./configure
@end example
@@ -6704,9 +6704,9 @@ handling in @code{gcc}/@code{egcs} is not thread-safe! (This is tested with
@example
shell> CC=gcc \
       CFLAGS="-DHAVE_INT_8_16_32" \
       CFLAGS="" \
       CXX=gcc \
       CXXFLAGS="-felide-constructors -fno-exceptions -fno-rtti -DHAVE_INT_8_16_32" \" \
       CXXFLAGS="-felide-constructors -fno-exceptions -fno-rtti" \" \
       ./configure --prefix=/usr/local/mysql --with-debug --with-low-memory
@end example
+3 −0
Original line number Diff line number Diff line
@@ -69,6 +69,9 @@
   this with 6 arguments */
#undef HAVE_GLIBC2_STYLE_GETHOSTBYNAME_R

/* Define if int8, int16 and int32 types exist */
#undef HAVE_INT_8_16_32

/* Define if we have GNU readline */
#undef HAVE_LIBREADLINE

+24 −2
Original line number Diff line number Diff line
@@ -580,6 +580,28 @@ LIBS_AFTER_SOCKET=$LIBS
LIBS="$LIBS_BEFORE_SOCKET $LIBS_SOCKET $LIBS_AFTER_SOCKET"
NON_THREADED_CLIENT_LIBS="$LIBS"

AC_MSG_CHECKING([for int8])
AC_TRY_RUN([
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif

#ifdef HAVE_STDDEF_H
#include <stddef.h>
#endif

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif

int main()
{
  int8 i;
  return 0;
}
], AC_DEFINE(HAVE_INT_8_16_32) AC_MSG_RESULT([yes]), AC_MSG_RESULT([no])
)

#
# Some system specific hacks
#
@@ -662,8 +684,8 @@ case $SYSTEM_TYPE in
    ;;
    *aix4.3*)
      echo "Adding defines for AIX"
      CFLAGS="$CFLAGS -DHAVE_INT_8_16_32 -DUNDEF_HAVE_INITGROUPS"
      CXXFLAGS="$CXXFLAGS -DHAVE_INT_8_16_32 -DUNDEF_HAVE_INITGROUPS"
      CFLAGS="$CFLAGS -DUNDEF_HAVE_INITGROUPS"
      CXXFLAGS="$CXXFLAGS -DUNDEF_HAVE_INITGROUPS"
    ;;
esac