From 7e8e8aba7cc49bd26393c8f2cb07d99df9fec8dd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 3 Sep 2010 16:21:31 +0200 Subject: Add support for MinGW build --- configure.ac | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 39fb278..484a443 100644 --- a/configure.ac +++ b/configure.ac @@ -35,10 +35,24 @@ LIBMYSQLCLIENT( [], [AC_MSG_ERROR([lib$libmysqlclient_name is not found; consider using CPPFLAGS/LDFLAGS to specify its location])]) +case $libmysqlclient_include in + short) + AC_DEFINE([LIBODB_MYSQL_INCLUDE_SHORT], [1], ["Short MySQL include."]) + ;; + long) + AC_DEFINE([LIBODB_MYSQL_INCLUDE_LONG], [1], ["Long MySQL include."]) + ;; +esac + # Check for libodb. # LIBODB([],[AC_MSG_ERROR([libodb is not found; consider using --with-libodb=DIR])]) +# Define LIBODB_MYSQL_STATIC_LIB if we are build static library on certain +# platforms. +# +STATIC_LIB([LIBODB_MYSQL_STATIC_LIB], [Static library interface.]) + # Allow the user to specify the pkgconfig directory. # PKGCONFIG @@ -49,7 +63,7 @@ DISABLE_RPATH # Output. # -AC_CONFIG_HEADERS([odb/mysql/config.h]) +AC_CONFIG_HEADERS([odb/mysql/config.h odb/mysql/details/config.h]) AC_CONFIG_FILES([ __path__(config_files) ]) -- cgit v1.1