~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Brian Aker
  • Date: 2008-12-02 16:33:43 UTC
  • mfrom: (632.1.19 devel)
  • Revision ID: brian@tangent.org-20081202163343-007ifg17p0lvjga7
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
sinclude(m4/gettext.m4)
151
151
 
152
152
AM_GNU_GETTEXT([external])
153
 
AM_GNU_GETTEXT_VERSION(0.17)
 
153
AM_GNU_GETTEXT_VERSION([0.17])
154
154
 
155
155
AM_CONDITIONAL([BUILD_GETTEXT],[test "x$MSGMERGE" != "x" -a "x$MSGMERGE" != "x:"])
156
156
 
1121
1121
 
1122
1122
# Check definition of pthread_getspecific
1123
1123
AC_CACHE_CHECK([args to pthread_getspecific], [mysql_cv_getspecific_args],
1124
 
  [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#if !defined(_REENTRANT)
 
1124
  [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 
1125
#if !defined(_REENTRANT)
1125
1126
#define _REENTRANT
1126
1127
#endif
 
1128
#ifndef _POSIX_PTHREAD_SEMANTICS 
1127
1129
#define _POSIX_PTHREAD_SEMANTICS 
 
1130
#endif
1128
1131
#include <pthread.h> ]], [[ void *pthread_getspecific(pthread_key_t key);
1129
1132
pthread_getspecific((pthread_key_t) NULL); ]])],
1130
1133
    [mysql_cv_getspecific_args=POSIX],
1137
1140
 
1138
1141
  # Check definition of pthread_mutex_init
1139
1142
  AC_CACHE_CHECK([args to pthread_mutex_init], [mysql_cv_mutex_init_args],
1140
 
    [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#define _REENTRANT
 
1143
    [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 
1144
#ifndef _REENTRANT
 
1145
#define _REENTRANT
 
1146
#endif
 
1147
#ifndef _POSIX_PTHREAD_SEMANTICS
1141
1148
#define _POSIX_PTHREAD_SEMANTICS 
 
1149
#endif
1142
1150
#include <pthread.h> ]], [[ 
1143
1151
  pthread_mutexattr_t attr;
1144
1152
  pthread_mutex_t mp;
1155
1163
#---START: Used in for client configure
1156
1164
# Check definition of readdir_r
1157
1165
AC_CACHE_CHECK([args to readdir_r], [mysql_cv_readdir_r],
1158
 
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define _REENTRANT
 
1166
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 
1167
#ifndef _REENTRANT
 
1168
#define _REENTRANT
 
1169
#endif
 
1170
#ifndef _POSIX_PTHREAD_SEMANTICS 
1159
1171
#define _POSIX_PTHREAD_SEMANTICS 
 
1172
#endif
1160
1173
#include <pthread.h>
1161
1174
#include <dirent.h>]], [[ int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
1162
1175
readdir_r((DIR *) NULL, (struct dirent *) NULL, (struct dirent **) NULL); ]])],
1170
1183
# Check definition of posix sigwait()
1171
1184
AC_CACHE_CHECK([style of sigwait], [mysql_cv_sigwait],
1172
1185
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 
1186
#ifndef _REENTRANT
1173
1187
#define _REENTRANT
 
1188
#endif
 
1189
#ifndef _POSIX_PTHREAD_SEMANTICS
1174
1190
#define _POSIX_PTHREAD_SEMANTICS 
 
1191
#endif
1175
1192
#include <pthread.h>
1176
1193
#include <signal.h>
1177
1194
      ]], [[
1194
1211
# Check definition of posix sigwait()
1195
1212
AC_CACHE_CHECK([style of sigwait], [mysql_cv_sigwait],
1196
1213
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 
1214
#ifndef _REENTRANT
1197
1215
#define _REENTRANT
 
1216
#endif
 
1217
#ifndef _POSIX_PTHREAD_SEMANTICS
1198
1218
#define _POSIX_PTHREAD_SEMANTICS 
 
1219
#endif
1199
1220
#include <pthread.h>
1200
1221
#include <signal.h>
1201
1222
      ]], [[
1215
1236
# Check if pthread_attr_setscope() exists
1216
1237
AC_CACHE_CHECK([for pthread_attr_setscope], [mysql_cv_pthread_attr_setscope],
1217
1238
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 
1239
#ifndef _REENTRANT
1218
1240
#define _REENTRANT
 
1241
#endif
 
1242
#ifndef _POSIX_PTHREAD_SEMANTICS
1219
1243
#define _POSIX_PTHREAD_SEMANTICS 
 
1244
#endif
1220
1245
#include <pthread.h>
1221
1246
      ]], [[
1222
1247
pthread_attr_t thr_attr;