1161
1161
MYSQL_CONFIGURE_PLUGINS([none])
1163
# Only build client code?
1165
[ --without-server Only build the client.],
1166
[with_server=$withval],
1172
# If we have threads generate some library functions and test programs
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"
1181
sql_client_dirs="$sql_client_dirs client"
1183
CLIENT_LIBS="$NON_THREADED_LIBS $openssl_libs $ZLIB_LIBS $STATIC_NSS_FLAGS"
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)
1191
if test "$with_server" = "yes"
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"
1167
AC_DEFINE([THREAD], [1],
1168
[Define if you want to have threaded code. This may be undef on client code])
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"
1211
AC_SUBST(sql_server_dirs)
1212
AC_SUBST(sql_server)
1213
AC_SUBST(server_scripts)
1215
1177
AC_SUBST(mysql_plugin_dirs)
1216
1178
AC_SUBST(mysql_plugin_libs)
1217
1179
AC_SUBST(mysql_plugin_defs)
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
1225
if echo " $sql_union_dirs " | grep " $DIR " >/dev/null
1227
: # already present, skip
1229
sql_union_dirs="$sql_union_dirs $DIR "
1232
AC_SUBST(sql_union_dirs)
1234
1181
# Some usefull subst