1PHP_ARG_WITH(pdo-firebird,for Firebird support for PDO, 2[ --with-pdo-firebird[=DIR] PDO: Firebird support. DIR is the Firebird base 3 install directory [/opt/firebird]]) 4 5if test "$PHP_PDO_FIREBIRD" != "no"; then 6 7 if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then 8 AC_MSG_ERROR([PDO is not enabled! Add --enable-pdo to your configure line.]) 9 fi 10 11 if test "$PHP_PDO_FIREBIRD" = "yes"; then 12 FIREBIRD_INCDIR= 13 FIREBIRD_LIBDIR= 14 FIREBIRD_LIBDIR_FLAG= 15 else 16 FIREBIRD_INCDIR=$PHP_PDO_FIREBIRD/include 17 FIREBIRD_LIBDIR=$PHP_PDO_FIREBIRD/$PHP_LIBDIR 18 FIREBIRD_LIBDIR_FLAG=-L$FIREBIRD_LIBDIR 19 fi 20 21 PHP_CHECK_LIBRARY(fbclient, isc_detach_database, 22 [ 23 FIREBIRD_LIBNAME=fbclient 24 ], [ 25 PHP_CHECK_LIBRARY(gds, isc_detach_database, 26 [ 27 FIREBIRD_LIBNAME=gds 28 ], [ 29 PHP_CHECK_LIBRARY(ib_util, isc_detach_database, 30 [ 31 FIREBIRD_LIBNAME=ib_util 32 ], [ 33 AC_MSG_ERROR([libfbclient, libgds or libib_util not found! Check config.log for more information.]) 34 ], [ 35 $FIREBIRD_LIBDIR_FLAG 36 ]) 37 ], [ 38 $FIREBIRD_LIBDIR_FLAG 39 ]) 40 ], [ 41 $FIREBIRD_LIBDIR_FLAG 42 ]) 43 44 PHP_CHECK_PDO_INCLUDES 45 46 PHP_ADD_LIBRARY_WITH_PATH($FIREBIRD_LIBNAME, $FIREBIRD_LIBDIR, PDO_FIREBIRD_SHARED_LIBADD) 47 PHP_ADD_INCLUDE($FIREBIRD_INCDIR) 48 AC_DEFINE(HAVE_PDO_FIREBIRD,1,[ ]) 49 PHP_NEW_EXTENSION(pdo_firebird, pdo_firebird.c firebird_driver.c firebird_statement.c, $ext_shared,,-I$pdo_cv_inc_path) 50 PHP_SUBST(PDO_FIREBIRD_SHARED_LIBADD) 51 PHP_ADD_EXTENSION_DEP(pdo_firebird, pdo) 52fi 53