work, but it gets no more testing.
o the tarball no longer contains the screenshot images which
- reduces its size from 570 KB to about 410KB.
+ reduces its size quite a bit.
+
+ o configure: new command line options: --enable-mysql-headers
+ and --enable-mysql-libs
para_client si
to find out. If mysql is not mentioned as a supported selector,
-you'll have to recompile.
+you'll have to recompile. If configure does not detect your mysql
+installation, use the --enable-mysql-headers and --enable-mysql-libs
+options to specify the mysql path explicitly . Example:
+
+ ./configure --enable-mysql-headers=/Library/MySQL/include \
+ --enable-mysql-libs=/Library/MySQL/lib/mysql
Create a new database
########################################################################### mysql
have_mysql="yes"
+AC_ARG_ENABLE(mysql_headers, [AC_HELP_STRING(--enable-mysql-headers=dir,
+ [look for mysql.h also in dir])])
+if test -n "$enable_mysql_headers"; then
+ mysql_cppflags="-I$enable_mysql_headers"
+ CPPFLAGS="$CPPFLAGS $mysql_cppflags"
+fi
+AC_ARG_ENABLE(mysql_libs, [AC_HELP_STRING(--enable-mysql-libs=dir,
+ [look for libmysqlclient also in dir])])
+if test -n "$enable_mysql_headers"; then
+ mysql_libs="-L$enable_mysql_libs"
+ LDFLAGS="$LDFLAGS $mysql_libs"
+fi
AC_CHECK_HEADER(mysql/mysql.h, [], [
have_mysql="no"
])
have_mysql="no"
])
if test "$have_mysql" = "yes"; then
- server_ldflags="$server_ldflags -lmysqlclient"
+ server_ldflags="$server_ldflags $mysql_libs -lmysqlclient"
server_errlist_objs="$server_errlist_objs mysql_selector"
+ AC_SUBST(mysql_cppflags)
AC_DEFINE(HAVE_MYSQL, 1, [define to 1 to turn on mysql support])
else
AC_MSG_WARN([cannot build mysql-based audio file selector])
AC_OUTPUT
AC_MSG_NOTICE([creating Makefile.deps])
-gcc -MM -MG *.c > Makefile.deps
+gcc -MM -MG $mysql_cppflags *.c > Makefile.deps
AC_MSG_NOTICE([
paraslash configuration:
~~~~~~~~~~~~~~~~~~~~~~~~