pike.git / src / modules / Mysql / configure.in

version» Context lines:

pike.git/src/modules/Mysql/configure.in:1:   # - # $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   #   # Henrik Grubbström   #      #   # NOTE:   # Prior to 3.20.0 After 3.20.0   # -------------------------------------------------------------------
pike.git/src/modules/Mysql/configure.in:317:   #else   #ifdef HAVE_MYSQL_MYSQL_H   #include <mysql/mysql.h>   #endif   #endif   #include <stdio.h>   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);    }   #endif    return 0;   }],[],[    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       if test x$pike_cv_mysql = xno; then    # Restore variables, so we don't link with unnessesary libs       LIBS=$OLD_LIBS    CPPFLAGS=$OLD_CPPFLAGS    LDFLAGS=$OLD_LDFLAGS    else    AC_DEFINE(HAVE_MYSQL)