1// $Id$ 2// vim:ft=javascript 3 4ARG_ENABLE("odbc", "ODBC support", "yes"); 5 6if (PHP_ODBC == "yes") { 7 if (CHECK_LIB("odbc32.lib", "odbc") && CHECK_LIB("odbccp32.lib", "odbc") 8 && CHECK_HEADER_ADD_INCLUDE("sql.h", "CFLAGS_ODBC") 9 && CHECK_HEADER_ADD_INCLUDE("sqlext.h", "CFLAGS_ODBC")) { 10 EXTENSION("odbc", "php_odbc.c"); 11 AC_DEFINE("HAVE_UODBC", 1, "ODBC support"); 12 } else { 13 WARNING("odbc support can't be enabled, libraries or header are missing (SDK)") 14 PHP_ODBC = "no" 15 } 16}