2007-12-30 17:41:49 +01:00
|
|
|
dnl ---- configure.ac for gb.db.mysql driver
|
|
|
|
|
2014-04-05 23:22:43 +02:00
|
|
|
m4_include([../version.m4])
|
|
|
|
AC_INIT(gambas3-gb-db-mysql, GB_VERSION, GB_MAIL, [], GB_URL)
|
2009-08-17 00:07:48 +02:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2014-04-05 23:22:43 +02:00
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
GB_INIT(gb.db.mysql)
|
2014-04-05 23:22:43 +02:00
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
dnl LT_INIT
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
GB_COMPONENT(
|
2012-05-18 03:19:15 +02:00
|
|
|
mysql, MYSQL, gb.db.mysql, [src],
|
2019-09-04 23:42:18 +02:00
|
|
|
[GB_FIND(mysql.h, $prefix /opt/local /opt /usr/local/lib /usr/local /usr/lib /usr, include mysql*/include)],
|
2018-08-29 03:11:22 +02:00
|
|
|
[GB_FIND(libmysqlclient.$SHLIBEXT, $prefix /opt/local /opt /usr/local /usr, lib mysql*/lib)],
|
2007-12-30 17:41:49 +01:00
|
|
|
[$C_LIB -lmysqlclient -lz])
|
2020-01-25 10:18:23 +01:00
|
|
|
|
|
|
|
gb_save_cppflags=$CPPFLAGS
|
|
|
|
CPPFLAGS=$MYSQL_INC
|
|
|
|
|
|
|
|
AC_CACHE_CHECK(for SSL mode option,
|
|
|
|
gb_cv_db_mysql_ssl_mode,
|
|
|
|
[AC_TRY_COMPILE(
|
|
|
|
[
|
|
|
|
#include <mysql.h>
|
|
|
|
],
|
|
|
|
[
|
|
|
|
int flag = SSL_MODE_DISABLED;
|
|
|
|
],
|
|
|
|
gb_cv_db_mysql_ssl_mode=yes, gb_cv_db_mysql_ssl_mode=no
|
|
|
|
)])
|
|
|
|
|
|
|
|
if test $gb_cv_db_mysql_ssl_mode = yes; then
|
|
|
|
AC_DEFINE(HAVE_MYSQL_SSL_MODE_DISABLED, 1, [Define if you have SSL_MODE_DISABLED constant.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
CPPFLAGS=$gb_save_cppflags
|
|
|
|
|
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
AC_OUTPUT( \
|
|
|
|
Makefile \
|
|
|
|
src/Makefile \
|
|
|
|
)
|
2010-07-14 03:50:18 +02:00
|
|
|
|
|
|
|
GB_PRINT_MESSAGES
|