Return to config.w32 CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / mysql |
1.1 ! misho 1: // $Id: config.w32 261548 2008-06-23 18:40:29Z pajoye $ ! 2: // vim:ft=javascript ! 3: ! 4: ARG_WITH("mysql", "MySQL support", "no"); ! 5: ! 6: if (PHP_MYSQL != "no") { ! 7: if ((PHP_MYSQL == "yes" || PHP_MYSQL == "mysqlnd")) { ! 8: AC_DEFINE('MYSQL_USE_MYSQLND', 1, 'Using MySQL native driver'); ! 9: if (!ADD_EXTENSION_DEP('mysql', 'mysqlnd', true)) { ! 10: PHP_MYSQL = "no"; ! 11: WARNING("mysql not enabled; mysqlnd is not enabled"); ! 12: } else { ! 13: EXTENSION("mysql", "php_mysql.c"); ! 14: AC_DEFINE('HAVE_MYSQL', 1, 'Have MySQL library'); ! 15: MESSAGE("\tusing mysqlnd build"); ! 16: } ! 17: } else if (PHP_MYSQL != "") { ! 18: if (CHECK_LIB("libmysql.lib", "mysql", PHP_MYSQL) && ! 19: CHECK_HEADER_ADD_INCLUDE("mysql.h", "CFLAGS_MYSQL", ! 20: PHP_MYSQL + "\\include;" + PHP_PHP_BUILD + "\\include\\mysql;" + PHP_MYSQL)) { ! 21: EXTENSION("mysql", "php_mysql.c"); ! 22: AC_DEFINE('HAVE_MYSQL', 1, 'Have MySQL library'); ! 23: MESSAGE("\tusing libmysql"); ! 24: } else { ! 25: WARNING("mysql not enabled; libraries and headers not found"); ! 26: } ! 27: } ! 28: }