From: Ard Biesheuvel Date: Sun, 1 Feb 2004 17:42:26 +0000 (+0000) Subject: Test for Interbase version 6 API in 'configure' X-Git-Tag: php-5.0.0b4RC1~205 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=254eb0f05d6843362f91ab38016a5fdd0a33a9bb;p=php Test for Interbase version 6 API in 'configure' # Always enable in Win32 for the time being --- diff --git a/ext/interbase/config.m4 b/ext/interbase/config.m4 index ac4dd1e664..6af08a7a8f 100644 --- a/ext/interbase/config.m4 +++ b/ext/interbase/config.m4 @@ -37,6 +37,16 @@ if test "$PHP_INTERBASE" != "no"; then ], [ -L$IBASE_LIBDIR ]) + + if test " $IBASE_LIBNAME" != " "; then + PHP_CHECK_LIBRARY($IBASE_LIBNAME, isc_service_attach, + [ + AC_DEFINE(HAVE_IBASE6_API,1,[ ]) + AC_MSG_RESULT([Interbase version 6 API has been enabled.]) + ], [ + AC_MSG_RESULT([Interbase version 6 API has NOT been enabled.]) + ], [ ]) + fi PHP_ADD_LIBRARY_WITH_PATH($IBASE_LIBNAME, $IBASE_LIBDIR, INTERBASE_SHARED_LIBADD) PHP_ADD_INCLUDE($IBASE_INCDIR) diff --git a/ext/interbase/config.w32 b/ext/interbase/config.w32 index 5fa0e3ccdc..95f9069dff 100644 --- a/ext/interbase/config.w32 +++ b/ext/interbase/config.w32 @@ -10,6 +10,7 @@ if (PHP_INTERBASE != "no") { CHECK_LIB("gds32_ms.lib", "interbase", PHP_PHP_BUILD + "\\interbase\\lib_ms;" + PHP_INTERBASE))) { EXTENSION("interbase", "interbase.c ibase_service.c ibase_events.c ibase_blobs.c"); AC_DEFINE('HAVE_IBASE', 1, 'Have interbase library'); + AC_DEFINE('HAVE_IBASE6_API', 1, 'Have interbase version 6 API library'); } else { WARNING("interbase not enabled; libraries and headers not found"); }