1// vim:ft=javascript 2 3ARG_WITH("pdo-odbc", "ODBC support for PDO", "no"); 4 5if (PHP_PDO_ODBC != "no") { 6 if (CHECK_LIB("odbc32.lib", "pdo_odbc") && CHECK_LIB("odbccp32.lib", "pdo_odbc") 7 && CHECK_HEADER_ADD_INCLUDE('sql.h', 'CFLAGS_PDO_ODBC') 8 && CHECK_HEADER_ADD_INCLUDE('sqlext.h', 'CFLAGS_PDO_ODBC')) { 9 10 EXTENSION("pdo_odbc", "pdo_odbc.c odbc_driver.c odbc_stmt.c"); 11 ADD_EXTENSION_DEP('pdo_odbc', 'pdo'); 12 13 } else { 14 WARNING("pdo_odbc support can't be enabled, headers or libraries are missing (SDK)") 15 PHP_PDO_ODBC = "no" 16 } 17} 18