Skip to content
Snippets Groups Projects
Commit 3bf11c46 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Allow cross compilation.

Thanks to Marc Dirix <marc@electronics-design.nl> for noting the issue.

Rev: src/modules/Mysql/configure.in:1.62
parent 1a8ea7fe
No related branches found
No related tags found
No related merge requests found
#
# $Id: configure.in,v 1.61 2008/07/18 18:20:15 mast Exp $
# $Id: configure.in,v 1.62 2010/05/03 11:26:21 grubba Exp $
#
# Configure script for the mysql-module
#
......@@ -324,7 +324,7 @@ int main(int argc, char *argv[])
{
#ifdef MYSQL_VERSION_ID
unsigned long ver = mysql_get_client_version();
if(ver != MYSQL_VERSION_ID) {
if((ver/100) != (MYSQL_VERSION_ID/100)) {
fprintf(stderr, "Version mismatch: compile=%lu, run=%lu\n",
(unsigned long)MYSQL_VERSION_ID, ver);
exit(1);
......@@ -335,7 +335,10 @@ int main(int argc, char *argv[])
AC_MSG_WARN([Header version does not match library version, diabling module])
PIKE_FEATURE(Mysql,[no (header/library mismatch)])
pike_cv_mysql=no
],[])
],[
# Cross-compiling.
:
])
],[])
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment