Commit 374c24cd authored by unknown's avatar unknown

Merge jlindstrom@bk-internal.mysql.com:/home/bk/mysql-4.1

into hundin.mysql.fi:/home/jan/mysql-4.1
parents f8925476 2b9ae6cf
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
#include "my_config.h" #include "my_config.h"
#include "sys.h" #include "sys.h"
#if defined(LIBC_SCCS) && !defined(lint)
#define __RCSID(x) #define __RCSID(x)
#define __COPYRIGHT(x) #define __COPYRIGHT(x)
#endif
#define __RENAME(x) #define __RENAME(x)
#define _DIAGASSERT(x) #define _DIAGASSERT(x)
......
...@@ -346,7 +346,7 @@ get_term_capabilities (bp) ...@@ -346,7 +346,7 @@ get_term_capabilities (bp)
register unsigned int i; register unsigned int i;
for (i = 0; i < NUM_TC_STRINGS; i++) for (i = 0; i < NUM_TC_STRINGS; i++)
# ifdef __LCC__ # if defined(__LCC__) || defined(__MWERKS__)
*(tc_strings[i].tc_value) = tgetstr ((char *)tc_strings[i].tc_var, bp); *(tc_strings[i].tc_value) = tgetstr ((char *)tc_strings[i].tc_var, bp);
# else # else
*(tc_strings[i].tc_value) = tgetstr (tc_strings[i].tc_var, bp); *(tc_strings[i].tc_value) = tgetstr (tc_strings[i].tc_var, bp);
......
...@@ -127,8 +127,25 @@ AC_PROG_MAKE_SET ...@@ -127,8 +127,25 @@ AC_PROG_MAKE_SET
# This generates rules for webpage generation for the MySQL homepage. # This generates rules for webpage generation for the MySQL homepage.
AM_CONDITIONAL(LOCAL, test -d ../web/SitePages) AM_CONDITIONAL(LOCAL, test -d ../web/SitePages)
# This is need before AC_PROG_CC ##############################################################################
# # The below section needs to be done before AC_PROG_CC
##############################################################################
# Hack for OS X/Darwin and Metrowerks CodeWarrior
AC_ARG_WITH(darwin-mwcc,
[ --with-darwin-mwcc Use Metrowerks CodeWarrior wrappers on OS X/Darwin],[
builddir=`pwd`
ccwrapper="$builddir/support-files/MacOSX/mwcc-wrapper"
arwrapper="$builddir/support-files/MacOSX/mwar-wrapper"
CC="$ccwrapper"
CXX="$ccwrapper"
LD="$ccwrapper"
AR="$arwrapper"
RANLIB=:
export CC CXX LD AR RANLIB
AC_SUBST(AR)
AC_SUBST(RANLIB)
])
if test "x${CFLAGS-}" = x ; then if test "x${CFLAGS-}" = x ; then
cflags_is_set=no cflags_is_set=no
...@@ -148,6 +165,8 @@ else ...@@ -148,6 +165,8 @@ else
ldflags_is_set=yes ldflags_is_set=yes
fi fi
################ End of section to be done before AC_PROG_CC #################
# The following hack should ensure that configure doesn't add optimizing # The following hack should ensure that configure doesn't add optimizing
# or debugging flags to CFLAGS or CXXFLAGS # or debugging flags to CFLAGS or CXXFLAGS
# C_EXTRA_FLAGS are flags that are automaticly added to both # C_EXTRA_FLAGS are flags that are automaticly added to both
......
...@@ -163,6 +163,10 @@ extern char *my_strdup_with_length(const byte *from, uint length, ...@@ -163,6 +163,10 @@ extern char *my_strdup_with_length(const byte *from, uint length,
#if defined(_AIX) && !defined(__GNUC__) && !defined(_AIX43) #if defined(_AIX) && !defined(__GNUC__) && !defined(_AIX43)
#pragma alloca #pragma alloca
#endif /* _AIX */ #endif /* _AIX */
#if defined(__MWERKS__)
#undef alloca
#define alloca __alloca
#endif /* __MWERKS__ */
#if defined(__GNUC__) && !defined(HAVE_ALLOCA_H) && ! defined(alloca) #if defined(__GNUC__) && !defined(HAVE_ALLOCA_H) && ! defined(alloca)
#define alloca __builtin_alloca #define alloca __builtin_alloca
#endif /* GNUC */ #endif /* GNUC */
......
...@@ -91,7 +91,7 @@ template <> class Bitmap<64> ...@@ -91,7 +91,7 @@ template <> class Bitmap<64>
ulonglong map; ulonglong map;
public: public:
Bitmap<64>() { } Bitmap<64>() { }
#if defined(__NETWARE__) #if defined(__NETWARE__) || defined(__MWERKS__)
/* /*
Metwork compiler gives error on Bitmap<64> Metwork compiler gives error on Bitmap<64>
Changed to Bitmap, since in this case also it will proper construct Changed to Bitmap, since in this case also it will proper construct
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# started and shut down when the systems goes down. # started and shut down when the systems goes down.
# Comments to support chkconfig on RedHat Linux # Comments to support chkconfig on RedHat Linux
# chkconfig: 2345 90 20 # chkconfig: 2345 64 36
# description: A very fast and reliable SQL database engine. # description: A very fast and reliable SQL database engine.
# Comments to support LSB init script conventions # Comments to support LSB init script conventions
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment