~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Monty Taylor
  • Date: 2008-07-02 13:07:35 UTC
  • mto: (28.2.1 packaging)
  • mto: This revision was merged to the branch mainline in revision 51.
  • Revision ID: monty@inaugust.com-20080702130735-4ok4lzi8bzyvsh31
Removed ZLIB references and the craziness of whether to build the server or not.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1160
1160
 
1161
1161
MYSQL_CONFIGURE_PLUGINS([none])
1162
1162
 
1163
 
# Only build client code?
1164
 
AC_ARG_WITH(server,
1165
 
    [  --without-server        Only build the client.],
1166
 
    [with_server=$withval],
1167
 
    [with_server=yes]
1168
 
)
1169
 
 
1170
 
#MYSQL_CHECK_CPU
1171
 
 
1172
 
# If we have threads generate some library functions and test programs
1173
 
sql_server_dirs=
1174
 
sql_server=
1175
 
server_scripts=
1176
 
 
1177
 
dnl This probably should be cleaned up more - for now the threaded
1178
 
dnl client is just using plain-old libs.
1179
 
sql_client_dirs="strings regex mysys libmysql"
1180
 
 
1181
 
sql_client_dirs="$sql_client_dirs client"
1182
 
 
1183
 
CLIENT_LIBS="$NON_THREADED_LIBS $openssl_libs $ZLIB_LIBS $STATIC_NSS_FLAGS"
1184
 
 
1185
1163
AC_SUBST(CLIENT_LIBS)
1186
1164
AC_SUBST(CLIENT_THREAD_LIBS)
1187
 
AC_SUBST(NON_THREADED_LIBS)
1188
1165
AC_SUBST(STATIC_NSS_FLAGS)
1189
 
AC_SUBST(sql_client_dirs)
1190
 
 
1191
 
if test "$with_server" = "yes"
1192
 
then
1193
 
  AC_DEFINE([THREAD], [1],
1194
 
            [Define if you want to have threaded code. This may be undef on client code])
1195
 
  # Avoid _PROGRAMS names
1196
 
  THREAD_LOBJECTS="thr_alarm.o thr_lock.o thr_mutex.o thr_rwlock.o my_thr_init.o mf_keycache.o"
1197
 
  AC_SUBST(THREAD_LOBJECTS)
1198
 
  server_scripts="mysqld_safe mysql_install_db"
1199
 
  sql_server_dirs="strings mysys dbug extra regex"
1200
 
 
1201
 
  sql_server="sql"
1202
 
fi
 
1166
 
 
1167
AC_DEFINE([THREAD], [1],
 
1168
          [Define if you want to have threaded code. This may be undef on client code])
1203
1169
 
1204
1170
# IMPORTANT - do not modify LIBS past this line - this hack is the only way
1205
1171
# I know to add the static NSS magic if we have static NSS libraries with
1208
1174
LDFLAGS="$LDFLAGS $OTHER_LIBC_LIB"
1209
1175
LIBS="$LIBS $STATIC_NSS_FLAGS"
1210
1176
 
1211
 
AC_SUBST(sql_server_dirs)
1212
 
AC_SUBST(sql_server)
1213
 
AC_SUBST(server_scripts)
1214
 
 
1215
1177
AC_SUBST(mysql_plugin_dirs)
1216
1178
AC_SUBST(mysql_plugin_libs)
1217
1179
AC_SUBST(mysql_plugin_defs)
1218
1180
 
1219
 
 
1220
 
# Now that sql_client_dirs and sql_server_dirs are stable, determine the union.
1221
 
# Start with the (longer) server list, add each client item not yet present.
1222
 
sql_union_dirs=" $sql_server_dirs "
1223
 
for DIR in $sql_client_dirs
1224
 
do
1225
 
  if echo " $sql_union_dirs " | grep " $DIR " >/dev/null
1226
 
  then
1227
 
    :  # already present, skip
1228
 
  else
1229
 
    sql_union_dirs="$sql_union_dirs $DIR "
1230
 
  fi
1231
 
done
1232
 
AC_SUBST(sql_union_dirs)
1233
 
 
1234
1181
# Some usefull subst
1235
1182
AC_SUBST(CC)
1236
1183
AC_SUBST(GXX)